nightrod16
New member
Hello all,
I searched around on the internet (google) and here but have yet to see anything that points directly to an answer to my question. Keep in mind that I am 100% self-learning how to code these files and by no means an expert so if my code skills suck I apologize in advance.
Has anyone been able to successfully mod the progression.xml file to trigger a buff based on skill or perk level? In my example below I do not get any errors in the 7dtd console or logs, but the buff is also not triggered by the skill as I am trying to get it to do. I have verified that the buff does indeed work by using an item so I know that part of the code works fine. Any help would be appreciated. Please feel free to ask me any questions that may help get this sorted.
The general idea is that as your skill in athletics increases so does your ability to run faster.
From Progression:
From Buffs:
I searched around on the internet (google) and here but have yet to see anything that points directly to an answer to my question. Keep in mind that I am 100% self-learning how to code these files and by no means an expert so if my code skills suck I apologize in advance.
Has anyone been able to successfully mod the progression.xml file to trigger a buff based on skill or perk level? In my example below I do not get any errors in the 7dtd console or logs, but the buff is also not triggered by the skill as I am trying to get it to do. I have verified that the buff does indeed work by using an item so I know that part of the code works fine. Any help would be appreciated. Please feel free to ask me any questions that may help get this sorted.
The general idea is that as your skill in athletics increases so does your ability to run faster.
From Progression:
Code:
<player_skill name="Athletics" icon="run" description_key="athleticsDesc" title_key="athletics" exp_to_level="50" group="health" >
<effect name="StaminaDegradation">
<!-- <multiply skill_level= and <multiply perk_level= are completely interchangeable. They parse as the same value. -->
<multiply skill_level="1,5" value="1.00,0.95"/>
<multiply skill_level="5,11" value="0.95,0.91"/>
<multiply skill_level="11,19" value="0.91,0.87"/>
<multiply skill_level="19,32" value="0.87,0.82"/>
<multiply skill_level="32,49" value="0.82,0.77"/>
<multiply skill_level="49,70" value="0.77,0.72"/>
<multiply skill_level="70,100" value="0.72,0.66"/>
<multiply skill_level="100,150" value="0.66,0.35"/>
</effect>
<effect name="BreathHoldDuration">
<setvalue skill_level="1,10" value="20,27"/>
<setvalue skill_level="10,20" value="27,32"/>
<setvalue skill_level="20,30" value="32,36"/>
<setvalue skill_level="30,40" value="36,40"/>
<setvalue skill_level="40,50" value="40,44"/>
<setvalue skill_level="50,60" value="44,47"/>
<setvalue skill_level="60,70" value="47,51"/>
<setvalue skill_level="70,80" value="51,54"/>
<setvalue skill_level="80,90" value="54,57"/>
<setvalue skill_level="90,100" value="57,60"/>
<setvalue skill_level="100,150" value="60,75"/>
</effect>
<buff name="athleticsSpeed">
<setvalue skill_level="0,150" value="1,10"/>
</buff>
</player_skill>
Code:
<buff id="athleticsSpeed" duration="0" icon="ui_game_symbol_run" stack="stack" stacklimit="10" actions="increment(speedmodifier,1,0,0,1)">
<modify id="0" stat="speedmodifier" modifyMaxValue="1000"/>
<modify id="1" stat="speedmodifier" modifyValue="1"/>
</buff>