Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: Index of Erm Help and Discussion thread
Thread: Index of Erm Help and Discussion thread [ This thread is 6 pages long: (1) 2 3 4 5 6 ]
master_learn
master_learn


Legendary Hero
walking to the library
posted July 13, 2012 07:23 AM bonus applied by angelito on 17 Jul 2012.
Edited by master_learn at 21:14, 20 Jul 2012.

ERM FAQ


1.How much time needed to understand ERM?
One afternoon.

2.What level of language is ERM?
Look at the fnord's answer on page 1.

3.How make creatures reqruitable from another town?
Answers on page 2.

4.I am a beginner,I want to learn ERM,is there another choice than reading the manual?
ERM Help-in upper left corner is ERM Tutorials,which contain Erm For Dummies, by Qurqirish Dragon-it is targeted at beginners, and teaches the basics.

5.What if I dont like some of the scripts?
Turn them off.

6.Is there a way, either using ERM language in the timed events section or a patch available to download,to make the game has more than 2 ground levels?
Answers by solitaire345 and JimV on page 2 here.

7.How do I get creature stacks to start on a certain hexagon on the battlefield for a certain battle?
Answer on page 5.

8.How to make peasants give 1 gold per day?
Answer on page 6.

9.How to give abilities to real comanders?
Stack experience was disabled for real Commanders to avoid conflicts and errors that could result from mixing the two systems (Commander experience abilities and stack experience abilities).
Detailed answer on page 2 here.

10.What if nobody want to help me?
Learn to wait. If you are not answered right after you ask something, it doesn´t mean you´re not going to be answered at all.

11.How can I get my ballistas gain experience?
Only stacks in your army screen can gain experience automatically. For all other troops you will have to use some w vars to keep the experience of the stack and set it at the beginnning of battle.

12.How to equip blank artefacts properly?
Answer on page 7.

13.How to place a sword in hero left hand and how to display pics while map is loading?
Answers on page 8.

14.What does it mean when in ERM script are more than one ZVSE?
Sometimes people write two separate scripts and combine them into one by copying and pasting, and forget to remove the second ZVSE.But ZVSE is not itself an ERM command, so if it occurs later in the script it does not cause anything to happen.

15.What should I do to talk with monsters,instead of fighting them?
Use OB trigger and receiver from ERM Help.
You can also read fnord's example on page 10.

16.What is the difference between H4 and ERM scripting?
Vlaad's answer on page 11.

17.How do I switch names of creatures?
Vlaad's answer on page 11.

18.What is the ERM scripter?
The ERM Scripter is basically just a text editor but it saves the script in the correct format for a wogify script that can be read by the game when it starts. Also, it includes a bunch of features that can make scripting a little bit easier like line numbers and applying certain colours to different parts of the code line.

19.Is it actually possible to make scripts and put them in the wogify settings menu, so that when the map is being wogified, your new script applies?
Yes, it's possible. Any script saved with the ERM scripter in the Data\s folder with the name script##.erm (where ## is any two-digit number between 00 and 99 inclusive) will be automatically loaded when you WoGify a map. It's code within the script itself that disables the script if its option isn't chosen in the WoG Options screen. If that code wasn't in, the script would simply work all the time.

20.What are the ERT files?
The idea for ERT files was created to make it easier to translate scripts into other languages because it puts all the text into one place. There's a tool option in the ERM scripter that automatically searches a script and creates an ERT file for it, but if you're writing a script just for yourself and your friends, you don't need to make an ERT file.

21.Where are the creature numbers?
In Format C in ERM Help.

22.Does anyone know a script that will make commanders act like regular creatures?
You can make scrpt that uses them as upgrades of other creatures.

23.What I need to do to make a map where you don't loose the game in 7 days if you don't have a town?
Read ERM Help-OW receiver.

24.How to match number of monsters with attacker army health?
Salamandre's answers on pages 26 and 29.

25.Can a creature cost more than one resourse?
No.

26.What is the difference between understanding and using ERM?
The purpose of understanding ERM is for creating scenarios/maps. It can look to you easy to use on paper scripts and such, but once you are trying to implement them in a scenario, good luck: bugs, crashes, unbalances, surprises.

Understanding the basic ERM is not hard. Using it is very hard.

27.Where I can learn useful scripts from except ERM Help?
The best way to learn and do them alone is just to download some wog maps and look into scripts.

28.It doesn't really work as I wanted the script to work. Can you discover the flaw?
You should write **comments at the end of each line to explain what you were trying to do, so it would be easier to help you without checking the whole code to identify variables.

29.How to put or remove an object in game?
Look in ERM Help for commands !!UN:I and !!UN:O

30.How to modify something for a specified hero?
Look in ERM Help for command !!HE

31.What can I expect from scripting AI?
Salamandre's answer on page 37.

32.I would like to know if it was possible to modify the range of sight on buildings (to see in darkness) ?
Check the function UN:S from ERM Help.

33.Where do the answers from begining of 2011 start?
On page 74.

34.Is there any way I can make some section or part of a map with a permanent fog of darkness while the rest acting normally?
I suggest you explore ERM files from The EMPIRE of the WORLD IV and Star Gates: Atlantis here.
You can also check the UN:H command in ERM Help.

35.How can I give creatures to a hero if he visits an object?
Check OB trigger and HE receiver in ERM Help.

36.Where I can find a list of abilities?
Look at MA:X flags, they work in BM section too.

37.If I want to script something in battle round 0,how to get it right?
See as example map 300 spartants here and the script Battlechess.

38.How to check which version of ERM I have?
Check command UN:V in ERM Help.
Or you can right-click on the "Credits" icon in the Main Menu.

39.How I can make a non-shooter creature to shoot?
As minimum you need a new def for the projectile + script + def frames + 82M sound file. For each.

To be continued after some time.
Any suggestions for better indexing are welcomed!
____________
"Now VW? I kill spammers
When people can't say hi to demons in the VW - quite!"-Ghost

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
master_learn
master_learn


Legendary Hero
walking to the library
posted July 13, 2012 08:14 AM
Edited by master_learn at 13:39, 31 Aug 2012.

Here is the link of updated Erm Help by Jim Vogan
http://www.box.com/s/nv038pb3shsgnsuuum5a
and by solitaire345
http://www.4shared.com/rar/1VV1FuKZ/Erm_Help_281.html

Useful UN:C commands

!!UN:C6919200/4/?y1;   -part of script to place troops using mouse in tactics phase

!!UN:C6919482/2/?v703; -change hero's power during battle

!!UN:C7685961/4/9999;  --another DD number

!!UN:C7762908/4/9999;  -- disable some Werewolf ability (?)
!!UN:C7763122/4/9999;  -- disable some Werewolf ability (?)

!!UN:C7734523/4/9999;  -- disable Hell Barons fearsome

!!UN:C7994723/1/9;     -- disable HB petrifying (incompatible with amethyst)


!?FU9555;
!!VRy1:S 32 * x1 + 6541192;
!!UN:Cy1/1/x2;
              - to change creature in a siege tower


!!VRy1:S[stack number]*4+42149304;
!!UN:Cy1/4/1; attack, no return
or
!!UN:Cy1/4/0; attack and return
-Control attack'n'return settings for each stack


!!UN:C7894027/1/88;
!!UN:C7894051/1/88;
!!UN:C7894075/1/88;
!!UN:C7894099/1/88;
!!UN:C7894123/1/88;
!!UN:C7894147/1/88;
!!UN:C7894171/1/88;
!!UN:C7894195/1/88;
!!UN:C7894219/1/88;
!!UN:C7894243/1/88;
!!UN:C7894267/1/88;
!!UN:C7894291/1/88;
!!UN:C7894315/1/88;
!!UN:C7894339/1/88;
!!UN:C7894363/1/88;
!!UN:C7894387/1/88;
!!UN:C7894411/1/88;
!!UN:C7894435/1/88;
       -check Kegolo,s post here

!!UN&v910=123:C6835548/1/88; [change sp04_.def to Xp04_.def -> exploding flask]
!!UN&v910=123:C6687080/1/88; [change PLich.def to XLich.def -> flask]
!!UN&v910=123:C6848456/1/89; [change deathcld.wav to Yeathcld.wav]
...
!!UN:C6835548/1/115;         [restore lich spells]
!!UN:C6687080/1/80;
!!UN:C6848456/1/100;


!?PI;
!!UN:C7761531/1/255; devils => -1 (54=>255)
!!UN:C7761537/1/255; adevils
!!UN:C7761609/1/255; angels
!!UN:C7761615/1/255; aangels
!?GM0;
!!UN:C7761531/1/255; devils
!!UN:C7761537/1/255; adevils
!!UN:C7761609/1/255; angels
!!UN:C7761615/1/255; aangels
       [removing hatred]

!!PI;
!!UN:C4255540/4/art_num;

!!GM0;
!!UN:C4255540/4/art_num;
           [Grail changed to blank artifact-working for Era2.3]

!!UN:C5906498/1/<new monster ID> - summonning fire  el. sp.
!!UN:C5906519/1/<new monster ID> - summonning earth el. sp.
!!UN:C5906540/1/<new monster ID> - summonning water el. sp.
!!UN:C5906561/1/<new monster ID> - summonning air el. sp.

[Changing the creatures summoning by the "Summon @#$%^ elemental" spell]

!#UN:C4892718/1/183; 65000 objects allowed(working for Era 2.3)

!#UN:C5928811/1/49;  Pit lords summon horned demons(working for Era 2.3)

!!UN:C6547928/4/0;   Hero scouting skill reduced to 0(working for Era 2.3)

!!UN:C4892718/1/183;  fix objects restrictions (working for Era 2.3)

!!UN:C6769539/1/$;
!!UN:C5906498/1/122;
!!UN:C5896345/4/122;
      example by Kegolo on page 156

!#UN:C6919480/4/?v1;
!#VRv1003:Sv1+128728;
!#UN:Cv1003/1/?v1004;
     save game difficulty level

!!UN:Cv1003/1/v1004;   restore diff. level(example by JimV on page 158)





For the moment most need check for compatibility.
____________
"Now VW? I kill spammers
When people can't say hi to demons in the VW - quite!"-Ghost

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NoobX
NoobX


Legendary Hero
Killers Are Quiet
posted July 14, 2012 10:02 AM

A little tip:

You should put links to the thread's pages.
It would help a bit.
____________
In Helsinki we watch ships.. -
Ghost

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Bersy
Bersy


Responsible
Supreme Hero
posted July 14, 2012 10:09 AM

Question1
Answer1

Question2
Answer2

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
master_learn
master_learn


Legendary Hero
walking to the library
posted July 14, 2012 11:20 AM
Edited by master_learn at 12:16, 14 Jul 2012.

Thank you,Bersy!
Spaces between makes it more understandable.
Fixed.May try with colours and underlining too.

@NoobX,I have in mind to give links to the pages,just not sure how to be more helpful-maybe with writing who is the answer's author...
____________
"Now VW? I kill spammers
When people can't say hi to demons in the VW - quite!"-Ghost

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
NoobX
NoobX


Legendary Hero
Killers Are Quiet
posted July 14, 2012 02:25 PM

QUESTION Z
Answer is on page X, post nr. Y

Where page X is the link to the page.
____________
In Helsinki we watch ships.. -
Ghost

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
master_learn
master_learn


Legendary Hero
walking to the library
posted July 14, 2012 02:38 PM

I understand.Will do it,if necessary.
____________
"Now VW? I kill spammers
When people can't say hi to demons in the VW - quite!"-Ghost

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Bersy
Bersy


Responsible
Supreme Hero
posted July 16, 2012 09:37 AM

Thank you.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
master_learn
master_learn


Legendary Hero
walking to the library
posted July 16, 2012 11:11 AM

You and the other ERM masters are welcome in this thread anytime!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
fred79
fred79


Promising
Legendary Hero
posted July 16, 2012 05:36 PM

@ master_learn-

thanks, man. this kind of post has been much needed! most of that thread is just a bunch of back-and-forth, and i got to page 4 before i gave up trying to dessiminate the informative stuff from the blah, blah, blah... lol.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
master_learn
master_learn


Legendary Hero
walking to the library
posted July 16, 2012 05:52 PM

I have read the whole "ERM Help and discussion" one time and I can say that many scripters have something specific in mind to do with events in their maps.
When they ask questions,often the answers do not fit the result scripters expect from their script.
But I want to say this-only you know what you expect and what you plan to do with your map,so when masters in ERM help you,you get closer to your goal.
Respect them and speak their language to become a master yourself!
____________
"Now VW? I kill spammers
When people can't say hi to demons in the VW - quite!"-Ghost

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre Online
Salamandre


Honorable
Undefeatable Hero
posted July 16, 2012 05:59 PM
Edited by Salamandre at 18:09, 16 Jul 2012.

Yes Fred, your lack of motivation was obvious from the start, thus the lack of answers to your help call.

Quote:

23.What I need to do to make a map where you don't loose the game in 7 days if you don't have a town?
Read ERM Help-OB OW receiver.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
master_learn
master_learn


Legendary Hero
walking to the library
posted July 16, 2012 06:19 PM

Fixed.
____________
"Now VW? I kill spammers
When people can't say hi to demons in the VW - quite!"-Ghost

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
JimV
JimV


Responsible
Supreme Hero
posted July 17, 2012 12:08 AM
Edited by JimV at 12:26, 17 Jul 2012.

This is good, useful work.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
master_learn
master_learn


Legendary Hero
walking to the library
posted July 17, 2012 08:03 AM
Edited by master_learn at 08:21, 17 Jul 2012.

Your feedback is welcome,JimV!
____________
"Now VW? I kill spammers
When people can't say hi to demons in the VW - quite!"-Ghost

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre Online
Salamandre


Honorable
Undefeatable Hero
posted July 17, 2012 01:16 PM
Edited by Salamandre at 13:33, 17 Jul 2012.

You should wholeheartedly ignore any of my ERM advices prior to 2011. Frankly, I had no idea how it works, only modifying existing scripts to match my maps.

Quote:

1.How much time needed to understand ERM?
One afternoon.



Seriously this was surely a joke. For a few who already worked with CP languages it may look obvious but for others it can often take forever and comprehension is still not granted.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
master_learn
master_learn


Legendary Hero
walking to the library
posted July 17, 2012 01:53 PM
Edited by master_learn at 14:56, 17 Jul 2012.

Salamandre,I am sure your knowledge of ERM has grown into ERM wisdom over the years,but I would appreciate you to give me one example of your answer before 2011,which would be totally different now.
____________
"Now VW? I kill spammers
When people can't say hi to demons in the VW - quite!"-Ghost

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
JimV
JimV


Responsible
Supreme Hero
posted July 18, 2012 05:02 PM
Edited by JimV at 22:39, 18 Jul 2012.

Congratulations on getting a red star for this post!

I have an additional suggestion for the answer to Question 38 (which version of WoG and ERM), which I learned from reading one of Fnord's comments:  you can right-click on the "Credits" icon in the Main Menu.  When I do that with my h3wog folder, I get "WoG 3.58f, ERM 2.8.1".  When I do that with my h3era folder, I get "Tournament Edition 1.03, ERM 3.0.0".  Using the UN version command, I get 358/281 and 359/300, respectively.

P.S. I would also answer some questions better now than formerly.  I used to think that a triggerable yellow square could only be added to a map during a game by placing an object with UN:I.  Now I know a yellow square (object trigger) can be added to empty terrain with TR:E.  When I am working with ERM on something I have not done before, I learn something new every week.  I think the basic ideas of ERM (event triggers which cause portions of ERM script to be executed, and receivers which give access to the internal data tables of Heroes 3) can be learned quickly, but to learn all the possibilities and limitations of the commands takes practice.  (The same is true for learning how to play the piano.)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
master_learn
master_learn


Legendary Hero
walking to the library
posted July 18, 2012 06:11 PM
Edited by master_learn at 18:47, 18 Jul 2012.

Thank you,JimV!

About Q38 your post here gives explanation and your answer and mine are on the same page,so may stay as they are for now.

Your presense reminds me of your advice-to post the UN:C commands.
Do I have to use particular tool to search for them?
____________
"Now VW? I kill spammers
When people can't say hi to demons in the VW - quite!"-Ghost

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
JimV
JimV


Responsible
Supreme Hero
posted July 18, 2012 07:29 PM
Edited by JimV at 19:32, 18 Jul 2012.

I think it would be better to have both answers to Q38 in one place (the list) as it would be easier to find them that way - just my opinion.

When I started my list of UN:C addresses, I used the Search tool here.  Then I added new ones as I saw them.  I have uploaded my list to the same Box.net URL which has the updated ERM 2.81 Help (which I recently made a couple more corrections to also).  The list is in no particular order (well, chronological as I found things), but can be searched for key words using CTRL-F in the ERM Script Editor or a text editor.  Maybe you can organize it better - if you decide to take on this project.

I am sure others, such as Bersy and OxFea and Solitaire345 have better, more complete lists.  Also, although most of the addresses have been tested, there may be some mistakes.

Note that some addresses are for WoG 3.58f only, some for the Tournament Edition of WoG 3.59 as used in Era, and some work for both.  I tried to mention which are which.

(Buyer beware, and when in doubt, test.)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
[ This thread is 6 pages long: (1) 2 3 4 5 6 ] < Prev Thread . . . Next Thread >
Post New Poll    Post New Topic    Post New Reply

Page compiled in 2.1675 seconds