Skip to content
User Avatar
#1849
Auto-translated
when the main creatures are destroyed, the summoned creatures disappear
The next argument after x, y, SummonCreature, if equal to nil, creates a real squad.
The second option: do not allow the battle to end automatically until at least one side has a squad. For example, this is how I implemented the battle with a mage in the fifth mission.
function finish()
EnableAutoFinish(nil)
while not combatStarted() do
sleep(20)
end
while GetCreatures(0)[0] and GetCreatures(1)[0] do
sleep(20)
end
EnableAutoFinish(1)
end

startThread(finish)
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4