Osiris/API/ItemAddedToCharacter
From Divinity Engine Wiki
Full Definition(s)
- event ItemAddedToCharacter((ITEMGUID)_Item, (CHARACTERGUID)_Character)
Description
Thrown when an item is added to a character's inventory or equipment.
Parameters
- _Item: the item that was added.
- _Character: the character to whose inventory/equipment it was added.
Notes
- Editor bug: If you assign an item or item root template via the side bar, this event will only be thrown the first time that character's inventory gets accessed (e.g. because you activated trading, or because you started pickpocketing the character). This also affects the related Shared helpers (see below), as they piggyback on this event. All of this works correctly in the game itself.
See Also
- ItemTemplateAddTo
- ItemToInventory
- Helper DB_HasTemplateItem
- Helper DB_HasStoryEvent