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

Require skill to learn recipe?

-Holo-

New member
Is it possible to require a previous skill/perk to be able to use a recipe?

For example, A recipe for Arrowheads, but the recipe can't be used until Forge is unlocked?

 
Is it possible to require a previous skill/perk to be able to use a recipe?

For example, A recipe for Arrowheads, but the recipe can't be used until Forge is unlocked?
You can by adding a requirement to the action0 of the recipe. I use it in my original horses mod to make it so you require a certain buff in order to use a saddle on the horse. Here's the main bit with the requirement. You can edit it to do w/e you are trying and use a progression check for the requirement.
 

<property class="Action0">
<requirement name="HasBuff" buff="buffBrownHorseTamingCompletePlayer"/>
<property name="Class" value="UseOther"/>
<property name="Delay" value="2.1"/>
<property name="Use_time" value="..."/>
<property name="Sound_start" value="metalhitmetal"/>
<property name="Create_item" value="vehicleBrownHorsePlaceable"/>
</property>


Here's an example of the progression check.
 

Code:
				<requirement name="ProgressionLevel" progression_name="perkTurrets" operation="LTE" value="1"/>
 
Ah Figured it out now, Thanks! I had tested pretty much the same thing but not included the operation section!

(and now I finally learned what those LTE and GTE stand for too :D )

 
Last edited by a moderator:
Back
Top