Skip to content

Posts from Questions and answers about ERM scripts for WoG.

5.0 (1 rating)
User Avatar
DracoLich Спасибо!
In reply to Kolder
User Avatar
Auto-translated
DrakoLich, do you know where I can find a glossary of ERM terms?


Out of darkness light is born
From light the darkness is born


User Avatar
Auto-translated
Probably a silly question, but just in case: besides Erm Script Editor 1.2.5.17, which I'm currently using, is there anything newer for editing erm files, or is this the latest version?
Auto-translated
Gentlemen, can anyone offer advice on my question?
User Avatar
Auto-translated
SSandro, isn't it possible to do it using a standard loop to iterate through the heroes by their index, as in the example at http://forum.df2.ru/index.php?showtopic=2457 about earth elementals?
Auto-translated
I tried to figure it out. So, will I have to run the loop 155 times? Also, I didn't quite understand how to determine whether a hero is currently in the game or not. Perhaps there is still a way to "work" with the current hero without forcing him to visit specific objects, etc.?
User Avatar
Auto-translated
SSandro, I'm not a super pro, but I'll try to figure it out...

Question for those who know: is it possible to make it so that when taking a book with all air spells, if the "Dimensional Door" and "Fly" spells are disabled in the "In the Wake of Gods" settings, they do NOT appear? Or is it necessary to create a new artifact with similar properties (if so, how do I do it? I mean, can I make it so that when wearing the artifact, spells are added, but how do I remember the spells that the hero learned BEFORE wearing this artifact and while wearing it, so that they don't disappear when the artifact is removed?).
User Avatar
Auto-translated
UN:A
There seems to be an option there: "artifact grants a spell." Just add all air spells one by one, except for Death Drain and Flight.
And yes, without triggers, you can only determine the current hero by iterating through them. But that doesn't take long; much larger processes occur during the first heroification, and we tolerate it );

Added 2 minutes later
Ah yes, it's unlikely you'll be able to redo the book; you can try using an empty art asset.
Мои трассы для великолепной TrackMania Nations
Кампании, биографии командиров и ERM-помощь для WoG 3.58f
User Avatar
Auto-translated
DracoLich, everything is great except for one thing: if an artifact grants a spell (for example, an empty artifact from the reserves), and we pick up another artifact that grants the same spell (for example, a living scroll), and then learn THAT same spell in the spellbook through the mage guild, a bug occurs. When removing artifact 2, and then artifact 1, everything is fine, BUT! when removing artifact 1, and then artifact 2, the spell disappears from the spellbook! How can this be fixed, and is it fixable at all?
User Avatar
Auto-translated
DracoLich, it's strange, but a scroll combined with a spellbook, or a spellbook combined with a hat of spells, doesn't produce similar effects...
Auto-translated
Has anyone tried changing the area of effect of spells during battle? For example, allowing the casting of Antimagic or Bless on enemy units. As far as I understand, this cannot be done with standard commands. I tried to find it using ArtMoney, perhaps some byte controls the target of the spell, but I haven't had any success yet. I found addresses that reference spell descriptions, but I don't understand what's there and how it works. Changes in those areas don't seem to affect anything, and it's also unclear whether to look up or down from the pointer. In general, I want to make it so that Antimagic can be cast when a specific artifact is present, with the option to target only allies, only enemies, everyone, or just one specified unit. I've basically written the code for it. But: - It's necessary to select someone first, after which the choice appears. - The dwarf's resistance is not taken into account. - The resistance of creatures (dragons) to magic is also not taken into account. - After casting on allies, it's no longer possible to cast Antimagic on them again - either you need to cast a spell removal, or wait for the effect to end. For now, the only option is to add the ability to cast Antimagic to the spell removal (again, with the option to choose), but that doesn't seem very good. And another question - is it possible to remove a selectively active spell (I don't like the BMx16:Gy1/0/0 option because the icon remains)? Or should I remember what spells are active and their duration, remove them all, and then restore the ones that need to be kept? PS: This is for WOG 3.58f (not TE)
Auto-translated
The issue is resolved. I now have a general understanding of how everything is organized in memory. All that remains is to implement it.
User Avatar
Auto-translated
A very important question: is it possible to change the music for a specific mission at the script level? (That is, in a specific campaign mission, instead of the usual Grass.mp3, the music I specify will play).
P.S. I'm saying right away, I need more than 10 seconds... (So that I'm not told to use UN).
User Avatar
Auto-translated
Drak, don't you even know? :(

Statistics