Skip to content

Posts from Custom ERM scripts are not working in the game.

No ratings yet — be the first to rate!
User Avatar
Auto-translated
Hello, friends. I decided to study ERM a bit, downloaded the reference manual, and the script editor (haven't gotten to it yet), and decided to simply test whether a basic script would work or not:
ZVSE
!#VRv1:S0; [set variable v1 to 0]
!?LE0/0/0; [visit event in the northwest corner of the surface]
!!VRv1:+1; [add 1 to v1]
!!IF:M^You are the %V1 visitor of this northwest corner of the surface!^; [show message]
I created a map, placed a hero on a cell below the event, loaded the game, but when I enter the cell, NOTHING (!!) happens. On other ERM maps, scripts (not mine, of course) work perfectly. By the way, when loading, a message box appears like this: "An ERM script was found, do you want to vogify the map?", i.e., the game sees the script, but it somehow doesn't execute. Question: what needs to be done to make it all work? Thank you.
User Avatar
Auto-translated
Gudwin
Hello, friends.

I decided to study ERM a bit, downloaded the reference manual, and the script editor (haven't gotten to it yet), and decided to simply test whether a basic script will work or not:


I created a map, placed a hero on a tile below an event, loaded the game, but when I reach the tile, NOTHING (!!) happens. On other ERM maps, scripts (not mine, of course) work perfectly.

By the way, when loading, a message box appears like this: "An ERM script was detected, do you want to 'vogue-ify' the map?", i.e., the game sees the script, but it somehow doesn't execute.

Question: what needs to be done to make it all work?

Thank you.
Hi, I don't know anything about ERM, write to pHOMM, maybe he can help you.
Сейчас балуюсь этим https://vcmi.eu/download/
За то что нейтралы не бегают за единичкой, для меня это уже стоит того
Auto-translated
It’s highly likely that you didn’t follow this rule: the script inserted into the map should either be dated to a day greater than 600 (as most people do), or the “apply to computer players” checkbox should be enabled and the “apply to live players” checkbox should be disabled (this is what I do))).

The event must be located exactly in that cell, specifically 0/0 on the surface (check it in the editor, even though it seems silly, and you’ve probably checked it many times already, but such simple mistakes are sometimes found even after long and careful checks. As for the automatic check by the ERM analyzer for the presence of an event in that cell, I don’t remember… it should be there...).

If all this doesn’t help, please contact me on ICQ 421*049*471, I will explain everything and we will check everything. If you don’t have ICQ, then send me a private message.

Good luck!
Инфа о разных моих проектах, по большей части геройских, тут http://phomm.narod.ru

Statistics