I'm wondering how to change the music, but not all the time, just randomly every so often, like sometimes it changes, but sometimes it doesn't. Does that make sense? Probably not... as an example, look to the elevators in ROTT (the old Dos version as I've never played the remade modern version). I've created my elevator script that always changes the music, but how do I make it random so it sometimes changes the music (with a longer delay) and sometimes doesn't change the music (with a shorter delay)? Preferably not changing the music happening more often than changing the music.
Here's my always-changing-music-ROTT-elevator script:
Code: Select all
script 5 (void)
{
Thing_Stop(0);
SetPlayerProperty(0, 1, PROP_FROZEN);
SetLineSpecial(1, 0);
LocalSetMusic("GOINGUP");
delay(575);
Teleport_NoFog(35,0);
Radius_Quake(1,10,0,1,0);
SetPlayerProperty(0, 0, PROP_FROZEN);
SetLineSpecial(1, Door_Animated, 0, 1, 4);
LocalSetMusic( "OWW");
}
