Skip to content

Current questions and answers regarding the map editor.

#460
Auto-translated
Ment, thanks, but I still don't understand. I went to the map properties, clicked on scripts, copied everything, and pasted it there (without any Russian letters, of course). The only thing I added was: `
ChangeHeroStat(h[1],7,k);
ChangeHeroStat(h[2],7,k);` Here, I also added the same thing, but with (h[3],7,k); and (h[4],7,k);. I have 4 players, and if I understand correctly, this also needs to be done, right? `
hq=2;` I changed it to `hq=4;` because there are four players with starting heroes. And I also added the following to `Trigger(PLAYER_REMOVE_HERO_TRIGGER,1,'MinusHero');` and `Trigger(PLAYER_REMOVE_HERO_TRIGGER,2,'MinusHero');`: `
Trigger(PLAYER_REMOVE_HERO_TRIGGER,3,'MinusHero');
Trigger(PLAYER_REMOVE_HERO_TRIGGER,4,'MinusHero');` (I didn't touch anything else). But there's no result; I've already tried increasing the value, but it doesn't work. Today, I figured out how to click the "check" button, and it gives me the following errors: `
Function NewHero not defined, line 6
Function newDay not defined, line 11
Function MinusHero not defined, line 18
Function nh not defined, line 4` Either I'm pasting it in the wrong place, or I don't understand anything at all.