Help making Portable Coffeemaker

Post » Wed Sep 19, 2012 12:14 am

Hi all, I've been trying hard to build a portable working coffee maker but no nothing about scripting. I've been trying to glean from other portables to no avail. In game I can drop the coffeemaker alright but when I'm standing I just take it rather than activate. It activates when sneaking then disappears into my inventory again. Can someone write a simple grab/activate script for me please? I'm getting a script warning also. Here is what I've been working with. Thanks





scn CoffeeBrewerScript

begin OnActivate Player
if player.Issneaking == 1
player.additem 00CoffeeBrewer 1
disable
markfordelete
else
activate

if (player.getitemcount coffeemug >0)
if (player.getitemcount WaterUnpurified
if (player.getitemcount CoffeeGrounds >0)
player.additem CupCoffee 1
showmessage CoffeeAddMsg
player.removeitem coffeemug01 1
player.removeitem WaterUnpurified 1
player.removeitem CoffeeG
player.additem CupOfCoffee 1
showmessage NoCoffeeAddMsg
player.removeitem coffeemug 1
player.removeitem WaterUnpurified
player.removeitem CoffeeGrounds 1

else
showmessage NoCoffeeMsg
endif
else
showmessage NoCoffeeMsg
endif
else
showmessage NoCoffeeMsg
endif
else
showmessage NoCoffeeMsg
endif
end














Warning Text:

SCRIPTS: Script 'aaaCoffeeBrewerScript', line 8:
Mismatched if/then/else block.



Context: DEFAULT
"Yes to all" will disable all Warnings for this context.
User avatar
Marnesia Steele
 
Posts: 3398
Joined: Thu Aug 09, 2007 10:11 pm

Return to Fallout 3