User Tools

Site Tools


scripting:system_values

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripting:system_values [2012/03/23 01:08] mitscripting:system_values [2025/05/28 16:34] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ===== System Values ===== ===== System Values =====
  
-'System Values' are special global variables that provide information about the state of the current player and the world. +'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+e.g.  ''$gPlayerAge'' tells you the age of the current player. Here's a quick example of how you might use that
  
 <codedoc> <codedoc>
Line 12: Line 12:
  
 ===== Player Stats ===== ===== 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]]\\
 <html> <html>
 <TABLE align=left WIDTH=90%><TR><TD WIDTH=33% VALIGN=TOP> <TABLE align=left WIDTH=90%><TR><TD WIDTH=33% VALIGN=TOP>
 </html> </html>
-gPlayerID \\ +''gPlayerID \\ 
 gPlayerTeam \\  gPlayerTeam \\ 
 gPlayerLevel \\  gPlayerLevel \\ 
 gPlayerKudos \\  gPlayerKudos \\ 
-<html> 
-</TD><TD WIDTH=33% VALIGN=TOP> 
-</html> 
 gPlayerFamily \\  gPlayerFamily \\ 
 gPlayerCash \\  gPlayerCash \\ 
 gPlayerVehicle \\  gPlayerVehicle \\ 
 gPlayerFuel \\  gPlayerFuel \\ 
-gPlayerAge \\  +''
-gPlayerFollowing \\ +
 <html> <html>
 </TD><TD WIDTH=33% VALIGN=TOP> </TD><TD WIDTH=33% VALIGN=TOP>
 </html> </html>
 +''gPlayerAge \\ 
 +gPlayerFollowing \\ 
 gPlayerNumFollowers \\  gPlayerNumFollowers \\ 
 gPlayerKills \\  gPlayerKills \\ 
Line 36: Line 36:
 gPlayerRobocrowKills \\  gPlayerRobocrowKills \\ 
 gPlayerRobocrowDeaths \\  gPlayerRobocrowDeaths \\ 
-gPlayerItemCount \\+'' 
 +<html> 
 +</TD><TD WIDTH=33% VALIGN=TOP> 
 +</html> 
 +''gPlayerItemCount \\ 
 +gPlayerHealth \\  
 +gPlayerHunger \\  
 +gPlayerThirst \\  
 +gPlayerMaxHealth \\  
 +''
 <html> <html>
 </TD></TR></TABLE> </TD></TR></TABLE>
 </html> </html>
 \\ \\
-[[Scripting:System Values:Player Stats|Full Reference]]\\ 
  
 +===== Other System Values =====
 <html> <html>
 <TABLE align=left WIDTH=90%><TR><TD WIDTH=33% VALIGN=TOP> <TABLE align=left WIDTH=90%><TR><TD WIDTH=33% VALIGN=TOP>
 </html> </html>
- +**Player Location**\\
-=== Player Health & Needs === +
-''gPlayerHealth \\  +
-gPlayerHunger \\  +
-gPlayerThirst \\  +
-gPlayerMaxHealth \\  +
-'' +
- +
-=== Player Location ===+
 ''gPlayerX \\ ''gPlayerX \\
 gPlayerY \\ gPlayerY \\
Line 60: Line 61:
 '' ''
  
-=== Tasking interface ===+**Tasking interface**\\
 ''gTaskItem1 \\ ''gTaskItem1 \\
 gTaskItem2 \\ gTaskItem2 \\
Line 68: Line 69:
 </TD><TD WIDTH=33% VALIGN=TOP> </TD><TD WIDTH=33% VALIGN=TOP>
 </html> </html>
- +**Server Status**\\
-=== Server Status ===+
 ''   gServerTime \\      ''   gServerTime \\     
-   gNumPlayersOnline+   gNumPlayersOnline\\
 '' ''
  
-=== Building access ===+**Building access**\\
 '' gBuildingAccessNum \\ '' gBuildingAccessNum \\
 gBuildingScriptParam \\ gBuildingScriptParam \\
 '' ''
- +<html> 
-==Combat Players ===+</TD><TD WIDTH=33% VALIGN=TOP> 
 +</html> 
 +**Combat Players**\\
 ''gKillerID \\ ''gKillerID \\
 gKilledID \\ gKilledID \\
Line 85: Line 87:
 '' ''
  
-=== Player User-details ===+**Player User-details**\\
 ''gPlayerAuth \\ ''gPlayerAuth \\
 gPlayerIsMember \\ gPlayerIsMember \\
scripting/system_values.1332464890.txt.gz · Last modified: (external edit)