Staredit Network

Staredit Network -> UMS Assistance -> stupid music triggers
Report, edit, etc...Posted by Stormy6- on 2006-03-16 at 19:40:04
i cant get music to work in game, i need to play 3 different wavs, and third one is perserved.

force: Player 1
(1)condition: elapsed time 3 seconds
action: play [wav1]
wait [#] seconds
set switch1
force: Player 1
(2)condition: switch1 is set
action: play [wav2]
wait [#]
set switch 2
force: Player 1
(3)condition: switch2 is set
action: play [wav3]
wait [#]
preserve

ad it not working, ive tried like 8 different things, but nothing works ranting.gif
Report, edit, etc...Posted by saibaman8 on 2006-03-16 at 19:51:56
Well since the first two sounds only play once, you could just have them both in the same trigger.

Make sure that the digital sound is on in Starcraft (press ctrl+s to toggle it or go in through the options menu).

Something else it could be is there's no player 1. If your forces place players randomly (random start location is checked), you're probably not player 1 when you run the map. Uncheck this or make the trigger for all players when testing it.

If neither of these are the problem then I don't know what's wrong with it. There is nothing wrong with it.
Report, edit, etc...Posted by Urmom(U) on 2006-03-16 at 20:10:04
http://www.staredit.net/index.php?tutorial=125
Here's the tutorial link for looping music. If you have any more questions after that, just ask. smile.gif
Report, edit, etc...Posted by Stormy6- on 2006-03-16 at 21:31:50
this picture is for all forces options: user posted image

this picture is for second and third conditions: URL=http://img382.imageshack.us/my.php?image=conditions23ys.jpg]user posted image[/URL]

first condition: user posted image

first action: user posted image

second action: user posted image

third action: user posted image

sorry im high right now sorry you cant understand if u dont

Report, edit, etc...Posted by Corbo(MM) on 2006-03-16 at 23:02:00
First of all stop getting high its bad for your health you know tongue.gif
Second of all i did not read the topic
Third here is a simpler way to make the music loop and actually make a turn on/off system(what no one bothered to answer or what i didn't bother to read happy.gif)
Here it is:

Condition:
Player X brings at least 1 anyunit to location 'musicon'
Actions:
play Wav (corboandhisguitarpwnsall.wav)
Wait(wav length)
Preserve trigger

now to answer your question you will have to do what i just said and add some conditions like elapsed time or switches example
Wav 1 (switch 1) when it stops set new switch and stop the old one just like it and in the last trigger you want preserved you don't clear the switch

as simple as that, when you get your unit out of the location the music will not play again however it will not immidiately stop it (you know you can't stop music)
using a bring action has always saved me a few switches and a lot of work keep that in mind oh and keep in mind that using a wait time like this will mess up other waits so do this trigger for each player you want to play the music for
Report, edit, etc...Posted by Stormy6- on 2006-03-17 at 08:16:23
ha well i had that anyways but i redid the triggers and it worked closedeyes.gif sometimes i dont understand the editors tongue.gif
Next Page (1)