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


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: ERM help and discussion (started by Odvin in March 2003)
ERM help and discussion This Popular Thread is 415 pages long: 1 2 3 4 5 ... 80 160 240 320 400 ... 411 412 413 414 415 · «PREV / NEXT»
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted March 07, 2025 02:34 PM

Depends on the design of mountains. If not huge area, I would place events removing all movement, so you can walk one hex turn.

 View Profile
bloodsucker
bloodsucker


Legendary Hero
posted March 07, 2025 02:50 PM

That's a great idea. If the events don't disappear they'll function as a block to the passage. No one will want to lose a dozen days with another hero when he can never reach main, so I don't need another trick to avoid it.
Thanks.
____________

 View Profile
bloodsucker
bloodsucker


Legendary Hero
posted April 28, 2025 11:48 AM
Edited by bloodsucker at 12:11, 28 Apr 2025.

I wanted to copy Adventure Pillars Rockfeller to another mod, to make it an hero's specialty but I don't get how it works and there is a ton of code that is just there to locate the option, can you show me what you did?

P.S. I don't want it related to commanders but to a specific hero.

P.P.S. Can I get the total experience the hero will get in BA1? Half of that would be perfect since Karmic Battles give a much higher number then the HP of the original stack.

 View Profile
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted April 28, 2025 05:41 PM
Edited by Salamandre at 17:44, 28 Apr 2025.

1) From what I see, it is scripted here:

!?BA0&1000;  Rockfeller bonus
!!BA:H0/?y1;
!!BA:H1/?y2;
!!IF:Wy1;
!!SN&w126>0:W^R99Health^/0;
!!DO45696538/0/6/1&w126>0/y2<0:P;

; Get total health of neutrals
!?FU45696538;
!!SN:W^R99Health^/?y10;
!!BA:M1/x16/?y3/?y4; [If neutrals]
!!FU|y3<0/y4=0:E; [Exit if nothing in slot]
!!MA:Py3/?y5; base HP of the creature
!!VRy6:Sy5*y4; total health for the stack
!!VRy10:+y6; add stack's health to total health: y10;
!!SN:W^R99Health^/y10;

!?BA1&1000;
;Rockfeller
!!HE-1:O?v1;
!!FU&v1<0:E;
!!IF:W-1;
!!FU&w126<1:E;
!!SN:W^R99Health^/?y1;
!!FU&y1<1:E; exit if AI hero
!!VRy1::2; adjust spoils
!!HE-1:B0/?z1;
!!IF:Q1/6/y1/1^Rockfeller bonus: %Z1 managed to pick up %Y1 gold before the monsters could flee^;
!!OW:R-1/6/dy1;
!!UN:R2;

So, now that you see how is working, you need to put Hero ID condition in BA0, remove all conditions from Rockefeller (w vars, SN:W as well), see on which side he is (right/left) then start counting health on the opposite side (!?FU45696538;). Then in BA1 (after battle), set hero ID condition again and give him the resources, if he won the battle

2) I don't know how to change experience from battle.

 View Profile
bloodsucker
bloodsucker


Legendary Hero
posted April 28, 2025 11:39 PM

Thank you for answering this trivial question in the middle of the apocalypse.

But if I ask the values of the experience in BA0 and BA1 they will be different, right?
I'll test it, now that I have the computer back working.

 View Profile
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted April 29, 2025 12:28 AM

No, because BA1 occurs before the experience is given to the hero. I think I tested this by the past, but do it again, compare exp in BA0 and BA1 and see if they are similar, which I do believe.

 View Profile
bloodsucker
bloodsucker


Legendary Hero
posted April 29, 2025 01:35 AM
Edited by bloodsucker at 01:55, 29 Apr 2025.

It took me some time to get it right but no, it's not the same value.

*** Rockfeller
!?BA0&1000;
!!BA:H0/?y1;
!!FU&y1<>11:E;
!!HE11:E?y2;
!!SN:W^PrExp^/y2;

!?BA1&1000;
!!HE-1:O?v1;
!!BA:H0/?v2;
!!FU&v1<0:E;
!!FU&v2<>11:E;
!!SN:W^PrExp^/?y1;
!!HE11:E?y2;
!!VRy3:Sy2-y1;
!!VRy3::4;
!!OW:R-1/6/dy3;
!!IF:Q1/6/y3/1^You gained %Y3 gold from this fight.^;
!!UN:R2;

 View Profile
Orc
Orc


Famous Hero
posted June 19, 2025 04:30 PM
Edited by Orc at 16:30, 19 Jun 2025.

Mass fireShield

How do I make Fire Shield mass spell?

 View Profile
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted June 19, 2025 08:48 PM

!!SS29:F?y1; fire shield
!!VRy1:&-17; [remove single target flag]
!!VRy1:|64; [add mass spell flag]
!!SS29:Fy1; set spell to mass if upgraded

 View Profile
Orc
Orc


Famous Hero
posted August 19, 2025 09:56 AM

Hello,

Is there way to modify curse?
Can we make expert max-1?
Can we make it reduces damage by %

 View Profile
Orc
Orc


Famous Hero
posted August 20, 2025 02:54 PM

Manipulating stack experience bonus

Hello,

I enabled stack experience script. I see there are lots of bonuses. Is it possible to change speed increment? is it possible to modify abilities to be gained with level up experience (every unit generally gains different ability)

I have seen some probably relevant scripts? these:
option 736 - battle experience.erm
option 742 - experience without abilities.erm
option 774 - experience exchange.erm

 View Profile
Avatar
Avatar


Promising
Supreme Hero
posted August 21, 2025 07:13 AM

Scroll down to Editing Stack Experience Defaults
https://www.celestialheavens.com/h3maparchives/wog/wogfeatures.html

____________

 View Profile
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted August 21, 2025 08:56 AM

Yes, at the start of the battle, run a loop, check experience levels of each stack, then apply bonuses. But that is not basic ERM, you need some experience.

You can check similar script in The Empire 4, where the stack with curse applied loses 1 damage every turn, or where the stack with bless gains +1 damage every turn.
____________
You must not OFFEND people - Jolly Joker

 View Profile
Orc
Orc


Famous Hero
posted August 24, 2025 01:31 PM

Avatar said:
Scroll down to Editing Stack Experience Defaults
https://www.celestialheavens.com/h3maparchives/wog/wogfeatures.html



I have that on Era+ mod but I didn't find it in my Era3.94 directory. There is nothing like CreXpBon.txt


 View Profile
OldHommPlayer
OldHommPlayer

Tavern Dweller
posted September 09, 2025 12:00 AM
Edited by OldHommPlayer at 06:05, 11 Sep 2025.

Hi,

I have an old WOG 3.58 map that I want to upgrade to ERA. But when I run it, the scripts crash at the beginning of the map creation. It's one of the WOG objects on the map that causes this, but I have no idea which one is it, and there are hundreds of them.

How do I find out which WOG object crashes?
____________

 View Profile
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted September 12, 2025 04:33 AM

Could you upload the map somewhere so I check?

 View Profile
Havez77
Havez77

Tavern Dweller
posted October 06, 2025 11:02 PM
Edited by Havez77 at 23:03, 06 Oct 2025.

Hi guys, we have some strange bug... there was a fix for it, but we forget how to..


Our textboxed will only show the codes, not the text itself, check screen:

Maybe you know the solution?






 View Profile
RerryR
RerryR


Promising
Supreme Hero
Researching Magic
posted October 07, 2025 06:52 AM

update or reinstall or enabeld GEM mod, perhaps you loaded an older save without the mod. Pressing F12 could also help.

 View Profile
Havez77
Havez77

Tavern Dweller
posted October 08, 2025 01:35 AM

RerryR said:
update or reinstall or enabeld GEM mod, perhaps you loaded an older save without the mod. Pressing F12 could also help.


Woa! Thank you, relaoding did not help, but uninstall the GEM mod and reload again.
Thank you and have a nice day!

 View Profile
bloodsucker
bloodsucker


Legendary Hero
posted October 20, 2025 10:42 AM
Edited by bloodsucker at 11:00, 20 Oct 2025.

I know this is not exactly ERM but it's necessary for that to work... What is a .json file and how do I edit them? I copied the mod structure from TEW III and now I have the icon and the description from it on a completely different map...
____________

 View Profile
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 415 pages long: 1 2 3 4 5 ... 80 160 240 320 400 ... 411 412 413 414 415 · «PREV / NEXT»
Post New Poll   Post New Topic   Post New Reply

Page compiled in 0.2377 seconds