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

Killstreak Sounds

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
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.
Top