Jump to content

Player level or experience dependent recipes


dwarfmaster1974

Recommended Posts

Hello survivors,

 

is it possible to make recipes so that, for example, a recipe is only unlocked when I have a certain level or a certain amount of XP. NOT perk or learnable things. That will not fit my target.

 

My idea would be to make ammunition cheaper for an easier start on our server.

The higher you go in the level, the more expensive it will be.

 

Is that possible?

Link to comment
Share on other sites

3 hours ago, dwarfmaster1974 said:

Hello survivors,

 

is it possible to make recipes so that, for example, a recipe is only unlocked when I have a certain level or a certain amount of XP. NOT perk or learnable things. That will not fit my target.

 

My idea would be to make ammunition cheaper for an easier start on our server.

The higher you go in the level, the more expensive it will be.

 

Is that possible?

 

Yes, it is certainly possible to do this using player level.

 

You will need to use a perk to manage the recipe unlocks and the scaling of the ammo cost.  Look at how the   tags="perkAdvancedEngineering"  is used in both the progression and recipes files to see how the cost scaling is done.   Set up the perk with a base_skill_point_cost="0" and use level requirements similar to the below:

<level_requirements level="5"><requirement name="PlayerLevel" operation="GTE" value="25" desc_key="reqPlayerLevel25"/></level_requirements>

 

 

You can then use a buff the automatically increment the perk level when the player level reaches the right number.  Use the following example in the buffStatusCheck01 to see how you can trigger a small buff to run that will increment your perk based on player level change:

            <triggered_effect trigger="onSelfBuffUpdate" action="AddBuff" buff="buffLevelUpTracking">
                <requirement name="PlayerLevel" operation="GT" value="@$LastPlayerLevel"/>
            </triggered_effect>

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...