Skip to content

Posts from Questions and answers about ERM scripts for WoG.

5.0 (1 rating)
User Avatar
18 years ago
Auto-translated
Another question. And with which command can I get the position of a stack in battle from its stack number?
In reply to Prorok
User Avatar
18 years ago
Auto-translated
Prorok;149276
Another question. And with which command can I get the position of a stack in battle from its stack number?
ZVSE
!!BM{stack number}:P?{variable};
User Avatar
18 years ago
Auto-translated
For some reason, the game doesn't like my line of code. !!BMv300:P?v303; v300 is a variable that stores the stack number. What's wrong with it?
User Avatar
18 years ago
Auto-translated
!!BMv5208:Bv5204; Store the number of monsters in stack v5208 in variable v5204

What's wrong with this line?
18 years ago
Auto-translated
1. He probably wrote this right after ZVSE. 2. v300 or undefined at the time of access. Or it goes outside the 0..43 range. I'll probably explain it more clearly. 1. The !!BM command can only be used inside: !?FU, !?BR, !?BG, !?BF. Well, maybe I forgot something else. In other cases, it will throw an error. 2. If, at the time of accessing !!BMv300, our variable v300 does not have one of the values: 0..43, it will again throw an error. There may be other options, but it is unlikely that they are the cause.
User Avatar
18 years ago
Auto-translated
What an idiot I am! I forgot the "?" before the variable I was saving to! Thank you.
User Avatar
18 years ago
Auto-translated
Could someone provide a link to the ERM itself?
User Avatar
18 years ago
Auto-translated
Well, I always thought it was a programming language developed for Heroes 3. How can you even provide a link to it? I know there's an ERM help file by Dracolich, which you can find here: dracolich.narod.ru.
User Avatar
18 years ago
Auto-translated
That’s exactly what I needed. Thanks!
User Avatar
18 years ago
Auto-translated
I replaced the priestess with a blue mage and wanted to use scripts to make him shoot a beam like a mage. I got something like this:
!!MA:X176/?v5226;
!!VRv5226:+2048;
!!MA:X176/v5226;
But the beam turned out to be black and comes from the middle of the staff. How can I make it appear in the right place and be green?
User Avatar
18 years ago
Auto-translated
Sorry, slightly off-topic, but I'm just overflowing with emotions! I read the entire section, downloaded all the programs, and will be experimenting. I've long dreamed of creating a bunch of heroes like Jelu and Dragon. The only problem is that I don't have enough creatures! So, here's my first request for advice: what creatures could serve as a third-tier unit for someone? Like how Elves have Snipers and Archers, and Wizards have Fanatics and Mages. Maybe I could remove a couple of Castles and create a third-tier unit, like Centaurs evolving into Minotaurs, or something similar. In other words, allow a certain Castle to produce third-tier units. And how difficult would that be? I saw people talking about programming, and I don't think my knowledge of Qbasic and VB will be of much help! (As a last resort, I was thinking of at least creating an upgrade for Golems to a 3rd or 4th tier at the Tower. But that's probably not easy either. Although... I wanted something like an external Golem factory inside the Castle. So, you can choose between gold or clay Golems! But there, the number of Golems of each type is separate, and I need them together. You buy clay, and it also takes crystals. And then, if you want, you can upgrade them. In general, it's a tough thing, so many ideas, I could flood the entire forum! ) The saddest thing is that my thesis is due soon, and I'm studying ERM! )
In reply to Dragon-King31
User Avatar
18 years ago
Auto-translated
Guys, if there's anyone here who's an expert, please help! Why don't the objects in these locations disappear after using this command?
!?LE29/52/0;
!!OB50/27/0:T0;
!!OB50/30/0:T0;
(Although the trigger is executed, as it displays the message!)
In reply to nik312
User Avatar
18 years ago
Auto-translated
Because the team is incorrect – object 0 exists, but it’s a dummy.
To remove an object, use UN:O.
In reply to nik312
User Avatar
18 years ago
Auto-translated
changed to
!#TR29/68/0:P1;
!#TR30/68/0:P1;
!?LE29/52/0;
!!UN29/48/0:O;
!!UN31/48/0:O;
!!LE29/52/0:M^You saw a fire and spent the rest of the day putting it out^;
!!HE-1:W0;
!!TR29/51/0:P1;
!!TR30/51/0:P1;
!!TR29/50/0:P1;
!!TR29/49/0:P1;
!!TR29/48/0:P1;
!!TR29/51/0:E0;
!!OB29/51/0:T119;
!!OB29/49/0:T119;
!!OB29/48/0:T119;
!?LE33/55/0;
!!HE-1:W600;
It says the script is incorrect and produces the following (see screenshot)
:smile32:
Attachments 1
1 file attached • Total size: 543.8 KB
In reply to nik312
User Avatar
18 years ago
Auto-translated
See the syntax!!! Do you have any documentation on ERM?
!!UN:Ox/y/l/h; - delete object
x/y/l = coordinates, h = delete description on right-click (0=no, 1=yes)

Statistics

Welcome our newest member: recijeb