Jump to content

Beginner seeking help in creating simple(?) script


GunNutMerc

Recommended Posts

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

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

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 by Spooderdude
Link to comment
Share on other sites

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

END

And some GECK images:

https://i.imgur.com/4g6Ms6n.png

https://i.imgur.com/6ie1oax.png

 

Am I missing something?

Edited by Spooderdude
Link to comment
Share on other sites

  • Recently Browsing   0 members

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