sound
Syntax
sound <index> [of <project>]
name of sound <index> [of <project>]
name of sound id <iconID> [of <project>]
number of sounds [of <project>]
Explanation
These functions allow you to use, list and inspect the sounds available in a project. Every project may contain embedded sound files that can be played back using the play
command.
sound
Returns the unique sound identifier number of the index
th sound in the project.
name of sound
Returns the name of the index
th sound in the project.
name of sound id
Returns the name of the sound in the project that has the unique sound identifier number given.
number of sounds
Returns how many sounds exist in a given project (or this project
if no project is explicitly stated).
This is useful for listing sounds and letting a user choose from them, together with sound <index>
.