Jump to content

Purifying water supplies


obfuscate

Recommended Posts

I've been tinkering more and more with the GECK recently, and I'm slowly working my way to trying to make own mod,isntea dof just tweaking others to my liking. I've had one major thing on my mind though, water purification. Undoubtedly the most valuable commodity in the wasteland, is purified water. Megaton has a purifier, you come from a vault that has one. There's one mod that places a modifier that just does it by menu(instantly) on bottles of dirty water. There's another mod, that places a purifier you have to repair, and it does the same, only slowly, and requires fission batteries to run the process.

 

I personally like the second approach better, though the time it takes to process a bottle of water, versus the rate of consumption ( especially if you have the basic needs mod installed) is a bit off. The megaton purifier makes it's own kind of sense too, Moira's a little techie wiz, and she had the food sanitizer to just hand you. Why wouldn't she be able to rig up a water purifier and install it in your house?

 

So, I have two separate mods brewing in my head. First, involves another player house. Another neglected/broken machine that requires the player to repair it, consuming some salvage, scrap metal sensor modules, fission batteries, valves, steam guage assembly, etc.. and needing a certain science and repair skill to pull off. This one, however, does not purifier bottled water, one at a time, but rather purifies all the water feeding into the house, once repaired. So, one time repair(possibly some maintenance X% chance to break down after X amount of time, and keeps checking) and all the sinks in the place go from regular, irradiated water, to providing purified water instead. Examining the "base objects" in the GECK, I'm a bit unsure if it's possible to have a script change the water type provided by the sinks, or more importantly, how to make the "status" of another object, do this to all the other dependent objects in the cell.

 

Now, the grander scheme...

 

As many of us are inclined to babysit Big Town, equip the residents, leave extra food there, etc... I thought about taking one of those unused buildings and converting it into a utility shed, where the player can (with the same sort of requirements as repairing the other one) build a purifier for all of Big Town. Possibly even just do it in the basement of Red's Clinic, to save building a whole new cell. This one's even more complicated, as it starts making changes across cells, since it would need to act on the fixtures inside ever internal cell attached to big town.

 

So what I need help with, is tips on how to get started, in accomplishing the basic "purifier repaired, sinks now give clean water" mechanic. Once I've got that down, the rest can be built from there. Suggestions? Tips? Someone who can whip those scripts out in their sleep? :thanks:

Link to comment
Share on other sites

well I think most of the scripts you'd need for this would be fairly basic

 

you'd need to start out with a quest script with a few reference variables

 

you'd then need a script for your purifier that checks to see if the player has the required materials/skills for repair

and if the player does, change one of your quest script's reference variables

 

the dirty/pure water sources switch shouldn't be too difficult either

just put a clean source right on top of the dirty one and put scripts on them that disable/enable them when purifier script changes the quest variable

Link to comment
Share on other sites

Ah HA! See, the enable disable thing hadn't even occurred to me. Told ya I was just getting to this point of modding :P

Definitely gonna have to tinker around with this some now. I knew it was something fairly straight forward, but hadn't figured the approach yet.

Link to comment
Share on other sites

yup yup

like I said this doesn't seem too complicated and sounds like a decent beginner project to me

so my advice would be:

-bookmark http://geck.bethsoft.com/index.php/Main_Page for easy reference to any and all script functions/various tutorials/other random knowledge

-have a look at some other people's scripts (from vanilla or mods)

-and if you run into snags leave a post here so someone can help you out

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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