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.
[11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
Please log in to shout.


Members Online: RIVE, Zycorax