Skip to content

Current questions and answers regarding the map editor.

User Avatar
#729
Auto-translated
Yeah. Duncan, please read the FAQ on mapmaking, which can be found in this section. The answer to this question is there:
Using a script. To start entering the script, click MapProperties in the top panel of the editor, go to the Script tab, and click Edit. You need to give the monster a script name in advance: select it, find the Name line in the left panel of the editor, and write, for example, Monster1 (remember that the editor is case-sensitive).
The script text looks something like this:

function fMes1(heroname)
MessageBox('[path to the text file in Unicode encoding]');
SetObjectEnabled('Monster1',true);
sleep(5);
MakeHeroInreractWithObject(heroname,'Monster1');
Trigger(OBJECT_TOUCH_TRIGGER,'Monster1',nil);
end;
SetObjectEnabled('Monster1',nil);
Trigger(OBJECT_TOUCH_TRIGGER,'Monster1','fMes1');
If something is unclear, ask ;).
Карты для Heroes of Might and Magic V
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"

Кампания для "Кодекса Войны"
"Выбор Сагиттеля"

Statistics

Welcome our newest member: leyu