Skip to content

Current questions and answers regarding the map editor.

User Avatar
#2927
Auto-translated
RedHeavenHero
The first argument in the called function is the player number, and the second is the response.

Why go straight to "ж"?
You can use a loop.
Aha, that's what it is.... Yes, that makes sense. Everything is clear now, thanks! And where do I get the icon address, and what should it look like? Why isn't the main text displayed in the center of the text box?

Added 22 minutes later
RedHeavenHero

Why go straight to "ж"?
You can use a loop.

Is this approximately what you mean?

function ubratF()
while (ubr==0) do
sleep(5);
for i=1,14 do
local t1=GetHeroCreatures("RedHeavenHero01", i);
if (t1>1) then
RemoveHeroCreatures("RedHeavenHero01", i, t1/4);
end;
end;
for i=106,112 do
local t1=GetHeroCreatures("RedHeavenHero01", i);
if (t1>1) then
RemoveHeroCreatures("RedHeavenHero01", i, t1/4);
end;
end;
sleep(8);
MessageBox(GetMapDataPath().."chuma.txt");
ubr=1;
end;
sleep(5);
end;
Кампании для Heroes V 3.1 (Трилогия):

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

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

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


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


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

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

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