- Joined
- Jun 20, 2017
- Messages
- 335
Basically I'm trying to make a leaderboard that counts a unit.
I have a small problem with it, it cannot count when units are placed in those areas! also when a unit dies, it starts counting negative instead of staying at 0!
I have a small problem with it, it cannot count when units are placed in those areas! also when a unit dies, it starts counting negative instead of staying at 0!
-
West Arena Unit Count
-
Events
- Unit - A unit enters ArenaWestSpawn <gen>
-
Conditions
- Boolean_LevelCompleted Equal to True
- Boolean_Arena Equal to True
- ((Entering unit) is Undead) Equal to False
-
Actions
- Set VariableSet Integers_ArenaFighterCount[(Player number of (Owner of (Entering unit)))] = (Integers_ArenaFighterCount[(Player number of (Owner of (Entering unit)))] + 1)
- Leaderboard - Change the value for Player 21 (Coal) in Leaderboard to Integers_ArenaFighterCount[(Player number of (Owner of (Entering unit)))]
-
Events
-
East Arena Unit Count
-
Events
- Unit - A unit enters ArenaEastSpawn <gen>
-
Conditions
- Boolean_LevelCompleted Equal to True
- Boolean_Arena Equal to True
- ((Entering unit) is Undead) Equal to False
-
Actions
- Set VariableSet Integers_ArenaFighterCount[(Player number of (Owner of (Entering unit)))] = (Integers_ArenaFighterCount[(Player number of (Owner of (Entering unit)))] + 1)
- Leaderboard - Change the value for Player 22 (Snow) in Leaderboard to Integers_ArenaFighterCount[(Player number of (Owner of (Entering unit)))]
-
Events
-
Arena Unit Count Dies
-
Events
- Unit - A unit Dies
-
Conditions
- Boolean_LevelCompleted Equal to True
- Boolean_Arena Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Dying unit)) Equal to Player 23 (Emerald)
-
Then - Actions
- Set VariableSet Integers_ArenaFighterCount[(Player number of (Owner of (Dying unit)))] = (Integers_ArenaFighterCount[(Player number of (Owner of (Dying unit)))] - 1)
- Leaderboard - Change the value for Player 21 (Coal) in Leaderboard to Integers_ArenaFighterCount[(Player number of (Owner of (Dying unit)))]
- Else - Actions
-
If - Conditions
- -------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Dying unit)) Equal to Player 24 (Peanut)
-
Then - Actions
- Set VariableSet Integers_ArenaFighterCount[(Player number of (Owner of (Dying unit)))] = (Integers_ArenaFighterCount[(Player number of (Owner of (Dying unit)))] - 1)
- Leaderboard - Change the value for Player 22 (Snow) in Leaderboard to Integers_ArenaFighterCount[(Player number of (Owner of (Dying unit)))]
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Last edited: