User Tools

Site Tools


system_values

This is an old revision of the document!


Scripting > 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. You would get this value as shown

$myvar = $gPlayerAge

Here is the full current list of System Values:

Server Status

gServerTime
gNumPlayersOnline

Player Health & Needs

gPlayerHealth
gPlayerHunger
gPlayerThirst
gPlayerMaxHealth

Player Stats

gPlayerID
gPlayerTeam
gPlayerLevel
gPlayerKudos
gPlayerFamily
gPlayerCash
gPlayerVehicle
gPlayerFuel
gPlayerAge
gPlayerFollowing
gPlayerNumFollowers
gPlayerKills
gPlayerDeaths
gPlayerRobocrowKills
gPlayerRobocrowDeaths

Player Location

gPlayerX
gPlayerY
gNearestBuilding

Player Inventory

gPlayerItemCount

Building access

gBuildingAccessNum
gBuildingScriptParam

Tasking interface

gTaskItem1
gTaskItem2
gTaskItem3

Combat Players

gKillerID
gKilledID
gTargetID

Player User-details

gPlayerAuth
gPlayerIsMember

system_values.1332458468.txt.gz · Last modified: (external edit)