Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
problem: how can you let the map check every XX seconds that a region (13 in total) has a building on it (flag) and thus "owned" by one of 2 forces.
( this part isnt the really hard i can do this myself but then we come to part2 )
adding all those regions to 2 numbers: how much regions owned by force1, and foce2. and those 2 numbers added into a multiboard. ( i heard i need real or strings for it? )
it doesn't exist, its bullshit, and i CAN tell you how to make that, but i'm just too damn lazy...
Well, alright, i'll be nice for once.
You are going to need 2 triggers each zone, and multiple variables, first, the variables:
X = number of players. So set the variable array to the player number of the triggering player.
14= the number of zones you have, so one array size for each zone.
---
Now, the first trigger, this will be the one to take control of the zone.
Code:
Capture zone 1
Events
Unit - A unit enters Zone 1 <gen>
Conditions
Var_zone_taken[1] Equal to False
((Triggering unit) is A structure) Equal to True
Actions
Set Var_Zone_structure[1] = (Entering unit)
Set var_zone_controller[1] = (Owner of (Entering unit))
Set Var_zone_taken[1] = True
Set var_player_zones[(Player number of (Owner of (Entering unit)))] = (var_player_zones[(Player number of (Owner of (Entering unit)))] + 1)
What this does is basically set all the data so the game knows wheter a zone is taken or not, and which of the buildings is the zonecontroller.
It does not prevent more structures to be built there, but you can make that yourself, with an if/then/else trigger, the if would be the current conditions, then current actions, else, whatever you want.
---
Now, the second trigger, what happens when control over the zone is lost!
Code:
Lose zone 1
Events
Unit - A unit Dies
Conditions
(Dying unit) Equal to Var_Zone_structure[1]
Actions
Set Var_Zone_structure[1] = No unit
Set var_zone_controller[1] = Neutral Passive
Set Var_zone_taken[1] = False
Set var_player_zones[(Player number of (Owner of (Dying unit)))] = (var_player_zones[(Player number of (Owner of (Dying unit)))] - 1)
There you go.
---
Now, last, the update!
Code:
Update Multiboard
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Integer A) + 1) to (String(var_player_zones[(Integer A)]))
Now, what this does, it puts the number of zones controlled in the right spot for each player... integer a from 1 to 10, there, the 10 means max number of players, so adjust that if needed.
I hope that helped, and i think it has, if you don't understand something, or need help, i've got the map i just made this code in saved on my pc, i can send it.
Also, the first two triggers work for the first zone only, you will have to copy, paste and adjust these for each zone.
If this is like Domination, you simply give them Circles of Power with the locust ability. When someone captures it, change the owner to like Player Blue/Red, changing color, then Neutral Passive or Neutral Extra, retaining color. Then check every 10 seconds if the owner of X circle is neutral extra, then give X team a point and so on
it is actually somethin like domination but it has more then one spawnpoint... anyways i now know i am triggering on a complete different lvl then u guys... have to learn more about variables
( this doesnt mean i cant get anything to work, cuz i know have everything working.. but it aint with lots of variables and stuff )
so in the map i have to change map author... instead of the Zontar/Dutching thing i have to rename it to zontar? well that was kinda easy... why didnt i thought about that before?
well, my maps don't show under my name either, doesn't work, author and all are correct, i have already told panto, but he didn't do anything about it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.