Summon damage = 1/3 weapon damage

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
hulkchat
Posts: 7
Joined: Sat May 26, 2018 1:25 pm

Summon damage = 1/3 weapon damage

Post by hulkchat » Sat May 26, 2018 1:52 pm

Hello!
Is it possible to make so that the summons deal% of the player's damage?

I use skills.txt, and did SrcDam=128 - no effect

Other magic work with this modifier well - damage is added

I want to make all the skills tied to the damage like a Diablo 3

Pls help, tnx.

User avatar
Ogodei
Senior Moderator
Champion of the Light
Posts: 465
Joined: Thu Mar 10, 2016 8:31 am
Italy

Hand-picked

Re: Summon damage = 1/3 weapon damage

Post by Ogodei » Sat May 26, 2018 3:09 pm

You can try using two AuraStats or PassiveStats for that, with mindamage and maxdamage taken from the player.

Code: Select all


AuraState: a dummy state with no overlay taken from States.txt (you'd best create a custom new one)
AuraStat1: mindamage
AuraStatCalc1: your calc (in my case, (stat('mindamage'.accr)) )
AuraStat2: maxdamage
AuraStatCalc2: your calc (in my case, (stat('maxdamage'.accr)) )

Be warned, however, that even if you manage to achieve this, your minions will retain the stats you had when you summoned them.

hulkchat
Posts: 7
Joined: Sat May 26, 2018 1:25 pm

Re: Summon damage = 1/3 weapon damage

Post by hulkchat » Sat May 26, 2018 3:50 pm

Ogodei wrote:
Sat May 26, 2018 3:09 pm
You can try using two AuraStats or PassiveStats for that, with mindamage and maxdamage taken from the player.
Excellent! Many thanks - everything works!

This formula for percentage calculation?
Will my formula work to increase by 5% for the skill level?

Code: Select all

  
  stat('maxdamage'.accr)/2 + lvl/20
  
  


sirbinh88
Posts: 6
Joined: Tue Mar 19, 2019 4:19 am

Re: Summon damage = 1/3 weapon damage

Post by sirbinh88 » Mon Apr 22, 2019 6:26 am

I tried but it didnt work.
What is ‘mindamage’ and ‘maxdamage’?
I know they are from itemstatcost but are they final character’s damage output?

sirbinh88
Posts: 6
Joined: Tue Mar 19, 2019 4:19 am

Re: Summon damage = 1/3 weapon damage

Post by sirbinh88 » Mon Apr 22, 2019 11:29 am

Finally figured it out. It’s only ‘dmg-norm’ value taken from weapons.txt and any +dmg-norm properties.
If you want all dmg type, just add more other types min-max stats.

Post Reply

Return to “General Mod Making”