GunNutMerc Posted June 28, 2019 Share Posted June 28, 2019 Greetings, I'm trying to create a script for the first time that makes it so that upon loading your game, a note is instantly added to the player's inventory, as well as a schematic that corresponds with the note. I know some basic functions like "doOnce", and "begin Gamemode", which I'll need to have the script add the note once in a play through if it's not already in the player's inventory. I already have a schematic note, item and recipe ready, and just need help getting started on the script itself. Thanks. Link to comment Share on other sites More sharing options...
IntenseMute Posted June 29, 2019 Share Posted June 29, 2019 ScriptName NameTheScriptHere Begin GameMode If GetHasNote RecipesTurboNote == 0 AddNote RecipesTurboNote Player.AddItem Jet 1 Player.AddItem BrocFlower 1 Player.AddItem CazadorPoisonGland 1 Player.AddItem Turpentine 1 EndIf END This script will check to see if they player has the note that lets you unlock the turbo recipe.If not, then they will be given the note and the ingredients as well. Link to comment Share on other sites More sharing options...
GunNutMerc Posted June 29, 2019 Author Share Posted June 29, 2019 (edited) Thanks a ton, I'll fill this with my own items and see how it goes. I used the script from this mod as a basis for what I wanted to make, and ran into problems trying to get it to work. That if function in your sample script should surely do the job just as well and I didn't think about using that! Edited June 29, 2019 by Spooderdude Link to comment Share on other sites More sharing options...
GunNutMerc Posted June 29, 2019 Author Share Posted June 29, 2019 (edited) Hmm. Doesn't seem to be working for me just yet. Here's the edited script: ScriptName SmittyDescendantScript Begin GameMode If GetHasNote SchematicsTurboPlasmaCasterNote == 0 AddNote SchematicsTurboPlasmaCasterNote EndIf ENDAnd some GECK images:https://i.imgur.com/4g6Ms6n.pnghttps://i.imgur.com/6ie1oax.png Am I missing something? Edited June 29, 2019 by Spooderdude Link to comment Share on other sites More sharing options...
IntenseMute Posted June 29, 2019 Share Posted June 29, 2019 All looks good to me.Do you have anything making the script run? Link to comment Share on other sites More sharing options...
GunNutMerc Posted June 29, 2019 Author Share Posted June 29, 2019 My bad! That was actually what I was missing, a quest to run the script. I just made a simple quest and now everything works as intended! Thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts