Introduction
This plugin allows items to have a condition and optionally be repaired
Fields#
| Name | Description |
|---|---|
| Condition Stat Id | Id of the stat housing the item condition |
| Destroy At Zero | Destroy the item if the condition is zero |
| Repair Increment | Amount to add to item's condition for each repair |
| Increment Cost | Cost for each repair |
| Increment Components | Components required for each repair |
| On Action State Changed | Event raised whenever the action state changes |
Properties#
| Name | Description |
|---|---|
| instanceId | Get the id of this instance of the object |
| isAction | Gets if the plugin is an action |
| title | Title of the plugin |
| description | Description of the plugin |
| actionKeys | Action keys the plugin responds to |
| host | Inventory hosting the plugin |
| item | Gets the item associated with the plugin |
| icon | Icon associated with the plugin |
| titlebarText | Text to display in the titlebar for the plugin |
Methods#
| Name | Description |
|---|---|
| Initialize | Initialize the plugin |
| IsActionReady | Get if a specific action is ready to perform |
| PerformAction | Perform the default action |
| RunCommand | Run a command |
| Shutdown | Shuts down the object |
| AfterAdd | Method run after item is added to inventory |
| AllowAction | Check if an action is allowed |
| BeforeAdd | Method run before item is added to inventory |
| DataSave | Prepare data for serialization and saving |
| HasActionKey | Check if plugin has action key |
| OnItemDropped | Method called when another item is dropped onto this one (return true if event handled) |
| OnAfterAttack | Method to call whenever the player deals damage to another object |