Skip to content

Current questions and answers regarding the map editor.

User Avatar
#3070
Auto-translated
RedHeavenHero
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
Thank you very much for your help!
Кампании для Heroes V 3.1 (Трилогия):

Пробуждение зла
Нашествие из Преисподней
Смена эпох

Скачать все кампании одним архивом: Яндекс.Диск Google.Диск

You can download the set of 3 Campaigns (English version) here


Одиночные сценарии Heroes V 3.1:


Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы

Мультиплеерные карты для Heroes V 3.1:

Легендарная война
Сердце вулкана
Передел мира