17 lines
474 B
Plaintext
17 lines
474 B
Plaintext
#include "x4_inc_functions"
|
|
int StartingConditional()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
string sDB = CharacterDB(oPC);
|
|
|
|
int nIntelNPC = GetLocalInt(oPC, "QuestIntel");
|
|
string sIntelNPC = IntToString(nIntelNPC);
|
|
string sPrefix;
|
|
if (nIntelNPC == 0) sPrefix = "QUEST";
|
|
else sPrefix = sIntelNPC+"_NPC";
|
|
|
|
int nIntelCost = GetCampaignInt(sDB, sPrefix+"_INTELCOST");
|
|
if ((nIntelCost - nIntelCost/5) > GetGold(oPC)) return FALSE;
|
|
return TRUE;
|
|
}
|