===== 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
$myvar = $gPlayerAge + 1
*say Next birthday, %PLAYER% will be $myvar years old
Here is the full current list of System Values:
===== Player Stats =====
These values give details about the player the current event is executing for.\\
For further details on each value, see the [[Scripting:System Values:Player Stats|Player Stats Reference]]\\
''gPlayerID \\
gPlayerTeam \\
gPlayerLevel \\
gPlayerKudos \\
gPlayerFamily \\
gPlayerCash \\
gPlayerVehicle \\
gPlayerFuel \\
''
|
''gPlayerAge \\
gPlayerFollowing \\
gPlayerNumFollowers \\
gPlayerKills \\
gPlayerDeaths \\
gPlayerRobocrowKills \\
gPlayerRobocrowDeaths \\
''
|
''gPlayerItemCount \\
gPlayerHealth \\
gPlayerHunger \\
gPlayerThirst \\
gPlayerMaxHealth \\
''
|
\\
===== Other System Values =====
**Player Location**\\
''gPlayerX \\
gPlayerY \\
gNearestBuilding \\
''
**Tasking interface**\\
''gTaskItem1 \\
gTaskItem2 \\
gTaskItem3 \\
''
|
**Server Status**\\
'' gServerTime \\
gNumPlayersOnline\\
''
**Building access**\\
'' gBuildingAccessNum \\
gBuildingScriptParam \\
''
|
**Combat Players**\\
''gKillerID \\
gKilledID \\
gTargetID \\
''
**Player User-details**\\
''gPlayerAuth \\
gPlayerIsMember \\
''
|