Skip to content

Posts from Questions and answers about ERM scripts for WoG.

5.0 (1 rating)
In reply to Макс96
Auto-translated
Max96;139200

I don't understand anything about monsters myself.
Use !!UN:T, and you'll be happy. You'll just have to write a lot of conditions, but it's elementary.

For example, it allows you to recruit Dragonlings in a Dungeon:

!!UN:T4/6/1/196; - you just need to make it for one Castle (I think you'll figure it out).
In reply to Д'якон
User Avatar
Auto-translated
Diakon;139391
Use !!UN:T and you'll be happy. You'll just have to write a lot of conditions, but it's elementary.

For example, it allows you to recruit Dragonlings in the Dungeon:

!!UN:T4/6/1/196; - you just need to make it for one Castle (I think you'll figure it out)

!!UN:T replaces existing creatures, not adds new ones.
Мой сайт[/size]
In reply to kcfgogbfalgfl
Auto-translated
Well, if you want something more challenging, you can try using !!UN:C.
In reply to Д'якон
User Avatar
Auto-translated
Deacon;139538
Well, if you want something more complex, you can use !!UN:C.
I don't really know how to use !!UN:C, and it would require data addresses. I purchased the Dragonlings not in the dwelling, but by clicking on the growth icon (!?CM1). But when I enter the city, the game displays a black screen (without any visible ERM errors).
Мой сайт[/size]
In reply to SoulDrinker
User Avatar
Auto-translated
Can you use ERM to create new spells? If so, how?
You can't (you can only create pseudo-spells) using ERM. To add them, you need to modify the executable code.
Why aren't there any new towns in 3.58 then?
To add new towns, you also need to modify the executable code.
Without this, you can only replace existing towns.
Мой сайт[/size]
In reply to Макс96
User Avatar
Auto-translated
Max96;138439
Here:
!?OB57;
!!HE-1:P?v1/?v2/?v3;
You can substitute any variables for v1, v2, and v3.
As a result, these variables will contain the coordinates of the obelisk.
You can do it differently, but this is simpler.
Max96, my friend, this is the first method I tested, and it doesn't always work. The problem is that when triggering objects, the hero doesn't always step onto them, you understand what I mean? He climbs onto the Obelisk, but with the Skeleton, for example, he approaches it closely but doesn't step onto it :( . That's the whole problem.
I'll have to check the entire area within a radius of 2 cells for the presence of object #22, that is, the Skeleton, because I need it specifically for the script)...
In reply to Макс96
User Avatar
Auto-translated
Has anyone tried changing the hero portraits? I converted JPG to PCX, put it in the folder, specified the path, but the image doesn't show up. Instead of the hero, there's some blurry gray-black mass, as if a bubble of paint burst =). In short, it doesn't accept the image. Hmm, what should I do?
In reply to Joyce
Auto-translated


!?HM-1;
!!POv998/v999/v100:T?y1 S?y2;


Read the description of !?HM.
If the target object y1, y2 turns out to be our skeleton, then we can do whatever we want.

I haven't tested it in practice. If this approach doesn't work, let me know... I'll think about it further.

Added later...


!?HM-1;

!!VRy1:S0;
!!VRy2:S0;
!!OBv998/v999/v100:T?y1 S?y2;
!!VRv1:S0;
!!VRv2:S0;
!!VRv3:S0;
!!VRv1&y1=22:Sv998;
!!VRv2&y1=22:Sv999;
!!VRv3&y1=22:Sv100;


You can also do it this way. If an object with these coordinates doesn't exist, the line should be ignored without an error. And if it exists, and y1, y2 indicate that it's a skeleton, then you already know the coordinates of the skeleton that the player is running towards.
In reply to myav
User Avatar
Auto-translated
Cthulhu will punish me for my absentmindedness)). I completely forgot about the trigger! :o. This is exactly what I needed. Thank you, myav :)
User Avatar
Auto-translated
I'm a beginner in scriptwriting, but I don't know English well. Could you please provide a link to a Russian script editor?
Auto-translated
Is it possible to write a script directly in the game? For example, to remove a bush, because in my campaign, in the new beginning, mission 2, the script doesn't work when the monk says to do a good deed, and the bush on the way to the Necropolis should disappear.

Statistics

Welcome our newest member: Emil