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 [2015/02/23 16:07] – [System Variables] mit | scripting:system_values_functions_overview [2025/05/28 16:34] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 32: | Line 32: | ||
| * **Player Variables** ( '' | * **Player Variables** ( '' | ||
| - | **Server** system variables are global | + | **Server** system variables are global |
| The ''< | The ''< | ||
| Line 40: | Line 40: | ||
| $gServerKey[Hello] = "Your personalised random number is " | $gServerKey[Hello] = "Your personalised random number is " | ||
| $gPlayerKey[1] = sysRand( 100 ) | $gPlayerKey[1] = sysRand( 100 ) | ||
| - | *say Hello %PLAYER%. $gServerKey[Hello] $gPlayerKey[1]. | + | *say Hi %PLAYER%. $gServerKey[Hello] $gPlayerKey[1]. |
| </ | </ | ||
| - | .. this would print '' | + | .. this would print '' |
| - | Each script event is run in a particular context which determines the variables the script is currently accessing - i.e. When an ' | + | Each script event is run in a particular context which determines the building and player |
| For advanced scripting, you can access building and player system variables by changing the event context using '' | For advanced scripting, you can access building and player system variables by changing the event context using '' | ||
scripting/system_values_functions_overview.1424707668.txt.gz · Last modified: (external edit)
