Ancordia_PRC8/_module/nss/quest_intfree.nss

16 lines
418 B
Plaintext
Raw Permalink Normal View History

2023-09-21 19:51:32 -04:00
#include "quest_inc"
int StartingConditional()
{
string sDB = CharacterDB(GetPCSpeaker());
object oPC = GetPCSpeaker();
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") == 0) return TRUE;
return FALSE;
}