Files
HeroesStone_PRC8/_module/nss/bh_travel_option.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

31 lines
710 B
Plaintext

// 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;
}