Skip to content

Current questions and answers regarding the map editor.

User Avatar
#4305
Auto-translated
&T&T&Twreqnd
While I was trying to insert the script, the editor crashed twice, and it still doesn't work(((

I'll try writing the simplest script now.

function latnikF()
LevelUpHero("Nikolai");
end;
Trigger(OBJECT_TOUCH_TRIGGER, "latnik", "latnikF");

SetObjectEnabled("latnik", nil);

Place any creature. And in the Name field, write "latnik". There's another error. . You are using the wrong hero name.

If the map editor crashes, and this is normal for it, then use ScriptEditor. Open your map, find MapSkript.lua there, and edit it.
Attachments 1
1 file attached • Total size: 266.2 KB