User Tools

Site Tools


scripting:system_values

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

<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
gPlayerTeam
gPlayerLevel
gPlayerKudos
gPlayerFamily
gPlayerCash
gPlayerVehicle
gPlayerFuel
<html> </TD><TD WIDTH=33% VALIGN=TOP> </html> gPlayerAge
gPlayerFollowing
gPlayerNumFollowers
gPlayerKills
gPlayerDeaths
gPlayerRobocrowKills
gPlayerRobocrowDeaths
<html> </TD><TD WIDTH=33% VALIGN=TOP> </html> gPlayerItemCount
gPlayerHealth
gPlayerHunger
gPlayerThirst
gPlayerMaxHealth
<html> </TD></TR></TABLE> </html>

Other System Values

<html> <TABLE align=left WIDTH=90%><TR><TD WIDTH=33% VALIGN=TOP> </html> Player Location
gPlayerX
gPlayerY
gNearestBuilding

Tasking interface
gTaskItem1
gTaskItem2
gTaskItem3
<html> </TD><TD WIDTH=33% VALIGN=TOP> </html> Server Status
gServerTime
gNumPlayersOnline

Building access
gBuildingAccessNum
gBuildingScriptParam
<html> </TD><TD WIDTH=33% VALIGN=TOP> </html> Combat Players
gKillerID
gKilledID
gTargetID

Player User-details
gPlayerAuth
gPlayerIsMember
<html> </TD></TR></TABLE> </html>

scripting/system_values.txt · Last modified: by 127.0.0.1