mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
4378 lines
159 KiB
Plaintext
4378 lines
159 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// sean_trenwell.script
|
|
// Copyright 2003, Sony Online Entertainment
|
|
// All Rights Reserved.
|
|
//
|
|
// DO NOT EDIT THIS AUTO-GENERATED FILE. PLEASE USE THE CONVERATION EDITOR!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
include library.utils;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/sean_trenwell";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean sean_trenwell_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_RivalObj (obj_id player, obj_id npc)
|
|
{
|
|
if ( sean_trenwell_condition_votedSeanCurrentElection(player, npc) )
|
|
return false;
|
|
|
|
if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
{
|
|
int electionNum = getIntObjVar(npc, "bestine.electionStarted");
|
|
if ( hasObjVar(player, "bestine.rival" ) )
|
|
{
|
|
int electionPlayerIsIn = getIntObjVar(player, "bestine.rival");
|
|
if ( electionPlayerIsIn >= electionNum)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_NoRoom (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
{
|
|
int electionNum = getIntObjVar(npc, "bestine.electionStarted");
|
|
if ( hasObjVar(player, "bestine.sean_noroom" ) )
|
|
{
|
|
int electionPlayerIsIn = getIntObjVar(player, "bestine.sean_noroom");
|
|
if ( electionPlayerIsIn >= electionNum)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_inOffice_newElection (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
{
|
|
if ( !hasObjVar(player, "bestine.votedSean") && !hasObjVar(player, "bestine.votedVictor") )
|
|
{
|
|
return true;
|
|
}
|
|
else
|
|
{
|
|
int currentElection = getIntObjVar(npc, "bestine.electionStarted");
|
|
int electionVotedIn = 0;
|
|
if( hasObjVar(player, "bestine.votedSean") )
|
|
electionVotedIn = getIntObjVar(player, "bestine.votedSean");
|
|
|
|
if( hasObjVar(player, "bestine.votedVictor") )
|
|
electionVotedIn = getIntObjVar(player, "bestine.votedVictor");
|
|
|
|
if ( electionVotedIn != currentElection )
|
|
return true;
|
|
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_checkForVoteReward (obj_id player, obj_id npc)
|
|
{
|
|
int electionNum = 1;
|
|
if ( hasObjVar(npc, "bestine.electionEnded") )
|
|
electionNum = getIntObjVar(npc, "bestine.electionEnded");
|
|
|
|
if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
electionNum = getIntObjVar(npc, "bestine.electionStarted") - 1;
|
|
|
|
if ( hasObjVar(player, "bestine.votedSean" ) )
|
|
{
|
|
int electionPlayerIsIn = getIntObjVar(player, "bestine.votedSean");
|
|
if ( electionPlayerIsIn <= electionNum)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_Campaign (obj_id player, obj_id npc)
|
|
{
|
|
if ( sean_trenwell_condition_votedSeanCurrentElection(player, npc) )
|
|
return false;
|
|
|
|
if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
{
|
|
int electionNum = getIntObjVar(npc, "bestine.electionStarted");
|
|
if ( hasObjVar(player, "bestine.campaign" ) )
|
|
{
|
|
int electionPlayerIsIn = getIntObjVar(player, "bestine.campaign");
|
|
if ( electionPlayerIsIn >= electionNum)
|
|
{
|
|
if ( !hasObjVar(player, "bestine.sean_noroom") )
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_NegquestsObj (obj_id player, obj_id npc)
|
|
{
|
|
if ( sean_trenwell_condition_votedSeanCurrentElection(player, npc) )
|
|
return false;
|
|
|
|
if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
{
|
|
int electionNum = getIntObjVar(npc, "bestine.electionStarted");
|
|
if ( hasObjVar(player, "bestine.negativeq" ) )
|
|
{
|
|
int electionPlayerIsIn = getIntObjVar(player, "bestine.negativeq");
|
|
if ( electionPlayerIsIn >= electionNum)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_Evidence1 (obj_id player, obj_id npc)
|
|
{
|
|
obj_id objInventory = utils.getInventoryContainer(player);
|
|
if( isIdValid(objInventory) )
|
|
{
|
|
obj_id[] objContents = utils.getContents(objInventory);
|
|
|
|
if( objContents != null )
|
|
{
|
|
for( int intI = 0; intI<objContents.length; intI++ )
|
|
{
|
|
string strItemTemplate = getTemplateName(objContents[intI]);
|
|
if( strItemTemplate=="object/tangible/loot/quest/victor_questn_hlist.iff" )
|
|
{
|
|
destroyObject( objContents[intI] );
|
|
return true;
|
|
}
|
|
if( strItemTemplate=="object/tangible/loot/quest/victor_questn_dseal.iff" )
|
|
{
|
|
destroyObject( objContents[intI] );
|
|
return true;
|
|
}
|
|
if( strItemTemplate=="object/tangible/loot/quest/victor_questn_journal.iff" )
|
|
{
|
|
destroyObject( objContents[intI] );
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_Itemfound (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar( player, "bestine.itemfound") )
|
|
{
|
|
if (hasObjVar(npc, "bestine.electionWinner"))
|
|
{
|
|
string winner = getStringObjVar(npc, "bestine.electionWinner");
|
|
if ( (winner == "sean") || (winner == "Sean") )
|
|
{
|
|
if ( utils.playerHasItemByTemplate(player, "object/tangible/loot/quest/sean_history_disk.iff") )
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_Diskdestroyed (obj_id player, obj_id npc)
|
|
{
|
|
return hasObjVar( player, "bestine.destroyed");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_Hutt (obj_id player, obj_id npc)
|
|
{
|
|
return hasObjVar( player, "bestine.hutt");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_Mess1 (obj_id player, obj_id npc)
|
|
{
|
|
return hasObjVar( player, "bestine.mess");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_find1 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar( player, "bestine.find") )
|
|
{
|
|
if (hasObjVar(npc, "bestine.electionWinner"))
|
|
{
|
|
string winner = getStringObjVar(npc, "bestine.electionWinner");
|
|
if ( (winner == "sean") || (winner == "Sean") )
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_hquestObj (obj_id player, obj_id npc)
|
|
{
|
|
return hasObjVar (player, "bestine.hquest");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_notInOffice_noElection (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.electionEnded") )
|
|
{
|
|
if ( hasObjVar(npc, "bestine.electionWinner") )
|
|
{
|
|
string winner = getStringObjVar(npc, "bestine.electionWinner");
|
|
if ( (winner != "sean") && (winner != "Sean") )
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_inOffice (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.electionWinner") )
|
|
{
|
|
string winner = getStringObjVar(npc, "bestine.electionWinner");
|
|
if ( (winner == "sean") || (winner == "Sean") )
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_noInventorySpace (obj_id player, obj_id npc)
|
|
{
|
|
boolean hasNoInvRoom = false;
|
|
obj_id playerInv = utils.getInventoryContainer(player);
|
|
if ( isIdValid(playerInv) )
|
|
{
|
|
int free_space = getVolumeFree(playerInv);
|
|
if (free_space < 1 )
|
|
{
|
|
hasNoInvRoom = true;
|
|
}
|
|
}
|
|
return hasNoInvRoom;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_CheckRewardGiven (obj_id player, obj_id npc)
|
|
{
|
|
int electionNum = 1;
|
|
if ( hasObjVar(npc, "bestine.electionEnded") )
|
|
electionNum = getIntObjVar(npc, "bestine.electionEnded");
|
|
|
|
else if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
electionNum = getIntObjVar(npc, "bestine.electionStarted") - 1 ;
|
|
|
|
|
|
if ( hasObjVar(player, "bestine.rewardgivensean" ) )
|
|
{
|
|
int electionPlayerRewarded = getIntObjVar(player, "bestine.rewardgivensean");
|
|
if ( electionPlayerRewarded <= electionNum)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_hasEvidence (obj_id player, obj_id npc)
|
|
{
|
|
if ( utils.playerHasItemByTemplate(player, "object/tangible/loot/quest/victor_questn_hlist.iff") )
|
|
return true;
|
|
|
|
if ( utils.playerHasItemByTemplate(player, "object/tangible/loot/quest/victor_questn_dseal.iff") )
|
|
return true;
|
|
|
|
if ( utils.playerHasItemByTemplate(player, "object/tangible/loot/quest/victor_questn_journal.iff") )
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_hasNoRoomHistoryReward (obj_id player, obj_id npc)
|
|
{
|
|
return hasObjVar(player, "bestine.sean_historyreward_noroom");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_votedSeanCurrentElection (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
{
|
|
int electionNum = getIntObjVar(npc, "bestine.electionStarted");
|
|
if ( hasObjVar(player, "bestine.votedSean" ) )
|
|
{
|
|
int electionPlayerIsIn = getIntObjVar(player, "bestine.votedSean");
|
|
if ( electionPlayerIsIn == electionNum)
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_tellAboutHistoryQuest (obj_id player, obj_id npc)
|
|
{
|
|
if ( !hasObjVar(player, "bestine.hquest") )
|
|
{
|
|
if ( !hasObjVar(player, "bestine.find") )
|
|
{
|
|
if ( !hasObjVar(player, "bestine.itemfound") )
|
|
{
|
|
if ( !hasObjVar(player, "bestine.mess") )
|
|
{
|
|
if ( !hasObjVar(player, "bestine.destroyed") )
|
|
{
|
|
if ( !hasObjVar(player, "bestine.sean_historyreward_noroom") )
|
|
{
|
|
if ( !hasObjVar(player, "bestine.completedSeanHistroyQuest") )
|
|
{
|
|
return true;
|
|
}
|
|
else
|
|
{
|
|
int playerQuestNum = getIntObjVar(player, "bestine.completedSeanHistroyQuest");
|
|
int currentQuestNum = 0;
|
|
if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
currentQuestNum = getIntObjVar(npc, "bestine.electionStarted") - 1;
|
|
else if ( hasObjVar(npc, "bestine.electionEnded") )
|
|
currentQuestNum = getIntObjVar(npc, "bestine.electionEnded");
|
|
|
|
if ( playerQuestNum < currentQuestNum )
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean sean_trenwell_condition_votedVictorCurrentElection (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
{
|
|
int electionNum = getIntObjVar(npc, "bestine.electionStarted");
|
|
if ( hasObjVar(player, "bestine.votedVictor" ) )
|
|
{
|
|
int electionPlayerIsIn = getIntObjVar(player, "bestine.votedVictor");
|
|
if ( electionPlayerIsIn >= electionNum)
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void sean_trenwell_action__defaultAction (obj_id player, obj_id npc)
|
|
{
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void sean_trenwell_action_giveDiskandJoinCampaign (obj_id player, obj_id npc)
|
|
{
|
|
int electionNum = getIntObjVar(npc, "bestine.electionStarted");
|
|
setObjVar(player, "bestine.campaign", electionNum);
|
|
setObjVar( player, "bestine.opponent", electionNum);
|
|
|
|
if ( hasObjVar(player, "bestine.rival") )
|
|
removeObjVar(player, "bestine.rival");
|
|
|
|
if ( hasObjVar(player, "bestine.camp") )
|
|
removeObjVar(player, "bestine.camp");
|
|
|
|
if ( hasObjVar(player, "bestine.negquests") )
|
|
removeObjVar(player, "bestine.negquests");
|
|
|
|
if ( hasObjVar(player, "bestine.sean_noroom") )
|
|
removeObjVar(player, "bestine.sean_noroom");
|
|
|
|
if ( hasObjVar( player, "bestine.searched") )
|
|
removeObjVar( player, "bestine.searched");
|
|
|
|
string DISK = "object/tangible/loot/quest/sean_campaign_disk.iff";
|
|
if (isIdValid(player))
|
|
{
|
|
obj_id playerInv = getObjectInSlot( player, "inventory" );
|
|
if(isIdValid(playerInv))
|
|
{
|
|
obj_id item = createObject( DISK, playerInv, "" );
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void sean_trenwell_action_NQuests (obj_id player, obj_id npc)
|
|
{
|
|
int electionNum = getIntObjVar(npc, "bestine.electionStarted");
|
|
setObjVar( player, "bestine.negativeq", electionNum );
|
|
removeObjVar(player, "bestine.rival");
|
|
|
|
if ( hasObjVar(player, "bestine.searched") )
|
|
removeObjVar(player, "bestine.searched");
|
|
|
|
if ( hasObjVar(player, "bestine.already_searched") )
|
|
removeObjVar(player, "bestine.already_searched");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void sean_trenwell_action_NoRoomObj (obj_id player, obj_id npc)
|
|
{
|
|
int electionNum = getIntObjVar(npc, "bestine.electionStarted");
|
|
setObjVar( player, "bestine.sean_noroom", electionNum);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void sean_trenwell_action_noRoomForHistoryReward (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar(player, "bestine.sean_historyreward_noroom", 1);
|
|
removeObjVar(player, "bestine.destroyed");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void sean_trenwell_action_GiveMainReward (obj_id player, obj_id npc)
|
|
{
|
|
int electionNum = 1;
|
|
if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
electionNum = getIntObjVar(npc, "bestine.electionStarted") - 1;
|
|
|
|
else if ( hasObjVar(npc, "bestine.electionEnded") )
|
|
electionNum = getIntObjVar(npc, "bestine.electionEnded");
|
|
|
|
|
|
string commonReward = "object/tangible/furniture/all/bestine_quest_statue.iff";
|
|
string mediumReward = "object/tangible/furniture/modern/bestine_quest_rug.iff";
|
|
string rareReward = "object/tangible/painting/bestine_quest_painting.iff";
|
|
|
|
string reward = commonReward;
|
|
int chance = rand(1, 5000);
|
|
if (chance == 1)
|
|
{
|
|
reward = rareReward;
|
|
}
|
|
if ( (chance >= 2) && (chance <= 2500) )
|
|
{
|
|
reward = mediumReward;
|
|
}
|
|
if (isIdValid(player))
|
|
{
|
|
obj_id playerInv = getObjectInSlot( player, "inventory" );
|
|
if(isIdValid(playerInv))
|
|
{
|
|
obj_id item = createObject( reward, playerInv, "" );
|
|
if(isIdValid(item))
|
|
{
|
|
setObjVar(player, "bestine.rewardgivensean", electionNum);
|
|
removeObjVar(player, "bestine.votedSean");
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void sean_trenwell_action_Hquest (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar( player, "bestine.hquest", true);
|
|
|
|
if ( hasObjVar(player, "bestine.completedSeanHistroyQuest") )
|
|
removeObjVar(player, "bestine.completedSeanHistroyQuest");
|
|
|
|
location site = new location(-758, 10, -3907);
|
|
obj_id waypoint = createWaypointInDatapad(player, site);
|
|
setWaypointName(waypoint, "Historical Site");
|
|
setWaypointColor( waypoint, "blue" );
|
|
setWaypointVisible( waypoint, true );
|
|
setWaypointActive( waypoint, true );
|
|
setObjVar(player, "bestine.historianWaypoint", waypoint);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void sean_trenwell_action_mess (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar( player, "bestine.mess", true );
|
|
removeObjVar(player, "bestine.itemfound");
|
|
location contact = new location(-1448, 10, -3765);
|
|
obj_id waypoint = createWaypointInDatapad(player, contact);
|
|
setWaypointName(waypoint, "Sean's Contact");
|
|
setWaypointColor( waypoint, "blue" );
|
|
setWaypointVisible( waypoint, true );
|
|
setWaypointActive( waypoint, true );
|
|
setObjVar(player, "bestine.contactWaypoint", waypoint);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void sean_trenwell_action_GiveHistoryReward (obj_id player, obj_id npc)
|
|
{
|
|
string REWARD = "object/tangible/painting/bestine_history_quest_painting.iff";
|
|
if (isIdValid(player))
|
|
{
|
|
obj_id playerInv = getObjectInSlot( player, "inventory" );
|
|
if(isIdValid(playerInv))
|
|
{
|
|
obj_id item = createObject( REWARD, playerInv, "" );
|
|
if(isIdValid(item))
|
|
{
|
|
if ( hasObjVar(player, "bestine.destroyed") )
|
|
removeObjVar( player, "bestine.destroyed");
|
|
|
|
if ( hasObjVar(player, "bestine.sean_historyreward_noroom") )
|
|
removeObjVar(player, "bestine.sean_historyreward_noroom");
|
|
|
|
int currentQuestNum = 0;
|
|
if ( hasObjVar(npc, "bestine.electionStarted") )
|
|
currentQuestNum = getIntObjVar(npc, "bestine.electionStarted") - 1;
|
|
else if ( hasObjVar(npc, "bestine.electionEnded") )
|
|
currentQuestNum = getIntObjVar(npc, "bestine.electionEnded");
|
|
|
|
setObjVar(player, "bestine.completedSeanHistroyQuest", currentQuestNum);
|
|
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void sean_trenwell_action_removeNoroomObjVar (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(player, "bestine.sean_noroom") )
|
|
removeObjVar(player, "bestine.sean_noroom");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void sean_trenwell_action_resetMessWaypoint (obj_id player, obj_id npc)
|
|
{
|
|
if ( !hasObjVar(player, "bestine.contactWaypoint") )
|
|
{
|
|
location contact = new location(-1448, 10, -3765);
|
|
obj_id waypoint = createWaypointInDatapad(player, contact);
|
|
setWaypointName(waypoint, "Sean's Contact");
|
|
setWaypointColor( waypoint, "blue" );
|
|
setWaypointVisible( waypoint, true );
|
|
setWaypointActive( waypoint, true );
|
|
setObjVar(player, "bestine.contactWaypoint", waypoint);
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void sean_trenwell_action_removeHquest (obj_id player, obj_id npc)
|
|
{
|
|
removeObjVar( player, "bestine.hquest");
|
|
|
|
if( hasObjVar(player, "bestine.historianWaypoint") )
|
|
{
|
|
obj_id waypoint = getObjIdObjVar(player, "bestine.historianWaypoint");
|
|
|
|
if ( isIdValid(waypoint) )
|
|
destroyWaypointInDatapad(waypoint, player);
|
|
|
|
removeObjVar(player, "bestine.historianWaypoint");
|
|
}
|
|
}
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "npc.conversation.sean_trenwell");
|
|
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo)
|
|
{
|
|
int menu = menuInfo.addRootMenu (menu_info_types.CONVERSE_START, null);
|
|
menu_info_data menuInfoData = menuInfo.getMenuItemById (menu);
|
|
menuInfoData.setServerNotify (false);
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnIncapacitated (obj_id killer)
|
|
{
|
|
clearCondition (self, CONDITION_CONVERSABLE);
|
|
detachScript (self, "npc.conversation.sean_trenwell");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnStartNpcConversation (obj_id player)
|
|
{
|
|
if (ai_lib.isInCombat (self) || ai_lib.isInCombat (player))
|
|
return SCRIPT_OVERRIDE;
|
|
|
|
//-- [NOTE] The player choose to give the disk to the Hutt informant instead of the contact Sean sent him/her to. This is after the player has gone to the crash site and found the disk, took it back to Sean. He wants it destroyed because it has information that would ruin his career.
|
|
if (sean_trenwell_condition_Hutt (player, self))
|
|
{
|
|
//-- NPC: How could you give that disk to someone working for Jabba the Hutt??!! My career is in serious jeopardy because of you! I knew I couldn't trust you. Get out of here!!
|
|
string_id message = new string_id (c_stringFile, "s_2810bcdc");
|
|
chat.chat (self, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition_NoRoom (player, self))
|
|
{
|
|
//-- NPC: You were here before, weren't you? About joining my campaign?
|
|
string_id message = new string_id (c_stringFile, "s_17a8ddce");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, that was me.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I've thought about it and no longer want to join your campaign.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ff7aeed7");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5ef87080");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 2);
|
|
|
|
npcStartConversation (player, self, "sean_trenwell", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] The player joined Sean's campaign and this is the general response from Sean when the player has the 'campaign' objvar.
|
|
if (sean_trenwell_condition_Campaign (player, self))
|
|
{
|
|
//-- NPC: It's nice to see you again! How did the voting go?
|
|
string_id message = new string_id (c_stringFile, "s_47a2ec4d");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: It went well. I voted for you.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I'm going to get going.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I can't find evidence.
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d1f385de");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e7ffff2");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8b63bfe1");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 6);
|
|
|
|
npcStartConversation (player, self, "sean_trenwell", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] Sean sent the player out on the negative quests to tarnish Victor's reputation.
|
|
if (sean_trenwell_condition_NegquestsObj (player, self))
|
|
{
|
|
//-- NPC: Ahh, welcome. I remember sending you out to find dirt on that no-good Victor. Well, did you find any?
|
|
string_id message = new string_id (c_stringFile, "s_181e49f6");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, I did. Here you are.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition_hasEvidence (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, not yet.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_338ea1e3");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_da9a29e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 11);
|
|
|
|
npcStartConversation (player, self, "sean_trenwell", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] Sean laments that the player has joined Victor's campaign instead of his. In this string, Sean will give the player an option to join the capaign and explains that she/he has to do negative quests in order to join.
|
|
if (sean_trenwell_condition_RivalObj (player, self))
|
|
{
|
|
//-- NPC: I'm sorry to see that another one of Bestine's citizens prefers Defense over Commerce. I'm sure he tricked you into joining his campaign.
|
|
string_id message = new string_id (c_stringFile, "s_68788cf5");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I want to join your campaign.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I gotta go.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b826b85a");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82e87c1c");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 17);
|
|
|
|
npcStartConversation (player, self, "sean_trenwell", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
if (sean_trenwell_condition_inOffice (player, self))
|
|
{
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
string_id message = new string_id (c_stringFile, "s_7f70fe38");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You said to return for a reward. For destroying that disk.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition_hasNoRoomHistoryReward (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I spoke to your contact about the disk from the crash site.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition_Diskdestroyed (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: What was I supposed to do with this disk from the crash site?
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition_Mess1 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: I've searched the crash site.
|
|
boolean hasResponse3 = false;
|
|
if (sean_trenwell_condition_Itemfound (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: Who do I let screen anything I find at the crash site?
|
|
boolean hasResponse4 = false;
|
|
if (sean_trenwell_condition_find1 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: What did you want me to do at the crash site?
|
|
boolean hasResponse5 = false;
|
|
if (sean_trenwell_condition_hquestObj (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: Do you have any special plans for while you're in office?
|
|
boolean hasResponse6 = false;
|
|
if (sean_trenwell_condition_tellAboutHistoryQuest (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: I voted for you in this election.
|
|
boolean hasResponse7 = false;
|
|
if (sean_trenwell_condition_votedSeanCurrentElection (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
//-- PLAYER: I hear you're up for re-election. How's the campaign going?
|
|
boolean hasResponse8 = false;
|
|
if (sean_trenwell_condition_inOffice_newElection (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse8 = true;
|
|
}
|
|
|
|
//-- PLAYER: Now that you're in office, I've come to ask about the reward you promised.
|
|
boolean hasResponse9 = false;
|
|
if (sean_trenwell_condition_checkForVoteReward (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse9 = true;
|
|
}
|
|
|
|
//-- PLAYER: Just thought I'd see what the local government was up to.
|
|
boolean hasResponse10 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse10 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_9fa98668");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a3734170");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_49368633");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_238ef4f6");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a068d8f2");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_35bc21ba");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a0bba8c");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_811e4ed1");
|
|
|
|
if (hasResponse8)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_3ab76f84");
|
|
|
|
if (hasResponse9)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_7eabd120");
|
|
|
|
if (hasResponse10)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_81f9db80");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 22);
|
|
|
|
npcStartConversation (player, self, "sean_trenwell", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition_votedSeanCurrentElection (player, self))
|
|
{
|
|
//-- NPC: I hear you spoke to the governor and voted for me. I appreciate that! When the election is over, if I win I'd like to thank you for your support. Come back and speak to me if that happens.
|
|
string_id message = new string_id (c_stringFile, "s_64c62370");
|
|
chat.chat (self, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition_votedVictorCurrentElection (player, self))
|
|
{
|
|
//-- NPC: So, you voted for my rival, did you? I see. I guess that's the point of having an open election. I'm disappointed, but that's really all I can say.
|
|
string_id message = new string_id (c_stringFile, "s_4c2afce6");
|
|
chat.chat (self, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] Sean didn't win but is going up for re-election in the upcoming election.
|
|
if (sean_trenwell_condition_notInOffice_noElection (player, self))
|
|
{
|
|
//-- NPC: Well, I lost the election, but there's always next time. I still have many good ideas for Bestine. You should come back when the next election starts. In fact, the townsfolk usually talk about things like this when they happen. Be sure to talk to them.
|
|
string_id message = new string_id (c_stringFile, "s_6718926b");
|
|
chat.chat (self, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] Status: Not in office, but running in the current election that is going on. This is a general introduction.
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: All this talk about the Tuskens, I can't-Oh! I didn't notice that you had entered my office. Welcome! It definitely is a horrible day outside, unbearably hot indeed. How may I help you?
|
|
string_id message = new string_id (c_stringFile, "s_52a14d49");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I want to hear about your proposed changes.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: You mentioned something about the Tuskens...
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm here to vote for you.
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go. Sorry!
|
|
boolean hasResponse3 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6ba0df1d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_1ee4d2a");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6a9a15d");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bab1f93a");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 53);
|
|
|
|
npcStartConversation (player, self, "sean_trenwell", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnStartNpcConversation were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnNpcConversationResponse (string conversationId, obj_id player, string_id response)
|
|
{
|
|
if (conversationId != "sean_trenwell")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
int branchId = getIntObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You were here before, weren't you? About joining my campaign?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, that was me.
|
|
if (branchId == 2 && response == "s_ff7aeed7")
|
|
{
|
|
//-- [NOTE] The player didn't have enough room in his/her inventory to receive the campaign disk.
|
|
if (!sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
sean_trenwell_action_giveDiskandJoinCampaign (player, self);
|
|
|
|
//-- NPC: I knew you would! You seem like the sensible type. If you have questions, you can refer to the disk I just gave you. You'll need to find evidence. I can't think of anyone right now off the top of my head. I'm sure my secretary would know. Be sure to ask her on your way out.
|
|
string_id message = new string_id (c_stringFile, "s_51c418fd");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
//-- NPC: Thanks for the interest, but it looks like you still don't have enough room to receive the disk. You'll need to come back when you do.
|
|
string_id message = new string_id (c_stringFile, "s_8784f1db");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You were here before, weren't you? About joining my campaign?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You were here before, weren't you? About joining my campaign?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I've thought about it and no longer want to join your campaign.
|
|
if (branchId == 2 && response == "s_5ef87080")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
sean_trenwell_action_removeNoroomObjVar (player, self);
|
|
|
|
//-- NPC: I see. Well, I suppose these things happen. I'm disappointed, but you're free to make whatever mistakes you wish.
|
|
string_id message = new string_id (c_stringFile, "s_ee8c0e93");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You were here before, weren't you? About joining my campaign?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] The player joined Sean's campaign and this is the general response from Sean when the player has the 'campaign' objvar.
|
|
//-- NPC: It's nice to see you again! How did the voting go?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: It went well. I voted for you.
|
|
if (branchId == 6 && response == "s_d1f385de")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition_checkForVoteReward (player, self))
|
|
{
|
|
//-- NPC: Excellent! I appreciate your support. And to take that further, if I win come back and talk to me. I like to reward those who contribute to my success.
|
|
string_id message = new string_id (c_stringFile, "s_7fa991c4");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!sean_trenwell_condition_checkForVoteReward (player, self))
|
|
{
|
|
//-- NPC: Hmm... you did? Really? Hmm... well, thanks. I think.
|
|
string_id message = new string_id (c_stringFile, "s_70b3691e");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'It's nice to see you again! How did the voting go?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] The player joined Sean's campaign and this is the general response from Sean when the player has the 'campaign' objvar.
|
|
//-- NPC: It's nice to see you again! How did the voting go?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think I'm going to get going.
|
|
if (branchId == 6 && response == "s_e7ffff2")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Oh? So soon? Okay. I should get back to work anyway!
|
|
string_id message = new string_id (c_stringFile, "s_a17fdb9a");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'It's nice to see you again! How did the voting go?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] The player joined Sean's campaign and this is the general response from Sean when the player has the 'campaign' objvar.
|
|
//-- NPC: It's nice to see you again! How did the voting go?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I can't find evidence.
|
|
if (branchId == 6 && response == "s_8b63bfe1")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Really? I thought my secretary knew how to get it for sure. I really think you should speak with her again.
|
|
string_id message = new string_id (c_stringFile, "s_bb6b1f4b");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'It's nice to see you again! How did the voting go?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean sent the player out on the negative quests to tarnish Victor's reputation.
|
|
//-- NPC: Ahh, welcome. I remember sending you out to find dirt on that no-good Victor. Well, did you find any?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, I did. Here you are.
|
|
if (branchId == 11 && response == "s_338ea1e3")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: This is excellent! I can't believe he would be so daft to do such things! You can now join my campaign. That is what you wanted... right?
|
|
string_id message = new string_id (c_stringFile, "s_a0d033e3");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, of course!
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, I changed my mind.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_641d98d5");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_fe8dd35a");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 12);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ahh, welcome. I remember sending you out to find dirt on that no-good Victor. Well, did you find any?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean sent the player out on the negative quests to tarnish Victor's reputation.
|
|
//-- NPC: Ahh, welcome. I remember sending you out to find dirt on that no-good Victor. Well, did you find any?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, not yet.
|
|
if (branchId == 11 && response == "s_da9a29e9")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Ah, well return when you do. You'll need to go and talk to my secretary if you need more information.
|
|
string_id message = new string_id (c_stringFile, "s_aa0406b");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ahh, welcome. I remember sending you out to find dirt on that no-good Victor. Well, did you find any?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: This is excellent! I can't believe he would be so daft to do such things! You can now join my campaign. That is what you wanted... right?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, of course!
|
|
if (branchId == 12 && response == "s_641d98d5")
|
|
{
|
|
//-- [NOTE]
|
|
if (!sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
sean_trenwell_action_giveDiskandJoinCampaign (player, self);
|
|
|
|
//-- NPC: I knew you would! You seem like the sensible type. If you have questions, you can refer to the disk I just gave you. You'll need to find evidence. I can't think of anyone right now off the top of my head. I'm sure my secretary would know. Be sure to ask her on your way out.
|
|
string_id message = new string_id (c_stringFile, "s_51c418fd");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
sean_trenwell_action_NoRoomObj (player, self);
|
|
|
|
//-- NPC: Thanks for the interest! I guess you don't have enough room to receive the disk, though. You'll need to come back when you do.
|
|
string_id message = new string_id (c_stringFile, "s_9adf6cf2");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'This is excellent! I can't believe he would be so daft to do such things! You can now join my campaign. That is what you wanted... right?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: This is excellent! I can't believe he would be so daft to do such things! You can now join my campaign. That is what you wanted... right?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, I changed my mind.
|
|
if (branchId == 12 && response == "s_fe8dd35a")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Oh. Well, come back if you discover the error of your ways.
|
|
string_id message = new string_id (c_stringFile, "s_a4a25b0f");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'This is excellent! I can't believe he would be so daft to do such things! You can now join my campaign. That is what you wanted... right?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean laments that the player has joined Victor's campaign instead of his. In this string, Sean will give the player an option to join the capaign and explains that she/he has to do negative quests in order to join.
|
|
//-- NPC: I'm sorry to see that another one of Bestine's citizens prefers Defense over Commerce. I'm sure he tricked you into joining his campaign.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want to join your campaign.
|
|
if (branchId == 17 && response == "s_b826b85a")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: It's not so easy. You can't just join my campaign with the drop of a hat. To prove yourself, you'll need to dig up some dirt on that no-good Victor. Speak with my secretary for all the details. What do you think?
|
|
string_id message = new string_id (c_stringFile, "s_67295aa1");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll do it!
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, I don't think so.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a8b339fd");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_1e5ba263");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 18);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I'm sorry to see that another one of Bestine's citizens prefers Defense over Commerce. I'm sure he tricked you into joining his campaign.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean laments that the player has joined Victor's campaign instead of his. In this string, Sean will give the player an option to join the capaign and explains that she/he has to do negative quests in order to join.
|
|
//-- NPC: I'm sorry to see that another one of Bestine's citizens prefers Defense over Commerce. I'm sure he tricked you into joining his campaign.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I gotta go.
|
|
if (branchId == 17 && response == "s_82e87c1c")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Good bye, then.
|
|
string_id message = new string_id (c_stringFile, "s_bad1d1bb");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I'm sorry to see that another one of Bestine's citizens prefers Defense over Commerce. I'm sure he tricked you into joining his campaign.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: It's not so easy. You can't just join my campaign with the drop of a hat. To prove yourself, you'll need to dig up some dirt on that no-good Victor. Speak with my secretary for all the details. What do you think?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'll do it!
|
|
if (branchId == 18 && response == "s_a8b339fd")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
sean_trenwell_action_NQuests (player, self);
|
|
|
|
//-- NPC: Excellent! Now, run along... remember to speak with my secretary.
|
|
string_id message = new string_id (c_stringFile, "s_2bc6a2f8");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'It's not so easy. You can't just join my campaign with the drop of a hat. To prove yourself, you'll need to dig up some dirt on that no-good Victor. Speak with my secretary for all the details. What do you think?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: It's not so easy. You can't just join my campaign with the drop of a hat. To prove yourself, you'll need to dig up some dirt on that no-good Victor. Speak with my secretary for all the details. What do you think?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, I don't think so.
|
|
if (branchId == 18 && response == "s_1e5ba263")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Suit yourself.
|
|
string_id message = new string_id (c_stringFile, "s_82b273a8");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'It's not so easy. You can't just join my campaign with the drop of a hat. To prove yourself, you'll need to dig up some dirt on that no-good Victor. Speak with my secretary for all the details. What do you think?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You said to return for a reward. For destroying that disk.
|
|
if (branchId == 22 && response == "s_9fa98668")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
sean_trenwell_action_noRoomForHistoryReward (player, self);
|
|
|
|
//-- NPC: I'm glad you're back, but you still don't have room. You need to have space in your inventory. Please come speak to me when you do.
|
|
string_id message = new string_id (c_stringFile, "s_64f4dd40");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
sean_trenwell_action_GiveHistoryReward (player, self);
|
|
|
|
//-- NPC: Ah good to see you again. Please, take this as a token of my gratitude.
|
|
string_id message = new string_id (c_stringFile, "s_b893398e");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I spoke to your contact about the disk from the crash site.
|
|
if (branchId == 22 && response == "s_a3734170")
|
|
{
|
|
//-- [NOTE] The player gave the disk to Sean's contact instead of the Hutt informant.
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: And has the disk been dealt with?
|
|
string_id message = new string_id (c_stringFile, "s_7fc36aab");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, the disk has been taken care of.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a907268e");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 25);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What was I supposed to do with this disk from the crash site?
|
|
if (branchId == 22 && response == "s_49368633")
|
|
{
|
|
//-- [NOTE] The player still has the disk in his/her inventory and talked to Sean again before doing anything with it.
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Please! Take the disk out of here! Take it to my contact. Here, I'll give you the location again. Get rid of it quickly.
|
|
string_id message = new string_id (c_stringFile, "s_5ae436c2");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I've searched the crash site.
|
|
if (branchId == 22 && response == "s_238ef4f6")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Well returned! Did you find anything?
|
|
string_id message = new string_id (c_stringFile, "s_2e38174d");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, I did.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, unfortunately. Nothing of use.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b30bd73c");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c8a36ac7");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 29);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Who do I let screen anything I find at the crash site?
|
|
if (branchId == 22 && response == "s_a068d8f2")
|
|
{
|
|
//-- [NOTE] The player came back to Sean from the crash site after having spoken with the historian assistant at the site. Does the player have the disk? It is unknown. Player needs to get the disk and talk with the historian first.
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: My historian, who's out at the crash site. She needs to screen and catalog whatever you find. Go and speak with her.
|
|
string_id message = new string_id (c_stringFile, "s_ca646df4");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What did you want me to do at the crash site?
|
|
if (branchId == 22 && response == "s_35bc21ba")
|
|
{
|
|
//-- [NOTE] Sean has sent the p;layer out and has returned without the disk from the crash site. Sean will send the player back out.
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: See if you can find anything of value. Did you speak to my historian? Speak to her when you get to the site.
|
|
string_id message = new string_id (c_stringFile, "s_d349c913");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay, I'll do that.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No thanks, I'd rather not. I'm done with this.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_1059c36e");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_3ba540c");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 35);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Do you have any special plans for while you're in office?
|
|
if (branchId == 22 && response == "s_6a0bba8c")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Indeed I do! History is a passion of mine, especially since my ancestors were among the original settlers of Bestine. I've gotten enough funding to hire a historian. We made an exciting new discovery just last week! A terrible desert storm came through and kicked up loose sand and beneath was a wrecked ship. We think it may be the Red-Sin Valon, the vessel used to transport the early settlers to Tatooine. It's so exciting!
|
|
string_id message = new string_id (c_stringFile, "s_dab387e8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I suppose.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_4ff8cd88");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 38);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I voted for you in this election.
|
|
if (branchId == 22 && response == "s_811e4ed1")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I heard and greatly appreciate it! When the election is over, if I win I'd like to thank you for your support. Come back and speak to me if that happens.
|
|
string_id message = new string_id (c_stringFile, "s_f1b007b2");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I hear you're up for re-election. How's the campaign going?
|
|
if (branchId == 22 && response == "s_3ab76f84")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: That's correct and so far our efforts seem to be going well.
|
|
string_id message = new string_id (c_stringFile, "s_c6d1b21");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I want to hear about your proposed changes.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: You mentioned something about the Tuskens...
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm here to vote for you.
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go. Sorry!
|
|
boolean hasResponse3 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6ba0df1d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_1ee4d2a");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6a9a15d");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bab1f93a");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 53);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Now that you're in office, I've come to ask about the reward you promised.
|
|
if (branchId == 22 && response == "s_7eabd120")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition_CheckRewardGiven (player, self))
|
|
{
|
|
//-- NPC: Reward? I think not. You already received one.
|
|
string_id message = new string_id (c_stringFile, "s_c27445f0");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
sean_trenwell_action_GiveMainReward (player, self);
|
|
|
|
//-- NPC: Oh yeah! Again I thank you for the help and for your support, I've prepared a little gift for you.
|
|
string_id message = new string_id (c_stringFile, "s_f81b7edd");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
//-- NPC: I have a nice reward for you, but you don't seem to have room to take it. Please return after making some room in your inventory.
|
|
string_id message = new string_id (c_stringFile, "s_88b2f5bd");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has won and proceeds to give the player a history quest. Also, the player can request for his reward for voting for Sean.
|
|
//-- NPC: Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Just thought I'd see what the local government was up to.
|
|
if (branchId == 22 && response == "s_81f9db80")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Good for you. I always like to see people taking an interest in politics.
|
|
string_id message = new string_id (c_stringFile, "s_c1c018c3");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Now that I'm in office, I can finally set some of my ideas into action. The marketplace could definitely use some attention, and I should make sure everything at the museum is going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] The player gave the disk to Sean's contact instead of the Hutt informant.
|
|
//-- NPC: And has the disk been dealt with?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, the disk has been taken care of.
|
|
if (branchId == 25 && response == "s_a907268e")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
sean_trenwell_action_noRoomForHistoryReward (player, self);
|
|
|
|
//-- NPC: I'm grateful to you and would like to reward you, but you have no room in your inventory. Please, speak to me again when you've made some room.
|
|
string_id message = new string_id (c_stringFile, "s_2e05a27f");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
sean_trenwell_action_GiveHistoryReward (player, self);
|
|
|
|
//-- NPC: Finally! I'm so grateful to you. Please, take this as my token of eternal gratitude.
|
|
string_id message = new string_id (c_stringFile, "s_bc42a527");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'And has the disk been dealt with?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Well returned! Did you find anything?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, I did.
|
|
if (branchId == 29 && response == "s_b30bd73c")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What did you find? Can I see it? Does it mention my ancestor? Let me have it, please.
|
|
string_id message = new string_id (c_stringFile, "s_9d0c2f9e");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Here you are.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_81a382e3");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 30);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Well returned! Did you find anything?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Well returned! Did you find anything?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, unfortunately. Nothing of use.
|
|
if (branchId == 29 && response == "s_c8a36ac7")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Will you try again? I know there's something out there! Look more closely. I'll be waiting anxiously.
|
|
string_id message = new string_id (c_stringFile, "s_2d1057e6");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Well returned! Did you find anything?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What did you find? Can I see it? Does it mention my ancestor? Let me have it, please.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Here you are.
|
|
if (branchId == 30 && response == "s_81a382e3")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Oh no. This isn't good. If the governor finds out that I'm related to such a person, she may just kick me out of office. Here, take it back. Tell you what. If you find some way to destroy it, I'll give you something. Just... get rid of it!
|
|
string_id message = new string_id (c_stringFile, "s_8dc34668");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How?
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_fcf4d778");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 31);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What did you find? Can I see it? Does it mention my ancestor? Let me have it, please.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh no. This isn't good. If the governor finds out that I'm related to such a person, she may just kick me out of office. Here, take it back. Tell you what. If you find some way to destroy it, I'll give you something. Just... get rid of it!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How?
|
|
if (branchId == 31 && response == "s_fcf4d778")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
sean_trenwell_action_mess (player, self);
|
|
|
|
//-- NPC: I have a contact with whom you can meet. He has ways of destroying information. Please seek him out. And whatever you do, do not give it to anyone else! This is my career we're talking about here. You'll know where to find him.
|
|
string_id message = new string_id (c_stringFile, "s_5caf6cfd");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Oh no. This isn't good. If the governor finds out that I'm related to such a person, she may just kick me out of office. Here, take it back. Tell you what. If you find some way to destroy it, I'll give you something. Just... get rid of it!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has sent the p;layer out and has returned without the disk from the crash site. Sean will send the player back out.
|
|
//-- NPC: See if you can find anything of value. Did you speak to my historian? Speak to her when you get to the site.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Okay, I'll do that.
|
|
if (branchId == 35 && response == "s_1059c36e")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Excellent. If you find anything, be sure to let my historian screen it. Then report back to me.
|
|
string_id message = new string_id (c_stringFile, "s_f47244aa");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'See if you can find anything of value. Did you speak to my historian? Speak to her when you get to the site.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Sean has sent the p;layer out and has returned without the disk from the crash site. Sean will send the player back out.
|
|
//-- NPC: See if you can find anything of value. Did you speak to my historian? Speak to her when you get to the site.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No thanks, I'd rather not. I'm done with this.
|
|
if (branchId == 35 && response == "s_3ba540c")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
sean_trenwell_action_removeHquest (player, self);
|
|
|
|
//-- NPC: As you wish. I'm disappointed, but I understand how these things are.
|
|
string_id message = new string_id (c_stringFile, "s_75491d63");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'See if you can find anything of value. Did you speak to my historian? Speak to her when you get to the site.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Indeed I do! History is a passion of mine, especially since my ancestors were among the original settlers of Bestine. I've gotten enough funding to hire a historian. We made an exciting new discovery just last week! A terrible desert storm came through and kicked up loose sand and beneath was a wrecked ship. We think it may be the Red-Sin Valon, the vessel used to transport the early settlers to Tatooine. It's so exciting!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I suppose.
|
|
if (branchId == 38 && response == "s_4ff8cd88")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes. Anyway, lately we've experienced brutal attacks from the Sand People. My historian is having a hard time of it, and I'm not sure her efforts can continue. She doesn't possess a brawler's spirit or the skill of a marksman. She's just a scholar. It's depressing to think that our attempts to restore the Red-Sin Valon have been fruitless. Do you think you can help? You seem like an adventurer. Or am I wrong?
|
|
string_id message = new string_id (c_stringFile, "s_d485fca4");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You're wrong.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I am an adventurer!
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_9a679e7f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_1e35bbba");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 39);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Indeed I do! History is a passion of mine, especially since my ancestors were among the original settlers of Bestine. I've gotten enough funding to hire a historian. We made an exciting new discovery just last week! A terrible desert storm came through and kicked up loose sand and beneath was a wrecked ship. We think it may be the Red-Sin Valon, the vessel used to transport the early settlers to Tatooine. It's so exciting!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes. Anyway, lately we've experienced brutal attacks from the Sand People. My historian is having a hard time of it, and I'm not sure her efforts can continue. She doesn't possess a brawler's spirit or the skill of a marksman. She's just a scholar. It's depressing to think that our attempts to restore the Red-Sin Valon have been fruitless. Do you think you can help? You seem like an adventurer. Or am I wrong?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You're wrong.
|
|
if (branchId == 39 && response == "s_9a679e7f")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Oh. That's unfortunate. If you know of an adventurer, please send him or her my way. It would really help me. Thank you.
|
|
string_id message = new string_id (c_stringFile, "s_61503fc8");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes. Anyway, lately we've experienced brutal attacks from the Sand People. My historian is having a hard time of it, and I'm not sure her efforts can continue. She doesn't possess a brawler's spirit or the skill of a marksman. She's just a scholar. It's depressing to think that our attempts to restore the Red-Sin Valon have been fruitless. Do you think you can help? You seem like an adventurer. Or am I wrong?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes. Anyway, lately we've experienced brutal attacks from the Sand People. My historian is having a hard time of it, and I'm not sure her efforts can continue. She doesn't possess a brawler's spirit or the skill of a marksman. She's just a scholar. It's depressing to think that our attempts to restore the Red-Sin Valon have been fruitless. Do you think you can help? You seem like an adventurer. Or am I wrong?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I am an adventurer!
|
|
if (branchId == 39 && response == "s_1e35bbba")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Just my luck! I could really use your help. The Red-Sin Valon find is phenomenal in of itself, but what if there's more? I want you to bring back any information you can. There must be some sort of log of the events surrounding the early settlement attempts. I'd really like for you to find it. Do you think you can do that?
|
|
string_id message = new string_id (c_stringFile, "s_a5cd533e");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Sounds like fun. I'll do it!
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, I can't.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b45b3794");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ac8d04c");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 41);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes. Anyway, lately we've experienced brutal attacks from the Sand People. My historian is having a hard time of it, and I'm not sure her efforts can continue. She doesn't possess a brawler's spirit or the skill of a marksman. She's just a scholar. It's depressing to think that our attempts to restore the Red-Sin Valon have been fruitless. Do you think you can help? You seem like an adventurer. Or am I wrong?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Just my luck! I could really use your help. The Red-Sin Valon find is phenomenal in of itself, but what if there's more? I want you to bring back any information you can. There must be some sort of log of the events surrounding the early settlement attempts. I'd really like for you to find it. Do you think you can do that?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sounds like fun. I'll do it!
|
|
if (branchId == 41 && response == "s_b45b3794")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
sean_trenwell_action_Hquest (player, self);
|
|
|
|
//-- NPC: Let me see your datapad for a second. I'll punch in the location for you. Return to me if you find anything. Be sure to speak with my historian at the site. Oh, and beware of the Tuskens!
|
|
string_id message = new string_id (c_stringFile, "s_78b31931");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Just my luck! I could really use your help. The Red-Sin Valon find is phenomenal in of itself, but what if there's more? I want you to bring back any information you can. There must be some sort of log of the events surrounding the early settlement attempts. I'd really like for you to find it. Do you think you can do that?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Just my luck! I could really use your help. The Red-Sin Valon find is phenomenal in of itself, but what if there's more? I want you to bring back any information you can. There must be some sort of log of the events surrounding the early settlement attempts. I'd really like for you to find it. Do you think you can do that?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, I can't.
|
|
if (branchId == 41 && response == "s_2ac8d04c")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I understand. Maybe later, then.
|
|
string_id message = new string_id (c_stringFile, "s_dc13d9c7");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Just my luck! I could really use your help. The Red-Sin Valon find is phenomenal in of itself, but what if there's more? I want you to bring back any information you can. There must be some sort of log of the events surrounding the early settlement attempts. I'd really like for you to find it. Do you think you can do that?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: That's correct and so far our efforts seem to be going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want to hear about your proposed changes.
|
|
if (branchId == 45 && response == "s_6ba0df1d")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I am humbled by your request. Currently, Bestine's markets are inadequate. I have already completed the construction of one market place. If I win this election, I'll put my efforts into attracting new merchants to these areas to help Bestine's economy.
|
|
string_id message = new string_id (c_stringFile, "s_3a06f79e");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Continue.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_540ac7e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 54);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'That's correct and so far our efforts seem to be going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: That's correct and so far our efforts seem to be going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You mentioned something about the Tuskens...
|
|
if (branchId == 45 && response == "s_1ee4d2a")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!
|
|
string_id message = new string_id (c_stringFile, "s_df1ac18d");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I want to hear about your proposed changes.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm here to vote for you.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go. Sorry!
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6ba0df1d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6a9a15d");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bab1f93a");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 65);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'That's correct and so far our efforts seem to be going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: That's correct and so far our efforts seem to be going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm here to vote for you.
|
|
if (branchId == 45 && response == "s_d6a9a15d")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Excellent news! How does the process go... Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
string_id message = new string_id (c_stringFile, "s_a7627a7");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Continue.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_540ac7e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 72);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'That's correct and so far our efforts seem to be going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: That's correct and so far our efforts seem to be going well.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have to go. Sorry!
|
|
if (branchId == 45 && response == "s_bab1f93a")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I wish you well. Come back soon!
|
|
string_id message = new string_id (c_stringFile, "s_91cc7d0");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'That's correct and so far our efforts seem to be going well.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Status: Not in office, but running in the current election that is going on. This is a general introduction.
|
|
//-- NPC: All this talk about the Tuskens, I can't-Oh! I didn't notice that you had entered my office. Welcome! It definitely is a horrible day outside, unbearably hot indeed. How may I help you?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want to hear about your proposed changes.
|
|
if (branchId == 53 && response == "s_6ba0df1d")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I am humbled by your request. Currently, Bestine's markets are inadequate. I have already completed the construction of one market place. If I win this election, I'll put my efforts into attracting new merchants to these areas to help Bestine's economy.
|
|
string_id message = new string_id (c_stringFile, "s_3a06f79e");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Continue.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_540ac7e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 54);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'All this talk about the Tuskens, I can't-Oh! I didn't notice that you had entered my office. Welcome! It definitely is a horrible day outside, unbearably hot indeed. How may I help you?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Status: Not in office, but running in the current election that is going on. This is a general introduction.
|
|
//-- NPC: All this talk about the Tuskens, I can't-Oh! I didn't notice that you had entered my office. Welcome! It definitely is a horrible day outside, unbearably hot indeed. How may I help you?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You mentioned something about the Tuskens...
|
|
if (branchId == 53 && response == "s_1ee4d2a")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!
|
|
string_id message = new string_id (c_stringFile, "s_df1ac18d");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I want to hear about your proposed changes.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm here to vote for you.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go. Sorry!
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6ba0df1d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6a9a15d");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bab1f93a");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 65);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'All this talk about the Tuskens, I can't-Oh! I didn't notice that you had entered my office. Welcome! It definitely is a horrible day outside, unbearably hot indeed. How may I help you?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Status: Not in office, but running in the current election that is going on. This is a general introduction.
|
|
//-- NPC: All this talk about the Tuskens, I can't-Oh! I didn't notice that you had entered my office. Welcome! It definitely is a horrible day outside, unbearably hot indeed. How may I help you?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm here to vote for you.
|
|
if (branchId == 53 && response == "s_d6a9a15d")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Excellent news! How does the process go... Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
string_id message = new string_id (c_stringFile, "s_a7627a7");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Continue.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_540ac7e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 72);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'All this talk about the Tuskens, I can't-Oh! I didn't notice that you had entered my office. Welcome! It definitely is a horrible day outside, unbearably hot indeed. How may I help you?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] Status: Not in office, but running in the current election that is going on. This is a general introduction.
|
|
//-- NPC: All this talk about the Tuskens, I can't-Oh! I didn't notice that you had entered my office. Welcome! It definitely is a horrible day outside, unbearably hot indeed. How may I help you?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have to go. Sorry!
|
|
if (branchId == 53 && response == "s_bab1f93a")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I wish you well. Come back soon!
|
|
string_id message = new string_id (c_stringFile, "s_91cc7d0");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'All this talk about the Tuskens, I can't-Oh! I didn't notice that you had entered my office. Welcome! It definitely is a horrible day outside, unbearably hot indeed. How may I help you?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I am humbled by your request. Currently, Bestine's markets are inadequate. I have already completed the construction of one market place. If I win this election, I'll put my efforts into attracting new merchants to these areas to help Bestine's economy.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Continue.
|
|
if (branchId == 54 && response == "s_540ac7e9")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.
|
|
string_id message = new string_id (c_stringFile, "s_8bdcb5a3");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You mentioned something about the Tuskens.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm here to vote for you.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go. Sorry!
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_f2b0fbc2");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6a9a15d");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bab1f93a");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 55);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I am humbled by your request. Currently, Bestine's markets are inadequate. I have already completed the construction of one market place. If I win this election, I'll put my efforts into attracting new merchants to these areas to help Bestine's economy.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You mentioned something about the Tuskens.
|
|
if (branchId == 55 && response == "s_f2b0fbc2")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!
|
|
string_id message = new string_id (c_stringFile, "s_df1ac18d");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I want to hear about your proposed changes.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm here to vote for you.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go. Sorry!
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6ba0df1d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6a9a15d");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bab1f93a");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 56);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm here to vote for you.
|
|
if (branchId == 55 && response == "s_d6a9a15d")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
string_id message = new string_id (c_stringFile, "s_d15b93e5");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Continue.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_540ac7e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 72);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have to go. Sorry!
|
|
if (branchId == 55 && response == "s_bab1f93a")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I wish you well. Come back soon!
|
|
string_id message = new string_id (c_stringFile, "s_91cc7d0");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want to hear about your proposed changes.
|
|
if (branchId == 56 && response == "s_6ba0df1d")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I am humbled by your request. Currently, Bestine's markets are inadequate. I have already completed the construction of one market place. If I win this election, I'll put my efforts into attracting new merchants to these areas to help Bestine's economy. Perhaps it will bring about new schematics for our crafters.
|
|
string_id message = new string_id (c_stringFile, "s_928992d9");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Continue.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_540ac7e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 57);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm here to vote for you.
|
|
if (branchId == 56 && response == "s_d6a9a15d")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
string_id message = new string_id (c_stringFile, "s_d15b93e5");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Continue.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_540ac7e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 72);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have to go. Sorry!
|
|
if (branchId == 56 && response == "s_bab1f93a")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I wish you well. Come back soon!
|
|
string_id message = new string_id (c_stringFile, "s_91cc7d0");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I am humbled by your request. Currently, Bestine's markets are inadequate. I have already completed the construction of one market place. If I win this election, I'll put my efforts into attracting new merchants to these areas to help Bestine's economy. Perhaps it will bring about new schematics for our crafters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Continue.
|
|
if (branchId == 57 && response == "s_540ac7e9")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I plan to feature the culture of this area. I intend to hire historians to uncover the history of Bestine. I would also like to see more funding for the museum so that we can bring more artwork to our city. This would give artisans a chance to place their creations on display and share them with a larger audience.
|
|
string_id message = new string_id (c_stringFile, "s_91135631");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm here to vote for you.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go. Sorry!
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6a9a15d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bab1f93a");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 58);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I am humbled by your request. Currently, Bestine's markets are inadequate. I have already completed the construction of one market place. If I win this election, I'll put my efforts into attracting new merchants to these areas to help Bestine's economy. Perhaps it will bring about new schematics for our crafters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I plan to feature the culture of this area. I intend to hire historians to uncover the history of Bestine. I would also like to see more funding for the museum so that we can bring more artwork to our city. This would give artisans a chance to place their creations on display and share them with a larger audience.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm here to vote for you.
|
|
if (branchId == 58 && response == "s_d6a9a15d")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
string_id message = new string_id (c_stringFile, "s_d15b93e5");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Continue.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_540ac7e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 72);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I plan to feature the culture of this area. I intend to hire historians to uncover the history of Bestine. I would also like to see more funding for the museum so that we can bring more artwork to our city. This would give artisans a chance to place their creations on display and share them with a larger audience.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I plan to feature the culture of this area. I intend to hire historians to uncover the history of Bestine. I would also like to see more funding for the museum so that we can bring more artwork to our city. This would give artisans a chance to place their creations on display and share them with a larger audience.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have to go. Sorry!
|
|
if (branchId == 58 && response == "s_bab1f93a")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I wish you well. Come back soon!
|
|
string_id message = new string_id (c_stringFile, "s_91cc7d0");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I plan to feature the culture of this area. I intend to hire historians to uncover the history of Bestine. I would also like to see more funding for the museum so that we can bring more artwork to our city. This would give artisans a chance to place their creations on display and share them with a larger audience.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Continue.
|
|
if (branchId == 59 && response == "s_540ac7e9")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.
|
|
string_id message = new string_id (c_stringFile, "s_30eb7833");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Alright. I want to join your campaign.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I've changed my mind.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go.
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ef067f71");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c46daeb");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_dea56128");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 73);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Continue.
|
|
if (branchId == 61 && response == "s_540ac7e9")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.
|
|
string_id message = new string_id (c_stringFile, "s_30eb7833");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Alright. I want to join your campaign.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I've changed my mind.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go.
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ef067f71");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c46daeb");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_dea56128");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 73);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Continue.
|
|
if (branchId == 63 && response == "s_540ac7e9")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.
|
|
string_id message = new string_id (c_stringFile, "s_30eb7833");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Alright. I want to join your campaign.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I've changed my mind.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go.
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ef067f71");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c46daeb");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_dea56128");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 73);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want to hear about your proposed changes.
|
|
if (branchId == 65 && response == "s_6ba0df1d")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I am humbled by your request. Currently, Bestine's markets are inadequate. I have already completed the construction of one market place. If I win this election, I'll put my efforts into attracting new merchants to these areas to help Bestine's economy. Perhaps it will bring about new schematics for our crafters.
|
|
string_id message = new string_id (c_stringFile, "s_928992d9");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Continue.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_540ac7e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 66);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm here to vote for you.
|
|
if (branchId == 65 && response == "s_d6a9a15d")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
string_id message = new string_id (c_stringFile, "s_d15b93e5");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Continue.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_540ac7e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 72);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have to go. Sorry!
|
|
if (branchId == 65 && response == "s_bab1f93a")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I wish you well. Come back soon!
|
|
string_id message = new string_id (c_stringFile, "s_91cc7d0");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'The Tuskens... My rival is centered on the slight possibility that they might launch an attack against Bestine. I find that highly doubtful. We have enough Troopers walking around as it is and they can easily defend us if needed. The Tuskens aren't brave or stupid enough to come near Bestine. We need to concentrate on the economy by introducing more markets!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I am humbled by your request. Currently, Bestine's markets are inadequate. I have already completed the construction of one market place. If I win this election, I'll put my efforts into attracting new merchants to these areas to help Bestine's economy. Perhaps it will bring about new schematics for our crafters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Continue.
|
|
if (branchId == 66 && response == "s_540ac7e9")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.
|
|
string_id message = new string_id (c_stringFile, "s_8bdcb5a3");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm here to vote for you.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go. Sorry!
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6a9a15d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bab1f93a");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 67);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I am humbled by your request. Currently, Bestine's markets are inadequate. I have already completed the construction of one market place. If I win this election, I'll put my efforts into attracting new merchants to these areas to help Bestine's economy. Perhaps it will bring about new schematics for our crafters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm here to vote for you.
|
|
if (branchId == 67 && response == "s_d6a9a15d")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
string_id message = new string_id (c_stringFile, "s_d15b93e5");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Continue.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_540ac7e9");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 72);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have to go. Sorry!
|
|
if (branchId == 67 && response == "s_bab1f93a")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I wish you well. Come back soon!
|
|
string_id message = new string_id (c_stringFile, "s_91cc7d0");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Additionally, I plan to hire historians to uncover the history of Bestine. Artisans will definitely appreciate the new renovations done to the museum. It will give them a chance to place their creations on display.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Continue.
|
|
if (branchId == 68 && response == "s_540ac7e9")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.
|
|
string_id message = new string_id (c_stringFile, "s_30eb7833");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Alright. I want to join your campaign.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I've changed my mind.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go.
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ef067f71");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c46daeb");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_dea56128");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 73);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Continue.
|
|
if (branchId == 70 && response == "s_540ac7e9")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.
|
|
string_id message = new string_id (c_stringFile, "s_30eb7833");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Alright. I want to join your campaign.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I've changed my mind.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go.
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ef067f71");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c46daeb");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_dea56128");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 73);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Excellent news! How does the process go - Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Excellent news! How does the process go... Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Continue.
|
|
if (branchId == 72 && response == "s_540ac7e9")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.
|
|
string_id message = new string_id (c_stringFile, "s_30eb7833");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Alright. I want to join your campaign.
|
|
boolean hasResponse0 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I've changed my mind.
|
|
boolean hasResponse1 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have to go.
|
|
boolean hasResponse2 = false;
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ef067f71");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c46daeb");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_dea56128");
|
|
|
|
setObjVar (player, "conversation.sean_trenwell.branchId", 73);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Excellent news! How does the process go... Oh! You should let the governor, Tour Aryon, know of any evidence of a good deed I have done for the people of Bestine. Take it to her! I have done much for the people of Bestine, so I have confidence that our governor will be impressed. Of course, if you decide I am not the right candidate to represent you, you can always join my rival's campaign instead. Though I can't imagine how that would be possible.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I want to join your campaign.
|
|
if (branchId == 73 && response == "s_ef067f71")
|
|
{
|
|
//-- [NOTE]
|
|
if (!sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
sean_trenwell_action_giveDiskandJoinCampaign (player, self);
|
|
|
|
//-- NPC: I knew you would! You seem like the sensible type. If you have questions, you can refer to the disk I just gave you. You'll need to find evidence. I can't think of anyone right now off the top of my head. I'm sure my secretary would know. Be sure to ask her on your way out.
|
|
string_id message = new string_id (c_stringFile, "s_51c418fd");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition_noInventorySpace (player, self))
|
|
{
|
|
sean_trenwell_action_NoRoomObj (player, self);
|
|
|
|
//-- NPC: Thanks for the interest! I guess you don't have enough room to receive the disk, though. You'll need to come back when you do.
|
|
string_id message = new string_id (c_stringFile, "s_9adf6cf2");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I've changed my mind.
|
|
if (branchId == 73 && response == "s_5c46daeb")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I'm sorry to hear that. However, if you do decide that you'd rather join my campaign, please come by again. We could always use your vote.
|
|
string_id message = new string_id (c_stringFile, "s_483c9216");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have to go.
|
|
if (branchId == 73 && response == "s_dea56128")
|
|
{
|
|
//-- [NOTE]
|
|
if (sean_trenwell_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I wish you well. Come back soon!
|
|
string_id message = new string_id (c_stringFile, "s_91cc7d0");
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'After which, if you discover his twisted ideas aren't for you... and I won't be surprised when you do... you'll need to bring back some sort of negative tidbit about him in order for you to be let back into my campaign. Do you get it? I'll just give you a disk to further explain the details.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
removeObjVar (player, "conversation.sean_trenwell.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|