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

Killstreak Sounds

Status
Not open for further replies.

ODST575

O

ODST575

Hi i was wondering if any body new how i could make somthing like this
I kill 2 people without dieing then a sound would play saying 'Double kill'
same for more like triple kill,multi kill etc
so can any one help??
 
It's as simple as this:

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set Hashtable = (Last created hashtable)
      • Set sounds[0] = *sound_for_first_kill*
      • Set sounds[1] = *sound_for_second_kill*
      • Set sounds[2] = *sound_for_third_kill*
      • ...
  • Untitled Trigger 021
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Hashtable - Clear all child hashtables of child (Key (Triggering unit)) in Hashtable
      • Set integer = (Load (Key kills) of (Key (Killing unit)) from Hashtable)
      • Sound - Play sounds[integer]
      • Hashtable - Save (integer + 1) as (Key kills) of (Key (Killing unit)) in Hashtable
Modify as needed.
 
Status
Not open for further replies.
Back
Top