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:05] 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 11: Line 11:
 Here is the full current list of System Values: 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 [[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>
-=== Player Stats === 
-[[Scripting:System Values:Player Stats|Details]]\\ 
 ''gPlayerID \\  ''gPlayerID \\ 
 gPlayerTeam \\  gPlayerTeam \\ 
Line 24: Line 25:
 gPlayerVehicle \\  gPlayerVehicle \\ 
 gPlayerFuel \\  gPlayerFuel \\ 
-gPlayerAge \\ +'' 
 +<html> 
 +</TD><TD WIDTH=33% VALIGN=TOP> 
 +</html> 
 +''gPlayerAge \\ 
 gPlayerFollowing \\  gPlayerFollowing \\ 
 gPlayerNumFollowers \\  gPlayerNumFollowers \\ 
Line 31: Line 36:
 gPlayerRobocrowKills \\  gPlayerRobocrowKills \\ 
 gPlayerRobocrowDeaths \\  gPlayerRobocrowDeaths \\ 
-gPlayerItemCount \\ 
 '' ''
- 
 <html> <html>
 </TD><TD WIDTH=33% VALIGN=TOP> </TD><TD WIDTH=33% VALIGN=TOP>
 </html> </html>
- +''gPlayerItemCount \\ 
-=== Player Health & Needs === +gPlayerHealth \\ 
-''gPlayerHealth \\ +
 gPlayerHunger \\  gPlayerHunger \\ 
 gPlayerThirst \\  gPlayerThirst \\ 
 gPlayerMaxHealth \\  gPlayerMaxHealth \\ 
 '' ''
 +<html>
 +</TD></TR></TABLE>
 +</html>
 +\\
  
-=== Player Location ===+===== Other System Values ===== 
 +<html> 
 +<TABLE align=left WIDTH=90%><TR><TD WIDTH=33% VALIGN=TOP> 
 +</html> 
 +**Player Location**\\
 ''gPlayerX \\ ''gPlayerX \\
 gPlayerY \\ gPlayerY \\
Line 51: Line 61:
 '' ''
  
-=== Tasking interface ===+**Tasking interface**\\
 ''gTaskItem1 \\ ''gTaskItem1 \\
 gTaskItem2 \\ gTaskItem2 \\
Line 59: 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 76: Line 87:
 '' ''
  
-=== Player User-details ===+**Player User-details**\\
 ''gPlayerAuth \\ ''gPlayerAuth \\
 gPlayerIsMember \\ gPlayerIsMember \\
scripting/system_values.1332464710.txt.gz · Last modified: (external edit)