mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
9338 lines
273 KiB
Plaintext
9338 lines
273 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// lilas_dinhint.script
|
|
//
|
|
//
|
|
//
|
|
// DO NOT EDIT THIS AUTO-GENERATED FILE. PLEASE USE THE CONVERATION EDITOR!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
include library.money;
|
|
include library.utils;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/lilas_dinhint";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean lilas_dinhint_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_museumEventActive (obj_id player, obj_id npc)
|
|
{
|
|
return hasObjVar(npc, "bestine.museumEventStarted");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_artworkAvailable (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventFeaturedSchematic") )
|
|
{
|
|
string schematic = getStringObjVar(npc, "bestine.museumEventFeaturedSchematic");
|
|
if ( schematic != null && schematic != "" )
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_noEventButArtworkAvailable (obj_id player, obj_id npc)
|
|
{
|
|
return hasObjVar(npc, "bestine.museumEventFeaturedSchematic");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_notEnoughCredits (obj_id player, obj_id npc)
|
|
{
|
|
return (!money.hasFunds(player, money.MT_TOTAL, 48000));
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_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 lilas_dinhint_condition_noEventAndNoArtwork (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_canBuy (obj_id player, obj_id npc)
|
|
{
|
|
return ( !lilas_dinhint_condition_noInventorySpace(player, npc) && !lilas_dinhint_condition_notEnoughCredits(player, npc) );
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_inSeanCampaign (obj_id player, obj_id npc)
|
|
{
|
|
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)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_madeRoomSeanTestimony (obj_id player, obj_id npc)
|
|
{
|
|
return ( (lilas_dinhint_condition_inSeanCampaign(player, npc)) && (hasObjVar(player, "bestine.sean_museum_noroom")) );
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_talkAboutSeanTrenwell (obj_id player, obj_id npc)
|
|
{
|
|
if ( lilas_dinhint_condition_inSeanCampaign(player, npc) )
|
|
{
|
|
if ( !hasObjVar(player, "bestine.sean_museum_noroom") )
|
|
{
|
|
if ( !utils.playerHasItemByTemplate(player, "object/tangible/loot/quest/sean_questp_ctestimony.iff") )
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_canChooseArtist (obj_id player, obj_id npc)
|
|
{
|
|
if ( !lilas_dinhint_condition_alreadyVoted(player, npc) )
|
|
{
|
|
if ( lilas_dinhint_condition_canVoteArtist01(player, npc) || lilas_dinhint_condition_canVoteArtist02(player, npc) || lilas_dinhint_condition_canVoteArtist03(player, npc) ||
|
|
lilas_dinhint_condition_canVoteArtist04(player, npc) || lilas_dinhint_condition_canVoteArtist05(player, npc) || lilas_dinhint_condition_canVoteArtist06(player, npc) )
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_canVoteArtist01 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
if ( hasObjVar(player, "bestine.spokeToArtist01") )
|
|
{
|
|
int spokeToArtist = getIntObjVar(player, "bestine.spokeToArtist01");
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
if( spokeToArtist >= eventNum )
|
|
{
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist01") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist01") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist01") )
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_canVoteArtist02 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
if ( hasObjVar(player, "bestine.spokeToArtist02") )
|
|
{
|
|
int spokeToArtist = getIntObjVar(player, "bestine.spokeToArtist02");
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
if( spokeToArtist >= eventNum )
|
|
{
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist02") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist02") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist02") )
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_canVoteArtist03 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
if ( hasObjVar(player, "bestine.spokeToArtist03") )
|
|
{
|
|
int spokeToArtist = getIntObjVar(player, "bestine.spokeToArtist03");
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
if( spokeToArtist >= eventNum )
|
|
{
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist03") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist03") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist03") )
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_canVoteArtist04 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
if ( hasObjVar(player, "bestine.spokeToArtist04") )
|
|
{
|
|
int spokeToArtist = getIntObjVar(player, "bestine.spokeToArtist04");
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
if( spokeToArtist >= eventNum )
|
|
{
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist04") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist04") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist04") )
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_canVoteArtist05 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
if ( hasObjVar(player, "bestine.spokeToArtist05") )
|
|
{
|
|
int spokeToArtist = getIntObjVar(player, "bestine.spokeToArtist05");
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
if( spokeToArtist >= eventNum )
|
|
{
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist05") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist05") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist05") )
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_canVoteArtist06 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
if ( hasObjVar(player, "bestine.spokeToArtist06") )
|
|
{
|
|
int spokeToArtist = getIntObjVar(player, "bestine.spokeToArtist06");
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
if( spokeToArtist >= eventNum )
|
|
{
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist06") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist06") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist06") )
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_cannotChooseArtistButHasntVoted (obj_id player, obj_id npc)
|
|
{
|
|
if ( !lilas_dinhint_condition_alreadyVoted(player, npc) )
|
|
{
|
|
if ( !lilas_dinhint_condition_canVoteArtist01(player, npc) && !lilas_dinhint_condition_canVoteArtist02(player, npc) && !lilas_dinhint_condition_canVoteArtist03(player, npc) &&
|
|
!lilas_dinhint_condition_canVoteArtist04(player, npc) && !lilas_dinhint_condition_canVoteArtist05(player, npc) && !lilas_dinhint_condition_canVoteArtist06(player, npc) );
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_alreadyVoted (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(player, "bestine.museumEventPlayerVoted") )
|
|
{
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
int playerEventNum = getIntObjVar(player, "bestine.museumEventPlayerVoted");
|
|
if ( playerEventNum >= eventNum )
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_tellAboutArtist01 (obj_id player, obj_id npc)
|
|
{
|
|
if (utils.hasScriptVar(player, "askedAboutArtist01"))
|
|
return false;
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist01") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist01") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist01") )
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_tellAboutArtist02 (obj_id player, obj_id npc)
|
|
{
|
|
if (utils.hasScriptVar(player, "askedAboutArtist02"))
|
|
return false;
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist02") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist02") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist02") )
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_tellAboutArtist03 (obj_id player, obj_id npc)
|
|
{
|
|
if (utils.hasScriptVar(player, "askedAboutArtist03"))
|
|
return false;
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist03") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist03") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist03") )
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_tellAboutArtist04 (obj_id player, obj_id npc)
|
|
{
|
|
if (utils.hasScriptVar(player, "askedAboutArtist04"))
|
|
return false;
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist04") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist04") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist04") )
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_tellAboutArtist05 (obj_id player, obj_id npc)
|
|
{
|
|
if (utils.hasScriptVar(player, "askedAboutArtist05"))
|
|
return false;
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist05") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist05") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist05") )
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_tellAboutArtist06 (obj_id player, obj_id npc)
|
|
{
|
|
if (utils.hasScriptVar(player, "askedAboutArtist06"))
|
|
return false;
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
if ( entry01.equals("bestine_artist06") )
|
|
return true;
|
|
|
|
if ( entry02.equals("bestine_artist06") )
|
|
return true;
|
|
|
|
if ( entry03.equals("bestine_artist06") )
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_hasAskedAboutALocation (obj_id player, obj_id npc)
|
|
{
|
|
if (utils.hasScriptVar(player, "askedAboutArtist01"))
|
|
return true;
|
|
|
|
if (utils.hasScriptVar(player, "askedAboutArtist02"))
|
|
return true;
|
|
|
|
if (utils.hasScriptVar(player, "askedAboutArtist03"))
|
|
return true;
|
|
|
|
if (utils.hasScriptVar(player, "askedAboutArtist04"))
|
|
return true;
|
|
|
|
if (utils.hasScriptVar(player, "askedAboutArtist05"))
|
|
return true;
|
|
|
|
if (utils.hasScriptVar(player, "askedAboutArtist06"))
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_time_allowTimeLeftRequest (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventEnded") )
|
|
{
|
|
if ( hasObjVar(npc, "bestine.timeNextEventStarts") )
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_time_withinTheHour (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventEnded") )
|
|
{
|
|
if ( hasObjVar(npc, "bestine.timeNextEventStarts") )
|
|
{
|
|
int timeNextElectionStarts = getIntObjVar(npc, "bestine.timeNextEventStarts");
|
|
int currentTime = getGameTime();
|
|
int timeUntilElection = timeNextElectionStarts - currentTime;
|
|
if ( timeUntilElection < 3600 )
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_time_justAFewHours (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventEnded") )
|
|
{
|
|
if ( hasObjVar(npc, "bestine.timeNextEventStarts") )
|
|
{
|
|
int timeNextElectionStarts = getIntObjVar(npc, "bestine.timeNextEventStarts");
|
|
int currentTime = getGameTime();
|
|
int timeUntilElection = timeNextElectionStarts - currentTime;
|
|
if ( timeUntilElection >= 3600 && timeUntilElection < 14400 )
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_time_lessThanADay (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventEnded") )
|
|
{
|
|
if ( hasObjVar(npc, "bestine.timeNextEventStarts") )
|
|
{
|
|
int timeNextElectionStarts = getIntObjVar(npc, "bestine.timeNextEventStarts");
|
|
int currentTime = getGameTime();
|
|
int timeUntilElection = timeNextElectionStarts - currentTime;
|
|
if ( timeUntilElection >= 14400 && timeUntilElection < 86400 )
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_time_moreThanADay (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventEnded") )
|
|
{
|
|
if ( hasObjVar(npc, "bestine.timeNextEventStarts") )
|
|
{
|
|
int timeNextElectionStarts = getIntObjVar(npc, "bestine.timeNextEventStarts");
|
|
int currentTime = getGameTime();
|
|
int timeUntilElection = timeNextElectionStarts - currentTime;
|
|
if ( timeUntilElection >= 86400 && timeUntilElection < 172800 )
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_time_justAFewDays (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventEnded") )
|
|
{
|
|
if ( hasObjVar(npc, "bestine.timeNextEventStarts") )
|
|
{
|
|
int timeNextElectionStarts = getIntObjVar(npc, "bestine.timeNextEventStarts");
|
|
int currentTime = getGameTime();
|
|
int timeUntilElection = timeNextElectionStarts - currentTime;
|
|
if ( timeUntilElection >= 172800 && timeUntilElection < 345600 )
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_time_lessThanAWeek (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventEnded") )
|
|
{
|
|
if ( hasObjVar(npc, "bestine.timeNextEventStarts") )
|
|
{
|
|
int timeNextElectionStarts = getIntObjVar(npc, "bestine.timeNextEventStarts");
|
|
int currentTime = getGameTime();
|
|
int timeUntilElection = timeNextElectionStarts - currentTime;
|
|
if ( timeUntilElection >= 345600 && timeUntilElection < 604800 )
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lilas_dinhint_condition_time_moreThanAWeek (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventEnded") )
|
|
{
|
|
if ( hasObjVar(npc, "bestine.timeNextEventStarts") )
|
|
{
|
|
int timeNextElectionStarts = getIntObjVar(npc, "bestine.timeNextEventStarts");
|
|
int currentTime = getGameTime();
|
|
int timeUntilElection = timeNextElectionStarts - currentTime;
|
|
if ( timeUntilElection >= 604800)
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void lilas_dinhint_action__defaultAction (obj_id player, obj_id npc)
|
|
{
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_giveSchematic (obj_id player, obj_id npc)
|
|
{
|
|
string schematicTemplate = getStringObjVar(npc, "bestine.museumEventFeaturedSchematic");
|
|
int schematicCost = 48000;
|
|
|
|
obj_id playerInv = getObjectInSlot( player, "inventory" );
|
|
if(isIdValid(playerInv))
|
|
{
|
|
obj_id schematic = createObject(schematicTemplate, playerInv, "" );
|
|
if(isIdValid(schematic))
|
|
{
|
|
utils.moneyOutMetric(player, "Bestine_Museum", schematicCost);
|
|
money.requestPayment(player, npc, schematicCost, "pass_fail", null, true);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_giveSeansTestimony (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(player, "bestine.sean_museum_noroom") )
|
|
{
|
|
removeObjVar(player, "bestine.sean_museum_noroom");
|
|
}
|
|
|
|
string HTESTIMONY = "object/tangible/loot/quest/sean_questp_ctestimony.iff";
|
|
if (isIdValid(player))
|
|
{
|
|
obj_id playerInv = getObjectInSlot( player, "inventory" );
|
|
if(isIdValid(playerInv))
|
|
{
|
|
obj_id item = createObject( HTESTIMONY, playerInv, "" );
|
|
if(isIdValid(item))
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_setNoRoomSeanTestimony (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar(player, "bestine.sean_museum_noroom", 1);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_setMuseumEventObjVar (obj_id player, obj_id npc)
|
|
{
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
setObjVar(player, "bestine.museumEventPlayer", eventNum);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_voteForArtist01 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
setObjVar(player, "bestine.museumEventPlayerVoted", eventNum);
|
|
lilas_dinhint_action_removeSpokeToObjVars(player, npc);
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
int votes = 0;
|
|
if ( entry01.equals("bestine_artist01") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry01");
|
|
setObjVar(npc, "bestine.votesForEntry01", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry02.equals("bestine_artist01") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry02");
|
|
setObjVar(npc, "bestine.votesForEntry02", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry03.equals("bestine_artist01") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry03");
|
|
setObjVar(npc, "bestine.votesForEntry03", votes + 1);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_voteForArtist02 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
setObjVar(player, "bestine.museumEventPlayerVoted", eventNum);
|
|
lilas_dinhint_action_removeSpokeToObjVars(player, npc);
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
int votes = 0;
|
|
if ( entry01.equals("bestine_artist02") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry01");
|
|
setObjVar(npc, "bestine.votesForEntry01", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry02.equals("bestine_artist02") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry02");
|
|
setObjVar(npc, "bestine.votesForEntry02", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry03.equals("bestine_artist02") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry03");
|
|
setObjVar(npc, "bestine.votesForEntry03", votes + 1);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_voteForArtist03 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
setObjVar(player, "bestine.museumEventPlayerVoted", eventNum);
|
|
lilas_dinhint_action_removeSpokeToObjVars(player, npc);
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
int votes = 0;
|
|
if ( entry01.equals("bestine_artist03") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry01");
|
|
setObjVar(npc, "bestine.votesForEntry01", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry02.equals("bestine_artist03") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry02");
|
|
setObjVar(npc, "bestine.votesForEntry02", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry03.equals("bestine_artist03") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry03");
|
|
setObjVar(npc, "bestine.votesForEntry03", votes + 1);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_voteForArtist04 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
setObjVar(player, "bestine.museumEventPlayerVoted", eventNum);
|
|
lilas_dinhint_action_removeSpokeToObjVars(player, npc);
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
int votes = 0;
|
|
if ( entry01.equals("bestine_artist04") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry01");
|
|
setObjVar(npc, "bestine.votesForEntry01", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry02.equals("bestine_artist04") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry02");
|
|
setObjVar(npc, "bestine.votesForEntry02", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry03.equals("bestine_artist04") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry03");
|
|
setObjVar(npc, "bestine.votesForEntry03", votes + 1);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_voteForArtist05 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
setObjVar(player, "bestine.museumEventPlayerVoted", eventNum);
|
|
lilas_dinhint_action_removeSpokeToObjVars(player, npc);
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
int votes = 0;
|
|
if ( entry01.equals("bestine_artist05") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry01");
|
|
setObjVar(npc, "bestine.votesForEntry01", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry02.equals("bestine_artist05") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry02");
|
|
setObjVar(npc, "bestine.votesForEntry02", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry03.equals("bestine_artist05") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry03");
|
|
setObjVar(npc, "bestine.votesForEntry03", votes + 1);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_voteForArtist06 (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(npc, "bestine.museumEventStarted") )
|
|
{
|
|
int eventNum = getIntObjVar(npc, "bestine.museumEventStarted");
|
|
setObjVar(player, "bestine.museumEventPlayerVoted", eventNum);
|
|
lilas_dinhint_action_removeSpokeToObjVars(player, npc);
|
|
|
|
string entry01 = "";
|
|
string entry02 = "";
|
|
string entry03 = "";
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry01") )
|
|
entry01 = getStringObjVar(npc, "bestine.museumEventEntry01");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry02") )
|
|
entry02 = getStringObjVar(npc, "bestine.museumEventEntry02");
|
|
|
|
if ( hasObjVar(npc, "bestine.museumEventEntry03") )
|
|
entry03 = getStringObjVar(npc, "bestine.museumEventEntry03");
|
|
|
|
int votes = 0;
|
|
if ( entry01.equals("bestine_artist06") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry01");
|
|
setObjVar(npc, "bestine.votesForEntry01", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry02.equals("bestine_artist06") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry02");
|
|
setObjVar(npc, "bestine.votesForEntry02", votes + 1);
|
|
return;
|
|
}
|
|
|
|
if ( entry03.equals("bestine_artist06") )
|
|
{
|
|
votes = getIntObjVar(npc, "bestine.votesForEntry03");
|
|
setObjVar(npc, "bestine.votesForEntry03", votes + 1);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_removeSpokeToObjVars (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(player, "bestine.spokeToArtist01") )
|
|
removeObjVar(player, "bestine.spokeToArtist01");
|
|
|
|
if ( hasObjVar(player, "bestine.spokeToArtist02") )
|
|
removeObjVar(player, "bestine.spokeToArtist02");
|
|
|
|
if ( hasObjVar(player, "bestine.spokeToArtist03") )
|
|
removeObjVar(player, "bestine.spokeToArtist03");
|
|
|
|
if ( hasObjVar(player, "bestine.spokeToArtist04") )
|
|
removeObjVar(player, "bestine.spokeToArtist04");
|
|
|
|
if ( hasObjVar(player, "bestine.spokeToArtist05") )
|
|
removeObjVar(player, "bestine.spokeToArtist05");
|
|
|
|
if ( hasObjVar(player, "bestine.spokeToArtist06") )
|
|
removeObjVar(player, "bestine.spokeToArtist06");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_removeEventObjvar (obj_id player, obj_id npc)
|
|
{
|
|
if ( hasObjVar(player, "bestine.museumEventPlayer") )
|
|
removeObjVar(player, "bestine.museumEventPlayer");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_askedAboutArtist01 (obj_id player, obj_id npc)
|
|
{
|
|
utils.setScriptVar(player, "askedAboutArtist01", 1);
|
|
lilas_dinhint_action_setMuseumEventObjVar(player, npc);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_askedAboutArtist02 (obj_id player, obj_id npc)
|
|
{
|
|
utils.setScriptVar(player, "askedAboutArtist02", 1);
|
|
lilas_dinhint_action_setMuseumEventObjVar(player, npc);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_askedAboutArtist03 (obj_id player, obj_id npc)
|
|
{
|
|
utils.setScriptVar(player, "askedAboutArtist03", 1);
|
|
lilas_dinhint_action_setMuseumEventObjVar(player, npc);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_askedAboutArtist04 (obj_id player, obj_id npc)
|
|
{
|
|
utils.setScriptVar(player, "askedAboutArtist04", 1);
|
|
lilas_dinhint_action_setMuseumEventObjVar(player, npc);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_askedAboutArtist05 (obj_id player, obj_id npc)
|
|
{
|
|
utils.setScriptVar(player, "askedAboutArtist05", 1);
|
|
lilas_dinhint_action_setMuseumEventObjVar(player, npc);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_askedAboutArtist06 (obj_id player, obj_id npc)
|
|
{
|
|
utils.setScriptVar(player, "askedAboutArtist06", 1);
|
|
lilas_dinhint_action_setMuseumEventObjVar(player, npc);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lilas_dinhint_action_clearAskedLocationScrVars (obj_id player, obj_id npc)
|
|
{
|
|
if (utils.hasScriptVar(player, "askedAboutArtist01"))
|
|
utils.removeScriptVar(player, "askedAboutArtist01");
|
|
|
|
if (utils.hasScriptVar(player, "askedAboutArtist02"))
|
|
utils.removeScriptVar(player, "askedAboutArtist02");
|
|
|
|
if (utils.hasScriptVar(player, "askedAboutArtist03"))
|
|
utils.removeScriptVar(player, "askedAboutArtist03");
|
|
|
|
if (utils.hasScriptVar(player, "askedAboutArtist04"))
|
|
utils.removeScriptVar(player, "askedAboutArtist04");
|
|
|
|
if (utils.hasScriptVar(player, "askedAboutArtist05"))
|
|
utils.removeScriptVar(player, "askedAboutArtist05");
|
|
|
|
if (utils.hasScriptVar(player, "askedAboutArtist06"))
|
|
utils.removeScriptVar(player, "askedAboutArtist06");
|
|
|
|
return;
|
|
}
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "npc.conversation.lilas_dinhint");
|
|
|
|
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.lilas_dinhint");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnStartNpcConversation (obj_id player)
|
|
{
|
|
if (ai_lib.isInCombat (self) || ai_lib.isInCombat (player))
|
|
return SCRIPT_OVERRIDE;
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_museumEventActive (player, self))
|
|
{
|
|
lilas_dinhint_action_clearAskedLocationScrVars (player, self);
|
|
|
|
//-- NPC: Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?
|
|
string_id message = new string_id (c_stringFile, "s_605d9185");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, I'd love to help.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_cannotChooseArtistButHasntVoted (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm ready to tell you which artist I choose.
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_canChooseArtist (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I already voted.
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_alreadyVoted (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: No thank you. I'm simply wandering through.
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: I would like to purchase a schematic of the current featured work of art.
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_artworkAvailable (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Can you tell me anything about Sean Trenwell?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_talkAboutSeanTrenwell (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm back for the testimonial for Sean Trenwell you had offered..
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_madeRoomSeanTestimony (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_26152411");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_911a27f8");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_537ad9f6");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d543ced9");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e649bf0a");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8b3d6e46");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_26c02ad3");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 1);
|
|
|
|
npcStartConversation (player, self, "lilas_dinhint", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_noEventButArtworkAvailable (player, self))
|
|
{
|
|
lilas_dinhint_action_clearAskedLocationScrVars (player, self);
|
|
|
|
//-- NPC: Hello and welcome to the Bestine Museum. Would you like to purchase a schematic of our featured artwork?
|
|
string_id message = new string_id (c_stringFile, "s_5d4aadf9");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, please. How much does one cost?
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No thank you. I'm just here to visit the museum.
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Can you tell me anything about Sean Trenwell?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_talkAboutSeanTrenwell (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm back for the testimonial for Sean Trenwell you had offered..
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_madeRoomSeanTestimony (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How long until you look for another work of art to feature?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_time_allowTimeLeftRequest (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_47df8332");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6b5b28b2");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8b3d6e46");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_26c02ad3");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_9558d37a");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 26);
|
|
|
|
npcStartConversation (player, self, "lilas_dinhint", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_noEventAndNoArtwork (player, self))
|
|
{
|
|
lilas_dinhint_action_clearAskedLocationScrVars (player, self);
|
|
|
|
//-- NPC: Hello and welcome to the Bestine Museum.
|
|
string_id message = new string_id (c_stringFile, "s_aaa43f7b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Can you tell me anything about Sean Trenwell?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_talkAboutSeanTrenwell (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm back for the testimonial for Sean Trenwell you had offered..
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_madeRoomSeanTestimony (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: How long until you look for another work of art to feature?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_time_allowTimeLeftRequest (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_b9b27823");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8b3d6e46");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_26c02ad3");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_9558d37a");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 29);
|
|
|
|
npcStartConversation (player, self, "lilas_dinhint", 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 != "lilas_dinhint")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
int branchId = getIntObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, I'd love to help.
|
|
if (branchId == 1 && response == "s_26152411")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Excellent. Once per month, I wish to feature a new work of art here at the museum. We have a fine permanent collection on display, as always, but it is my desire to enhance that collection by offering something new from time to time. To that end, we select a small number of artists and approach them with the chance of having their art featured here in Bestine.
|
|
string_id message = new string_id (c_stringFile, "s_7312fa13");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you need me to do?
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_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_5bd69df6");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 2);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm ready to tell you which artist I choose.
|
|
if (branchId == 1 && response == "s_911a27f8")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Ah good. Which artist stood out as your favorite?
|
|
string_id message = new string_id (c_stringFile, "s_3960dc15");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I liked Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_canVoteArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I choose Kolka Zteht.
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_canVoteArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I prefer Giaal Itottr.
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_canVoteArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: I've decided on Kahfr Oladi.
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_canVoteArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: Definitely Klepa Laeel.
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_canVoteArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I'll pick Boulo Siesi.
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_canVoteArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e09f0f8");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b824fcc0");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ce4aa2ab");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_84e3c8d2");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55773f3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_4443365b");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 12);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I already voted.
|
|
if (branchId == 1 && response == "s_537ad9f6")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Thank you for taking part.
|
|
string_id message = new string_id (c_stringFile, "s_5492284e");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No thank you. I'm simply wandering through.
|
|
if (branchId == 1 && response == "s_d543ced9")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I hope you enjoy your visit.
|
|
string_id message = new string_id (c_stringFile, "s_9c595e48");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I would like to purchase a schematic of the current featured work of art.
|
|
if (branchId == 1 && response == "s_e649bf0a")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I'm asking for a modest... ahem... donation to the museum of 48,000 credits in exchange for the schematic. Oh, and I should warn you that some knowledge of advanced furniture production is required.
|
|
string_id message = new string_id (c_stringFile, "s_486f6");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll take one.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Oh. That's too much for me. No thank you.
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_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_90b0871f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_3f115c47");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 21);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me anything about Sean Trenwell?
|
|
if (branchId == 1 && response == "s_8b3d6e46")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Mr. Trenwell? Yes, of course. Many of our latest additions and newest programs have only been possible thanks to funding provided by the efforts of Mr. Trenwell. His large personal contributions - both in time and money - have been generous beyond expectations.
|
|
string_id message = new string_id (c_stringFile, "s_7c297430");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oh, whatever. I'm leaving.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Would you be willing to put that in writing so I could share your opinion with the governor?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_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_7552be07");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6d1148d8");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 31);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm back for the testimonial for Sean Trenwell you had offered..
|
|
if (branchId == 1 && response == "s_26c02ad3")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Ah, of course. I remember you now. I have everything prepared and loaded onto this datapad that you can show to Mrs. Aryon.
|
|
string_id message = new string_id (c_stringFile, "s_71561c79");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Perfect, thank you!
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_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_b67247f1");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 33);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. I hope you enjoy your visit. While I've got your ear, you should know that we are currently seeking a new work of art to feature. Would you like to help?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Excellent. Once per month, I wish to feature a new work of art here at the museum. We have a fine permanent collection on display, as always, but it is my desire to enhance that collection by offering something new from time to time. To that end, we select a small number of artists and approach them with the chance of having their art featured here in Bestine.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you need me to do?
|
|
if (branchId == 2 && response == "s_5bd69df6")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?
|
|
string_id message = new string_id (c_stringFile, "s_147d9a5b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Excellent. Once per month, I wish to feature a new work of art here at the museum. We have a fine permanent collection on display, as always, but it is my desire to enhance that collection by offering something new from time to time. To that end, we select a small number of artists and approach them with the chance of having their art featured here in Bestine.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
if (branchId == 3 && response == "s_82761006")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist01 (player, self);
|
|
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
string_id message = new string_id (c_stringFile, "s_400d075");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
if (branchId == 3 && response == "s_c1f9104")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist02 (player, self);
|
|
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
string_id message = new string_id (c_stringFile, "s_67026fa8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
if (branchId == 3 && response == "s_bea3d11")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist03 (player, self);
|
|
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
string_id message = new string_id (c_stringFile, "s_23b5bcf");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
if (branchId == 3 && response == "s_2ecc437c")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist04 (player, self);
|
|
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
string_id message = new string_id (c_stringFile, "s_1057c81b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
if (branchId == 3 && response == "s_55e840b3")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist05 (player, self);
|
|
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
string_id message = new string_id (c_stringFile, "s_68c6c699");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
if (branchId == 3 && response == "s_39a4e8fa")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist06 (player, self);
|
|
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
string_id message = new string_id (c_stringFile, "s_36cff745");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
if (branchId == 3 && response == "s_b9059b2b")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_clearAskedLocationScrVars (player, self);
|
|
|
|
//-- NPC: The pleasure is all mine. Return after speaking to the artists. Farewell.
|
|
string_id message = new string_id (c_stringFile, "s_8338587c");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
if (branchId == 3 && response == "s_463a0bda")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_removeEventObjvar (player, self);
|
|
|
|
//-- NPC: I see, well thank you for visiting the museum.
|
|
string_id message = new string_id (c_stringFile, "s_8ed85f40");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What I ask is that you seek out the artists we are considering and learn of their work. Then return to me and let me know which of them you preferred. Three artists are involved. I can tell you where to find them if you'd like?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
if (branchId == 4 && response == "s_82761006")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist01 (player, self);
|
|
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
string_id message = new string_id (c_stringFile, "s_400d075");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
if (branchId == 4 && response == "s_c1f9104")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist02 (player, self);
|
|
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
string_id message = new string_id (c_stringFile, "s_67026fa8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
if (branchId == 4 && response == "s_bea3d11")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist03 (player, self);
|
|
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
string_id message = new string_id (c_stringFile, "s_23b5bcf");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
if (branchId == 4 && response == "s_2ecc437c")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist04 (player, self);
|
|
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
string_id message = new string_id (c_stringFile, "s_1057c81b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
if (branchId == 4 && response == "s_55e840b3")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist05 (player, self);
|
|
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
string_id message = new string_id (c_stringFile, "s_68c6c699");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
if (branchId == 4 && response == "s_39a4e8fa")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist06 (player, self);
|
|
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
string_id message = new string_id (c_stringFile, "s_36cff745");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
if (branchId == 4 && response == "s_b9059b2b")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_clearAskedLocationScrVars (player, self);
|
|
|
|
//-- NPC: The pleasure is all mine. Return after speaking to the artists. Farewell.
|
|
string_id message = new string_id (c_stringFile, "s_8338587c");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
if (branchId == 4 && response == "s_463a0bda")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_removeEventObjvar (player, self);
|
|
|
|
//-- NPC: I see, well thank you for visiting the museum.
|
|
string_id message = new string_id (c_stringFile, "s_8ed85f40");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
if (branchId == 5 && response == "s_82761006")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist01 (player, self);
|
|
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
string_id message = new string_id (c_stringFile, "s_400d075");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look near the back of the theater in Mos Entha to find Kolka Zteht.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
if (branchId == 5 && response == "s_c1f9104")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist02 (player, self);
|
|
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
string_id message = new string_id (c_stringFile, "s_67026fa8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look near the back of the theater in Mos Entha to find Kolka Zteht.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
if (branchId == 5 && response == "s_bea3d11")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist03 (player, self);
|
|
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
string_id message = new string_id (c_stringFile, "s_23b5bcf");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look near the back of the theater in Mos Entha to find Kolka Zteht.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
if (branchId == 5 && response == "s_2ecc437c")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist04 (player, self);
|
|
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
string_id message = new string_id (c_stringFile, "s_1057c81b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look near the back of the theater in Mos Entha to find Kolka Zteht.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
if (branchId == 5 && response == "s_55e840b3")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist05 (player, self);
|
|
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
string_id message = new string_id (c_stringFile, "s_68c6c699");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look near the back of the theater in Mos Entha to find Kolka Zteht.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
if (branchId == 5 && response == "s_39a4e8fa")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist06 (player, self);
|
|
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
string_id message = new string_id (c_stringFile, "s_36cff745");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look near the back of the theater in Mos Entha to find Kolka Zteht.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
if (branchId == 5 && response == "s_b9059b2b")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_clearAskedLocationScrVars (player, self);
|
|
|
|
//-- NPC: The pleasure is all mine. Return after speaking to the artists. Farewell.
|
|
string_id message = new string_id (c_stringFile, "s_8338587c");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look near the back of the theater in Mos Entha to find Kolka Zteht.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
if (branchId == 5 && response == "s_463a0bda")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_removeEventObjvar (player, self);
|
|
|
|
//-- NPC: I see, well thank you for visiting the museum.
|
|
string_id message = new string_id (c_stringFile, "s_8ed85f40");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look near the back of the theater in Mos Entha to find Kolka Zteht.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
if (branchId == 6 && response == "s_82761006")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist01 (player, self);
|
|
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
string_id message = new string_id (c_stringFile, "s_400d075");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
if (branchId == 6 && response == "s_c1f9104")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist02 (player, self);
|
|
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
string_id message = new string_id (c_stringFile, "s_67026fa8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
if (branchId == 6 && response == "s_bea3d11")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist03 (player, self);
|
|
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
string_id message = new string_id (c_stringFile, "s_23b5bcf");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
if (branchId == 6 && response == "s_2ecc437c")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist04 (player, self);
|
|
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
string_id message = new string_id (c_stringFile, "s_1057c81b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
if (branchId == 6 && response == "s_55e840b3")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist05 (player, self);
|
|
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
string_id message = new string_id (c_stringFile, "s_68c6c699");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
if (branchId == 6 && response == "s_39a4e8fa")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist06 (player, self);
|
|
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
string_id message = new string_id (c_stringFile, "s_36cff745");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
if (branchId == 6 && response == "s_b9059b2b")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_clearAskedLocationScrVars (player, self);
|
|
|
|
//-- NPC: The pleasure is all mine. Return after speaking to the artists. Farewell.
|
|
string_id message = new string_id (c_stringFile, "s_8338587c");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
if (branchId == 6 && response == "s_463a0bda")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_removeEventObjvar (player, self);
|
|
|
|
//-- NPC: I see, well thank you for visiting the museum.
|
|
string_id message = new string_id (c_stringFile, "s_8ed85f40");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
if (branchId == 7 && response == "s_82761006")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist01 (player, self);
|
|
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
string_id message = new string_id (c_stringFile, "s_400d075");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
if (branchId == 7 && response == "s_c1f9104")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist02 (player, self);
|
|
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
string_id message = new string_id (c_stringFile, "s_67026fa8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
if (branchId == 7 && response == "s_bea3d11")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist03 (player, self);
|
|
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
string_id message = new string_id (c_stringFile, "s_23b5bcf");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
if (branchId == 7 && response == "s_2ecc437c")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist04 (player, self);
|
|
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
string_id message = new string_id (c_stringFile, "s_1057c81b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
if (branchId == 7 && response == "s_55e840b3")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist05 (player, self);
|
|
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
string_id message = new string_id (c_stringFile, "s_68c6c699");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
if (branchId == 7 && response == "s_39a4e8fa")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist06 (player, self);
|
|
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
string_id message = new string_id (c_stringFile, "s_36cff745");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
if (branchId == 7 && response == "s_b9059b2b")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_clearAskedLocationScrVars (player, self);
|
|
|
|
//-- NPC: The pleasure is all mine. Return after speaking to the artists. Farewell.
|
|
string_id message = new string_id (c_stringFile, "s_8338587c");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
if (branchId == 7 && response == "s_463a0bda")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_removeEventObjvar (player, self);
|
|
|
|
//-- NPC: I see, well thank you for visiting the museum.
|
|
string_id message = new string_id (c_stringFile, "s_8ed85f40");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
if (branchId == 8 && response == "s_82761006")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist01 (player, self);
|
|
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
string_id message = new string_id (c_stringFile, "s_400d075");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
if (branchId == 8 && response == "s_c1f9104")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist02 (player, self);
|
|
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
string_id message = new string_id (c_stringFile, "s_67026fa8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
if (branchId == 8 && response == "s_bea3d11")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist03 (player, self);
|
|
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
string_id message = new string_id (c_stringFile, "s_23b5bcf");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
if (branchId == 8 && response == "s_2ecc437c")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist04 (player, self);
|
|
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
string_id message = new string_id (c_stringFile, "s_1057c81b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
if (branchId == 8 && response == "s_55e840b3")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist05 (player, self);
|
|
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
string_id message = new string_id (c_stringFile, "s_68c6c699");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
if (branchId == 8 && response == "s_39a4e8fa")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist06 (player, self);
|
|
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
string_id message = new string_id (c_stringFile, "s_36cff745");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
if (branchId == 8 && response == "s_b9059b2b")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_clearAskedLocationScrVars (player, self);
|
|
|
|
//-- NPC: The pleasure is all mine. Return after speaking to the artists. Farewell.
|
|
string_id message = new string_id (c_stringFile, "s_8338587c");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
if (branchId == 8 && response == "s_463a0bda")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_removeEventObjvar (player, self);
|
|
|
|
//-- NPC: I see, well thank you for visiting the museum.
|
|
string_id message = new string_id (c_stringFile, "s_8ed85f40");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
if (branchId == 9 && response == "s_82761006")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist01 (player, self);
|
|
|
|
//-- NPC: Look for a small square near the Lucky Despot, and you'll find Vanvi Hotne in that area.
|
|
string_id message = new string_id (c_stringFile, "s_400d075");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Boulo Siesi is in Wayfar. She's usually by the cantina.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
if (branchId == 9 && response == "s_c1f9104")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist02 (player, self);
|
|
|
|
//-- NPC: Look near the back of the theater in Mos Entha to find Kolka Zteht.
|
|
string_id message = new string_id (c_stringFile, "s_67026fa8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Boulo Siesi is in Wayfar. She's usually by the cantina.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
if (branchId == 9 && response == "s_bea3d11")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist03 (player, self);
|
|
|
|
//-- NPC: Giaal Itotr calls Mos Espa home, and you'll usually find him in front of the hotel.
|
|
string_id message = new string_id (c_stringFile, "s_23b5bcf");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Boulo Siesi is in Wayfar. She's usually by the cantina.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
if (branchId == 9 && response == "s_2ecc437c")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist04 (player, self);
|
|
|
|
//-- NPC: Try Mos Eisley to find Kahfr Oladi. You'll probably find her near the bank.
|
|
string_id message = new string_id (c_stringFile, "s_1057c81b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Boulo Siesi is in Wayfar. She's usually by the cantina.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
if (branchId == 9 && response == "s_55e840b3")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist05 (player, self);
|
|
|
|
//-- NPC: You'll find Klepa Laeel in Mos Espa. He's often found towards the back of the starport.
|
|
string_id message = new string_id (c_stringFile, "s_68c6c699");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Boulo Siesi is in Wayfar. She's usually by the cantina.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
if (branchId == 9 && response == "s_39a4e8fa")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_askedAboutArtist06 (player, self);
|
|
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
string_id message = new string_id (c_stringFile, "s_36cff745");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me where to find Vanvi Hotne.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist01 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where will I find Kolka Zteht?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist02 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is Giaal Itotr?
|
|
boolean hasResponse2 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist03 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where should I look for Kahfr Oladi?
|
|
boolean hasResponse3 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist04 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
//-- PLAYER: How will I find Klepa Laeel?
|
|
boolean hasResponse4 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist05 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse4 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where can I find Boulo Siesi?
|
|
boolean hasResponse5 = false;
|
|
if (lilas_dinhint_condition_tellAboutArtist06 (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse5 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
boolean hasResponse6 = false;
|
|
if (lilas_dinhint_condition_hasAskedAboutALocation (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse6 = true;
|
|
}
|
|
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
boolean hasResponse7 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse7 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_82761006");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c1f9104");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bea3d11");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ecc437c");
|
|
|
|
if (hasResponse4)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55e840b3");
|
|
|
|
if (hasResponse5)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39a4e8fa");
|
|
|
|
if (hasResponse6)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b9059b2b");
|
|
|
|
if (hasResponse7)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_463a0bda");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Boulo Siesi is in Wayfar. She's usually by the cantina.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think I've got it. Thanks!
|
|
if (branchId == 9 && response == "s_b9059b2b")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_clearAskedLocationScrVars (player, self);
|
|
|
|
//-- NPC: The pleasure is all mine. Return after speaking to the artists. Farewell.
|
|
string_id message = new string_id (c_stringFile, "s_8338587c");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Boulo Siesi is in Wayfar. She's usually by the cantina.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Boulo Siesi is in Wayfar. She's usually by the cantina.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... nevermind. I'm not interested in this.
|
|
if (branchId == 9 && response == "s_463a0bda")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_removeEventObjvar (player, self);
|
|
|
|
//-- NPC: I see, well thank you for visiting the museum.
|
|
string_id message = new string_id (c_stringFile, "s_8ed85f40");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Boulo Siesi is in Wayfar. She's usually by the cantina.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah good. Which artist stood out as your favorite?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I liked Vanvi Hotne.
|
|
if (branchId == 12 && response == "s_e09f0f8")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_voteForArtist01 (player, self);
|
|
|
|
//-- NPC: Thank you for taking part in our contest. Check back when the event ends to see who won.
|
|
string_id message = new string_id (c_stringFile, "s_375a5dc0");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah good. Which artist stood out as your favorite?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah good. Which artist stood out as your favorite?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I choose Kolka Zteht.
|
|
if (branchId == 12 && response == "s_b824fcc0")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_voteForArtist02 (player, self);
|
|
|
|
//-- NPC: Thank you for taking part in our contest. Check back when the event ends to see who won.
|
|
string_id message = new string_id (c_stringFile, "s_375a5dc0");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah good. Which artist stood out as your favorite?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah good. Which artist stood out as your favorite?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think I prefer Giaal Itottr.
|
|
if (branchId == 12 && response == "s_ce4aa2ab")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_voteForArtist03 (player, self);
|
|
|
|
//-- NPC: Thank you for taking part in our contest. Check back when the event ends to see who won.
|
|
string_id message = new string_id (c_stringFile, "s_375a5dc0");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah good. Which artist stood out as your favorite?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah good. Which artist stood out as your favorite?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I've decided on Kahfr Oladi.
|
|
if (branchId == 12 && response == "s_84e3c8d2")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_voteForArtist04 (player, self);
|
|
|
|
//-- NPC: Thank you for taking part in our contest. Check back when the event ends to see who won.
|
|
string_id message = new string_id (c_stringFile, "s_375a5dc0");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah good. Which artist stood out as your favorite?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah good. Which artist stood out as your favorite?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Definitely Klepa Laeel.
|
|
if (branchId == 12 && response == "s_55773f3")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_voteForArtist05 (player, self);
|
|
|
|
//-- NPC: Thank you for taking part in our contest. Check back when the event ends to see who won.
|
|
string_id message = new string_id (c_stringFile, "s_375a5dc0");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah good. Which artist stood out as your favorite?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah good. Which artist stood out as your favorite?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think I'll pick Boulo Siesi.
|
|
if (branchId == 12 && response == "s_4443365b")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
lilas_dinhint_action_voteForArtist06 (player, self);
|
|
|
|
//-- NPC: Thank you for taking part in our contest. Check back when the event ends to see who won.
|
|
string_id message = new string_id (c_stringFile, "s_375a5dc0");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah good. Which artist stood out as your favorite?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I'm asking for a modest... ahem... donation to the museum of 48,000 credits in exchange for the schematic. Oh, and I should warn you that some knowledge of advanced furniture production is required.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'll take one.
|
|
if (branchId == 21 && response == "s_90b0871f")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_canBuy (player, self))
|
|
{
|
|
lilas_dinhint_action_giveSchematic (player, self);
|
|
|
|
//-- NPC: [Smiling] Excellent. Now, where did I leave those. Oh yes, here they are. Thank you for supporting the arts.
|
|
string_id message = new string_id (c_stringFile, "s_7882a978");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_notEnoughCredits (player, self))
|
|
{
|
|
//-- NPC: I'm afraid you don't have enough credits, and I must insist on the donation. Please return when you have more funds available.
|
|
string_id message = new string_id (c_stringFile, "s_c8e54945");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_noInventorySpace (player, self))
|
|
{
|
|
//-- NPC: It would appear that you are unable to carry it. Please return after you made some space in your inventory.
|
|
string_id message = new string_id (c_stringFile, "s_c845a58c");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I'm asking for a modest... ahem... donation to the museum of 48,000 credits in exchange for the schematic. Oh, and I should warn you that some knowledge of advanced furniture production is required.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I'm asking for a modest... ahem... donation to the museum of 48,000 credits in exchange for the schematic. Oh, and I should warn you that some knowledge of advanced furniture production is required.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oh. That's too much for me. No thank you.
|
|
if (branchId == 21 && response == "s_3f115c47")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Very well. Thank you for visiting the museum.
|
|
string_id message = new string_id (c_stringFile, "s_fb2eead4");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I'm asking for a modest... ahem... donation to the museum of 48,000 credits in exchange for the schematic. Oh, and I should warn you that some knowledge of advanced furniture production is required.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. Would you like to purchase a schematic of our featured artwork?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, please. How much does one cost?
|
|
if (branchId == 26 && response == "s_47df8332")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I'm asking for a modest... ahem... donation to the museum of 48,000 credits in exchange for the schematic. Oh, and I should warn you that some knowledge of advanced furniture production is required.
|
|
string_id message = new string_id (c_stringFile, "s_486f6");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll take one.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Oh. That's too much for me. No thank you.
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_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_90b0871f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_3f115c47");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 21);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. Would you like to purchase a schematic of our featured artwork?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. Would you like to purchase a schematic of our featured artwork?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No thank you. I'm just here to visit the museum.
|
|
if (branchId == 26 && response == "s_6b5b28b2")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I hope you enjoy your visit. Take your time and wander through our collection. It's still not as large as I'd like, but I'm working on that.
|
|
string_id message = new string_id (c_stringFile, "s_1aabf4f7");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. Would you like to purchase a schematic of our featured artwork?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. Would you like to purchase a schematic of our featured artwork?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me anything about Sean Trenwell?
|
|
if (branchId == 26 && response == "s_8b3d6e46")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Mr. Trenwell? Yes, of course. Many of our latest additions and newest programs have only been possible thanks to funding provided by the efforts of Mr. Trenwell. His large personal contributions - both in time and money - have been generous beyond expectations.
|
|
string_id message = new string_id (c_stringFile, "s_7c297430");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oh, whatever. I'm leaving.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Would you be willing to put that in writing so I could share your opinion with the governor?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_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_7552be07");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6d1148d8");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 31);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. Would you like to purchase a schematic of our featured artwork?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. Would you like to purchase a schematic of our featured artwork?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm back for the testimonial for Sean Trenwell you had offered..
|
|
if (branchId == 26 && response == "s_26c02ad3")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Ah, of course. I remember you now. I have everything prepared and loaded onto this datapad that you can show to Mrs. Aryon.
|
|
string_id message = new string_id (c_stringFile, "s_71561c79");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Perfect, thank you!
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_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_b67247f1");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 33);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. Would you like to purchase a schematic of our featured artwork?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum. Would you like to purchase a schematic of our featured artwork?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How long until you look for another work of art to feature?
|
|
if (branchId == 26 && response == "s_9558d37a")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_withinTheHour (player, self))
|
|
{
|
|
//-- NPC: We'll begin the search for another featured work of art within the hour.
|
|
string_id message = new string_id (c_stringFile, "s_6dbeccc3");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_justAFewHours (player, self))
|
|
{
|
|
//-- NPC: In just a few hours we'll start the search for our next featured artwork.
|
|
string_id message = new string_id (c_stringFile, "s_4f049f4e");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_lessThanADay (player, self))
|
|
{
|
|
//-- NPC: It will be less than a day before we begin looking for another work of art that we'll feature here the museum.
|
|
string_id message = new string_id (c_stringFile, "s_5bc37444");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_moreThanADay (player, self))
|
|
{
|
|
//-- NPC: There's still more than a day before the search for our next featured work of art begins.
|
|
string_id message = new string_id (c_stringFile, "s_519f72a3");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_justAFewDays (player, self))
|
|
{
|
|
//-- NPC: There are only a few days left before we begin looking for the next work of art for us to feature.
|
|
string_id message = new string_id (c_stringFile, "s_d9e04161");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_lessThanAWeek (player, self))
|
|
{
|
|
//-- NPC: We'll being looking in less than a week for the next work of art to be featured in the museum.
|
|
string_id message = new string_id (c_stringFile, "s_35487421");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_moreThanAWeek (player, self))
|
|
{
|
|
//-- NPC: Oh, it'll be more than a week before we begin the search for our next featured work of art.
|
|
string_id message = new string_id (c_stringFile, "s_a9f1e0f9");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum. Would you like to purchase a schematic of our featured artwork?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I'm asking for a modest... ahem... donation to the museum of 48,000 credits in exchange for the schematic. Oh, and I should warn you that some knowledge of advanced furniture production is required.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'll take one.
|
|
if (branchId == 27 && response == "s_90b0871f")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_canBuy (player, self))
|
|
{
|
|
lilas_dinhint_action_giveSchematic (player, self);
|
|
|
|
//-- NPC: [Smiling] Excellent. Now, where did I leave those. Oh yes, here they are. Thank you for supporting the arts.
|
|
string_id message = new string_id (c_stringFile, "s_7882a978");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_notEnoughCredits (player, self))
|
|
{
|
|
//-- NPC: I'm afraid you don't have enough credits, and I must insist on the donation. Please return when you have more funds available.
|
|
string_id message = new string_id (c_stringFile, "s_c8e54945");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_noInventorySpace (player, self))
|
|
{
|
|
//-- NPC: It would appear that you are unable to carry it. Please return after you made some space in your inventory.
|
|
string_id message = new string_id (c_stringFile, "s_c845a58c");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I'm asking for a modest... ahem... donation to the museum of 48,000 credits in exchange for the schematic. Oh, and I should warn you that some knowledge of advanced furniture production is required.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I'm asking for a modest... ahem... donation to the museum of 48,000 credits in exchange for the schematic. Oh, and I should warn you that some knowledge of advanced furniture production is required.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oh. That's too much for me. No thank you.
|
|
if (branchId == 27 && response == "s_3f115c47")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Very well. Thank you for visiting the museum.
|
|
string_id message = new string_id (c_stringFile, "s_fb2eead4");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I'm asking for a modest... ahem... donation to the museum of 48,000 credits in exchange for the schematic. Oh, and I should warn you that some knowledge of advanced furniture production is required.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you.
|
|
if (branchId == 29 && response == "s_b9b27823")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I hope you enjoy your visit. Feel free to look around.
|
|
string_id message = new string_id (c_stringFile, "s_cccdca43");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me anything about Sean Trenwell?
|
|
if (branchId == 29 && response == "s_8b3d6e46")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Mr. Trenwell? Yes, of course. Many of our latest additions and newest programs have only been possible thanks to funding provided by the efforts of Mr. Trenwell. His large personal contributions - both in time and money - have been generous beyond expectations.
|
|
string_id message = new string_id (c_stringFile, "s_7c297430");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Oh, whatever. I'm leaving.
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Would you be willing to put that in writing so I could share your opinion with the governor?
|
|
boolean hasResponse1 = false;
|
|
if (lilas_dinhint_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_7552be07");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6d1148d8");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 31);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm back for the testimonial for Sean Trenwell you had offered..
|
|
if (branchId == 29 && response == "s_26c02ad3")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Ah, of course. I remember you now. I have everything prepared and loaded onto this datapad that you can show to Mrs. Aryon.
|
|
string_id message = new string_id (c_stringFile, "s_71561c79");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Perfect, thank you!
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_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_b67247f1");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 33);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hello and welcome to the Bestine Museum.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How long until you look for another work of art to feature?
|
|
if (branchId == 29 && response == "s_9558d37a")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_withinTheHour (player, self))
|
|
{
|
|
//-- NPC: We'll begin the search for another featured work of art within the hour.
|
|
string_id message = new string_id (c_stringFile, "s_6dbeccc3");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_justAFewHours (player, self))
|
|
{
|
|
//-- NPC: In just a few hours we'll start the search for our next featured artwork.
|
|
string_id message = new string_id (c_stringFile, "s_4f049f4e");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_lessThanADay (player, self))
|
|
{
|
|
//-- NPC: It will be less than a day before we begin looking for another work of art that we'll feature here the museum.
|
|
string_id message = new string_id (c_stringFile, "s_5bc37444");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_moreThanADay (player, self))
|
|
{
|
|
//-- NPC: There's still more than a day before the search for our next featured work of art begins.
|
|
string_id message = new string_id (c_stringFile, "s_519f72a3");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_justAFewDays (player, self))
|
|
{
|
|
//-- NPC: There are only a few days left before we begin looking for the next work of art for us to feature.
|
|
string_id message = new string_id (c_stringFile, "s_d9e04161");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_lessThanAWeek (player, self))
|
|
{
|
|
//-- NPC: We'll being looking in less than a week for the next work of art to be featured in the museum.
|
|
string_id message = new string_id (c_stringFile, "s_35487421");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_time_moreThanAWeek (player, self))
|
|
{
|
|
//-- NPC: Oh, it'll be more than a week before we begin the search for our next featured work of art.
|
|
string_id message = new string_id (c_stringFile, "s_a9f1e0f9");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hello and welcome to the Bestine Museum.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Mr. Trenwell? Yes, of course. Many of our latest additions and newest programs have only been possible thanks to funding provided by the efforts of Mr. Trenwell. His large personal contributions - both in time and money - have been generous beyond expectations.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Oh, whatever. I'm leaving.
|
|
if (branchId == 31 && response == "s_7552be07")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Ah... yes. Okay than.
|
|
string_id message = new string_id (c_stringFile, "s_eb35002");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Mr. Trenwell? Yes, of course. Many of our latest additions and newest programs have only been possible thanks to funding provided by the efforts of Mr. Trenwell. His large personal contributions - both in time and money - have been generous beyond expectations.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Mr. Trenwell? Yes, of course. Many of our latest additions and newest programs have only been possible thanks to funding provided by the efforts of Mr. Trenwell. His large personal contributions - both in time and money - have been generous beyond expectations.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Would you be willing to put that in writing so I could share your opinion with the governor?
|
|
if (branchId == 31 && response == "s_6d1148d8")
|
|
{
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Indeed, I would be quite happy to do exactly that. I'll load that into this datapad that you can then take to Mrs. Aryon.
|
|
string_id message = new string_id (c_stringFile, "s_7b488371");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Perfect, thank you!
|
|
boolean hasResponse0 = false;
|
|
if (lilas_dinhint_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_b67247f1");
|
|
|
|
setObjVar (player, "conversation.lilas_dinhint.branchId", 33);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Mr. Trenwell? Yes, of course. Many of our latest additions and newest programs have only been possible thanks to funding provided by the efforts of Mr. Trenwell. His large personal contributions - both in time and money - have been generous beyond expectations.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Indeed, I would be quite happy to do exactly that. I'll load that into this datapad that you can then take to Mrs. Aryon.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Perfect, thank you!
|
|
if (branchId == 33 && response == "s_b67247f1")
|
|
{
|
|
//-- [NOTE]
|
|
if (!lilas_dinhint_condition_noInventorySpace (player, self))
|
|
{
|
|
lilas_dinhint_action_giveSeansTestimony (player, self);
|
|
|
|
//-- NPC: Here you are. I'm glad to help Mr. Trenwell and in this small way repay his generosity to the museum.
|
|
string_id message = new string_id (c_stringFile, "s_1042bed3");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_noInventorySpace (player, self))
|
|
{
|
|
lilas_dinhint_action_setNoRoomSeanTestimony (player, self);
|
|
|
|
//-- NPC: It would seem that you have no room in your inventory to hold this datapad with my testimonial. I'm afraid you'll have to make some room before I can give it to you. Please speak to me again after you've done that.
|
|
string_id message = new string_id (c_stringFile, "s_4f010def");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Indeed, I would be quite happy to do exactly that. I'll load that into this datapad that you can then take to Mrs. Aryon.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah, of course. I remember you now. I have everything prepared and loaded onto this datapad that you can show to Mrs. Aryon.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Perfect, thank you!
|
|
if (branchId == 36 && response == "s_b67247f1")
|
|
{
|
|
//-- [NOTE]
|
|
if (!lilas_dinhint_condition_noInventorySpace (player, self))
|
|
{
|
|
lilas_dinhint_action_giveSeansTestimony (player, self);
|
|
|
|
//-- NPC: Here you are. I'm glad to help Mr. Trenwell and in this small way repay his generosity to the museum.
|
|
string_id message = new string_id (c_stringFile, "s_1042bed3");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lilas_dinhint_condition_noInventorySpace (player, self))
|
|
{
|
|
lilas_dinhint_action_setNoRoomSeanTestimony (player, self);
|
|
|
|
//-- NPC: It would seem that you have no room in your inventory to hold this datapad with my testimonial. I'm afraid you'll have to make some room before I can give it to you. Please speak to me again after you've done that.
|
|
string_id message = new string_id (c_stringFile, "s_4f010def");
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah, of course. I remember you now. I have everything prepared and loaded onto this datapad that you can show to Mrs. Aryon.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
removeObjVar (player, "conversation.lilas_dinhint.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|