Difference between revisions of "EVENT TYPE CAMPAIGN ITEM LOST"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with '*Sent by: player_core *When: An item is removed from the player's inventory that has the ITEM_SEND_LOST_EVENT variable set. CAMPAIGN_ITEM_LOST')
 
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
*Sent by: player_core
+
{{event
*When: An item is removed from the player's inventory that has the ITEM_SEND_LOST_EVENT variable set.
+
|sourcefile=events_h
 
+
|when=An item is removed from the player's inventory that has the ITEM_SEND_LOST_EVENT variable set.
[[Category:Event types|CAMPAIGN_ITEM_LOST]]
+
|to=[[module]]
 +
|tocategory1=module
 +
|sortkey=CAMPAIGN_ITEM_LOST
 +
|from=[[player_core]]
 +
|object0name=oItem
 +
|object0desc=The item that's been lost.
 +
}}
 +
[[Category: Module events|CAMPAIGN_ITEM_LOST]]

Latest revision as of 04:30, 3 January 2010

Source:
events_h
Sent when:
An item is removed from the player's inventory that has the ITEM_SEND_LOST_EVENT variable set.
Sent from:
player_core
Sent to:
module
Parameters:
  • Object 0: The item that's been lost.

Usage

case EVENT_TYPE_CAMPAIGN_ITEM_LOST:
{
object oItem = GetEventObject(ev, 0); // The item that's been lost.

// insert event-handling code here

break;
}