(Official) LUA Scripting Documentation
equip
Cause the context actor to equip an item.
Spec:
equip(
long item_id,
string slot)
Parameters
item_id
: The item to equipslot
: The slot to equip to: left, right or body
Valid values for slot: “left”, “right”, “body”
Examples
equip(item.woodsword,"right")
This example equips a wood sword (if the actor has one) to their right hand
equip(item.leatherhelmet,"body")
This example equips a leather helmet (if the actor has one) to the appropriate body slot
Incomplete
This documentation is incomplete