Auto-translated
Hello, I haven't been doing mapmaking in Heroes for 4 months, but I decided to get back to it. However, even with the simplest scripts, I'm having trouble.
Here's the script:
function gloriaF ()
if HasArtefact ("RedHeavenHero04", 58);
then MessageBox (GetMapDataPath().."gloriaF.txt");
ChangeHeroStat ("RedHeavenHero04", STAT_EXPERIENCE 8000);
Trigger(OBJECT_TOUCH_TRIGGER, ”gloria”, nil );
else MessageBox (GetMapDataPath().."gloria1F.txt");
end;
end;
SetObjectEnabled(”gloria”, false);
Trigger(OBJECT_TOUCH_TRIGGER, ”gloria”, ”gloriaF” );
The encoding seems to be correct (I extracted the "name" file from the map and kept changing and renaming it), but no matter how I tweak the script, it won't work. 4 months ago, I was writing much more complex scripts...
By the way, the first map is already ready. I just need to fix this script and I'll upload it.
Please help me fix the script (maybe I'm disabling the trigger too early, or I forgot a parenthesis).