• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Double Kill?

Status
Not open for further replies.
Level 6
Joined
Jul 25, 2005
Messages
221
Did this in 2 minutes, it works. And supersheep, this is a better approach IMO. XD
If you wanna add a certain type of unit or force, then add it to the trigger conditions

  • CheckKills
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set Killcount = (Killcount + 1)
      • Countdown Timer - Start kill_timer as a One-shot timer that will expire in 3.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Killcount Equal to 2
        • Then - Actions
          • Game - Display to (All players) the text: Double kill!
          • Set Killcount = 0
        • Else - Actions
  • KillTimer
    • Events
      • Time - kill_timer expires
    • Conditions
    • Actions
      • Set Killcount = (Killcount - 1)
Here's if both times the unit killed was owned by a certain player
  • CheckKills
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • last_killed_unit_player Equal to (Owner of (Triggering unit))
        • Then - Actions
          • Set Killcount = (Killcount + 1)
          • Countdown Timer - Start kill_timer as a One-shot timer that will expire in 3.00 seconds
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Killcount Equal to 2
            • Then - Actions
              • Game - Display to (All players) the text: Double kill!
              • Set Killcount = 0
            • Else - Actions
        • Else - Actions
          • Set last_killed_unit_player = (Owner of (Triggering unit))
 
Status
Not open for further replies.
Top