• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

How to make a mod to add a new skill to the game.

NesToRR

New member
Good afternoon! I use a Google translator, so the text may suffer. I discovered a new side - modding 7 days to die. At this stage, I can't figure out how to make a new perk. I tried to play with the progression file in every possible way, but nothing comes out. I peeked in other mods and the logic is the same there, but it doesn't work for me. Help me figure it out.

The effects are made randomly to check the display, they will change further.

<configs>
    <append xpath="/progression/perks">
        <!-- Добавляем навык Травничество -->
        <perk name="perkHerbalism" max_level="3" parent="skillFortitudeSurvival" name_key="perkHerbalismName" desc_key="perkHerbalismDesc" icon="ui_game_herbalism">
            <!-- Требования к уровню -->
            <level_requirements level="1">
                <requirement name="ProgressionLevel" progression_name="attFortitude" operation="GTE" value="1" desc_key="reqFortitudeLevel01"/>
            </level_requirements>
            <level_requirements level="2">
                <requirement name="ProgressionLevel" progression_name="attFortitude" operation="GTE" value="3" desc_key="reqFortitudeLevel03"/>
            </level_requirements>
            <level_requirements level="3">
                <requirement name="ProgressionLevel" progression_name="attFortitude" operation="GTE" value="5" desc_key="reqFortitudeLevel05"/>
            </level_requirements>

            <!-- Эффекты навыка -->
            <effect_group>
                <!-- Повышение уровня крафта -->
                <passive_effect name="CraftingTier" operation="base_set" level="0,3" value="0,3" tags="perkHerbalism"/>
                <!-- Пример: Увеличение шанса на сбор трав -->
                <passive_effect name="HarvestCount" operation="perc_add" level="1,2,3" value="1,2,3" tags="herbHarvest"/>
            </effect_group>

            <!-- Описания уровней -->
            <effect_description level="1" desc_key="perkHerbalismRank1Desc" long_desc_key="perkHerbalismRank1LongDesc"/>
            <effect_description level="2" desc_key="perkHerbalismRank2Desc" long_desc_key="perkHerbalismRank2LongDesc"/>
            <effect_description level="3" desc_key="perkHerbalismRank3Desc" long_desc_key="perkHerbalismRank3LongDesc"/>
        </perk>
    </append>
</configs>

 
If you are creating a new perk for a specific attribute, it needs to be added to that attribute.

append xpath="/progression/perks" adds the perk to the bottom of the list, but doesn't tie it to Fortitude.

If you want to add it to the Fortitude attribute, then your append statement needs to specifiy fortitude as the path (I can't give you the exact path right now as I am at work).  Though it will add it last.  If you want the perk to be after a specific perk in the fortitude attribute, then you should use something like insertAfter instead of append.

 
Back
Top