Auto-translated
Hello everyone! I'm new to the site and a beginner mapmaker. Actually, I'm not a mapmaker at all, I don't know anything about scripts, but let's get to the point. I made a map, and what script do I need so that when my hero enters a specific region, he stops and the victory is recorded?
P.S. - What script do I need so that the enemy hero just stands still?
function win(hero)
if hero == "scripted hero name" then
Win()
end
end
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "region", "win")2. EnableHeroAI("scripted hero name", nil)
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4