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
Thread: ERM help and discussion This Popular Thread is 413 pages long: 1 2 3 4 5 ... 80 160 240 320 400 ... 409 410 411 412 413 · «PREV
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
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.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
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;

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
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?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
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

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 413 pages long: 1 2 3 4 5 ... 80 160 240 320 400 ... 409 410 411 412 413 · «PREV
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.6047 seconds