Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How do I make looping backround music?
How do I make looping backround music?
Mar 22 2009, 5:09 pm
By: PIESOFTHENORTH  

Mar 22 2009, 5:09 pm PIESOFTHENORTH Post #1



I know you can play an imported WAV file with an action, but is there a way to have it loop? and stop looping when player 1 brings something to a certain location?



None.

Mar 22 2009, 5:18 pm Ultraviolet Post #2

We do a little trolling

Player 1 bring at most 0 unit to location

play wav
wait time wav lasts
preserve trigger




My Projects:

Impossible Ultraviolet | Impossible UV 2 | Impossible UV 3
Mercenaries 2020 | Mercenaries III
Squad Defense

Legacy Projects (No guarantee of functionality in modern SC):

Pixel Adventure 2 | Space Snipers | Control the Ball

______________________________________________

Join me in Torn City

Mar 22 2009, 5:18 pm Devourer Post #3

Hello

Condition: Player X brings exactly 0 MEN to locationX
Action: Preserve Trigger
Action: Play Wav "whatever"
Action: Wait for (play-duration)

this should work for you, For your information: you cannot stop a WAV while it's playing, only stop playing it when the sound was played.



Please report errors in the Staredit.Network forum.

Mar 22 2009, 5:24 pm PIESOFTHENORTH Post #4



like I have this trigger that when the elapsed game time is 13 seconds, it plays a wav, but how do I get it to loop, but get it to stop looping when that bring condition is met?



None.

Mar 22 2009, 5:56 pm Devourer Post #5

Hello

Quote from PIESOFTHENORTH
like I have this trigger that when the elapsed game time is 13 seconds, it plays a wav, but how do I get it to loop, but get it to stop looping when that bring condition is met?
as already said:
you cannot set a wav to loop, you only can play the wav and add a wait with the long of the wav, then a preserve trigger so it loops when the conditions are filled.
for example, the wav has a lenght of 1 scond.

Player:
-> the players who should hear the sound (the don't use current player in the condition)
Condition:
-> Elapsed time is at least 13 secounds
-> any condition you would like to have
Action:
-> Play WAV
-> Wait 1000 millisconds
-> Preserve Trigger


That's all.



Please report errors in the Staredit.Network forum.

Mar 23 2009, 4:16 am rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

Take a look at rush. Open it up in scmdraft and copy/paste the trigedit code into notepad++. Search for .wav and you'll see the way he did his looping triggers.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Mar 23 2009, 6:20 am Pinky Post #7



I think you should stay away from wait triggers though... use Death Counters instead.

Waits cause extreme problems and can really slow down your map. I would go as far to say as NEVER use waits.



None.

Mar 25 2009, 12:53 am samsizzle Post #8



unless of course your not using hyper triggers.



None.

Mar 25 2009, 12:58 am FooFighters Post #9



True, waits are not good with hypers.
If you want to take a look at my map, which has a looping music using deaths triggers, u can see how its done...
And also, 12 deaths [with hyper triggers] = 1 Second

http://www.esnips.com/web/TheCityofSecrets



None.

Mar 25 2009, 1:23 am samsizzle Post #10



I never use waits for wav's deaths are the way to go. A bit different, but whatever. Its amazing to think of what mapmaking would be like without the discovery of hyper triggers, and death counts and all that.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:40 am]
Oh_Man -- true
[03:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
[01:40 am]
Oh_Man -- tthen u come to SCBW and it's like - upload WAV, play WAV.... sigh why cant it be that easy
[01:40 am]
Oh_Man -- and no consistent easy to use way to then play the audio either
[01:39 am]
Oh_Man -- where they use third party audioprogram called WWISE which basically makes adding audio extremely difficult
[01:39 am]
Oh_Man -- i appreciate SCBW's ability to just let us upload and play WAVs so much compared to nightmare that is total war warhammer 3
[2026-7-18. : 2:27 am]
Symmetry -- https://staredit.net/topic/18903/ THE REVIEWS ARE HERE! "ok these are pretty good memes" - ssj9Kevin
[2026-7-17. : 2:58 pm]
Ultraviolet -- Symmetry
Symmetry shouted: Man I wish we had this tech back in the day when people played ums lmao
fr fr
[2026-7-17. : 2:39 am]
Symmetry -- Man I wish we had this tech back in the day when people played ums lmao
[2026-7-16. : 6:28 am]
NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
Please log in to shout.


Members Online: MarineElite