Difference between revisions of "EVENT TYPE INVENTORY REMOVED"

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 removed from the personal inventory of the object receiving the event or the party inventory.
+
{{event
*<b>Sent From:</b> engine
+
|when= An item is removed from 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= oNewOwner
*<b>Creator:</b> new owner of the item, OBJECT_INVALID if item is being destroyed on object
+
|creatordesc= new owner of the item, OBJECT_INVALID if item is being destroyed on object
*<b>Object 0:</b> item being added
+
|object0name = oItem
 +
|object0desc = item being added
 +
}}
  
 
[[Category:Event types|INVENTORY_REMOVED]]
 
[[Category:Event types|INVENTORY_REMOVED]]

Revision as of 18:11, 24 July 2009

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

Usage

case EVENT_TYPE_INVENTORY_REMOVED:
{
object oNewOwner = GetEventCreator(ev); // new owner of the item, OBJECT_INVALID if item is being destroyed on object
object oItem = GetEventObject(ev, 0); // item being added

// insert event-handling code here

break;
}