EN4_PRC8/_module/nss/qst_c_3_2.nss

35 lines
560 B
Plaintext
Raw Permalink Normal View History

int StartingConditional()
{
object oPC;
object oHench;
string sTarget;
int iResult;
int iQuest;
int iFlag;
int iIndex;
oPC = GetPCSpeaker();
sTarget = GetLocalString(oPC,"QuestTargetNPC");
iQuest = GetLocalInt(oPC,"QuestType");
iResult = FALSE;
iFlag = 0;
iIndex = 1;
while (iIndex < 5)
{
oHench = GetHenchman(oPC,iIndex);
if (GetTag(oHench) == GetLocalString(oPC,"QuestEscort"))
{
iFlag = 1;
}
iIndex++;
}
if (iQuest == 3 && sTarget == GetTag(OBJECT_SELF) && iFlag == 0)
iResult = TRUE;
return iResult;
}