Кампании: "Новый порядок", "Серый Альянс", "Поиски Истины"
Трейлер №2 кампании "Дыхание Пустоты": https://www.youtube.com/watch?v=XkHKXk5BctA&ab_channel=%D0%90ndrei_21
New here? I'm Roha — want a quick tour?
Let me warn you right away that "random" is already a reserved variable name; it's also the name of a function.
function Armia()
local creatures = {{id1, quantity}, {id2, quantity}, etc}
if GetDate(3)==3 then
creature = creatures[random(length(creatures))+1] -- We take a random creature
local id = creature[1] -- We get its ID
local amount = creature[2] -- And the quantity for this type
CODE that operates with the random ID and quantity
end
end
;Well, I tried, but in the end, the gate still requires a key even after defeating the 2 key players. https://disk.yandex.ru/i/MIFLpv7heo7i1g
Well, I tried it, but in the end, the gate still requires a key even after defeating 2 key players. https://disk.yandex.ru/i/MIFLpv7heo7i1g
The editor indicated where the error is.
Hello. I'm writing about what seems like a simple issue. After the QuestionBox, when the OK option is selected, a battle should start (this battle should take place with the hero who made the choice, not with a specific hero). But the console throws an error and says something like: Hero "1" does not exist. I understand that I've made a mistake somewhere with the hero variable and probably don't know something about all of this. I would like to know what I forgot to add to the scripts this time. Thank you in advance.
function DwarfCombat(hero)
StartCombat(hero, nil, 4, CREATURE_STONE_DEFENDER, 175, CREATURE_BERSERKER, 65, CREATURE_FLAME_KEEPER, 45, CREATURE_WARLORD, 35, nil, 'ringfound', nil)
end;