W
wrathmaniac
Guest
Hello all!
I'm trying to create a mod to add new recipes for various uncraftable parts such as "Motor tool parts", and "Shotgun parts". I can add the recipes just fine but I want to make it more balanced and immersive. I'm doing that by making the recipe learn-able and locked behind perks. The problem is there should be a way to set that in the recipes xml like so:
<recipe name="meleeToolChainsawParts" count="1" craft_time="15" craft_area="workbench" tags="perkAdvancedEngineering,learnable,workbenchCrafting">
<ingredient name="resourceForgedSteel" count="10"/>
<ingredient name="resourceMechanicalParts" count="5"/>
<ingredient name="resourceSpring" count="2"/>
<effect_group>
HERE I TRY TO SET INFO FOR LOCKING--><passive_effect name="RecipeTagUnlocked" tags="meleeToolChainsawParts"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="meleeToolChainsawParts" operation="set" value="1">
</triggered_effect>
<requirement name="ProgressionLevel" progression_name="perkAdvancedEngineering" operation="GTE" value="1"/>
</effect_group>
</recipe>
I have found a way to set the recipe to unlock via the progressions.xml file. The problem is that it does not show up in the ui in game. Does anyone know how to do that? What Am I missing in the recipes.xml to make that work?
I'm trying to create a mod to add new recipes for various uncraftable parts such as "Motor tool parts", and "Shotgun parts". I can add the recipes just fine but I want to make it more balanced and immersive. I'm doing that by making the recipe learn-able and locked behind perks. The problem is there should be a way to set that in the recipes xml like so:
<recipe name="meleeToolChainsawParts" count="1" craft_time="15" craft_area="workbench" tags="perkAdvancedEngineering,learnable,workbenchCrafting">
<ingredient name="resourceForgedSteel" count="10"/>
<ingredient name="resourceMechanicalParts" count="5"/>
<ingredient name="resourceSpring" count="2"/>
<effect_group>
HERE I TRY TO SET INFO FOR LOCKING--><passive_effect name="RecipeTagUnlocked" tags="meleeToolChainsawParts"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="meleeToolChainsawParts" operation="set" value="1">
</triggered_effect>
<requirement name="ProgressionLevel" progression_name="perkAdvancedEngineering" operation="GTE" value="1"/>
</effect_group>
</recipe>
I have found a way to set the recipe to unlock via the progressions.xml file. The problem is that it does not show up in the ui in game. Does anyone know how to do that? What Am I missing in the recipes.xml to make that work?