- Joined
- Dec 20, 2010
- Messages
- 48
Hi, I am making a map with duel system.I want mine to become a duel system scored by poins(poins +1 every time your team kill enemy units).But I need to reset the Integer(the poins integer) so the next duel will back to normal, and I don't know how to clear it ! Can anyone help me ?
Poins[2] = Poins for Team 2
I just wanted to create a trigger which can reset the Poins variable, and 1 more thing.Please see the trigger and check for these :
a.Leaks
b.Variables (wrong/correct)
+repp to who've tried and helped me
-
Duel System
-
Events
- Unit - A unit Dies
-
Conditions
- ((Dying unit) is A Hero) Equal to True
- (Guild War Arena <gen> contains (Dying unit)) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Dying unit) belongs to an ally of Player 1 (Red)) Equal to True
-
Then - Actions
- Set Poins[2] = (Poins[2] + 1)
-
Else - Actions
- Set Poins[1] = (Poins[1] + 1)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Poins[2] = Poins for Team 2
I just wanted to create a trigger which can reset the Poins variable, and 1 more thing.Please see the trigger and check for these :
a.Leaks
b.Variables (wrong/correct)
+repp to who've tried and helped me