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
Passive Fire/Cold/Light Absorb Skill
Moderator: Nizari
-
- Posts: 38
- Joined: Wed Apr 05, 2023 7:35 pm
Re: Passive Fire/Cold/Light Absorb Skill
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.
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.
Re: Passive Fire/Cold/Light Absorb Skill
Works very well. Thanks