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

schematic does not unlock an item

I hope this is poested in the right forum please move to proper forum if it is not.

I added sticky dynamite to the game. When i did this i tied it into the same perk and schematic as dynamite. When i tested it in the prefab editor it worked and unlocked fine. When i went to try this on an existing server i noticed that if you already have dynamite unlocked it will not unlock sticky dynamite when you read the schematic again. Im pretty sure if a new player tried it it would work fine as they would have neither unlocked. Is there anyway to forget the dynamite recipe or force learn the sticky recipe for the few players who unlocked this before it was added?

 
I'll just give the lines that are important for this, perhaps you forgot something.

1. in recipes.xml:

<recipe name="BulletTipMold" count="1" craft_time = "8.0" tags="learnable">

.....

2. items.xml, in schematic:


<item name="ammunitionNationBook">

<property name="Unlocks" value="nitroPowder"/>

.....

and

<triggered_effect trigger="onSelfSecondaryActionEnd" action="ModifyCVar" cvar="BulletTipMold" operation="set" value="1"/>

.....

3. items.xml, in unlocked items:

<item name="BulletTipMold">

<property name="UnlockedBy" value="ammunitionNationBook"/>

.....

(sorry - about unlocks via perks, and serviceability for multiplayer - i can't say anything)

 
Last edited by a moderator:
<triggered_effect trigger="onSelfSecondaryActionEnd" action="ModifyCVar" cvar="BulletTipMold" operation="set" value="1"/>

.....
This appears to be the missing link im going to go try it thanks I simply overlooked it.

 
Back
Top