Recent changes to the script engine have made accessing values on objects MUCH easier. Previously, you had to specify the number of the value (0 to 8), and the result was a simple number.

The new system allows you to access the values by name, and retrieve information appropriate to the type of value - a number, type, float, flags, etc.

To access values on an object: object.value(name)

Light
Hours Number of hours of light remaining
Weapon
Damage Damage value
DamageType Type of damage
Skill Skill used
AttackType Attack message
Rate Rate of fire
Speed (Float) Speed of weapon
Strength (Float) Strength multiplier
Ammo
AmmoType Type of ammo
AmmoAmount Amount of ammo
Throw
Damage Damage value
DamageType Type of damage
Skill Skill used
Range Maximum range throwable
Speed (Float) Speed of weapon
Strength (Float) Strength multiplier
Throw
Damage Damage value
DamageType Type of damage
Timer Grenades' detonation time NOTE: This is NOT the current time remaining after being pulled
Boomerang
Damage Damage value
DamageType Type of damage
Skill Skill used
Range Maximum range throwable
Speed (Float) Speed of weapon
Strength (Float) Strength multiplier
Armor
Blunt Blunt absorb
Slash Slash absorb
Impale Impale absorb
Ballistic Ballistic absorb
Fire Fire absorb
Energy Energy absorb
Container
Capacity Maximum weight capacity
ContainerFlags Container flags
Key VNum of key to unlock
Corpse 1 if container is a corpse
Food
Fill Amount food fills the user
Poisoned 1 if poisoned
LiqContainer
Capacity Maximum weight capacity
Contents Current capacity
Type Drink type
Poisoned 1 if poisoned
Fountain
Capacity Maximum weight capacity
Contents Current capacity
Type Drink type
Poisoned 1 if poisoned
Vehicle
Entry VNum of entry room
VehicleFlags Vehicle flags
StartRoom? Start of room range of vehicle's rooms
EndRoom? End of room range of vehicle's rooms
Size Vehicle's physical size
Vehicle Hatch
Vehicle VNum of vehicle
Vehicle Controls
Vehicle VNum of vehicle
Vehicle Window
Vehicle VNum of vehicle
Vehicle Weapon
Vehicle VNum of vehicle
Bed
Capacity Maximum number of people who can sit/sleep on it
Chair
Capacity Maximum number of people who can sit on it
Board
ReadLevel Minimum level required to read the board
WriteLevel Minimum level required to write to the board
RemoveLevel Minimum level required to remove anyone's posts from the board
Installable
Installed VNum of object that will be installed
Time Time required to install the object
Skill Skill used to determine installation success
Teleporter
Race Race owning the teleporter
Permanent 1 if the teleporter cannot be destroyed
Installed
Time Time required to destroy the object
Permanent 1 if the installed object cannot be destroyed
Token
TokenValue Value of the token
TokenSet Set the token is from
Signer IDNum of the admin who approved the token
Topic revision: r2 - 30 Jun 2008 - 00:17:09 - FearItself
Lexiscript.LexiObjectValues moved from Core.LexiObjectValues on 30 Jun 2008 - 07:17 by FearItself - put it back
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback