nwnx.items¶
nwnx_items allows orrividing some aspects of items:
- Whether a creature can equip, use, unequip an item.
- The base cost and weight of item.
- The items minimum level required to equip. Note: this requires using the ILR setting on your server.
Constants¶
-
EVENT_ALL¶
-
EVENT_CAN_EQUIP¶ Can equip item event. Note that using
SetResult(true)()will essentially operate like if a DM was equipping the item.
-
EVENT_CAN_UNEQUIP¶ Can unequip item event. Note only
SetResult(false)()is respected.
-
EVENT_MIN_LEVEL¶ Minimum level required event. This is used to determine ILR.
-
EVENT_CAN_USE¶ Can use item event. Note that using
SetResult(true)()will essentially operate like if a DM was equipping the item. SetResult(false) will highlight the item in red. However, you’ll still need to override the EVENT_CAN_EQUIP event to ensure a player cannot equip the item.
-
EVENT_CALC_BASE_COST¶ Calculate base cost event. The value passed to
SetResult()must be positive.
-
EVENT_COMPUTE_WEIGHT¶ Calculate item weight event. The value passed to
SetResult()must be positive.
-
EVENT_NUM¶