Life leech alternatives

Post here about all aspects of D2 mod making whether it's information, problems or whatever. Please specify whether your post is relating to Classic D2 or the Expansion.

Moderators: GuyAskingQuestion, Doombreed-x, Nefarius, talonrage

Post Reply
Hodor
Posts: 39
Joined: Wed Jul 06, 2016 6:02 pm

Life leech alternatives

Post by Hodor » Sat Sep 02, 2017 11:45 am

Hi all,

I find that lifesteal is pretty OP (because damage scales faster than hp)

I'd like to make lifesteal not to be instant (like a purple rejuvenation potion), but rather gradual (like a health potion).

if not maybe life leech % = % of current HP per hit, would also be an acceptable change. Ideas?


Or else can we make it life per hit? (a constant gain of eg. 20 life gained per successful hit on an enemy?)


Any ideas?
Last edited by Hodor on Sat Sep 02, 2017 11:44 am, edited 1 time in total.

User avatar
gogodanny
Forum Legend
Arch-Angel
Posts: 1223
Joined: Mon Nov 06, 2006 2:14 am
Location: Graz, Austria

Re: Life leech alternatives

Post by gogodanny » Sat Sep 02, 2017 4:43 pm

Hi there

things that come to mind are:

Life after HIT
Life after Kill
Life on Hit (like if you get hit, you receive a certain amount of HP)
Lifesteal % damage (you could cap this at 10%?)
Lifesteal % total character damage
Liferegen - Higher base regen, but no other methods to recoup lost life

:-)
only 2 things are infinite - the universe and human stupidity ... although i'm not sure yet about the universe (c) Albert Einstein
http://miyoshino.la.coocan.jp/eswiki/?p ... hot051.jpg (WOW)

Hodor
Posts: 39
Joined: Wed Jul 06, 2016 6:02 pm

Re: Life leech alternatives

Post by Hodor » Sun Sep 03, 2017 1:04 pm

Anyone know how to make life leech work gradually like a health potion?

or make it a % of hp instead of damage dealt?

Katsuni
Posts: 7
Joined: Fri Aug 25, 2017 8:35 am

Re: Life leech alternatives

Post by Katsuni » Sun Sep 03, 2017 2:21 pm

Not sure how to do the life leech over time dealie unfortunately, and given how that would work, it would probably require changing some basic hard coded functions and adding new properties which don't currently exist. I could be wrong, of course. =P

In the meantime, if you can find where the formula for the lifesteal damage % is though, it should actually be quite easy to make it a % of your max HP. All you should need to do is to change it from

Lifesteal = (damage*(lifesteal%)) / 100

To

Lifesteal = (maxhp*(lifesteal%)) / 100

You'd need to swap the property to "hp" for max health specifically though. I just used maxhp in the formula for ease of understanding it. Also, lifesteal % is literally just "lifesteal" as the property without the %, so same dealie there.

Anyway, I have no idea where lifesteal is written into the game, but assuming you can find it, it probably has a very similar formula to that given how the rest of the formulas are written, and you should be able to just make that small switch to fix it to do what you want. It'd just be a matter of tracking down where the formula's located is all at that point.

Hodor
Posts: 39
Joined: Wed Jul 06, 2016 6:02 pm

Re: Life leech alternatives

Post by Hodor » Sun Sep 03, 2017 2:42 pm

Any idea where to find this formula? I tried Properties.txt but no luck

User avatar
k0r3l1k
Dark Alliance Beta Test
Angel
Posts: 586
Joined: Sun Sep 09, 2007 3:11 am
Location: Arizona, Prescott
United States of America

Re: Life leech alternatives

Post by k0r3l1k » Sun Sep 03, 2017 4:25 pm

It would be inside d2client most likely, which you'll have to edit in assembly.
Image

Hodor
Posts: 39
Joined: Wed Jul 06, 2016 6:02 pm

Re: Life leech alternatives

Post by Hodor » Mon Sep 04, 2017 10:46 am

Thank you, do you know where I can find the program?

Post Reply

Return to “General Mod Making”