Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
New here? I'm Roha — want a quick tour?
1. The view on the map.
Is it the town model?
flag=0;
DefC=GetDefenderCreatures()
for i, def in DefC do
if GetCreatureType(DefC)==id then
flag=1;
num=GetCreatureNumber(DefC);
end;
end;local num = 0
for i, unit in GetDefenderCreatures() do
if GetCreatureType(unit) == id then
num = num + GetCreatureNumber(unit)
end
end
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