Difference between revisions of "Learn an Engram using an Item"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
Learnengram02.png|Next get a reference to the primal character | Learnengram02.png|Next get a reference to the primal character | ||
Learnengram03.png|To add the item to the engrams tree view we have to get a reference to the player state | Learnengram03.png|To add the item to the engrams tree view we have to get a reference to the player state | ||
− | Learnengram04.png|Now we add our item to the "Engram Item Blueprints" array of the player state. This will make it show in the engram tree. For the purpose of this tutorial I selected the Large Crop Plot. Make sure to promote this to a variable in production use! | + | Learnengram04 .png|Now we add our item to the "Engram Item Blueprints" array of the player state. This will make it show in the engram tree. For the purpose of this tutorial I selected the Large Crop Plot. Make sure to promote this to a variable in production use! |
Learnengram05.png|Now drag the PrimalCharacter pin from step 2 and get a reference to Inventory Component. From there drag "Get Default Inventory Items" and from that drag "Add". Again select our Large Crop Plot. | Learnengram05.png|Now drag the PrimalCharacter pin from step 2 and get a reference to Inventory Component. From there drag "Get Default Inventory Items" and from that drag "Add". Again select our Large Crop Plot. | ||
Learnengram06.png|Now drag the InventoryComponent pin from the last step to "Get Default Engrams" and from that, again, drag "Add". Use "1" as the value. | Learnengram06.png|Now drag the InventoryComponent pin from the last step to "Get Default Engrams" and from that, again, drag "Add". Use "1" as the value. |
Revision as of 22:26, 13 August 2016
This is a step by step guide for manually adding an engram to the learned engrams list using an item's "Blueprint Used" function.
Learn an engram on blueprint used
- Open the item and navigate to the graph tab
- Find the function "Blueprint Used", right click it and press "Implement Function"
Building the graph
Result
Now give your character the item and use it. As a result you should see the item in your engram tree view, your crafting engrams in the inventory, and additionally a message "ADDED: Engram [XYZ]" should appear, just like when regularly learning an engram.