• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Double Kill sounds n stuff

Status
Not open for further replies.
I'll make a simple trigger system. It's up to you to make a copy for each player and import the sound file. You can modify it how you want, but I'll set it up Halo style. Really there's nothing that special about killing 2 people without being killed yourself. So this will put a time limit up, and once the time limit ends, the double kill award won;t be rewarded. Generally a Double Kill means 2 people were killed around or at the same time, by the same person.

Trigger 1:

E:A unit is killed by Player 1(red)
C:(Triggering Unit) is equal to a hero.
A: Enable trigger (Trigger 2)
A: Create countdown timer (RedDoubleKill) starting with 4 seconds
A: Disable this trigger

Trigger 2:

E: A unit is killed by Player 1 Red
C: (Triggering Unit) is a hero
A: Play sound file (DoubleKillSound) for Player 1(red)

Trigger 3:

E: Timer (reddoublekill) reaches 0 seconds
C: none
A: Turn off Trigger 2
A: Enable Trigger 1
A: Destroy countdown timer (reddoublekill)

Not sure if this'll work if you kill 2 people at the exact same time. But it shouldn't have an memory leaks.
 
Okay for the sound you need go and download it here then just go to the import manager and then import it into your game.

When you've done that make this trigger's
Requirements:
Variable - (XXX) (Integer)
XXX = is your own name

Events - If unit dies
Conditions - Killing unit equals to (Yourunit)
Action - Set variable (XXX) +1

Events - Every 1.00 seconds of game
Conditions - If (XXX) equals to 2
Action - Turn of this trigger
Action - Play (Yourimportedsound)

And so you also can do it with 4,6,8 and 10.
 
I'm not sure you understand the different between a Double Kill and a Killing Spree.

Double Kill: 2 enemies are killed at the same time or within a couple seconds of each other by the same person

Killing Spree: Someone kills many other units without being killed themselves, which is much tougher to do.

What you are looking for appears to be a Killing Spree trigger, not a Double Kill trigger.
 
Okay for the sound you need go and download it here then just go to the import manager and then import it into your game.

When you've done that make this trigger's
Requirements:
Variable - (XXX) (Integer)
XXX = is your own name

Events - If unit dies
Conditions - Killing unit equals to (Yourunit)
Action - Set variable (XXX) +1

Events - Every 1.00 seconds of game
Conditions - If (XXX) equals to 2
Action - Turn of this trigger
Action - Play (Yourimportedsound)

And so you also can do it with 4,6,8 and 10.

What about seting the kill integer for other players? Make more kill integers for them?
 
Status
Not open for further replies.
Back
Top