Passive Fire/Cold/Light Absorb Skill

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
spilin
Posts: 10
Joined: Wed Mar 29, 2023 2:23 pm
Brazil

Passive Fire/Cold/Light Absorb Skill

Post by spilin » Fri Apr 19, 2024 11:30 pm

Hello guys, I wanna make some changes in Fire/Light and Cold Mastery to add a modifier to +0.5% element absorb per level. Someone know how can I do that?
Thanks

OrderOfTheScribble
Posts: 34
Joined: Wed Apr 05, 2023 7:35 pm
United States of America

Re: Passive Fire/Cold/Light Absorb Skill

Post by OrderOfTheScribble » Sat Apr 20, 2024 2:14 am

To add a modifier to an existing passive, you'll need another passivestat. Each of those passives has 1 modifier, which goes in passivestat1 (for the name of the stat) and passivecalc1 (for the value of the stat), so the new modifiers would go in passivestat2 and passivecalc2. For example, to add 0.5% cold absorb per level to Cold Mastery, you'll put item_absorbcold_percent in passivestat2 and lvl/2 in passivecalc2. Fire and lightning absorb would use item_absorbfire_percent and item_absorblight_percent, respectively. These edits go in Skills.txt.

To get these modifiers displayed when hovering over the skill, you'll edit SkillDesc.txt for each skill and find the next available descline entry. As the SkillDesc.txt file guide explains, the desclines are in sets of columns, so for example, the cold absorb in Cold Mastery would go something like this:

descline2 = 2
desctexta2 = stringcoldabsorb (doesn't exist in vanilla; you'd have to make a new string in a TBL editor)
desctextb2 = StrSkill23
desccalca2 = pst2

Similar entries would be made for Fire Mastery and Lightning Mastery.

spilin
Posts: 10
Joined: Wed Mar 29, 2023 2:23 pm
Brazil

Re: Passive Fire/Cold/Light Absorb Skill

Post by spilin » Sat Apr 20, 2024 8:56 pm

Works very well. Thanks

Post Reply

Return to “General Mod Making”