User Tools

Site Tools


system_values

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:

<CENTER> <TABLE WIDTH=80%><TR><TD WIDTH=33% VALIGN=TOP>

Player Stats

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

</TD><TD WIDTH=33% VALIGN=TOP>

Player Health & Needs

gPlayerHealth
gPlayerHunger
gPlayerThirst
gPlayerMaxHealth

Player Location

gPlayerX
gPlayerY
gNearestBuilding

Tasking interface

gTaskItem1
gTaskItem2
gTaskItem3
</TD><TD WIDTH=33% VALIGN=TOP>

Server Status

gServerTime
gNumPlayersOnline

Building access

gBuildingAccessNum
gBuildingScriptParam

Combat Players

gKillerID
gKilledID
gTargetID

Player User-details

gPlayerAuth
gPlayerIsMember
</TD></TR></TABLE></CENTER>

system_values.txt · Last modified: 2020/01/28 17:49 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki