Jump to content

My scripts wont save


Recommended Posts

I tried making my own sorting script by trying to duplicate it from a different mod. the only problem i'm having is everytime i try to save it, a message shows saying:

 

"Are you sure you want to save the current script?"

"Current = "

 

at first, i thought there was something wrong with the script itself, then what i did was i copied the script from the other mod entirely, and put it on a new script, and i still got the same result, the script works in game, and when i tried to save it as a new script, it wont save and simply show the message as shown above.

 

 

EDIT:

 

I tried rewriting it, but this time, saving it after every line, i soon found out that the cause of the problem was that my script was wrong. this was the line i found out to be wrong, please check for my mistakes:

 

UPMMKStimpaksRef.additem Stimpak Medcount

 

Note:

the 2nd line, right after the script name, was "Int Medcount" making Medcount a Variable in the script.

 

UPMMKStimpaks is a pre-existing container.

Edited by JasonGibbons
Link to comment
Share on other sites

You need the geck power up, it will tell you the error in your scripts so you don't have to go through so much trouble.

 

That said you need to most likely place an instance of that container in the game. Once you have it there right click it and select properties, type UPMMKStimpaksRef for the reference name, top of the properties window, and check persistent reference bottom left corner.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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