CAOS Language Guide
Music and Sound Effect Commands
|
Macro |
Description |
|
These commands alter the in-game ambient music and also play spot effects. Where a command requires a filename it has to be a 4-digit name with the extension omitted. For example, to play a sound effect called "TEST.WAV" from the C2 directory you could use: SNDE TEST |
|
|
THRT |
Sets/returns the THReaT, how dangerous an object is to a creature. This attribute is used only for the in-game music system. 255 = high threat; 0 = no threat. RValue and LValue |
|
RMSC x y [track name] |
Room MuSiC. Specify music track associated with the room at this x y co-ordinate. [] (Empty string) = no change in track [Silence] = play no track. Command only |
|
RCLR |
Room CleaR music. Resets the music track of all rooms to "no change". Command only |
|
MUSC property |
MUSiC manager property. Property: 0 = Volume (0 - 255) 1 = Mood (0 - 255) 2 = Threat (0 - 255) 3 = Automatically update music according to creature mood and threat. (0, 1). RValue and LValue |
|
SNDE filename |
Play sound effect if TARG is visible on screen. Command only |
|
SNDQ filename delay |
Play sound effect after a short delay if TARG is visible on screen. Command only |
|
SNDC filename |
Play controlled sound effect if TARG is visible on screen. A controlled sound will follow TARG around as it moves, for the duration of the effect. Command only |
|
SNDL filename |
Start a controlled sound loop if TARG is visible on screen Command only |
|
PLDS filename |
Preload the named sound into the sound cache if TARG is visible or just off screen. Command only |
|
STPC |
Stop any controlled sounds currently playing with this TARG. Command only |
|
FADE |
Fade out any controlled sound currently playing with this TARG. Command only |