gunslinger6792 Posted April 28, 2015 Share Posted April 28, 2015 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 GSWaterPurifierScriptshort bRepairedshort iLevelshort iSelectionshort iCountershort iToAddbegin OnActivate if IsActionRef player set iLevel to 1 + bRepaired endifendbegin 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 endifend 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 More sharing options...
Numbl3 Posted April 28, 2015 Share Posted April 28, 2015 (edited) 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 UPhttp://www.nexusmods.com/newvegas/mods/41642/? http://www.nexusmods.com/newvegas/mods/36290/?Not sure if you need both or not. Edited April 28, 2015 by NumBlacK Link to comment Share on other sites More sharing options...
gunslinger6792 Posted April 28, 2015 Author Share Posted April 28, 2015 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 More sharing options...
Numbl3 Posted April 28, 2015 Share Posted April 28, 2015 Probably the prompt command you're using? I don't know, I'm still pretty new to scripting.. Sorry for not being able to help more than this. Link to comment Share on other sites More sharing options...
gunslinger6792 Posted April 28, 2015 Author Share Posted April 28, 2015 Well thanks for trying hopefully someone else will wander by. Link to comment Share on other sites More sharing options...
Ladez Posted April 29, 2015 Share Posted April 29, 2015 It saves just fine for me. Are you sure you've loaded the GECK through the NVSE? Link to comment Share on other sites More sharing options...
gunslinger6792 Posted April 29, 2015 Author Share Posted April 29, 2015 It saves just fine for me. Are you sure you've loaded the GECK through the NVSE?perhaps not? Link to comment Share on other sites More sharing options...
Ladez Posted April 29, 2015 Share Posted April 29, 2015 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 More sharing options...
gunslinger6792 Posted April 29, 2015 Author Share Posted April 29, 2015 I was able to get it up and running. I hadn't set up the geck and nvse function correctly. Link to comment Share on other sites More sharing options...
Recommended Posts