Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

16 lines
530 B
Plaintext

#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;
}