Skip to content

Current questions and answers regarding the map editor.

User Avatar
#3069
Auto-translated
Here. It calculates the total number of creatures in the defending army.
local num = 0
for i, unit in GetDefenderCreatures() do
	if GetCreatureType(unit) == id then
		num = num + GetCreatureNumber(unit)
	end
end
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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