I think I saw a topic in this site about this, but I've been looking for days and couldn't find it. How do you stop a WAV. in the middle of it playing? I've been told you have to cut it up and play them all together then when you want to stop it it stops at one of the pieces, but I really dont wanna do that

is there any other way?
QUOTE(Mp)XIII @ Aug 23 2004, 12:16 AM)
I think I saw a topic in this site about this, but I've been looking for days and couldn't find it. How do you stop a WAV. in the middle of it playing? I've been told you have to cut it up and play them all together then when you want to stop it it stops at one of the pieces, but I really dont wanna do that

is there any other way?
Not that I know of... Too bad Blizzard didn't code in a Stop WAV Action

Conditions
Current player brings exactly 1 civ to location
Actions
SET SWITCH 1 SET
playwav blabla.wav
Preservetrigger
comment
Another trigger(which connects because of switch)
Conditions
switch 1 set
Actions
SET SWITCH 1 CLEAR
preservetrigger
comment
clearing switches, kills the trigger. Action, set switch 1 opens the triggers which connets conditions: switch 1 set
QUOTE(nyczdigga @ Aug 23 2004, 01:00 AM)
Conditions
Current player brings exactly 1 civ to location
Actions
SET SWITCH 1 SET
playwav blabla.wav
Preservetrigger
comment
Another trigger(which connects because of switch)
Conditions
switch 1 set
Actions
SET SWITCH 1 CLEAR
preservetrigger
comment
clearing switches, kills the trigger. Action, set switch 1 opens the triggers which connets conditions: switch 1 set
Yeah but that doesn't stop the wav file from playing.
the wav is depended on the switch
Stop spamming. That trigger does not do what he wants so stop trying to explain it. Have you even tried to stop a sound halfway through? Just so you know, what you posted doesn't work.
He wants to stop a sound and all you do is tell him how to prevent a sound from playing in the first place.
It looks like your not smart.
Ok, fine. Coming from you, that's a compliment.
qPirateKing is right you can't stop it halfway through. You should learn to call him master, like I.
Also I noticed your skill is 'Advanced' when you still ask for help on a simple fact like this. I advise you at least change it to 'Average'.
U 2 stop fighting, Xeno stop taking side because I brought cake today!
These small words can lead to a flame war so let's stop it now. Pirate you could have said stop spamming in a nicer way than that. How about just taking that "stop spamming" section out. Nycz, you really didn't need to post that other part about his intelligence.
Anyway, I believe the only way TO stop a wav is to play a soundless sound (ironic eh), repeatedly using hyper triggers. Why would you need this though? Does you map require this?
Again, we don't need to take sides with people, we are all mappers and we come to give advice and get some, preferably in a polite way. If they want to keep their settings to advanced, let them, hell I keep mine at none.

Na that would just cause it to lag a lot Relvade (depending on how much your playing it). Besides wav sounds overlap so unless your 'soundless sound' is louder than the currently playing one you will hear the first one uninterrupted.
nyczdigga, stopping the conditions of a trigger from being true doesn't stop the wav from playing, or stop the trigger for that matter (in the way of waits other blocking actions). Maybe you should think of the Play Wav action as "Start Playing Wav" instead.
Also do not make post that entirely consist of comments like " It looks like your not smart." I should warn you for saying things like that but I'm feeling nice today.
I wish Blizzard will code up the Map Editors with a button that says "Stop WAV" or someone make an Map editor with that kind of trigger. I'm not sure you could do that anyways.
No you can't make your own triggers, even thu hex editing or if you create your own map editor. The triggers are coded into starcraft itself.
Well just to reinforce what everyone has said I have tried multiple times to stop a wav halfway thru it doesn't work.
so should i take out the music in my rpg or just let it play? (its not a 30 second loop

its about 4 mins long and constists of 3 songs)
QUOTE(Mp)XIII @ Aug 23 2004, 01:58 PM)
so should i take out the music in my rpg or just let it play? (its not a 30 second loop

its about 4 mins long and constists of 3 songs)
If you have a long wav you can do what Pirate did and just loop it the entire map.
QUOTE(KiLLeR2001 @ Aug 23 2004, 02:17 PM)
QUOTE(Mp)XIII @ Aug 23 2004, 01:58 PM)
so should i take out the music in my rpg or just let it play? (its not a 30 second loop

its about 4 mins long and constists of 3 songs)
If you have a long wav you can do what Pirate did and just loop it the entire map.
yeah i think im just gonna do that thanks
My bad guys, i did some errors. I think the trigger is
Conditions
Current player brings exactly 1 civ to on
Actions
SET SWITCH 1 SET
playwav blabla.wav
Preservetrigger
comment
Conditions
Current player brings exactly 1 civ to off
Actions
SET SWITCH 1 clear
Preservetrigger
comment
im sure thats the right trigger to end the music.
You just dont get it... Once it starts playing, it doesn't stop untill the wav is finished! The only way to stop it half way through is to cut it up into small peices and play them consecutively...
Thats even worse, you even check how you do your triggers? That would have it overlapping and within a few seconds masses of lag would appear. Starcraft plays can play the same song over itself, useful function.
Read the Map Making Tricks & Help for how to actually make a correct looping system, and simply add the part to get it to play once then stop if you unit isn't on the location or continue if it is, without having any switches, use the Bring Condition! Shock horror!
Looping wavs do not work MOST of the time (notice I never said it was impossible). People eventual get fed up with the wav since it's short. Blizz music can be looped because it's longer so you don't hear repeated sections as often. My advice: don't loop music everywhere in the game, it gets annoying.