Jump to content

Script help (Help me!)


mkvamm1

Recommended Posts

I'm not sure if this is the right place to post this but...

 

I've met a wall when it comes to this script, it's my first but I based it of the classic pack. It's supposed to give you random gear at the start of the game, which I've picked the appropriate leveled list for. But I think there's something wrong with it because I can't even save it!

 

Here's the script:

 

Scriptname 001RandomStarterGearScript
Short DoOnce
BEGIN GameMode
if (DoOnce == 0)
PlayerRef.AddItem VendorWeaponsAllCommon 1;
PlayerRef.AddItem VendorCapsRandom 1;
PlayerRef.AddItem LootArmorTier1 1;
PlayerRef.AddItem LootChemsNVHealing75 3;
PlayerRef.AddItem 188GeneralStoremisc 5;
SetStage 001RandomStarterGear
set DoOnce to 1
endif
END
Any help is appreciated
Link to comment
Share on other sites

The SetStage function takes two parameters, you must specify which numerical stage you want to set.

 

But you likely want to use StopQuest instead, since the script is only supposed to run once anyways.

I did StopQuest instead of SetStage (must've forgotten to put quest stage behind it) but it doesn't let me close the script, the only way I can close it is if I don't save it

 

Maybe there's something wrong with my Geck or something...

Link to comment
Share on other sites

If a script won't save, that means that there's an error in the script. I recommend getting the Geck Power Up, available on the nexus, will generally tell you what's up with script.

 

While it's useful for troubleshooting, it might also crash the GECK if there's an error in a script.

 

Just a fair warning. I've stopped using it after it lost me several hours of work.

Link to comment
Share on other sites

Well it drove up the number of crashes for me. I've never, ever had the GECK crash due to a compiler error before, but with PU it happened every day.

 

The author seemed to be aware of the problem but not intent on fixing it when I commented about it. So in it's current state it's (sadly) of no use to me. :confused:

Link to comment
Share on other sites

I've never experienced that either. On the other hand, I do my actual script-writing in Notepad++. The main reason for that was that the GECK script editor is a pain to write in if you like keeping your code indented, because it makes you have to indent every single line individually. So if GECK does crash when I try to save the script, I've still got the source.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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