Table of Contents
TextStorm Constants
Here you will find the constants used throughout TextStorm.
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
ADMIN
You can use the following to determine whether a user is an Administrator or not:
if (ADMIN) {}
CHESTSON
You can use the following to determine if the game has chests enabled:
if (CHESTSON) {}
HASWEAPON
You can use the following to determine if the player has a weapon equipped:
if (HASWEAPON) {}
INVEHICLE
You can use the following to determine if the player is in a vehicle:
if (INVEHICLE) {}
VEHICLESON
You can use the following to determine if the game has vehicles enabled:
if (VEHICLESON) {}
VEHICLEDAMAGEON
You can use the following to determine if the game uses vehicle damage attributes:
if (VEHICLEDAMAGEON) {}
VEHICLESPEEDON
You can use the following to determine if the game uses the vehicle speed attribute:
if (VEHICLESPEEDON) {}
WEAPONSON
You can use the following to determine if the game has weapons enabled:
if (WEAPONSON) {}
Values
CHESTTITLE
You can access this string to display how the game refers to chests (Lockers, Treasure etc.)
echo CHESTTITLE;
CURRENCY
You can access this string to display how the game refers to Currency (Coins, Doubloons etc.)
echo CURRENCY;
EXPERIENCE
You can access this string to display how the game refers to experience
echo EXPERIENCE;
GENERICNAME
You can access this string to display the general character being role-played (Racer, Pirate etc.)
echo GENERICNAME;
LOCATIONID
You can access this integer to determine the players location
echo LOCATIONID;
VEHICLETITLE
You can access this string to display how vehicles are referred to in the game (Car, Ship etc.)
echo VEHICLETITLE;
WEAPONTITLE
You can access this string to display how weapons are referred to in the game (Gun, Weapon etc.)
echo WEAPONTITLE;