Restart Story

@import url(http://fonts.googleapis.com/css?family=Share+Tech+Mono);\n\nbody { \n color: white !important; \n background-color: #1e3a3f !important;\n text-align: left; \n width: 95% !important;\n font-size: 0.95em !important;\n font-family:'Share Tech Mono', sans-serif;\n margin: 3em 3em 3em 4em;\n}\n\nem {color: grey;}\n\n.passage .title { display: none } \n\n.passage {\n font-size: 3.8em;\n line-height: 120%;\n margin-bottom: 0.85em;\n padding: 0.2em;\n text-align: left;\n background: transparent;\n color: white;\n}\n\n#sidebar {\n position:fixed;\n top:4.2em;\n left:7.5em;\n width:12em;\n list-style:none;\n margin:0;\n padding:0 1em 0 0;\n font:bold 1.2em 'Share Tech Mono',sans-serif;\n}\n\n#sidebar li{\n color:#333;\n text-align:right;\n background-repeat:no-repeat;\n margin-bottom:1em; \n line-height:3.4em !important; \n list-style:none;\n}\n\n#sidebar li:hover {\n color:#fff;\n cursor:pointer;\n}\n\n#sidebar li a{\n color:#333;\n}\n\n#sidebar li a:hover{\n color:#fff;\n text-decoration:none;\n}\n\n#sidebar #title {\n color:grey;\n font-size: 85%;\n cursor:auto;\n visibility:hidden\n}\n\n#sidebar #title a:hover{color:#888;}\n\n#sidebar #storySubtitle {\n font-size: 120%;\n display: block;\n}\n\n#storyAuthor{font-size:90%;}\n\n#sidebar #storyMenu {\n display:none;\n line-height:2.5em;\n margin-bottom:.5em;\n}\n\n#sidebar #title:hover{color:#999;}\n\n#sidebar #credits:hover {\n color:#333;\n visibility:hidden;\n}\n\n#sidebar #credits a {\n text-decoration:none;\n visibility:hidden;\n}\n\n#footer {visibility:hidden}\n\nh1,h3 {\n color: grey;\n text-align:left;\n}\n\na.internalLink,a.externalLink,a.back,a.return {\n color:#deecef;\n font-weight: bold;\n line-height: 140%;\n text-decoration: none;\n text-align: left;\n font-size: 130%\n}\n\na.internalLink:hover,a.externalLink:hover,a.back:hover,a.return:hover {\n color: #999;\n text-decoration: underline;\n text-align:left;\n}\n\na.brokenLink {\n background-color:red;\n text-decoration:none;\n color:#000;\n}\n\n.marked {\n background-color:red;\n color:#000;\n margin-right:12px;\n padding:3px;\n}\n\n.highlight {\n color:red;\n font-size:120%;\n font-weight:bold;\n}\n\n\n#floater {\n background-color: white;\n color: black;\n font-family: 'Share Tech Mono', sans-serif;\n visibility:hidden;\n}
<<set $posy = $posy - 1>>\n<<print "(X: " + $posx + "; Y: " + $posy + ")">>\n<<navigate>>\n<<if $North eq 1>>\n[[North]]\n<<endif>>\n<<if $South eq 1>>\n[[South]]\n<<endif>>\n<<if $West eq 1>>\n[[West]]\n<<endif>>\n<<if $East eq 1>>\n[[East]]\n<<endif>>\n<<if $Exit eq 1>>\n[[Exit]]\n<<endif>>
<<set $posx = $posx - 1>>\n<<print "(X: " + $posx + "; Y: " + $posy + ")">>\n<<navigate>>\n<<if $North eq 1>>\n[[North]]\n<<endif>>\n<<if $South eq 1>>\n[[South]]\n<<endif>>\n<<if $West eq 1>>\n[[West]]\n<<endif>>\n<<if $East eq 1>>\n[[East]]\n<<endif>>\n<<if $Exit eq 1>>\n[[Exit]]\n<<endif>>
<<display "Maze Addon">>\nYou pull out the blank map and look at the entrance before you.\n\n[[Enter Cave]]
The map is filled in and you survived. \n\nSuccess.
<<silently>>\n<<set $MazeAddon =\nfunction() \n{\n \n var maze = [[0,0,0,0,0,0,0,0,0,0,0],\n[0,1,1,1,0,1,1,1,1,1,0],\n[0,0,0,1,0,0,0,0,0,1,0],\n[0,1,0,1,1,1,1,1,0,1,0],\n[0,1,0,0,0,0,0,1,0,1,0],\n[0,1,1,1,1,1,1,1,0,1,0],\n[0,0,0,0,0,0,0,1,0,1,0],\n[0,1,0,1,1,1,1,1,1,1,0],\n[0,1,0,1,0,0,0,1,0,0,0],\n[0,1,1,1,0,1,1,1,1,2,0],\n[0,0,0,0,0,0,0,0,0,0,0]];\n \n var x = 1;\n var y = 1;\n \n $posx = 1;\n $posy = 1;\n \n macros['navigate'] =\n {\n handler: function(obj, fnc, val)\n {\n x = $posx; y = $posy;\n if(maze[y-1][x] eq 1)\n { $North = 1; } \n else if(maze[x][y+1] eq 2) {$Exit = 1;}\n else {$North = 0;}\n \n if(maze[y+1][x] eq 1) \n { $South = 1; } \n else if(maze[x][y-1] eq 2) {$Exit = 1;}\n else {$South = 0;}\n \n if(maze[y][x-1] eq 1) \n { $West = 1; } \n else if(maze[x-1][y] eq 2) {$Exit = 1;}\n else {$West = 0;}\n \n if(maze[y][x+1] eq 1) \n { $East = 1; } \n else if(maze[x+1][y] eq 2) {$Exit = 1;}\n else {$East = 0;}\n }\n }\n \n \n}\n>>\n<<print $MazeAddon()>>\n<<endsilently>>
History.prototype.originalDisplay = History.prototype.display;\n\nHistory.prototype.display = function (title, link, render)\n{\n if ((render != 'quietly') && (render != 'offscreen'))\n removeChildren($('passages'));\n \n this.originalDisplay.apply(this, arguments);\n};
Dan Cox
Cnossus: Lost in Darkness
<<set $posx = $posx + 1>>\n<<print "(X: " + $posx + "; Y: " + $posy + ")">>\n<<navigate>>\n<<if $North eq 1>>\n[[North]]\n<<endif>>\n<<if $South eq 1>>\n[[South]]\n<<endif>>\n<<if $West eq 1>>\n[[West]]\n<<endif>>\n<<if $East eq 1>>\n[[East]]\n<<endif>>\n<<if $Exit eq 1>>\n[[Exit]]\n<<endif>>
<<set $posy = $posy + 1>>\n<<print "(X: " + $posx + "; Y: " + $posy + ")">>\n<<navigate>>\n<<if $North eq 1>>\n[[North]]\n<<endif>>\n<<if $South eq 1>>\n[[South]]\n<<endif>>\n<<if $West eq 1>>\n[[West]]\n<<endif>>\n<<if $East eq 1>>\n[[East]]\n<<endif>>\n<<if $Exit eq 1>>\n[[Exit]]\n<<endif>>
<<navigate>>\n<<if $North eq true>>\n[[North]]\n<<endif>>\n<<if $South eq true>>\n[[South]]\n<<endif>>\n<<if $West eq true>>\n[[West]]\n<<endif>>\n<<if $East eq true>>\n[[East]]\n<<endif>>