Difference between revisions of "Osiris/API/ItemAddedToCharacter"
From Divinity Engine Wiki
(Documented ItemAddedToCharacter) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
* '''_Character''': the character to whose inventory/equipment it was added. | * '''_Character''': the character to whose inventory/equipment it was added. | ||
===== Notes ===== | ===== Notes ===== | ||
− | * 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. | + | * 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 ===== | ===== See Also ===== | ||
+ | * [[Osiris/API/ItemTemplateAddedToCharacter|ItemTemplateAddedToCharacter]] | ||
* [[Osiris/API/ItemTemplateAddTo|ItemTemplateAddTo]] | * [[Osiris/API/ItemTemplateAddTo|ItemTemplateAddTo]] | ||
* [[Osiris/API/ItemToInventory|ItemToInventory]] | * [[Osiris/API/ItemToInventory|ItemToInventory]] |
Latest revision as of 22:57, 18 August 2018
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.