Starttrack: Difference between revisions
Hendricks266 (talk | contribs) No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
To reset the music track to the current level, use this: | To reset the music track to the current level, use this: | ||
setuserdef[THISACTOR].volume_number VOLUME | setuserdef[THISACTOR].volume_number [[VOLUME]] | ||
starttrackvar LEVEL | starttrackvar [[LEVEL]] | ||
{{varsuffix}} | {{varsuffix}} |
Revision as of 00:21, 23 April 2012
starttrack <track#>
starttrackvar <track#>
This command is used to change the current background music that is playing.
<track#> is literally the track number of the current episode (which can be detected with the gamevar VOLUME) as defined by the music command.
To be able to use another episode's music, change volume_number as in the example below. Remember that you must change it back to its last value:
getuserdef[THISACTOR].volume_number TEMP setuserdef[THISACTOR].volume_number 1 starttrack 0 setuserdef[THISACTOR].volume_number TEMP
This will start the music track from episode 2, level 1.
To reset the music track to the current level, use this:
setuserdef[THISACTOR].volume_number VOLUME starttrackvar LEVEL
Commands with an additional "var" suffix take gamevars rather than constants or defined labels for their inputs. As an alternate short form, "varvar" can be dropped from these commands; for example ife serves an an alias for ifvarvare.