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.
If the map editor crashes, and this is normal for it, then use ScriptEditor. Open your map, find MapSkript.lua there, and edit it.