|
Thread: How to give Hydras Regeneration? | |
|
LordCameron
Known Hero
Veteran of the Succession Wars
|
posted June 30, 2022 05:15 PM |
|
|
How to give Hydras Regeneration?
Hi there I'm looking for some modding help. I want to give hydras regeneration as a very lore appropriate and much needed buff.
First I tried MMArchive but it turns out it doesn't work on abilities.
Then I tried ERM script. I was able to give pikemen flying:
ZVSE2
!!MA:X0/2;
but I couldn't find a flag for Regeneration.
So does anyone know how to do it? I'm happy with any method that works for HOTA or ERA.
|
|
BTB
Famous Hero
Moist & Creamy
|
posted June 30, 2022 05:28 PM |
|
Edited by BTB at 17:29, 30 Jun 2022.
|
Which units possess this ability are specified at 046BD8 (Wight), 046BDD (Wraith), and 046BE1 (Troll). The IDs for Hydras are 6E and 6F for Chaos Hydras.
|
|
Phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted June 30, 2022 05:38 PM |
|
|
Regeneration would indeed fit hydras very well. Wights/Wraiths and Trolls are not even able to benefit fully from it.
|
|
NimoStar
Responsible
Legendary Hero
Modding the Unmoddable
|
posted June 30, 2022 06:27 PM |
|
|
I already gave hydras regeneration in H4 ultimate : P (though H4 regeneration ability is capped at 50 hp per turn)
I beliee te had it as some WoG variant (level? Or 8th red "super-hydra"?) as well
____________
Never changing = never improving
|
|
LordCameron
Known Hero
Veteran of the Succession Wars
|
posted June 30, 2022 06:51 PM |
|
|
I stole this (tweaked it slightly) from Enhanced Creature abilities and it seems to work, but I don't know why. My ERM knowledge is basically non-existent. None of the instructions I've found talk about the !?FU(OnAfterBattleAction); type function, but changing the name makes it stop working so it must be important.
Quote:
ZVSE2
!?FU7065;
!!BMv7009:T?y1 P?y2 L?y3; [get monster type, position, health lost]
!!VRy4&y3>0:Sy3 -x1; [reduce damage by x1 (heal)]
!!VRy4&y3>0/y4<0:S0; [if less than 0 set to 0]
!!VRy5&y3>0:Sy3 -y4; [calculate hit points healed]
!!VRz2&y3>0:Sz150009;
!!MM&y3>0:Sz2;
!!FU7064&y3>01/y2/0/0/0/6/0/y1/0; [cast dummy spell (scuttle boat)]
!!BMv7009&y3>0:V79 Ly4; [shown animation, set health lost]
** end of function **
!?FU(OnAfterBattleAction);
!!BG:N?v7009; [get current stack #]
!!BMv7009:T?y5 P?y6; [get monster type, position]
!!FU7065&y5=11020; [if hydra, regenerate]
!!FU7065&y5=11130; [if chaos hydra, regenerate]
|
|
phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted June 30, 2022 07:02 PM |
|
|
NimoStar said: (though H4 regeneration ability is capped at 50 hp per turn)
It's also max 50 HP in H3.
|
|
LordCameron
Known Hero
Veteran of the Succession Wars
|
posted June 30, 2022 07:18 PM |
|
|
BTB said: Which units possess this ability are specified at 046BD8 (Wight), 046BDD (Wraith), and 046BE1 (Troll). The IDs for Hydras are 6E and 6F for Chaos Hydras.
Is this for hex editing or something?
|
|
BTB
Famous Hero
Moist & Creamy
|
posted June 30, 2022 07:42 PM |
|
|
|
LordCameron
Known Hero
Veteran of the Succession Wars
|
posted June 30, 2022 11:03 PM |
|
|
BTB said: That is in hex, yes.
Oh you're the guy who wrote this: http://abusemynipples.biz/misc/h3_hacking.txt
I was couldn't find it earlier, eyes must have just skipped over it. Got it bookmarked now!
That said, not too sure how confident I am about doing hex editing. I'm always scared I'll horribly break something and no idea what to do with that information haha.
|
|
Phoenix4ever
Legendary Hero
Heroes is love, Heroes is life
|
posted June 30, 2022 11:28 PM |
|
|
It's pretty easy, maybe just keep a back-up just in case...
ERM scripting seems quite daunting to me though.
|
|
LordCameron
Known Hero
Veteran of the Succession Wars
|
posted June 30, 2022 11:52 PM |
|
|
Phoenix4ever said: It's pretty easy, maybe just keep a back-up just in case...
ERM scripting seems quite daunting to me though.
I guess everyone's got their own comfort zones haha
|
|
NimoStar
Responsible
Legendary Hero
Modding the Unmoddable
|
posted July 01, 2022 01:05 PM |
|
|
Quote: It's also max 50 HP in H3.
Interesting. Though I believe in normal H3 you never get to see that because it's used on creatures below this hp number.
While in H4 you get to see the limit due to Dark Champions, a max level creatre, coming with this ability.
____________
Never changing = never improving
|
|
BTB
Famous Hero
Moist & Creamy
|
posted July 01, 2022 09:23 PM |
|
|
LordCameron said:
BTB said: That is in hex, yes.
Oh you're the guy who wrote this: http://abusemynipples.biz/misc/h3_hacking.txt
I was couldn't find it earlier, eyes must have just skipped over it. Got it bookmarked now!
That said, not too sure how confident I am about doing hex editing. I'm always scared I'll horribly break something and no idea what to do with that information haha.
If you follow the instructions in that guide, it's pretty hard to go wrong.
|
|
|