document 'script-name' propertyfor items

This commit is contained in:
MihailRis 2026-07-22 00:00:41 +03:00
parent c023697bcc
commit c3794191e2
2 changed files with 10 additions and 1 deletions

View file

@ -60,13 +60,18 @@ Property used via [inventory.use](scripting/builtins/libinventory.md).
Property status is displayed in the inventory interface. Display method is defined via `uses-display`.
### Display of uses - `uses-display`
### Display of remaining uses count - `uses-display`
- `none` - display disabled
- `number` - number
- `relation` - current value to initial value (x/y)
- `vbar` - vertical scale (used by default)
### *script-name*
Defines the name of the script containing the item's event handlers. By default, equals to the item's string id (name).
Allows you to reuse a single script for multiple items.
## Tags
Tags allow you to designate general properties of items. Names should be formatted as `prefix:tag_name`.