Skip to content

Current questions and answers regarding the map editor.

User Avatar
#2196
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?
So, before turning off the trigger, you probably need to turn it on, and indeed, you're missing an "end".
Add this to the end of your script:

end
Trigger(6,'qaz','qaz')
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4