DonMushroom
Member
- Reaction score
- 4
I have a leader board that records kills and adds 1 every time a unit dies.
Unit Kills
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Killing unit)) != (Owner of (Triggering unit))
Actions
Variable - Modify Kills[(Owner of (Killing unit))]: + 1
Leaderboard - Set Kill Board item text at column 2 and row (Owner of (Killing unit)) to (Text(Kills[(Owner of (Killing unit))]))
It does what its means to apart from when a zergling turns to a baneling. I get a trigger error saying "trying to access an element passed the end of an array"
Can anyone think of how i can get around this?
Unit Kills
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Killing unit)) != (Owner of (Triggering unit))
Actions
Variable - Modify Kills[(Owner of (Killing unit))]: + 1
Leaderboard - Set Kill Board item text at column 2 and row (Owner of (Killing unit)) to (Text(Kills[(Owner of (Killing unit))]))
It does what its means to apart from when a zergling turns to a baneling. I get a trigger error saying "trying to access an element passed the end of an array"
Can anyone think of how i can get around this?