scripting:system_values_functions_overview
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scripting:system_values_functions_overview [2020/01/28 18:02] – [System Values] 51.148.136.100 | scripting:system_values_functions_overview [2020/01/28 18:02] (current) – [System Variables] 51.148.136.100 | ||
---|---|---|---|
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.1580256130.txt.gz · Last modified: 2020/01/28 18:02 by 51.148.136.100