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

Sound Help

Status
Not open for further replies.
Level 4
Joined
May 15, 2014
Messages
67
Hey, i wanna make a sound to play when someone selects a spell. I have special sound saying "Select target" and want it to play when player selects an ability (not when he casts the ability). I've been using trigger, but its only possible to play it when someone casts an ability, not when selects it. Anyone knows how?
 
Level 12
Joined
Nov 13, 2010
Messages
254
well you can do this
Untitled Trigger 001
Events
Player - Player 1 (Red) Selects a unit
Conditions
Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has buff test ) Equal to (==) True
Then - Actions
Sound - Play song <gen>
Else - Actions

or you can try set variable for the sounds ( use Sound (sound) array 1 )
and make trigger there use the variables
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
I guess the following wont help you:

You could use a dummy no target abilty which makes a sound when casted. Then it is removed and the targeted ability is added. Then after a short wait a trigger forces the player to press the hotkey for the targeted ability so you have the aiming cursor. When the player casts the ability everything is well and you can remove it and add the dummy ability again. But if he does not cast it but cancel it youre screwed. So far no way is known to detect everything that can cancel the aiming cursor. If the player presses Esc it can be detected, but if he presses just right click then things get messy.
 
Status
Not open for further replies.
Top