Appearance
Creatures
Creatures functions.
IS_ITEM_ON_CREATURE action
Returns 1 if the creature has the item, 0 if not, -1 if the creature is not in the game.
| INT_VAR | Description | Type | Default |
|---|---|---|---|
| log | Print the result | bool | False |
| warn | Warn if the creature is in the game but doesn't have the item | bool | False |
| 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? | int |
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 |