Appearance
Creatures
Creatures functions.
IS_ITEM_ON_CREATURE action
Returns 1 if the creature has the item, 0 otherwise.
| STR_VAR | Description | Type | Default |
|---|---|---|---|
| creature | creature resource | resref | required |
| item | item resource | resref | required |
| Return | Description | Type |
|---|---|---|
| present | does the creature possess the item? | bool |
REPLACE_CRE_ITEM_MATCH patch
Replaces each occurrence of match_item with new_item. Doesn't change charges, flags, etc. Does nothing if match_item wasn't found.
| STR_VAR | Description | Type | Default |
|---|---|---|---|
| match_item | old item | resref | required |
| new_item | new item | resref | required |