HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Playing sounds w/ triggers, why is it so hard?

06-17-2006, 04:36 AM#1
darkwulfv
In GUI, I can't seem to play a sound, becuase it only allows for Last Played Sound, or a variable, and that also only allows Last Played Sound. What I wanted was for my spell to play like a lightning type sound when the spell activates. BTW, you can show a JASS code, it's just easier for me if it's in GUI so I can flip it into JASS (its so I can understand what GUI is in JASS)

Thanks ahead of time, I feel like this is noobish question tho...
06-17-2006, 06:10 AM#2
Naakaloh
There are several functions available that allow you to create a sound given a file or label name.
06-17-2006, 06:17 AM#3
darkwulfv
really? Using triggers??? huh. Guess I never really looked into it all the much, I never really needed to. By functions do you mean JASS? So I could set a local sound s = sound/whatever/blah.wav
then do
call PlaySound (s, any other info needed)
Something like that, right?
06-17-2006, 07:42 AM#4
Jacek
Custom script("call PlaySound("sounds\\dragon\\pissed2.wav")")
06-17-2006, 08:42 AM#5
Anitarf
For GUI use, you must define your sound variables in the sound editor.
06-17-2006, 09:59 AM#6
Blade.dk
Jacek, you should use double backslashes in your code :P.
06-17-2006, 11:03 AM#7
Jacek
yep, fixed.
06-17-2006, 11:10 AM#8
BertTheJasser
Just say it again: DL JassCraft and would you have been able to answer your last 2 questions yourself.
But no matter.
06-17-2006, 05:48 PM#9
Soulprovider
Also if your going to use GUI and you make your sound variables in the sounds editor Make sure that you ensure that all of your sound variables are marked as internal or you will have to set them to a specific area or unit.
06-17-2006, 10:25 PM#10
darkwulfv
I DL JassCraft and Jass Shop Pro, but they really confuse me, any help on how to use them? I don't understand how you build triggers with them.
06-18-2006, 03:49 PM#11
BertTheJasser
You need a lil preknowledge of jass to use the editors properly.