Difference between revisions of "EVENT TYPE INVENTORY ADDED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split off of event)
 
(formatting)
Line 1: Line 1:
*<b>Sent When:</b> An item is added to the personal inventory of the object receiving the event or the party inventory.
+
{{event
*<b>Sent From:</b> engine
+
|when= An item is added to the personal inventory of the object receiving the event or the party inventory.
*<b>Sent To:</b> creatures, placeables, player/party
+
|from= [[engine]]
 
+
|to= [[creature]]s, [[placeable]]s, player/party
Parameters:
+
|creatorname = oOldOwner
*<b>Creator:</b> old owner of the item, OBJECT_INVALID if item is created on object
+
|creatordesc= old owner of the item, OBJECT_INVALID if item is created on object
*<b>Object 0:</b> item being added
+
|object0name= oItem
 +
|object0desc= item being added
 +
}}
  
 
[[Category:Event types|INVENTORY_ADDED]]
 
[[Category:Event types|INVENTORY_ADDED]]

Revision as of 18:12, 24 July 2009

Source:
[Undocumented]
Sent when:
An item is added to the personal inventory of the object receiving the event or the party inventory.
Sent from:
engine
Sent to:
creatures, placeables, player/party
Parameters:
  • Creator: old owner of the item, OBJECT_INVALID if item is created on object
  • Object 0: item being added

Usage

case EVENT_TYPE_INVENTORY_ADDED:
{
object oOldOwner = GetEventCreator(ev); // old owner of the item, OBJECT_INVALID if item is created on object
object oItem = GetEventObject(ev, 0); // item being added

// insert event-handling code here

break;
}