Osiris/API/ItemAddedToCharacter: Difference between revisions
Jump to navigation
Jump to search
(Documented ItemAddedToCharacter) |
mNo edit summary |
||
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/ItemTemplateAddTo|ItemTemplateAddTo]] | * [[Osiris/API/ItemTemplateAddTo|ItemTemplateAddTo]] |
Revision as of 10:53, 14 February 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.
See Also
- ItemTemplateAddTo
- ItemToInventory
- Helper DB_HasTemplateItem
- Helper DB_HasStoryEvent