Life synergy for Shadow Warrior

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.

Moderator: Nizari

Post Reply

0
No votes
 
Total votes: 0

User avatar
borg
Posts: 51
Joined: Mon Jun 10, 2002 3:52 pm
Location: taiwan
Contact:
Taiwan

Life synergy for Shadow Warrior

Post by borg » Sun Oct 01, 2017 2:22 pm

I've made a life synergy for Shadow Warrior but didn't work, and here is what I did in Skills.txt:
passivestat: maxhp
passivecalc: lvl*par1+skill('Shadow Master'.blvl)*12
Correct me if you find something wrong, thanks in advance.

User avatar
HarvestWombs
Senior Moderator
Arch-Angel
Posts: 1019
Joined: Wed May 25, 2011 11:50 pm
United States of America

Re: Life synergy for Shadow Warrior

Post by HarvestWombs » Thu Oct 05, 2017 8:21 am

Okay this looks like a syntax error. And I'm quite unclear about how you want your formula setup. But I think you should add more parenthesis.

I'm at work so I can't test this, but you should try something along the lines of:
(((lvl*par1)+skill('Shadow Master'.blvl))*12)
Official Phrozen Keep Discord
Common Modding tools: link
My Resource Packs: link

User avatar
k0r3l1k
Moderator
Angel
Posts: 631
Joined: Sun Sep 09, 2007 3:11 am
Location: Arizona, Prescott
United States of America

Re: Life synergy for Shadow Warrior

Post by k0r3l1k » Thu Oct 05, 2017 3:33 pm

It is entirely possible that this is a shift error. Afaik the maxhp stat is measured in 256ths, so instead of getting 12 max hp per shadow master point you are getting 12/256 max hp per point.

I'm surprised you aren't using a percent of HP as flat values don't typically scale well. In any case what you want to do is multiply the whole formula by 256 at the end.
Image

Post Reply

Return to “General Mod Making”