scripting:system_values_functions_overview
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
scripting:system_values_functions_overview [2020/01/28 17:50] – external edit 127.0.0.1 | scripting:system_values_functions_overview [2020/01/28 18:02] (current) – [System Variables] 51.148.136.100 | ||
---|---|---|---|
Line 4: | Line 4: | ||
e.g. '' | e.g. '' | ||
- | <codedoc> | + | <code> |
$myvar = $gPlayerAge + 1 | $myvar = $gPlayerAge + 1 | ||
*say Next birthday, %PLAYER% will be $myvar years old | *say Next birthday, %PLAYER% will be $myvar years old | ||
- | </codedoc> | + | </code> |
For a full list of the system values available, see the [[Scripting: | For a full list of the system values available, see the [[Scripting: | ||
Line 18: | Line 18: | ||
For example, to find out how much of a particular item the current player has : | For example, to find out how much of a particular item the current player has : | ||
- | <codedoc> | + | <code> |
$numInInv = sysPlayerInventory( " | $numInInv = sysPlayerInventory( " | ||
*say %PLAYER% is currently carrying $numInInv Wood | *say %PLAYER% is currently carrying $numInInv Wood | ||
- | </codedoc> | + | </code> |
The reference section contains a [[Scripting: | The reference section contains a [[Scripting: | ||
Line 37: | Line 37: | ||
For example: | For example: | ||
- | <codedoc> | + | <code> |
$gServerKey[Hello] = "Your personalised random number is " | $gServerKey[Hello] = "Your personalised random number is " | ||
$gPlayerKey[1] = sysRand( 100 ) | $gPlayerKey[1] = sysRand( 100 ) | ||
*say Hi %PLAYER%. $gServerKey[Hello] $gPlayerKey[1]. | *say Hi %PLAYER%. $gServerKey[Hello] $gPlayerKey[1]. | ||
- | </codedoc> | + | </code> |
.. this would print '' | .. this would print '' | ||
scripting/system_values_functions_overview.1580255406.txt.gz · Last modified: 2020/01/28 17:50 by 127.0.0.1