max10121 Posted June 11, 2021 Share Posted June 11, 2021 im looking to add recipes that players can buy instead of just knowing them. i know how to make recipes. how do i stop the player form know it right away, so they can buy it in a book , how do i make the book? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted June 11, 2021 Share Posted June 11, 2021 Make a book or note that has the recipe ingredients listed out. Then on the COBJ record for the recipe make one of the conditions be that the player has the recipe book on hand. Thus without the recipe book, said item cannot be created. Link to comment Share on other sites More sharing options...
Sparky88101 Posted June 11, 2021 Share Posted June 11, 2021 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.") EndIfendEvent (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 More sharing options...
IsharaMeradin Posted June 11, 2021 Share Posted June 11, 2021 @Sparky88101That scripting approach will not require SKSE. It would be time consuming (to create) with the added global variables. But still a viable alternative to not requiring carrying around a bunch of books. Link to comment Share on other sites More sharing options...
Recommended Posts