Special Variables

There are some predefined variable names with special contents :

[mousex] and [mousey] The current position of the mouse in pixel. These are the only two variables that can be changed with the setnum scriptcommand!

[hour], [minute] and [second] contain the current time of your system.

[year], [month] and [day] contain the current date.

[currentroom] contains the name of the room that is currently loaded.

[roomx] and [roomy] contain the current camera position of the room.

[roompx] and [roompy] contain the current pixel camera position of the room.

[charx] and [chary] are pixelpositions of the currently focused character. These can also be used for other characters by adding a name : [charx:name]

[charzoom] contains the current size of a character as a real number. 1 means 100%. Can be useful if you need to calculate the exact position of a charactershead to display a text above it. Can also be used with other characters : [charzoom:name]

[obj:name] contains the current state of an object.

[objx:name] and [objy:name] contain the pixelposition of the specified object.

[actiontext] contains a copy of the actiontextline if you want to display it at another position.

[empty] Used for testing if a string is empty.

[leftbracket] Writes a left bracket " ( " into your text because you cannot use it directly.

[rightbracket] Writes a right bracket " ) " into your text because you cannot use it directly.

[gamepadX:1] returns the position of the X-Axis of gamepad 1. Possible axes are X/Y U/R and Z. You can use 2 gamepads max.