This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Uhh, first and foremost
Variable - Set killcount[(Triggering player)] = killcount[(+ (1))]
This doesn't make sense. With what you have above you are setting the player's KillCount to be the same as the player above him. What you want is.
Variable - Set killcount[(Triggering player)] = (killcount[(Triggering Player)] + 1)
Use the Arithmetic (Not the Multiple one), get the player's KillCount and add one.
However. As it appears that you have only 1 human player (Who is player one), you don't need to use an array at all.
You will probably need something like this. KillCount is a global variable which you will have to define as an Integer Array.
Victory Events Unit - Any Unit dies Local Variables Conditions (Owner of (Triggering unit)) == /HostilePlayer/ (Controller of player (Triggering player)) == User Actions Set KillCount[(Triggering Player)] = (KillCount[(Triggering Player)] + 1) General - If (Conditions) then do (Actions) else do (Actions) If KillCount[(Triggering Player)] >= 10 Then Game - End game in Victory for player (Triggering player) (Show dialogs, Show score screen) Else
Uhh, first and foremost
This doesn't make sense. With what you have above you are setting the player's KillCount to be the same as the player above him. What you want is.
Use the Arithmetic (Not the Multiple one), get the player's KillCount and add one.
However. As it appears that you have only 1 human player (Who is player one), you don't need to use an array at all.
You will probably need something like this. KillCount is a global variable which you will have to define as an Integer Array.