Difference between revisions of "Learn an Engram using an Item"

From ARK Modding Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]
[[Category:TIAPs]]
+
[[Category:Items]]
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 ==
+
Due to a new exposed node this has become very simple - use the "Blueprint Used" event and call "Server Unlock Engram".
# Open the item and navigate to the graph tab
 
# Find the function "Blueprint Used", right click it and press "Implement Function"
 
 
 
== Building the graph ==
 
<gallery>
 
Learnengram01.png|In your function graph you should first check if you are the server using "Switch Has Authority"
 
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
 
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.
 
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.
 
Learnengram07.png|Again drag the InventoryComponent, this time to "Initialize Inventory".
 
</gallery>
 
 
 
== 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.
 

Latest revision as of 09:10, 7 April 2018


Due to a new exposed node this has become very simple - use the "Blueprint Used" event and call "Server Unlock Engram".