Necroflange Posted August 30, 2018 Share Posted August 30, 2018 (edited) ok last question.. I just started getting back into modding and i'm trying to knock the rust off, lol.. I need help scripting a water purifier.. an item that will change dirty waters into purified waters.. say, if the player has 5 dirty waters the script returns 5 purified waters.. i can prolly figure out a message box or something to deliver it, i just need the actual change script. or if someone can point me in the right direction of an item in game that is simular that I can look up for myself and check out. any help would be greatly appreciated. Edited August 30, 2018 by Necroflange Link to comment Share on other sites More sharing options...
Mktavish Posted August 30, 2018 Share Posted August 30, 2018 Begin OnActivate GetItem count ... then AddItem End ~~~ pseudo script ,,, gota research it :tongue: Link to comment Share on other sites More sharing options...
Deleted1205226User Posted August 30, 2018 Share Posted August 30, 2018 Nice to see you back, Necroflange. Link to comment Share on other sites More sharing options...
TheRealNachoNinjaGnome Posted September 25, 2018 Share Posted September 25, 2018 Lol... I was going to post something similar. Just started replaying Fallout 3 and messing around in the G.E.C.K. again myself. Was planning on making the exact same sort of activator. If I figure it out, I'll let you know. - NNG Link to comment Share on other sites More sharing options...
TheRealNachoNinjaGnome Posted September 26, 2018 Share Posted September 26, 2018 (edited) Eureka!!! After studying the wrong vanilla scripts, repeatedly, it finally dawned on me which one to look at for the commands needed for this script. The Workbench. Anyway, here's a rudimentary script I wrote for my own water purifier. It doesn't have all the bells and whistles, just removes a dirty water and gives a purified. If you want options and messages, you'll have to add them, but this is simple enough to just stick onto a custom activator. And, of course, you don't have to name it "000PersonalPurifierScript". :tongue: scn 000PersonalPurifierScript begin OnActivate if IsActionRef player == 1 if player.GetItemCount WaterUnpurified > 0 Player.RemoveItem WaterUnpurified 1 Player.AddItem WaterPurified 1 endif endifend Edited September 26, 2018 by TheRealNachoNinjaGnome Link to comment Share on other sites More sharing options...
Mktavish Posted October 3, 2018 Share Posted October 3, 2018 That 000 on the script name prefix will be a problem. Never use numbers in any prefix ... especially zero's Prefix meaning atleast the first 2 characters ... but it is a shades of grey proposition. With zero's being the worst case scenario ... so just don't do it if you want to be ahead of ruling out possible problems :geek: Just like install outside of Program Files . Link to comment Share on other sites More sharing options...
TheRealNachoNinjaGnome Posted October 3, 2018 Share Posted October 3, 2018 Hmm... I vaguely recall someone telling me something about that in my first stint at modding. I think I had run into an issue with exactly that, and then I quit using the 000 prefix and the issue stopped. But, fast-forward a few years, taking another run at modding (forgetting about that issue and resuming the easy find prefix) and haven't had that issue yet. Don't even remember what the issue was. Might that have been a problem with an earlier version of the G.E.C.K. that was fixed with an update? And what's the deal with non-"Program Files" installs? I don't install any of my games in Program Files, they're all in my Games folder. Just curious and trying to learn everything I can before investing too much time in any one mod. Thanks for the reminder though. May have to resume abandoning the 000 prefix in practice just to be on the safe side. Last thing I need is to put a few hundred hours in an elaborate, complex mod and then start having issues because of the prefix. Link to comment Share on other sites More sharing options...
Recommended Posts