Skip to content

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_VARDescriptionTypeDefault
filenamefilename of the dialog or scriptfilenamerequired
itemitem resourceresrefrequired
ReturnDescriptionType
presentis item given or created in the dialog or scriptbool

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_VARDescriptionTypeDefault
itemitem resourceresrefrequired
resourcefilenamefilenamerequired
ReturnDescriptionType
presentis item present?bool