Ancordia_PRC8/_module/nss/quest_hasintgold.nss

16 lines
424 B
Plaintext
Raw Permalink Normal View History

2023-09-21 19:51:32 -04:00
#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;
}