Difference between revisions of "EVENT TYPE INVENTORY ADDED"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (formatting) |
BryanDerksen (Talk | contribs) m (|sourcefile=script.ldf) |
||
Line 1: | Line 1: | ||
{{event | {{event | ||
+ | |sourcefile=script.ldf | ||
|when= An item is added to the personal inventory of the object receiving the event or the party inventory. | |when= An item is added to the personal inventory of the object receiving the event or the party inventory. | ||
|from= [[engine]] | |from= [[engine]] |
Revision as of 20:42, 30 July 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;
}
{
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;
}