User Tools

Site Tools


scripting:system_values_functions_overview

This is an old revision of the document!


System Values

'System Values' are special read-only, global variables that provide information about the state of the current player and the world. e.g. $gPlayerAge tells you the age of the current player. Here's a quick example of how you might use that

<codedoc>

$myvar = $gPlayerAge + 1
*say Next birthday, %PLAYER% will be $myvar years old

</codedoc>

For a full list of the system values available, see the System Values Reference.

System Functions

In addition to the system values, there is a number of built-in system functions that return a value to your script. e.g.

TBC

scripting/system_values_functions_overview.1332720366.txt.gz · Last modified: (external edit)