style StartEnd; room_colour="light sky blue"; endstyle;
style Link; room_colour="yellow"; endstyle;
style Dangerous; room_colour="pink"; endstyle;
style Special; room_colour="LightSteelBlue1"; endstyle;
style Destination; room_colour="pale green"; endstyle;
style Light; room_shadow_colour="green"; endstyle;
style Dark; room_shadow_colour="grey50"; endstyle;
style SafeDark; room_shadow_colour="blue"; endstyle;
style Further; room_colour="light grey"; endstyle;
style Dashed; link_dashed=true; endstyle;

show_joins=false;
page_title_colour="blue";
map_title_colour="dark green";
page_margin=1;

title "Zork I: The Great Underground Empire";

map "Forest & House";

room "West of House" tag westofhouse style StartEnd style Light;
  item "Mailbox";
  item "Leaflet";

room "Forest" tag forest1 dir w n 2 nw oneway style Light;
  item "Sunlight to east";

room "Forest Path" tag forestpath dir e 4 style Light;
  item "Large Tree";

room "Clearing" tag clearing1 dir n 2 style Link exit sw style Light;
  item "Pile of leaves";
  item "Locked Grating";
    task "Open grating" after unlockgrating do opengrating;

room "North of House" tag northofhouse dir n 2 e 2 from westofhouse style Light;

room "Behind House" tag behindhouse dir e 2 s 2 style Light;
  item "Window, ajar";
    task "Open window" tag openwindow;

room "South of House" tag southofhouse dir s 3 w 2 style Light;
link southofhouse to westofhouse dir w 2 n 3;
link forestpath to northofhouse dir s;
link forest1 to clearing1 dir n 2;

room "Forest" tag forest2 dir s 8 e 7 from forest1 style Light;
  item "Dimly lit";

room "Forest" tag forest3 dir e 3 from forestpath style Light;
  item "Dimly lit";

room "Forest" tag forest4 dir e n style Light;
  item "Dimly lit";

room "Impassable mountains" dir e;

room "Clearing" tag clearing2 dir e from behindhouse style Light;

room "Canyon View" tag canyonview dir e se style Light;

room "Rocky Ledge" tag rockyledge dir se go down style Light;

room "Canyon Bottom" dir se go down style Light;

room "End of Rainbow" dir n ne style Light;

link forest2 to clearing2 dir n;
link clearing2 to forest3 dir n;
link southofhouse to forest2 dir s e 2;
link forest4 to forest3 dir n w oneway;
link clearing1 to forest3 dir e se oneway;
link canyonview to rockyledge dir e oneway;
link canyonview to forest2 dir w s 4 oneway;

room "Up a Tree" dir nw from forestpath go up style Light;
  item "Small Bird's Nest";
  item "Large Jewelled Egg" tag egg score 5;

room "Kitchen" tag kitchen dir w from behindhouse go in after openwindow style Light score 10;
  item "Table";
  item "Bottle of Water" tag water;
  item "Brown Sack" tag sack;
    task "Open sack" tag opensack;
  item "Clove of Garlic" tag garlic hidden after opensack;
  item "Lunch" tag lunch hidden after opensack;

room "Living Room" tag livingroom dir w exit w style Light style StartEnd;
  item "Trophy Case";
    task "Open case" tag opencase;
  item "Large Rug";
    task "Move rug" tag moverug;
  item "Elvish Sword" tag sword keep;
  item "Battery Lantern" tag lamp keep;
  item "Trap door";
  item "Nailed shut";
    task "Open trapdoor" tag opentrap after moverug;
    task "Turn on lamp" tag lampon need lamp;

room "Cellar" tag cellar1 dir sw oneway go down after opentrap after lampon style Link exit w score 25;

room "East of Chasm" dir s;

room "Gallery" dir e;
  item "Painting" tag painting score 4;

room "Studio" tag studio dir n;
  item "Piece of Paper";
link studio to kitchen dir ne oneway go up;

room "Attic" dir n from kitchen go up;
  item "Table";
  item "Nasty-looking Knife";
  item "Coil of Rope" tag rope;

room "Troll Room" tag trollroom1 dir n 2 from cellar1 style Link exit e w;
  item "Troll";
    task "Kill troll with sword" need sword;

    task "Put bag in case" need bag in livingroom after opencase lose it score 6;
    task "Put bar in case" need bar in livingroom after opencase lose it score 5;
    task "Put egg in case" need egg in livingroom after opencase lose it score 5;
    task "Put skull in case" need skull in livingroom after opencase lose it score 10;
    task "Put torch in case" need torch3 in livingroom after opencase lose it score 6;
    task "Put trunk in case" need trunk in livingroom after opencase lose it score 5;
    task "Put scarab in case" need scarab in livingroom after opencase lose it score 10;
    task "Put diamond in case" need diamond in livingroom after opencase lose it score 10;
    task "Put trident in case" need trident in livingroom after opencase lose it score 10;
    task "Put bracelet in case" need bracelet in livingroom after opencase lose it score 5;
    task "Put figurine in case" need figurine in livingroom after opencase lose it score 5;
    task "Put painting in case" need painting in livingroom after opencase lose it score 6;
map "Maze";

room "Troll Room" tag trollroom2 style Link exit s e;
  item "Troll";
join trollroom1 to trollroom2;

room "Maze" tag maze1 dir w from trollroom2;

room "Maze" tag maze2 dir s sw w nw n ;

room "Maze" tag maze3 dir e;

room "Maze" tag maze4 dir n 2 e;

room "Dead End" dir e n;
link maze1 to maze1 dir n e oneway;
link maze2 to maze4 dir se e n go down oneway;
link maze4 to maze1 dir n 2 e 2 s 2 sw 2;

room "Maze" tag maze5 dir nw w 2 s from maze3 go up;
  item "Skeleton";
  item "Rusty Knife";
  item "Useless Lantern";
  item "Skeleton Key" tag key;
  item "Bag of Coins" tag bag score 10;

room "Dead End" dir e;

room "Maze" tag maze6 dir sw from maze5 go up;
link maze6 to maze6 dir w;

room "Maze" tag maze7 dir e;

room "Maze" tag maze8 dir e 2 sw;
link maze8 to maze8 dir w;

room "Dead End" dir se s;
#room "Maze" tag maze9 dir s sw 3 w 3 n 2 from maze7;

room "Maze" tag maze9 dir s sw 3 w 4 n 2 from maze7;

room "Cyclops Room" dir se;
  item "Cyclops";
    task "Give lunch and water to cyclops" tag feedcyclops need lunch lose it need water lose it;

room "Treasure Room" dir ne go up after feedcyclops style Further;
  item "Silver Chalice";
  item "Thief";

room "Maze" tag maze10 dir nw n 4 w 2 s from maze6 oneway go up;
link maze10 to maze10 dir nw;

room "Maze" tag maze11 dir e s 3 w 2 from maze10;

room "Maze" tag maze12 dir w 2 from maze10;

room "Dead End" dir n;

room "Maze" tag maze13 dir sw w 2 ne from maze12;

room "Grating Room" dir ne;
    task "Unlock grating" tag unlockgrating need key;
    task "Open grating" tag opengrating after unlockgrating;

room "Clearing" tag clearing3 dir ne go up after opengrating style Link style Light exit w s e;
join clearing1 to clearing3;

room "Maze" tag maze14 dir nw s 3 e from maze13;

room "Maze" tag maze15 dir w n e 3 se e from maze9;
link maze15 to maze15 dir nw;

link maze10 to maze14 dir s 2;
link maze11 to maze13 dir nw oneway go up;
link maze12 to maze5 dir ne 2 e 3 s 4 oneway go down;
link maze14 to maze11 dir s;
link maze15 to maze7 dir ne e;
link maze15 to maze7 dir s ne;
map "Underground";

room "Troll Room" tag trollroom3 style Link exit s w;
join trollroom1 to trollroom3;
join trollroom2 to trollroom3;
  item "Troll";

room "East-West Passage" tag eastwestpassage dir e score 5;

room "Chasm" tag chasm1 dir n ne go down style Link exit ne;

room "North-South Passage" dir s;

room "Round Room" tag roundroom dir s;

room "Loud Room" tag loudroom1 dir e style Link exit n e;
  item "Platinum bar";
link eastwestpassage to roundroom;

room "Narrow Passage" dir s from roundroom;

room "Mirror Room" tag mirrorroom1 dir s;

room "Cave" tag cave1 dir e s;

room "Winding Passage" tag windingpassage dir w 2;
link windingpassage to mirrorroom1 dir n;

room "Engravings Cave" dir se from roundroom;
  item "Engravings";

room "Dome Room" dir e;
  item "Precipitous Drop";
    task "Tie rope to railing" tag tierope need rope lose it;

room "Torch Room" dir se go down oneway after tierope;
  item "White Marble Pedestal";
  item "Ivory Flaming Torch" tag torch score 14;

room "Temple" tag temple dir se go down;
  item "Brass bell" tag bell;

room "Altar" tag altar dir s;
  item "Altar";
  item "Burning Candles" tag candle;
  item "Large Black Book (569)" tag book;
link altar to cave1 dir w n go down oneway;

room "Egyptian Room" dir se from temple go down;
  item "Gold Coffin";

room "Entrance to Hades" dir se from cave1 go down;
    task "Ring bell" tag ringbell need bell candle;
    task "Read book" tag readbook need book after ringbell;

room "Land of the Dead" dir s after readbook;
  item "Crystal Skull" tag skull score 10;
map "Dam & River";

room "Chasm" tag chasm2 style Link exit sw s;
join chasm1 to chasm2;

room "Reservoir South" tag reservoirsouth dir ne;

room "Deep Canyon" tag deepcanyon dir se;

room "Loud Room" tag loudroom2 dir s 2 go down style Link exit w;
  item "Platinum bar" tag bar after damoff score 10;
join loudroom1 to loudroom2;

room "Damp Cave" dir e;

room "White Cliffs Beach" tag beach1 dir e;

room "White Cliffs Beach" tag beach2 dir s;
    task "Out" need scarab after launch2;

room "Dam" tag dam dir e n from deepcanyon;
  item "Control Panel";
  item "Metal Bolt";
  item "Green Plastic Bubble";
    task "Turn bolt with wrench" tag damon need wrench after dampower;
    task "Turn bolt with wrench" tag damoff need wrench after dampower;

room "Dam Base" dir se go down;
  item "Folded Pile of Plastic with Valve";
    task "Inflate boat with pump" tag makeboat need pump;
link dam to reservoirsouth dir w;
    task "Enter boat" tag inboat1 after makeboat;
    task "Launch" tag launch1 after inboat1;

room "Frigid River" dir e after launch1;

room "Frigid River" dir s oneway;

room "Frigid River" tag river3 dir s oneway;
link river3 to beach1 dir w;

room "Frigid River" tag river4 dir s oneway;
  item "Red Buoy";
link river4 to beach2 dir w;
#task "Go east" after launch1;

room "Sandy Beach" tag sandybeach dir e;
  item "Shovel" tag shovel;
    task "Out";
    task "Enter boat" tag inboat2 need scarab;
    task "Launch" tag launch2 after inboat2;
#task "Go west" after launch2;

room "Shore" tag shore dir s;

room "Aragain Falls" dir s;

room "Frigid River" tag river5 dir s from river4 oneway exit s;

room "Sandy Cave" dir ne from sandybeach;
    task "Dig in sand" tag dig need shovel;
    task "Dig in sand" tag digdig after dig need shovel;
  item "Scarab" tag scarab after digdig;
link river5 to shore dir e;

room "Dam Lobby" tag damlobby dir n from dam;
  item "Guidebooks";
  item "Matchbook";

room "Maintenance Room" tag maintenanceroom dir n e;
  item "Blue, Yellow, Brown, Red Buttons";
  item "Wrench" tag wrench;
  item "Tube of Gunk";
  item "Screwdriver" tag screwdriver;
  item "Empty Tool Chests";
    task "Press yellow button" tag dampower;
link damlobby to maintenanceroom dir e n;

room "Stream View" dir w from reservoirsouth;

room "Reservoir" dir n from reservoirsouth after damon before damoff;
  item "Trunk with Jewels" tag trunk score 15;

room "Reservoir North" dir n;
  item "Hand-held Air Pump" tag pump;

room "Atlantis Room" tag atlantisroom1 dir n style Link exit nw;
  item "Crystal Trident" tag trident;
map "Mine";

room "Atlantis Room" tag atlantisroom2 style Link exit s;
  item "Crystal Trident";
join atlantisroom1 to atlantisroom2;

room "Cave" tag cave2 dir nw go up;

room "Mirror Room" tag mirrorroom2 dir n w;

room "Twisting Passage" tag twistingpassage dir w s;

room "Cold Passage" dir n from mirrorroom2;
link cave2 to twistingpassage;

room "Slide Room" tag slideroom dir w;
  item "\"Granite Wall\"";

room "Mine Entrance" dir n;

room "Squeaky Room" dir w;

room "Bat Room" tag batroom dir n;
  item "Jade Figurine" tag figurine score 5;
    task "Drop garlic" need garlic lose it;

room "Shaft Room" dir e;
  item "Heavy Iron Chain";
  item "Basket";
  item "Diamond" tag diamond hidden after raise3;
  item "Flaming Ivory Torch" tag torch3 hidden after raise3;
    task "Raise basket" tag raise1;
    task "Lower basket" tag lower1 after tbasket sbasket;
    task "Raise basket" tag raise2 after dropt drops;
    task "Lower basket" tag lower2 after cbasket;
    task "Raise basket" tag raise3 after dbasket tbasket2;
    task "Put torch in basket" tag tbasket need torch lose it after raise1;
    task "Put screwdriver in basket" tag sbasket need screwdriver lose it after raise1;
    task "Put coal in basket" tag cbasket need coal lose it follow raise2;

room "Smelly Room" dir n;

room "Gas Room" dir se go down;
  item "Sapphire-encrusted Bracelet" tag bracelet score 5;

room "Coal Mine" tag mine1 dir e 2 s;
link mine1 to mine1 dir e;

room "Coal Mine" tag mine2 dir ne;
link mine2 to mine2 dir n;

room "Coal Mine" tag mine3 dir se 2 w;
link mine2 to mine1 dir s 2 nw oneway;
link mine3 to mine3 dir s;

room "Coal Mine" tag mine4 dir sw s;
link mine4 to mine4 dir w;

room "Ladder Top" dir se go down;

room "Ladder Bottom" tag ladderbottom dir se go down;

room "Dead End" dir s;
  item "Small Pile of Coal" tag coal;

room "Timber Room" tag timberroom dir w from ladderbottom;
  item "Broken Timber";
    task "Drop everything" tag dropallw1 after lower1 drop all;
    task "Drop everything" tag dropallw2 after lower2 drop all;
    task "W" follow dropallw1 drop all goto draftyroom;
    task "W" follow dropallw2 drop all goto draftyroom;

room "Drafty Room" tag draftyroom dir w nopath;
  item "Flaming Torch" tag torch2 hidden after lower1;
  item "Screwdriver" tag screwdriver2 hidden after lower1;
  item "Pile of Coal" tag coal2 hidden after lower2;
    task "Drop torch" tag dropt need torch2 score 13;
    task "Drop screwdriver" tag drops need screwdriver2;
    task "Put diamond in basket" tag dbasket need diamond2 lose it;
    task "Put torch in basket" tag tbasket2 need diamond2 torch2 lose it;
    task "Drop everything" tag dropalle1 after dropt drops drop all;
    task "Drop everything" tag dropalle2 after dbasket drop all;
    task "E" follow dropalle1 drop all goto timberroom;
    task "E" follow dropalle2 drop all goto timberroom;

room "Machine Room" dir s;
  item "Machine";
  item "Button";
  item "Diamond" tag diamond2 hidden after getdiamond score 10;
    task "Open machine" tag openlid need torch2;
    task "Put coal in machine" tag coalin need coal2 lose it after openlid;
    task "Close machine" tag closelid after coalin;
    task "Switch machine on with screwdriver" tag machon need screwdriver2 after closelid;
    task "Open machine" tag getdiamond after machon;

  item "Bloody Axe?";

room "Cellar" tag cellar2 dir sw s 2 e 2 from slideroom go down oneway style Link exit n s;
join cellar1 to cellar2;