Difference between revisions of "EVENT TYPE BEGIN TRAVEL"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m
m (remove redundant category)
Line 28: Line 28:
  
 
[[Category:Map events|BEGIN_TRAVEL]]
 
[[Category:Map events|BEGIN_TRAVEL]]
[[Category:Module events|BEGIN_TRAVEL]]
 
[[Category:Event types|BEGIN_TRAVEL]]
 

Revision as of 00:54, 12 February 2010

Source:
script.ldf
Sent when:
Player clicks on a map pin
Sent from:
[Undocumented]
Sent to:
module
Parameters:
  • Integer 0: The terrain type of the source location
  • Integer 1: The terrain type of the target location
  • Integer 2: [Undocumented]
  • String 0: area tag source location
  • String 1: area tag target location
  • String 2: waypoint tag override
  • Object 0: source location object

Usage

case EVENT_TYPE_BEGIN_TRAVEL:
{
int nSourceTerrain = GetEventInteger(ev, 0); // The terrain type of the source location
int nTargetTerrain = GetEventInteger(ev, 1); // The terrain type of the target location
int nWorldMap = GetEventInteger(ev, 2); // [Undocumented]
string sSource = GetEventString(ev, 0); // area tag source location
string sTarget = GetEventString(ev, 1); // area tag target location
string sWPOverride = GetEventString(ev, 2); // waypoint tag override
object oSourceLocation = GetEventObject(ev, 0); // source location object

// insert event-handling code here

break;
}

Remarks

The nSourceTerrain and nTargetTerrain parameters are used in the main campaign's code for determining what sort of random encounters to generate, but that's handled entirely in scripting so you can use them for other purposes.