Equipment

Methods to interact with the Equipment gametab.

_images/equipment.png

ERSEquipment

ERSEquipment = enum(HEAD, CAPE, NECK, AMMO, WEAPON, BODY, SHIELD, LEGS, HANDS, FEET, RING, SECONDARY_AMMO);

Enumerator of the equipment slots.


ERSEquipmentButton

ERSEquipmentButton = (STATS, PRICES, DEATH, FOLLOWER);

Enumerator of the equipment buttons.


TRSEquipment

Main record reponsible for handling the equipment gametab.


Equipment.SetupGameTab

procedure TRSEquipment.SetupGameTab();

Internal method used to setup the TRSEquipment coordinates.

This is automatically called for you on the Equipment variable.


Equipment.IsOpen

function TRSEquipment.IsOpen(): Boolean;

Returns True/False whether the equipment tab is open or not.

Example:

WriteLn Equipment.IsOpen();

Equipment.Open

function TRSEquipment.Open(): Boolean;

Attempts to open the equipment tab. Returns true if we succeed.

Example:

WriteLn Equipment.Open();

Equipment variable

Global TRSEquipment variable.