[REL] W3_refill_empty_bottles

Post » Sun Aug 08, 2010 1:40 pm

I thought that it would be nice, if i could save all those empty bottles, and refil them with purified water, if i ever found a clean enuf sink.
I found such a sink, and created a script that checks for certain bottles, removes one, and replaces it with a Purified Water Bottle.


http://www.masterw3.com/Files/w3_refill_empty_bottles.zip
(disables the healing part of the 3 items, so i have it cast the purified water on the player. )
(would like to reference who is activating the sink, but do NPCs use them?)
(if not, no need to)


(base Fallout3 esm used to create.)

I added the script to the existing 3 activators in Fallout3 that have purified water.
a fountain, sink, and metal sink.
each instance of these will work to refill bottles.
my last test, i saw the bottles of dirty water in my inventory, and thought that i should be able to dump those out, rinse and refill too, so you can replace dirty water, with clean water.

if you want to use this with any mod, or add it to any new items in any expansion, you may do so.
just toss me some credit

all i did was create the script to check for and replace bottles, and added it to three items.
anything else, i didn't do, so let me know here if you find anything astray.

The script is silent, so it won't notify you of each bottle replacement, that just seems unrequired.
so far i haven't seen any bugs, it's working fine for me.
I am not using the expansions yet, waiting to level up further, and complete more before i play them too.


MasterW3

Note:
as with ANY new Mod, ALWAYS start off by Saving your game in a NEW slot.
so you always go back.

-------------------------

ScriptName W3CleanWaterBottlesScript

Begin OnActivate
;cast healing 30 on player, because adding the script, removes it's healinog ability, so substituting it with this line
Player.CastImmediateOnSelf WaterHeal1Purified

If Player.GetItemCount WhiskeyBottle02 > 0
Player.RemoveItem WhiskeyBottle02 1 1
Player.AddItem WaterPurified 1 1
EndIF

If Player.GetItemCount WhiskeyBottle01Empty01 > 0
Player.RemoveItem WhiskeyBottle01Empty01 1 1
Player.AddItem WaterPurified 1 1
EndIF

If Player.GetItemCount Milkbottle01 > 0
Player.RemoveItem Milkbottle01 1 1
Player.AddItem WaterPurified 1 1
EndIF

If Player.GetItemCount NukaColaBottle > 0
Player.RemoveItem NukaColaBottle 1 1
Player.AddItem WaterPurified 1 1
EndIF

If Player.GetItemCount SodaBottleEmpty01 > 0
Player.RemoveItem SodaBottleEmpty01 1 1
Player.AddItem WaterPurified 1 1
EndIF

If Player.GetItemCount WaterUnpurified> 0
Player.RemoveItem WaterUnpurified 1 1
Player.AddItem WaterPurified 1 1
EndIF

end
; items used
;WaterPurified
;WaterPurifiedLargeW3
;
;WaterUnpurified
;SodaBottleEmpty01
;NukaColaBottle
;Milkbottle01
;WhiskeyBottle02
;WhiskeyBottle01Empty01
;
--
as with ANY new Mod, ALWAYS start off by Saving your game in a NEW slot.
so you always go back.
User avatar
Destinyscharm
 
Posts: 3404
Joined: Sun Jul 23, 2006 6:06 pm

Post » Sun Aug 08, 2010 4:13 pm

Been waiting for this for SOOO long! Thanks much! ;)
User avatar
Ross Thomas
 
Posts: 3371
Joined: Sat Jul 21, 2007 12:06 am

Post » Sun Aug 08, 2010 10:05 pm

well, i got on fo3 nexus.
and i found a mod that does this already.
it even adds the bottle to your inventory if you drink it.
whiskey, cola, etc, when you drink it, it adds the empty bottle, and you can refill it.

it wasn't really a waste of time for me to make it.
it was a learning experience.

and since i know it does exactly what i want, i'll continue to use it.
but others may like this other guy's mod, so there it is if you want to use it.
http://www.fallout3nexus.com/downloads/file.php?id=11404
http://www.fallout3nexus.com/downloads/file.php?id=11404
User avatar
Angela
 
Posts: 3492
Joined: Mon Mar 05, 2007 8:33 am


Return to Fallout 3