Difference between revisions of "Osiris/Shared/DB HasTemplateItem"
From Divinity Engine Wiki
m |
m |
||
Line 5: | Line 5: | ||
===== Notes ===== | ===== Notes ===== | ||
* See the notes of [[Osiris/Shared/DB_HasStoryEvent|DB_HasStoryEvent]] for usage tips. | * See the notes of [[Osiris/Shared/DB_HasStoryEvent|DB_HasStoryEvent]] for usage tips. | ||
+ | * See the notes for [[Osiris/API/ItemAddedToCharacter|ItemAddedToCharacter]] for an important caveat. | ||
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/CharacterGetItemTemplateCount|CharacterGetItemTemplateCount]] | * [[Osiris/API/CharacterGetItemTemplateCount|CharacterGetItemTemplateCount]] | ||
+ | * [[Osiris/API/ItemAddedToCharacter|ItemAddedToCharacter]] | ||
* [[Osiris/API/ItemTemplateIsInCharacterInventory|ItemTemplateIsInCharacterInventory]] | * [[Osiris/API/ItemTemplateIsInCharacterInventory|ItemTemplateIsInCharacterInventory]] | ||
* [[Osiris/API/ItemIsInInventory|ItemIsInInventory]] | * [[Osiris/API/ItemIsInInventory|ItemIsInInventory]] |
Revision as of 11:30, 14 February 2018
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
- See the notes of DB_HasStoryEvent for usage tips.
- See the notes for ItemAddedToCharacter for an important caveat.