Difference between revisions of "EVENT TYPE WORLD MAP USED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split off of event)
 
(formatting)
Line 1: Line 1:
!!Note: This event may be obsolete, I think EVENT_TYPE_BEGIN_TRAVEL is the one that actually fires now.!!
+
{{event
 
+
|when= the player clicks on a destination in the world map
*<b>Sent When:</b> the player clicks on a destination in the world map
+
|from= [[engine]]
*<b>Sent From:</b> engine
+
|to= [[module]]
*<b>Sent To: module</b>
+
|int0name=nFrom
 
+
|int0desc= travel start location
Parameters:
+
|int1name= nTo
 
+
|int1desc= travel target location
*int nFrom = GetEventInteger(ev, 0); // travel start location
+
}}
*int nTo = GetEventInteger(ev, 1); // travel target location
+
'''Note:''' This event may be obsolete, I think EVENT_TYPE_BEGIN_TRAVEL is the one that actually fires now.
  
 
[[Category:Event types|WORLD_MAP_USED]]
 
[[Category:Event types|WORLD_MAP_USED]]
 
[[Category:Maps]]
 
[[Category:Maps]]

Revision as of 21:54, 24 July 2009

Source:
[Undocumented]
Sent when:
the player clicks on a destination in the world map
Sent from:
engine
Sent to:
module
Parameters:
  • Integer 0: travel start location
  • Integer 1: travel target location

Usage

case EVENT_TYPE_WORLD_MAP_USED:
{
int nFrom = GetEventInteger(ev, 0); // travel start location
int nTo = GetEventInteger(ev, 1); // travel target location

// insert event-handling code here

break;
}

Note: This event may be obsolete, I think EVENT_TYPE_BEGIN_TRAVEL is the one that actually fires now.