Auto-translated
No, the scripts still don't work. What's the problem? Could you take a look if possible?
You need to unlock the console in the game, and it will show you exactly what the problem is with the script. There's no need to post the entire script here every time.
Regarding the script, I took a quick look and noticed this:
function SetPlayerStartResources (player, wood, ore, mercury, crystal, sulfur, gem, gold)
if player == 1
then wood = 20
ore = 20
mercury = 10
crystal = 15
sulfur = 10
gem = 10
gold = 15000
end
endWhat is this? Reinventing the wheel, and doing it wrong.
SetPlayerStartResources (1, 20, 20, 10, 15, 10, 10, 15000)
--without any function, etc.Maybe it's simpler this way?And yes, what is this function for?
function alive()
while IsHeroAlive("Hero9") do
sleep(10)
end
Loose()
-- or --
Loose(1)
endIf it's what I think it is, it can be done much simpler and clearer, without any loops
Кампании для Heroes V 3.1 (Трилогия):
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира
Пробуждение зла
Нашествие из Преисподней
Смена эпох
Скачать все кампании одним архивом: Яндекс.Диск Google.Диск
You can download the set of 3 Campaigns (English version) here
Одиночные сценарии Heroes V 3.1:
Незваные гости
Красный кристалл
Синий кристалл
Закат тьмы
Мультиплеерные карты для Heroes V 3.1:
Легендарная война
Сердце вулкана
Передел мира