|
|
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.
|
|
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.
____________
|
|
bloodsucker

 
     
Legendary Hero
|
posted April 28, 2025 11:48 AM |
|
|
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.
|
|
Salamandre

     
       
Admirable
Omnipresent Hero
Wog refugee
|
posted April 28, 2025 05:41 PM |
|
|
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.
|
|
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.
|
|
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.
|
|
bloodsucker

 
     
Legendary Hero
|
posted April 29, 2025 01:35 AM |
|
|
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;
|
|
|