set kills?
You could do it via a dialog but you must click a button when it shows.
|
|
Possible action for your dialog trigger:
- Set MAX_KILLS = 20
KillCount Trigger:
- Events
- Unit - A unit Dies
- Conditions
- Actions
- Set Int = PlayerNumberOf(OwnerOf(KillingUnit))
- Set KillCounter[Int] = KillCounter[Int] + 1
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- KillCounter[int] >= MAX_KILLS
- Then - Actions
- Game - Player[Int] wins
- Else - Actions
KillsCounter[(Int + 1)] should be like what IcemanBo suggested:
KillsCounter[Int] + 1
So the arithmetic should be for the value of KillsCounter and not the array.