// Travel Builder // List the nth node the PC can travel to // Author : Proleric // This script is used by conversation bh_travel. // Modified : 24-Mar-2007 #include "nw_o0_itemmaker" #include "bh_travel_inc" int StartingConditional() { object oPC = GetPCSpeaker(); int nOption = GetLocalInt(oPC, "ptDialogLine") + 1; int bFeedback = TRUE; int nNodeFound = ptGetNodeIDForOption(oPC, nOption, GetLocalInt(oPC, "ptIsHorseInParty"), bFeedback); SetLocalInt(oPC, "ptDialogLine", nOption); if (nNodeFound >= 0) { SetCustomToken(CUSTOM_TOKEN_OFFSET + nOption, Get2DAString(Xpt2daNode, "Node_Name", nNodeFound)); return TRUE; } return FALSE; }