Jump to content

[LE] how do i create a buyable recipe?


Recommended Posts

If you're willing to do scripting, you could do this with a series of global variables. This might require SKSE.

 

(1) For each recipe. create a global variable (such as AAAGlobalRecipe1) and set the initial value to 0.

 

(2) Next, create a book. In the "scripts" section of the book add a new script by selecting the [new script] option at the top. Title your script something like "AAAScriptChangeGlobalOnRead" and hit OK.

 

(3) In your script, add a new property. Your property is a global type and name it "GlobalToChange".

 

(4) Fill the new property with the AAAGlobalRecipe1 that you just made.

 

(5) Your script would be:

 

Event OnRead()
If AAAGlobalRecipe1.GetValue() == 0
AAAGlobalRecipe1.SetValue(1)
Debug.Trace("You learned a new recipe from this book.")
EndIf
endEvent
(6) Now in your recipe, you just need to make one of the conditions that the global variable be 1.
You can make a global variable that controls each recipe, add the script to each book and fill in the property with the new globals. If that requires SKSE and you don't want to deal with that you can effectively do the same thing by making an empty cell with a series of XMarkers that enable when you read the book. I can walk you through that if you'd like.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...