• 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.

How do you make a kill streak trigger!

Status
Not open for further replies.
Level 4
Joined
Aug 3, 2008
Messages
58
I need help making a kill streak trigger. Like if a unit kills another units 2 times without "dying" then it would say owner of the unit[killer] got double kill! and so on. I needs a full example trigger :) thanks I am going to modify it so it works with my map.
 
Level 6
Joined
Nov 7, 2007
Messages
39
  • Kill Streak
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set PlayerKillStreakVar[(Player number of (Owner of (Triggering unit)))] = 0
      • Set PlayerKillStreakVar[(Player number of (Owner of (Killing unit)))] = (PlayerKillStreakVar[(Player number of (Owner of (Killing unit)))] + 1)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • PlayerKillStreakVar[(Player number of (Owner of (Killing unit)))] Equal to (==) 2
          • Then - Actions
            • Custom script: Double Kill!
          • Else - Actions
      • Custom script: Etc.
EDIT: whoops forgot to add the part about not dying... hold up
EDIT: done, this trigger works only if each player has only one unit that can die. PlayerKillSteakVar is a Integer Array with 12 slots
 
Status
Not open for further replies.
Top