Difference between revisions of "EVENT TYPE WORLD MAP USED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(update with info from events_h)
m
Line 17: Line 17:
 
'''Note:''' This event may be obsolete, I think [[EVENT_TYPE_BEGIN_TRAVEL]] is the one that actually fires now.
 
'''Note:''' This event may be obsolete, I think [[EVENT_TYPE_BEGIN_TRAVEL]] is the one that actually fires now.
  
[[Category:Maps]]
+
[[Category:Map events]]

Revision as of 16:37, 13 October 2009

Source:
events_h
Sent when:
the player clicks on a destination in the world map
Sent from:
engine
Sent to:
module
Parameters:
  • Integer 0: terrain type traveling from
  • Integer 1: terrain type traveling to
  • String 0: the area tag the player is travelling from
  • String 1: the area tag the player is travelling to

Usage

case EVENT_TYPE_WORLD_MAP_USED:
{
int nSourceTerrain = GetEventInteger(ev, 0); // terrain type traveling from
int nTargetTerrain = GetEventInteger(ev, 1); // terrain type traveling to
string sSource = GetEventString(ev, 0); // the area tag the player is travelling from
string sTarget = GetEventString(ev, 1); // the area tag the player is travelling to

// 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.