Difference between revisions of "EVENT TYPE WORLD MAP USED"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split off of event)
 
m (remove redundant categories)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
!!Note: This event may be obsolete, I think EVENT_TYPE_BEGIN_TRAVEL is the one that actually fires now.!!
+
{{event
 +
|sourcefile=events_h
 +
|when= the player clicks on a destination in the world map
 +
|from= [[engine]]
 +
|to= [[module]]
 +
|tocategory1=module
 +
|sortkey=WORLD_MAP_USED
 +
|int0name= nSourceTerrain
 +
|int0desc= terrain type traveling from
 +
|int1name= nTargetTerrain
 +
|int1desc= terrain type traveling to
 +
|string0name= sSource
 +
|string0desc= the area tag the player is travelling from
 +
|string1name= sTarget
 +
|string1desc= the area tag the player is travelling to
 +
}}
 +
'''Note:''' This event may be obsolete, I think [[EVENT_TYPE_BEGIN_TRAVEL]] is the one that actually fires now.
  
*<b>Sent When:</b> the player clicks on a destination in the world map
+
[[Category:Map events|WORLD_MAP_USED]]
*<b>Sent From:</b> engine
+
*<b>Sent To: module</b>
+
 
+
Parameters:
+
 
+
*int nFrom = GetEventInteger(ev, 0); // travel start location
+
*int nTo = GetEventInteger(ev, 1); // travel target location
+
 
+
[[Category:Event types|WORLD_MAP_USED]]
+
[[Category:Maps]]
+

Latest revision as of 00:39, 12 February 2010

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.