This is an old revision of the document!
Table of Contents
System Values
'System Values' are special 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>
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 Player Stats Reference
<html>
<TABLE align=left WIDTH=90%><TR><TD WIDTH=33% VALIGN=TOP>
</html>
gPlayerID
<html>
</TD><TD WIDTH=33% VALIGN=TOP>
</html>
gPlayerTeam
gPlayerLevel
gPlayerKudos
gPlayerFamily
gPlayerCash
gPlayerVehicle
<html>
</TD><TD WIDTH=33% VALIGN=TOP>
</html>
gPlayerFuel
gPlayerAge
gPlayerFollowing
gPlayerNumFollowers
gPlayerKills
<html>
</TD></TR></TABLE>
</html>
gPlayerDeaths
gPlayerRobocrowKills
gPlayerRobocrowDeaths
gPlayerItemCount
Player Health & Needs
These values give details of the health status of the player the current event is executing for.
For further details on each value, see the Player Health Reference
<html>
<TABLE align=left WIDTH=90%><TR><TD WIDTH=33% VALIGN=TOP>
</html>
gPlayerHealth
<html>
</TD><TD WIDTH=33% VALIGN=TOP>
</html>
gPlayerHunger
gPlayerThirst
<html>
</TD><TD WIDTH=33% VALIGN=TOP>
</html>
gPlayerMaxHealth
<html>
</TD></TR></TABLE>
</html>
Player Location
gPlayerX
gPlayerY
gNearestBuilding
Tasking interface
gTaskItem1
<html>
</TD><TD WIDTH=33% VALIGN=TOP>
</html>
gTaskItem2
gTaskItem3
Server Status
gServerTime
gNumPlayersOnline
Building access
gBuildingAccessNum
gBuildingScriptParam
Combat Players
gKillerID
gKilledID
gTargetID
Player User-details
gPlayerAuth
<html>
</TD></TR></TABLE>
</html>
gPlayerIsMember
