Gear Layouts¶
The Gear Layouts is a handler for game gear.
“Gear” refers to as any equippable item in the game.
You can configure gear manually but the recommended way is to use Gear Form.
TGearItem¶
Alias type for a TItem that is equippable. This doesn’t have much use other than GearItem.Interact that comes next which can be very handy.
GearItem.Interact¶
function TGearItem.Interact(option: String = ''; attempts: Int32 = 2): Boolean;
Interact with the TGearItem regardless of it being on the Inventory
or Equipment with the least amount of gametab switches possible.
Example:
ring.Interact('Rub');
Because TGearItem have few use cases, you are probably using TItem instead. You can still easily use this by casting:
TGearItem(ring).Interact('Rub');
TGear¶
Type that represents a gear layout.
Gear.ToJSON¶
function TGear.ToJSON(): TJSONItem;
Convert the TGear into a TJSONItem.
TGearLayout¶
Main type for the Gear Layouts.
GearLayout.Equip¶
function TGearLayout.Equip(): Boolean;
Attempts to equip a GearLayout.
GearLayout.Withdraw¶
function TGearLayout.Withdraw(): Boolean;
Attempts to withdraw a GearLayout from the Bank.