Skip to main content

Introduction

This plugin allows items to have a condition and optionally be repaired

Fields#

NameDescription
Condition Stat IdId of the stat housing the item condition
Destroy At ZeroDestroy the item if the condition is zero
Repair IncrementAmount to add to item's condition for each repair
Increment CostCost for each repair
Increment ComponentsComponents required for each repair
On Action State ChangedEvent raised whenever the action state changes

Properties#

NameDescription
instanceIdGet the id of this instance of the object
isActionGets if the plugin is an action
titleTitle of the plugin
descriptionDescription of the plugin
actionKeysAction keys the plugin responds to
hostInventory hosting the plugin
itemGets the item associated with the plugin
iconIcon associated with the plugin
titlebarTextText to display in the titlebar for the plugin

Methods#

NameDescription
InitializeInitialize the plugin
IsActionReadyGet if a specific action is ready to perform
PerformActionPerform the default action
RunCommandRun a command
ShutdownShuts down the object
AfterAddMethod run after item is added to inventory
AllowActionCheck if an action is allowed
BeforeAddMethod run before item is added to inventory
DataSavePrepare data for serialization and saving
HasActionKeyCheck if plugin has action key
OnItemDroppedMethod called when another item is dropped onto this one (return true if event handled)
OnAfterAttackMethod to call whenever the player deals damage to another object