Auto-translated
Here's the function I wrote based on your suggestion:
function cherti ()
while (1) do
sleep(2);
if (Exists('chert1') == nil) and (Exists('chert2') == nil) and (Exists('chert3') == nil) and (Exists('chert4') == nil) and (Exists('chert5') == nil) and (Exists('chert6') == nil) and (Exists('chert7') == nil) and (Exists('chert8') == nil) then
Quelaag ();
break
end;
end;
end;
startThread("cherti");
function Quelaag ()
DeployReserveHero( "Oddrema", 60, 36, GROUND );
end;
But after all the "cherti" are destroyed, nothing happens. Can you tell me where the error is?
Added 23 minutes later
And another question. Is it possible to create a hidden connection between quests? I'll try to come up with a simple example:
Quest - destroy an enemy hero.
Secondary quest - destroy a neutral creature.
When you approach the enemy hero, dialogue #1 plays, but if you have destroyed the neutral creatures, dialogue #2 will play.
Also, if you simply fight the enemy hero, his army will have 5 phoenixes.
But if you defeat the neutral creatures, he will have 250 wolves and some artifact will be found.
Is it possible to implement something like this?