## 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

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

### Summon damage = 1/3 weapon damage

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.

Ogodei
Champion of the Light
Posts: 488
Joined: Thu Mar 10, 2016 8:31 am

### Re: Summon damage = 1/3 weapon damage

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

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

``````

Ogodei
Champion of the Light
Posts: 488
Joined: Thu Mar 10, 2016 8:31 am

### Re: Summon damage = 1/3 weapon damage

it should,

if you aren't sure about your formula, though, you might consider taking a look at the formulae guide (by Xeno and Kingpin)

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

### Re: Summon damage = 1/3 weapon damage

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

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.