Hello,
please help me write a script.
Basically, the idea is that on the battlefield, in the battle window, a certain number of monsters appear.
After they are killed, 2 more squads are summoned, and their quantity is multiplied by 2.
The ideal option would be to have an escape key pressed,
the battle ends, and you receive a prize depending on the number of spawned enemies killed.
If this isn't possible, just have a certain number of spawns.
Here's another idea:
the battle ends after you lose more than half of your troops.
I don't know about bonuses for the number of enemies killed, but you can see the spawn itself in my map /topic/11089/. (Open the map with an archiver, view the CombatScript.lua file). After the death of n stacks, new, more powerful ones appear there