Ancordia_PRC8/_module/nss/quest_cliagain.nss

16 lines
530 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);
string sName = GetCampaignString(sDB, "QUEST_CLI_NAME");
string sLastName = GetCampaignString(sDB, "QUEST_CLI_LASTNAME");
object oNPC = GetFirstObjectInArea();
while (GetIsObjectValid(oNPC))
{
if (GetLocalString(oNPC, "Name") == sName && GetLocalString(oNPC, "LastName") == sLastName) return TRUE;
oNPC = GetNextObjectInArea();
}
return FALSE;
}