Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php on line 560

Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/auth.php on line 495

Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/actions.php on line 210
constants - TextStorm Wiki

The Wiki is still in development, please bare with us while we add and update content.

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
constants [2016/12/05 22:29]
textstorm [TextStorm Constants]
constants [2016/12/05 22:43] (current)
textstorm
Line 3: Line 3:
  
 There are two types; **Booleans** (1 or 0 - on or off), **Values** (Store a particular string or integer) There are two types; **Booleans** (1 or 0 - on or off), **Values** (Store a particular string or integer)
 +
 +They can be called/​accessed anywhere within the game engine including the plugins you develop!
 ===== Booleans ===== ===== Booleans =====
 ==== ADMIN ==== ==== ADMIN ====
 +You can use the following to determine whether a user is an Administrator or not:
 +
 +<code php>
 +if (ADMIN) {}
 +</​code>​
 ==== CHESTSON ==== ==== CHESTSON ====
 +You can use the following to determine if the game has chests enabled:
 +<code php>
 +if (CHESTSON) {}
 +</​code>​
 ==== HASWEAPON ==== ==== HASWEAPON ====
 +You can use the following to determine if the player has a weapon equipped:
 +<code php>
 +if (HASWEAPON) {}
 +</​code>​
 ==== INVEHICLE ==== ==== INVEHICLE ====
 +You can use the following to determine if the player is in a vehicle:
 +<code php>
 +if (INVEHICLE) {}
 +</​code>​
 ==== VEHICLESON ==== ==== VEHICLESON ====
-==== VEHICLEDAMAGEON ​==== +You can use the following to determine if the game has vehicles enabled: 
-==== VEHICLESPEEDON ====+<code php> 
 +if (VEHICLESON) {} 
 +</​code>​ 
 +=== VEHICLEDAMAGEON === 
 +You can use the following to determine if the game uses vehicle damage attributes:​ 
 +<code php> 
 +if (VEHICLEDAMAGEON) {} 
 +</​code>​ 
 +=== VEHICLESPEEDON === 
 +You can use the following to determine if the game uses the vehicle speed attribute:​ 
 +<code php> 
 +if (VEHICLESPEEDON) {} 
 +</​code>​
 ==== WEAPONSON ==== ==== WEAPONSON ====
 +You can use the following to determine if the game has weapons enabled: 
 +<code php> 
 +if (WEAPONSON) {} 
 +</​code>​
 ===== Values ===== ===== Values =====
 ==== CHESTTITLE ==== ==== CHESTTITLE ====
 +You can access this string to display how the game refers to chests (Lockers, Treasure etc.)
 +<code php>
 +echo CHESTTITLE;
 +</​code>​
 ==== CURRENCY ==== ==== CURRENCY ====
 +You can access this string to display how the game refers to Currency (Coins, Doubloons etc.)
 +<code php>
 +echo CURRENCY;
 +</​code>​
 ==== EXPERIENCE ==== ==== EXPERIENCE ====
 +You can access this string to display how the game refers to experience
 +<code php>
 +echo EXPERIENCE;
 +</​code>​
 ==== GENERICNAME ==== ==== GENERICNAME ====
 +You can access this string to display the general character being role-played (Racer, Pirate etc.)
 +<code php>
 +echo GENERICNAME;​
 +</​code>​
 ==== LOCATIONID ==== ==== LOCATIONID ====
-==== MENUTYPE ==== +You can access this integer to determine the players location 
-==== MESSAGECOUNTER ==== +<code php> 
-==== STYLESHEET ====+echo LOCATIONID;​ 
 +</​code>​
 ==== VEHICLETITLE ==== ==== VEHICLETITLE ====
 +You can access this string to display how vehicles are referred to in the game (Car, Ship etc.)
 +<code php>
 +echo VEHICLETITLE;​
 +</​code>​
 ==== WEAPONTITLE ==== ==== WEAPONTITLE ====
 +You can access this string to display how weapons are referred to in the game (Gun, Weapon etc.) 
 +<code php> 
 +echo WEAPONTITLE;​ 
 +</​code>​
  

QR Code
QR Code constants (generated for current page)