start cave treasury throne action score: score action inventory: inventory action look: look occur when !flag 1 print "Welcome to the Tutorial adventure." print "You must find a gold coin and store it." set_flag 1 room cave "cave mouth" exit east chamber room throne "gorgeously decorated throne room" exit south chamber item sign "Sign says: leave treasure here, then say SCORE" item lamp "old-fashioned brass lamp" called "lamp" item lit_lamp "lit lamp" called "lamp" nowhere item empty_lamp "empty lamp" called "lamp" nowhere lightsource lit_lamp lighttime 10 action light lamp when present lamp swap lamp lit_lamp print "OK, lamp is now lit and will burn for 10 turns." look occur when flag 16 clear_flag 16 swap lit_lamp empty_lamp look comment "The engine sets flag 16 when the lamp runs out" item station "lamp-refilling station" at cave action refill lamp when here station and present empty_lamp destroy empty_lamp refill_lamp print "The lamp is now full and lit." room chamber "square chamber" exit east dungeon exit north throne exit west cave # Flag 15 is on when and only when it is dark occur when at chamber and flag 15 clear_dark look item cross "Wooden cross" called "cross" room dungeon "gloomy dungeon" exit west chamber exit north crypt occur when at dungeon and !flag 15 set_dark look occur 25% when at dungeon print "I smell something rotting to the north." item door "Locked door" item key "Brass key" called "key" at crypt item door2 "Open door leads south" nowhere action open door when here door and !present key print "It's locked." action open door when here door swap door door2 print OK look action go door when here door2 goto cell look room cell "dungeon cell" exit north dungeon item coin "*Gold coin*" called "coin" room crypt "damp, dismal crypt" exit south dungeon item vampire "Vampire" occur when here vampire and carried cross print "Vampire cowers away from the cross!" occur when here vampire and !carried cross print "Vampire looks hungrily at me." occur 25% when here vampire and !carried cross print "Vampire bites me! I'm dead!" game_over comment "vampire can attack unless cross is carried" action get key when here vampire and !carried cross print "I'm not going anywhere near that vampire!" verbgroup get take g verbgroup drop leave noungroup lamp lantern