Jump to content

Scripts


Madae

Recommended Posts

I've been running into an issue whenever I try to create a script in NV GECK. Whenever I open scripts, whether through the quest box or the taskbar, I can enter all the information, but clicking save does nothing. Every time I save it and try to exit, it asks me if I want to save. I can do this repeatedly and it just won't let me leave the script box. If I click no to saving it, it lets me exit, but I lose the script.

 

This is getting quite annoying. I got it working just once, but I haven't been able to duplicate it again.

Link to comment
Share on other sites

I just asked this a little while ago, its because there is an error in your script. This GECK doesn't throw any errors up if there is something wrong. make sure your not referencing something that doesn't exist or that your not using a FOSE function.

 

My post in which this was discussed

 

Also, I had an issue linking a script to a quest before I realized that you have to fill out the Name and ID, hit OK to save it... then reopen to edit it to only then be able to select a script.

Link to comment
Share on other sites

I just asked this a little while ago, its because there is an error in your script. This GECK doesn't throw any errors up if there is something wrong. make sure your not referencing something that doesn't exist or that your not using a FOSE function.

 

My post in which this was discussed

 

Also, I had an issue linking a script to a quest before I realized that you have to fill out the Name and ID, hit OK to save it... then reopen to edit it to only then be able to select a script.

 

I'm not seeing any errors. When it worked before, I was basically typing the exact same thing over and over (and eventually just copying/pasting it). The script is practically identical to the one that work before, except it's referencing 4 items instead of 14 - all copied/pasted word for word.

 

Is there something wrong with this? I'm not a scripter...

 

scn mysteriousclothes

 

Begin GameMode

 

Player.AddItem TKmysteriousmicrobikinitop 1

Player.AddItem TKmysteriousshorts 1

Player.AddItem TKmysteriousshorts2 1

Player.AddItem TKmysterioustop2 1

 

StopQuest mysteriousclothes

Link to comment
Share on other sites

Yes there is: I assume it's a Questscript. I would make it this way:

 

scn mysteriousclothes

 

short doonce

 

Begin GameMode

 

If doonce == 0

Player.AddItem TKmysteriousmicrobikinitop 1

Player.AddItem TKmysteriousshorts 1

Player.AddItem TKmysteriousshorts2 1

Player.AddItem TKmysterioustop2 1

set doonce to 1

EndIf

 

StopQuest mysteriousclothes

 

End

 

Link to comment
Share on other sites

scn mysteriousclothes

 

Begin GameMode

 

Player.AddItem TKmysteriousmicrobikinitop 1

Player.AddItem TKmysteriousshorts 1

Player.AddItem TKmysteriousshorts2 1

Player.AddItem TKmysterioustop2 1

 

StopQuest mysteriousclothes

 

 

I don't see an 'End' in there... unless you just missed that in your copy/paste.

 

Also, as far as I have experienced, you can't reference the quest until its made. I made the mistake of writing a script that ran once at the beginning of the quest then stopped it... before the quest was there. So much for being prepared :/

Link to comment
Share on other sites

  • Recently Browsing   0 members

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