37 lines
598 B
Plaintext
37 lines
598 B
Plaintext
|
|
||
|
void main()
|
||
|
{
|
||
|
object oHench;
|
||
|
object oPC;
|
||
|
int iFlag;
|
||
|
int iDifficulty;
|
||
|
int iIndex;
|
||
|
|
||
|
oPC=GetPCSpeaker();
|
||
|
|
||
|
iFlag = 0;
|
||
|
iIndex = 1;
|
||
|
|
||
|
while (iIndex < 5)
|
||
|
{
|
||
|
oHench = GetHenchman(oPC,iIndex);
|
||
|
if (GetTag(oHench) == GetLocalString(oPC,"QuestEscort"))
|
||
|
{
|
||
|
iFlag = 1;
|
||
|
RemoveHenchman(oPC,oHench);
|
||
|
AssignCommand(oHench,ClearAllActions());
|
||
|
}
|
||
|
iIndex++;
|
||
|
}
|
||
|
|
||
|
if (iFlag == 1)
|
||
|
{
|
||
|
iDifficulty = GetLocalInt(oPC,"QuestDifficulty");
|
||
|
iDifficulty++;
|
||
|
SetLocalInt(oPC,"QuestDifficulty",iDifficulty);
|
||
|
}
|
||
|
|
||
|
ExecuteScript("qst_checkdone",OBJECT_SELF);
|
||
|
}
|
||
|
|