Ok i am working on a CTF and I forgot after I hadn't played the game for a while how make it where the hero returns to the other side and they get points and the flag is returned.
Now I how to work points and the leader board but I have trouble with trigger knowing that the unit has that Flag and I dont want it where i have to put in a specific slot.
Heres one way that you might be able to do it. My editor isn't working so I'll give you a way that I'm pretty sure worksSet up a variable called flag and make it integer)
Trigger 1 (Unit acquires flag)
Event: *Unit acquires an Item Condition: *Item type of manipulated item equals flag Action: *If/Then/Else multiple function *If: Flag equals 0 Owner of the acquiring unit equals = (All the players in one team) *Then: Set variable Flag = 1 *Else: Set variable Flag = 2
Trigger 2 (Unit drops, loses a flag) Event: *Unit drops an Item Condition: *Item type of manipulated item equals flag Action: *If/Then/Else multiple function *If: Flag equals 1 *Then: Set variable Flag = 0 *Else: Do nothing
*If/Then/Else multiple function *If: Flag equals 2 *Then: Set variable Flag = 0 *Else: Do nothing
Final TriggerKeepin track of who has the flag) Event: *Periodic Event - Every 1 second of game time Condition: *None Actions: *If/Then/Else multiple function *If: Flag equals 1 *Then: (Give points to team 1 however you are going to do it) *Else: Do nothing
*If/Then/Else multiple function *If: Flag equals 2 *Then: (Give points to team 2 however you are going to do it) *Else: Do nothing
I'm pretty sure those should work. At least it should be theoratically. Good luck -Blue
Ok. Got it. I think this should work. If you are having problems with the condition to show that the unit is carrying the item, do this: 1. Look under the condition Boolean Comparison 2. Search for Hero - Hero has an Item under boolean comparison 3. Select that and select the item for the flag.