function armyrunF()
i=0;
i=i+1;
while i<=176 do
if heroname == "Brem" then
MessageBoxForPlayers(GetPlayerFilter(GetCurrentPlayer()),GetMapDataPath().."armyrun.txt");
RemoveHeroCreatures("Brem", i, 1E6);
MoveHeroRealTime('Brem', 87, 20, -1);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "armyrun", nil);
else sleep (1);
end;
end;
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "armyrun", "armyrunF");Please check it.
And how can I trick the system to remove all creatures, but leave only one angel?
Added 43 minutes later
Also, I have a question about the complex function TalkBoxForPlayers.
I need the following: display text and three answer options.
When the first answer is selected, call a function that displays text and awards the player who called TalkBoxForPlayers with a victory.
When the second answer is selected, call a function that displays text2 and awards the player who called TalkBoxForPlayers with a victory.
When the third answer is selected, call a function that displays text3 and awards the player who called TalkBoxForPlayers with a victory