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 if not, -1 if the file is not in the game.

STR_VARDescriptionTypeDefault
filenamefilename of the dialog or scriptfilenamerequired
itemitem resourceresrefrequired
ReturnDescriptionType
presentis item given or created in the dialog or scriptint

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