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:12] 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 23: Line 23:
 gPlayerFamily \\  gPlayerFamily \\ 
 gPlayerCash \\  gPlayerCash \\ 
 +gPlayerVehicle \\ 
 +gPlayerFuel \\ 
 '' ''
 <html> <html>
 </TD><TD WIDTH=33% VALIGN=TOP> </TD><TD WIDTH=33% VALIGN=TOP>
 </html> </html>
-''gPlayerVehicle \\  +''gPlayerAge \\ 
-gPlayerFuel \\  +
-gPlayerAge \\ +
 gPlayerFollowing \\  gPlayerFollowing \\ 
 gPlayerNumFollowers \\  gPlayerNumFollowers \\ 
 +gPlayerKills \\ 
 +gPlayerDeaths \\ 
 +gPlayerRobocrowKills \\ 
 +gPlayerRobocrowDeaths \\ 
 '' ''
 <html> <html>
 </TD><TD WIDTH=33% VALIGN=TOP> </TD><TD WIDTH=33% VALIGN=TOP>
 </html> </html>
-''gPlayerKills \\  +''gPlayerItemCount \\ 
-gPlayerDeaths \\  +gPlayerHealth \\  
-gPlayerRobocrowKills \\  +gPlayerHunger \\  
-gPlayerRobocrowDeaths \\  +gPlayerThirst \\  
-gPlayerItemCount \\+gPlayerMaxHealth \\ 
 '' ''
 <html> <html>
Line 47: Line 51:
 \\ \\
  
-===== Player Health & Needs ===== +===== Other System Values =====
-These values give details of the health status of the player the current event is executing for.\\ +
-For further details on each value, see the [[Scripting:System Values:Player Stats|Player Health 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>
-''gPlayerHealth \\  +**Player Location**\\
-gPlayerHunger \\  +
-'' +
-<html> +
-</TD><TD WIDTH=33% VALIGN=TOP> +
-</html> +
-''gPlayerThirst \\  +
-'' +
-<html> +
-</TD><TD WIDTH=33% VALIGN=TOP> +
-</html> +
-''gPlayerMaxHealth \\  +
-'' +
-<html> +
-</TD></TR></TABLE> +
-</html> +
- +
-=== Player Location ===+
 ''gPlayerX \\ ''gPlayerX \\
 gPlayerY \\ gPlayerY \\
Line 76: Line 61:
 '' ''
  
-=== Tasking interface ===+**Tasking interface**\\
 ''gTaskItem1 \\ ''gTaskItem1 \\
 gTaskItem2 \\ gTaskItem2 \\
Line 84: 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 101: Line 87:
 '' ''
  
-=== Player User-details ===+**Player User-details**\\
 ''gPlayerAuth \\ ''gPlayerAuth \\
 gPlayerIsMember \\ gPlayerIsMember \\
scripting/system_values.1332465136.txt.gz · Last modified: (external edit)