[Trigger] Needing help with a simple trigger

Status
Not open for further replies.
this is just an e.g. for one player. if you want it for multiple players, make the variable into an array and asign an array integer for each player as so.
  • Count Kills
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Set killcounter = (killcounter + 1)
that will count how many kills you receive

  • Win with kills
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Owner of (Killing unit)) Equal to Player 1 (Red)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • killcounter Equal to "10"
        • Then - Actions
          • Game - Victory (Owner of (Killing unit)) (Show dialogs, Show scores)
        • Else - Actions
and that will check if the player unit has an amount of kills and win for player. you can change the number of kills you want. the number in quotes
 
Status
Not open for further replies.
Back
Top