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

From ARK Modding Wiki
Jump to navigation Jump to search
(Created page with "Category:Tutorials Category:TIAPs This is a step by step guide for manually adding an engram to the learned engrams list using an item's "Blueprint Used" function. ==...")
 
Line 6: Line 6:
 
# Open the item and navigate to the graph tab
 
# Open the item and navigate to the graph tab
 
# Find the function "Blueprint Used", right click it and press "Implement Function"
 
# Find the function "Blueprint Used", right click it and press "Implement Function"
# In your function graph you should first check if you are the server using "Switch Has Authority"
+
 
[[File:Learnengram01.png|thumb|Check for authority]]
+
== 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.

Revision as of 22:21, 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

  1. Open the item and navigate to the graph tab
  2. 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.