• 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, Triple kill

Status
Not open for further replies.
Level 4
Joined
Jul 18, 2008
Messages
73
Hi, can some1 help me with a trigger? :confused:

1st hero dies, nothing happens,
if 2nd hero dies withing 0-8 sec. first hero died, creates sound effect (doesn't matter which one)
display message on the screen - double kill!
if 3rd hero dies within 0-8 more seconds display message on the screen - triple kill!

:slp: plz help me with that trigger
 
Level 6
Joined
Apr 14, 2008
Messages
172
try and using, if or and triggers, might help like

if a hero dies then do action do nothing
if a hero dies then do action display text to all players for 10 seconds Double Kill!
if a hero not die then do action skip remaining actions.
if a hero dies then do action display text to all players for 10 seconds Tribble Kill!

something like this
 
Level 19
Joined
Sep 4, 2007
Messages
2,826
When looking at your signature I can see you don't have lots of trigger experience. Play with the Trigger Editor and don't give up. Also check out some of the tutorials on this site if there is something you'd like to learn.
 
Level 4
Joined
Jul 24, 2008
Messages
108
Ok i quickly tried to attempt doing this but was stumped when i couldnt use real arrays, here are the triggers i can up with

  • Double Kill
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Killing unit) Equal to No unit
    • Actions
      • Set Killcount[(Player number of (Owner of (Killing unit)))] = (Killcount[(Player number of (Owner of (Killing unit)))] + 1.00)
      • Wait 8.00 seconds
      • Set Killcount[(Player number of (Owner of (Killing unit)))] = (Killcount[(Player number of (Owner of (Killing unit)))] - 1.00)
Since the next trigger cannot use real arrays, you might end up having to use one trigger per person and forget about the arrays. Basically all this does is when a certain unit (no unit right now) kills a unit, it sets the variables to itself + 1. then wiats and goes back to the origenal. So if the trigger procs 2 times before 8 seconds are up it will be 2, then this next trigger will happen as soon as this real var becomes 2

  • Display msg
    • Events
      • Game - killcount1 becomes Equal to 2.00
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Sound - Play No sound
      • Game - Display to (All players) the text: DOUBLE KILL
      • Wait 5.00 seconds
      • Trigger - Turn on (This trigger)
this will not work as is, you need to work on it a bit becuase i ofund out you cannot use arrays as events. Just edit them for triple quadruple, ect.
 
Status
Not open for further replies.
Top