35 lines
560 B
Plaintext
35 lines
560 B
Plaintext
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;
|
|
}
|
|
|