Music and Sounds

A silent game is boring, thats why you should add some music and sounds .
Sounds are quite easy to add. The scriptcommand playsound (soundname) plays a single soundfile. For example when you open a door just add a "playsound" to the "open" event.

Music can be started with playmusic (name) and stopped with stopmusic (). This can be handled with the roomscript. (Click on the room in the gamepool while the scriptwindow is open) This is an example :

on (enter) playmusic (musicname)

You can use this with the same musicname in many rooms, the game will notice that a certain song is already playing and wont restart it.

You can use speechfiles by adding a third parameter to the speech scriptcommand. This parameter should be the name of the soundfile that contains the correct voiceover.