Initial Commit
Initial Commit
This commit is contained in:
16
_module/nss/quest_hasintgol2.nss
Normal file
16
_module/nss/quest_hasintgol2.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user