- Joined
- Dec 1, 2011
- Messages
- 41
this code works for another unit that is a rat but there is only 2 rats to keep count of. the shades have 3 but the kill counter only shows when i kill 1 and not for the 2nd and 3rd on the multiboard. its the same exact code as the one for the rats but for some reason the one for the shades wont work.
SHADE DIES
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to shade
Actions
Set shadedeaths[(Player 1 (Red) Units Killed)] = (shadedeaths[(Player 1 (Red) Units Killed)] + 1)
Quest - Flash the quest dialog button
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (String(shadedeaths[(Player 1 (Red) Units Killed)]))
SHADE DIES
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to shade
Actions
Set shadedeaths[(Player 1 (Red) Units Killed)] = (shadedeaths[(Player 1 (Red) Units Killed)] + 1)
Quest - Flash the quest dialog button
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (String(shadedeaths[(Player 1 (Red) Units Killed)]))