Initial Commit
Initial Commit
This commit is contained in:
15
_module/nss/quest_hasintgold.nss
Normal file
15
_module/nss/quest_hasintgold.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
#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";
|
||||
|
||||
if (GetCampaignInt(sDB, sPrefix+"_INTELCOST") > GetGold(oPC)) return FALSE;
|
||||
return TRUE;
|
||||
}
|
Reference in New Issue
Block a user