Jump to content

Having problems getting script to save in the geck


Recommended Posts

It's been over a year since I tried to get install a script into the geck and I believe I've forgotten how to do it. I'm trying to create a water purifier using this script which I know works in another mod I made a year back.

 

scn GSWaterPurifierScript

short bRepaired
short iLevel
short iSelection
short iCounter
short iToAdd

begin OnActivate

if IsActionRef player
set iLevel to 1 + bRepaired
endif

end

begin GameMode

if iLevel == 1
MessageBoxEx "This device can be used to purify dirty/irradiated water bottles.%rIt appears to be broken.|Attempt Repair|Leave It Alone"
set iLevel to 3
elseif iLevel == 2
MessageBoxEx "Water Purifier:|Purify Water Bottles|Cancel"
set iLevel to 4
elseif iLevel > 2
set iSelection to GetButtonPressed
if iSelection >= 0
if iSelection == 0
if iLevel == 3
if (player.GetAV Repair >= 50) && (player.GetAV Science >= 35)
set bRepaired to 1
MessageEx "You have successfully repaired the water purifier."
else
MessageBoxEx "Your skills are too low to complete the repair.%r%r(Repair 50 and Science 35 are required)"
endif
else
set iCounter to player.GetItemCount WaterUnpurified
set iToAdd to iCounter
if iCounter
player.RemoveItem WaterUnpurified iCounter
endif
set iCounter to player.GetItemCount IrradiatedWaterUnpurified
set iToAdd to iToAdd + iCounter
if iCounter
player.RemoveItem IrradiatedWaterUnpurified iCounter
endif
if iToAdd
player.AddItem WaterPurified iToAdd
else
MessageEx "You do not carry any dirty or irradiated water bottles."
endif
endif
endif
set iLevel to 0
endif
endif

end

 

After failing to get the script to save I thought maybe it was because it required NVSE so I made a shortcut to nvse that targets the geck. After doing this I still run into the problem where it simply won't save my new script. So if someone could explain to me what I'm doing wrong or walk me through the process I'd be extremely happy.

Link to comment
Share on other sites

I recommend not only getting Power Up Geck but also rechecking the whole script. From what I know, Geck won't allow you to save your script if there's a mistake in it and it won't show what mistake it is. With Power Up Geck it will show you what is wrong and allow you to save it.

EDIT: I've found these links for GECK Power UP

http://www.nexusmods.com/newvegas/mods/41642/?

 

http://www.nexusmods.com/newvegas/mods/36290/?

Not sure if you need both or not.

Edited by NumBlacK
Link to comment
Share on other sites

Having installed geckpowerup it is now telling me that it cant find a reference to the 20th line which is MessageBoxEx "You do not have any dirty or irradiated water bottles" I tried creating a new message with the new ID MessageBoxEx with those words included but it still says the same thing. So I'm at a loss as to what I'm doing wrong.

Link to comment
Share on other sites

Did you follow the instructions?

 

Scripts written with these new commands must be created via the G.E.C.K. after it is launched via nvse_loader. Open a command prompt window, navigate to your NV install direcory, and type "nvse_loader -editor". Alternately you can create a shortcut to nvse_loader.exe, open the properties window and add "-editor" to the Target field. The normal editor can open plugins with these extended scripts, but it cannot recompile them and will give errors if you try.

 

The MessageBoxEx and MessageEx functions are from NVSE, so if the script compiles with those deleted, NVSE is not loaded.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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