Diablo 2 mods
 


Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sat Sep 02, 2017 11:45 am 
 Post subject: Life leech alternatives
 
Offline
Knight

Joined: Wed Jul 06, 2016 6:02 pm
Posts: 39
Gender: None specified
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.

Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 02, 2017 4:43 pm 
 Post subject: Re: Life leech alternatives
 
Offline
Arch-Angel
User avatar

Joined: Mon Nov 06, 2006 2:14 am
Posts: 1220
Location: Graz, Austria
Gender: Male
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)


Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 03, 2017 1:04 pm 
 Post subject: Re: Life leech alternatives
 
Offline
Knight

Joined: Wed Jul 06, 2016 6:02 pm
Posts: 39
Gender: None specified
Anyone know how to make life leech work gradually like a health potion?

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


Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 03, 2017 2:21 pm 
 Post subject: Re: Life leech alternatives
 
Offline
Squire

Joined: Fri Aug 25, 2017 8:35 am
Posts: 7
Gender: None specified
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.


Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 03, 2017 2:42 pm 
 Post subject: Re: Life leech alternatives
 
Offline
Knight

Joined: Wed Jul 06, 2016 6:02 pm
Posts: 39
Gender: None specified
Any idea where to find this formula? I tried Properties.txt but no luck


Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 03, 2017 4:25 pm 
 Post subject: Re: Life leech alternatives
 
Offline
Angel
User avatar

Age: 30
Joined: Sun Sep 09, 2007 3:11 am
Posts: 580
Location: Arizona, Prescott
Gender: None specified
It would be inside d2client most likely, which you'll have to edit in assembly.

_________________
Image


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 04, 2017 10:46 am 
 Post subject: Re: Life leech alternatives
 
Offline
Knight

Joined: Wed Jul 06, 2016 6:02 pm
Posts: 39
Gender: None specified
Thank you, do you know where I can find the program?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Black Rock template by onyx (based on BlackSoul for phpBB2)