EVENT TYPE BEGIN TRAVEL

From Dragon Age Toolset Wiki
Jump to: navigation, search
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: The world map number (a WM_* constant)
  • 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); // The world map number (a WM_* constant)
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.