Difference between revisions of "EVENT TYPE INVENTORY ADDED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(update template)
Line 4: Line 4:
 
|from= [[engine]]
 
|from= [[engine]]
 
|to= [[creature]]s, [[placeable]]s, player/party
 
|to= [[creature]]s, [[placeable]]s, player/party
 +
|tocategory1=creature
 +
|tocategory2=placeable
 +
|sortkey=INVENTORY_ADDED
 
|creatorname = oOldOwner
 
|creatorname = oOldOwner
 
|creatordesc= 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
Line 10: Line 13:
 
}}
 
}}
  
[[Category:Event types|INVENTORY_ADDED]]
 
 
[[Category:Inventory]]
 
[[Category:Inventory]]

Revision as of 17:07, 6 August 2009

Source:
script.ldf
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;
}