Difference between revisions of "EVENT TYPE CAMPAIGN ITEM ACQUIRED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split off of event)
 
(formatting)
Line 1: Line 1:
*<b>Sent When:</b> items with the ITEM_ACQUIRED_EVENT_ID variable set are picked up.
+
{{event
*<b>Sent From:</b>
+
|when= items with the ITEM_ACQUIRED_EVENT_ID variable set are picked up.
*<b>Sent To:</b> module
+
|from=
 
+
|to= [[module]]
Parameters:
+
|creatorname=oAcquirer
*Creator: item acquirer
+
|creatordesc=item acquierer
*Object 0: the item that's been acquired
+
|object0name=oItemAcquired
 +
|object0desc=the item that's been acquired
 +
}}
  
 
[[Category:Event types|CAMPAIGN_ITEM_ACQUIRED]]
 
[[Category:Event types|CAMPAIGN_ITEM_ACQUIRED]]

Revision as of 16:50, 24 July 2009

Source:
[Undocumented]
Sent when:
items with the ITEM_ACQUIRED_EVENT_ID variable set are picked up.
Sent from:
Sent to:
module
Parameters:
  • Creator: item acquierer
  • Object 0: the item that's been acquired

Usage

case EVENT_TYPE_CAMPAIGN_ITEM_ACQUIRED:
{
object oAcquirer = GetEventCreator(ev); // item acquierer
object oItemAcquired = GetEventObject(ev, 0); // the item that's been acquired

// insert event-handling code here

break;
}