function

Script Reference Scenes & Game

function (script ; loopcount) //Advanced

Used for : Anything.

Parameters :

- script - Name of a script.
- loopcount - number of loops OR * OR loop2

Description :

Runs a script without starting a cutscene mode, the game will continue normally. Can be used to perform various calculations. If no second parameter is provided the script will run only once.

If you enter a * or the word infinitly the function will loop until it is stopped with stopfunction.
If you enter loop2 the function will act like a loop2 event of a roomscript.

[Variabels] can be used as parameter.