Osiris/Shared/DB HasTemplateItem
From Divinity Engine Wiki
Full Definition(s)
- DB_HasTemplateItem((STRING)_template, (STRING)_flag)
Description
Defining this database will result in the character/object flag _flag to be set on a character as long as it has at least one item with the root template _template in its inventory.
Notes
- This database only works for players, and not for NPCs.
- See the notes of DB_HasStoryEvent for usage tips.
- See the notes for ItemAddedToCharacter for an important caveat.