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

System Functions are used to query the state of a particular aspect of your world where parameters are required to obtain the result. System Functions usually start with sys.

For example, to find out how much of a particular item the current player has :

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