How to make "Enchant" affect allies less?

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
User avatar
darkmage1991
Posts: 10
Joined: Wed Nov 07, 2018 9:28 am
Anguilla

How to make "Enchant" affect allies less?

Post by darkmage1991 » Wed Sep 08, 2021 5:30 am

As the title says, how would I go about making it so enchant on the sorc affects hirelings and party members at like 50/75% of the normal value?

User avatar
Whaag
Posts: 32
Joined: Thu Feb 13, 2020 10:07 pm
Germany

Re: How to make "Enchant" affect allies less?

Post by Whaag » Wed Sep 08, 2021 4:47 pm

Enchant allready has it`s effect reduced to 50% of it`s normal value. You can controll that by changing HitShift in Skills.txt


kb/viewarticle?a=440

Code: Select all

hitshift  precision   multiplier percentage    example damage

                        (skills.txt = 1000)
-------------------------------------------------------------------
0              1/256 = 0.00390625 (  0.390625%)          3.90625

1              2/256 = 0.00781250 (  0.781250%)          7.8125

2              4/256 = 0.01562500 (  1.562500%)         15.5625

3              8/256 = 0.03125000 (  3.125000%)         31.25

4             16/256 = 0.06250000 (  6.250000%)         62.5

5             32/256 = 0.12500000 ( 12.500000%)        120
6             64/256 = 0.25000000 ( 25.000000%)        250

7            128/256 = 0.50000000 ( 50.000000%)        500

8            256/256 = 1.00000000 (100.000000%)       1000
9            512/256 = 2.00000000 (200.000000%)       2000

(etc)

User avatar
Cypress
Moderator
Champion of the Light
Posts: 446
Joined: Fri Dec 01, 2017 2:08 am

Re: How to make "Enchant" affect allies less?

Post by Cypress » Fri Sep 10, 2021 3:46 pm

You could give Enchant a passivestate which passively gives a portion of the fire dmg/AR% only to the sorceress. It would always be active, but it wouldn't be given to anyone else.

Post Reply

Return to “General Mod Making”