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.
Added 22 minutes later
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;
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира