Appearance
Miscellaneous
Various functions that didn't fit into other categories.
IS_ITEM_GIVEN_OR_CREATED_IN_DIALOG_OR_SCRIPT action
Returns 1 if item is given or created in the dialog or script, 0 if not, -1 if the file is not in the game.
| STR_VAR | Description | Type | Default |
|---|---|---|---|
| filename | filename of the dialog or script | filename | required |
| item | item resource | resref | required |
| Return | Description | Type |
|---|---|---|
| present | is item given or created in the dialog or script | int |
IS_ITEM_IN_RESOURCE action
Returns 1 if item is present in area, store, on creature, or given/created in the dialog or script, 0 if not, -1 if the resource is not in the game. Other resource types always return 0.
| STR_VAR | Description | Type | Default |
|---|---|---|---|
| item | item resource | resref | required |
| resource | filename | filename | required |
| Return | Description | Type |
|---|---|---|
| present | is item present? | int |