mjrice
New member
It used to be that when a recipe was unlocked, the game would pop up a message above the hud that said "Recipe Unlocked: {recipe}", and that tooltip key is still in Localization.txt, but I can't figure out how to make it do anything.
I thought the way to do it would be to add the parameter "tooltip_key" to the triggered effect that unlocks the recipe, like this example for Bacon and Eggs:
But this does nothing, and nothing else I have tried has worked. Does anybody know if it is possible to do?
Just to be clear, the recipe does get unlocked, I just can't get it to display a message telling the player about it.
I thought the way to do it would be to add the parameter "tooltip_key" to the triggered effect that unlocks the recipe, like this example for Bacon and Eggs:
Code:
<item name="Cookbook: Bacon and Eggs">
<property name="Extends" value="recipeBookBase"/>
<property name="CreativeMode" value="Player"/>
<property name="EconomicValue" value="500"/>
<property class="Action0">
<requirement name="CVarCompare" cvar="foodBaconAndEggs" operation="Equals" value="0"/> <!-- Equals 0 -->
</property>
<effect_group tiered="false">
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodBaconAndEggs" operation="set" value="1" tooltip_key="ttRecipeUnlocked" />
</effect_group>
</item>
Just to be clear, the recipe does get unlocked, I just can't get it to display a message telling the player about it.