Skip to content

Current questions and answers regarding the map editor.

User Avatar
#2194
Auto-translated
advencher
I'm writing in the simplest language possible.
I create a region named qaz.
I write this:
function qaz (heroname)
if heroname == "Metlirn" then
CreateArtifact(54, 54, 20, 10, 0);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "qaz", nil);
end;
It gives an "undefined qaz" error. How do I assign the region to it?
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "qaz", "qaz"); - but did you declare the trigger itself? At least name the function something different from the region, like qazF, for example. Otherwise, it should work in the game. And you forgot to add one more end; at the 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:

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