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

Problem with sound

Status
Not open for further replies.
Level 5
Joined
Mar 19, 2010
Messages
106
Ive got a little problem so.. I maked a complete Trade menu to trade for exemple: Lumber for Gold or Gold for lumber.. ↓↓↓
sanstitre7zfe.jpg

So I decided to add a sound to every transaction... and it only work if exemple someone trade 100 Gold for 50 Lumber and he doesn't have enough gold it makes an error sound but when he have enough gold it doesn't work:

  • Set Player = (Triggering player)
  • Custom script: if GetLocalPlayer() == udg_Player then
  • Sound - Play BundleOfLumber <gen>
  • Custom script: endif
 
Level 5
Joined
Mar 19, 2010
Messages
106
What is the event of that trigger?

You should also try to put the sound function outside of the if/then/else and then test it. If it doesn't play, then it most likely means you have sounds muted or something along those lines. If it does play, then you will know that it is something wrong with the trigger.

The event is a dialog but I don't know why it doesn't work I put the same thing on "else" section but with another sound and its working :vw_wtf::vw_wtf::vw_wtf:
 
Last edited:
Status
Not open for further replies.
Top