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.