Skip to content

Current questions and answers regarding the map editor.

User Avatar
#3405
Auto-translated
function stopv()
Trigger(6, 'stopv', nil)
MessageBox(???)
end

function kill_half_army(hero)
Trigger(6, 'kill_half_army', nil)
for i=0,6 do
local t, n = GetObjectArmySlotCreature(hero, i)
RemoveHeroCreatures(hero, t, ceil(n/2))
end
end

Trigger(6, 'stopv', 'stopv')
Trigger(6, 'kill_half_army', 'kill_half_army')
You can do it like this, but you'll need another region called "kill_half_army". When a hero enters this region, they will lose half of their army.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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

Statistics

Welcome our newest member: artem