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 otherwise.
STR_VAR | Description | Type | Default |
---|---|---|---|
dialog or script | filename of the dialog or script | filename | required |
item | item resource | resref | required |
Return values | Description | Type |
---|---|---|
present | is item given or created in the dialog or script | bool |
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 otherwise.
STR_VAR | Description | Type | Default |
---|---|---|---|
item | item resource | resref | required |
resource file | filename | filename | required |
Return values | Description | Type |
---|---|---|
present | is item present? | bool |