Passive auto Life regen?

This is the place for people to research themes and ideas for their mods as well as for others to post their suggestions for mod makers to make use of.

Moderator: Nefarius

Post Reply
User avatar
Psycrono7
Posts: 78
Joined: Tue Nov 05, 2013 10:42 pm

Passive auto Life regen?

Post by Psycrono7 » Sun Aug 27, 2017 7:03 am

Is there something I can add auto life regen for this modded game, without D2SE???

I am not yet sure if I adopt Vitality for HP/Life auto regen?

(I tested Zy-El 4.5 patch1.10 but there was HP regen)
Image
Miniguns Assault!

Glabrezu
Posts: 7
Joined: Wed Sep 01, 2010 3:06 pm

Re: Passive auto Life regen?

Post by Glabrezu » Sat Oct 15, 2022 5:04 am

I am necroing this thread!
I wanted to do this too. I want to add passive regeneration either as a skill to buy in game or as a skill my characters start off with:
I know how to add extra skills, But I don't know what coding to use for the health regen.
I added to "Skill 10" of the CharStats.txt:
PCRegen
^the skill name I am going to use, actually on a side note, would adding an extra column (to CharStats.txt) break anything?
Say adding a "Skill 11" column.

I then added a row to the Skills.txt
PCRegen passive_regen edns item_healafterhit 1 + vit / 25 1 8
^ID ^passive state ^passive itype ^passivestat1 ^passivecalc1 ^ingame hitshift
Help appreciated.

User avatar
Desocupado
Forum Regular
Angel
Posts: 548
Joined: Sat Aug 31, 2002 8:26 pm
Location: Brazil
Brazil

Re: Passive auto Life regen?

Post by Desocupado » Sat Oct 15, 2022 11:23 pm

I once created a stat "Regen per Health", then granted it via a consumable potion as a starter item. This way it sort of worked like regeneration of % percent health over Y seconds.

Glabrezu
Posts: 7
Joined: Wed Sep 01, 2010 3:06 pm

Re: Passive auto Life regen?

Post by Glabrezu » Sun Oct 16, 2022 8:30 pm

Desocupado wrote:
Sat Oct 15, 2022 11:23 pm
I once created a stat "Regen per Health", then granted it via a consumable potion as a starter item. This way it sort of worked like regeneration of % percent health over Y seconds.
Ah I was actually trying to do that (but as a shop bought), but my attempt made my people immortal... they weren't taking damage, or regening so quick it didnt look like they were getting hurt.
Anyway, I don't suppose you can remember how you did that?

User avatar
Desocupado
Forum Regular
Angel
Posts: 548
Joined: Sat Aug 31, 2002 8:26 pm
Location: Brazil
Brazil

Re: Passive auto Life regen?

Post by Desocupado » Wed Oct 19, 2022 2:12 am

Unfortunately i lost my files like 6 years ago... And my links were destroyed when the forum moved.
I'll try to list the guides i used back then.

Creating Single Use Potions
Changing Potions to restore %age HP/MP/etc.. (by Ric Faith)
ItemStatCost.txt

You need to keep in mind you need a very low value for a stat based on health, as health is stored as a very large integer, and you are scaling of the health total.
But also keep in mind that values themselves need to be stored as integers.

I referenced this topic before doing it by myself back then.
Starting Passive HPRegen

Glabrezu
Posts: 7
Joined: Wed Sep 01, 2010 3:06 pm

Re: Passive auto Life regen?

Post by Glabrezu » Fri Oct 21, 2022 10:30 am

Desocupado wrote:
Wed Oct 19, 2022 2:12 am
... helpful links and info ...[/url]
Aye I lost my modding work too, I could only do basic stuff though. I also lost all the links with info on the .txt files (I need to look around here for them again).
I cant get it to work. I may try the "battle orders" from the Starting PAssive HPRegen link and see if I can get it to work that way. If I can add it to the classes skill trees then I could add and remove if I decide its op or whatever (I'm using the Project Diablo2 mod - and the plugy for it, which has free respecs).
Using this now for the misc.txt (it doesn't work, item is not getting used)
passive_regen---hpregen---max(stat('maxhp'.accr)/256/50,1)
state---stat1---calc1

Those links helped me fix my stat increase book though! That wasn't working, but I found the code to get it to work in one of the links you kindly provided, so cheers!
Now if I can get my resist all potion to work... I might just make that a passive skill too.
Thanks again.

Post Reply

Return to “Mod Concepts & Research”