var linked = false;\n\ntry {\n\n version.extensions['generateSpaceMacro'] = {\n major:1, minor:0, revision:0\n };\n\n macros['generatespace'] = {\n handler: function(place, macroName, params, parser) {\n\n if (params.length != 0) {\n\n var type = params.shift();\n var html = "";\n\n if (type == "corridor") {\n html = generateCorridor(params);\n }\n else if (type == "stairs") {\n html = generateStairs(params);\n }\n else if (type == "elevator") {\n html = generateElevator(params);\n }\n else if (type == "snow") {\n html = generateSnow(params);\n }\n else if (type == "frost") {\n html = generateFrost(params);\n }\n else if (type == "water") {\n html = generateWater(params);\n }\n else if (type == "cycles") {\n html = generateCycles(params);\n }\n else if (type == "timedcycles") {\n html = generateTimedCycles(params);\n }\n else if (type == "wasteland") {\n html = generateTheWasteland(params);\n }\n\n new Wikifier(place, html);\n\n }\n },\n init: function() { },\n };\n}\ncatch(e) {\n console.log(e.message);\n throwError(place,"randomunicode Setup Error: "+e.message);\n}\n\nfunction generateCorridor(params) {\n\n var rendered = (params[0] == "true");\n\n theString = "";\n\n theString += "<span class=\s"nowrap\s">";\n\n theString += "<span class=\s"home\s">" + params[1] + "</span>"; // Add the default home tag.\n\n theString += "<span class=\s"warning\s">";\n\n if (!rendered) {\n theString += " <<revise walk" + i + " \s"walk.\s">><<insertion walk" + i + ">> ";\n for (var i = 2; i < params.length - 1; i++) {\n theString += params[i];\n theString += " <<revise walk" + i + " \s"walk.\s">><<insertion walk" + i + ">> ";\n }\n theString += "</span>"; // Close warning\n\n theString += params[params.length-1];\n\n\n for (var i = 1; i < params.length; i++) {\n theString += "<<endinsertion>>"\n }\n }\n else {\n for (var i = 2; i < params.length - 1; i++) {\n theString += " " + params[i];\n }\n theString += " " + params[params.length-1];\n theString += "</span>"; // Close warning\n\n }\n\n theString += "</span>"; // Close nowrap\n\n return theString;\n}\n\nfunction generateStairs(params) {\n\n var rendered = (params[0] == "true");\n var homeLinkText = params[1];\n var homeLinkDestination = params[2];\n var steps = parseInt(params[3]);\n var warningLinkText = params[4];\n var warningLinkDestination = params[5];\n\n var indentPercentage = 0.15; // Percentage of the width\n var indentDirection = 1;\n var theWidth = $('#passages').width();\n var indentAmount = indentPercentage*indentDirection*theWidth;\n var currentIndent = indentAmount;\n var previousIndent = 0;\n var theString = "";\n\n console.log("Indent amount: ",indentAmount,", theWidth: ",theWidth);\n\n theString += "<span class=\s"nowrap\s">";\n\n if (false) {\n\n // THE OLD VERSION OF STAIRS FROM THE BOTTOM WHERE IT'S INTERACTIVE\n for (var i = 0; i < steps+1; i++) {\n theString += "<<revision step" + i + ">>";\n theString += Array(steps-i+1).join("\sn");\n theString += "<<becomes>>";\n }\n\n theString += "<span class='home'>[[" + homeLinkText + "|" + homeLinkDestination + "]]</span>\sn";\n theString += "@@padding-left:" + currentIndent + "px; @@";\n theString += "step.";\n\n for (var i = steps; i >= 1; i--) {\n theString += "<<endrevision>>";\n\n theString += "@@padding-left:" + currentIndent + "px; @@";\n theString += "<span class='home'><<revise step" + (i) + " 'step.'>></span>";\n theString += "\sn";\n\n if (currentIndent > $('#passages').width() || currentIndent < indentAmount) {\n // if (currentIndent > 5*indentAmount || currentIndent < indentAmount) {\n indentDirection = -indentDirection;\n }\n currentIndent += indentDirection * indentAmount;\n\n theString += "@@padding-left:" + currentIndent + "px; @@";\n theString += "step.";\n }\n\n theString += "<<endrevision>>";\n theString += "@@padding-left:" + (currentIndent) + "px; @@";\n theString += "<span class='home'><<revise step" + 0 + " 'step.'>></span>\sn";\n\n // The bad exit\n if (currentIndent > $('#passages').width() || currentIndent < indentAmount) {\n // if (currentIndent > 5*indentAmount || currentIndent < indentAmount) {\n indentDirection = -indentDirection;\n }\n theString += "@@padding-left:" + (currentIndent + (indentAmount*indentDirection)) + "px;";\n theString += "<span class='warning'>[[" + warningLinkText + "|" + warningLinkDestination + "]]</span>@@\sn";\n }\n\n\n else if (rendered) {\n\n // A VERSION OF THE STAIRS THAT ARE PRE-RENDERED SO YOU CAN\n // JUST LEAVE THEM QUICKLY\n\n theString += "<span class='home'>[[" + homeLinkText + "|" + homeLinkDestination + "]]</span>\sn";\n\n theString += "@@padding-left:" + currentIndent + "px; @@";\n theString += "<span class='warning'>step.</span>\sn";\n\n for (var i = 0; i < steps; i++) {\n // if (currentIndent > 5*indentAmount || currentIndent < indentAmount) {\n if (currentIndent > theWidth-2*indentAmount || currentIndent < indentAmount) {\n indentDirection = -indentDirection;\n }\n currentIndent += indentDirection * indentAmount;\n theString += "@@padding-left:" + currentIndent + "px; @@";\n theString += "<span class='warning'>step.</span>\sn";\n }\n\n // if (currentIndent > 5*indentAmount || currentIndent < indentAmount) {\n if (currentIndent > theWidth-2*indentAmount || currentIndent < indentAmount) {\n indentDirection = -indentDirection;\n }\n theString += "@@padding-left:" + (currentIndent + (indentAmount*indentDirection)) + "px;<span class=\s"warning\s">[[" + warningLinkText + "|" + warningLinkDestination + "]]</span>@@\sn";\n\n for (var i = 0; i < steps+1; i++) {\n theString += "</span>";\n }\n }\n\n\n //\n // FROM TOP\n //\n else {\n theString += "<span class='home'>[[" + homeLinkText + "|" + homeLinkDestination + "]]</span>\sn";\n\n theString += "@@padding-left:" + currentIndent + "px; @@";\n theString += "<span class='warning'><<insert \s"step.\s">></span>\sn";\n\n for (var i = 0; i < steps; i++) {\n // if (currentIndent > 5*indentAmount || currentIndent < indentAmount) {\n if (currentIndent > theWidth-2*indentAmount || currentIndent < indentAmount) {\n indentDirection = -indentDirection;\n }\n currentIndent += indentDirection * indentAmount;\n theString += "@@padding-left:" + currentIndent + "px; @@";\n theString += "<span class='warning'><<insert 'step.'>></span>\sn";\n }\n\n // if (currentIndent > 5*indentAmount || currentIndent < indentAmount) {\n if (currentIndent > theWidth-2*indentAmount || currentIndent < indentAmount) {\n indentDirection = -indentDirection;\n }\n theString += "@@padding-left:" + (currentIndent + (indentAmount*indentDirection)) + "px;<span class=\s"warning\s">[[" + warningLinkText + "|" + warningLinkDestination + "]]</span>@@\sn";\n\n for (var i = 0; i < steps+1; i++) {\n theString += "<<endinsert>></span>";\n }\n }\n theString += "</span>"; // Closing nowrap\n\n return theString;\n}\n\nfunction generateElevator (params) {\n\n var elevatorAtTop = (params[0] == "true");\n var homeLinkDestination = params[1];\n var floors = parseInt(params[2]);\n var warningLinkDestination = params[3];\n\n var inactiveButton = "<<cyclinglink 'button.'>>";\n var closedDoors = "<<cyclinglink 'closed doors.'>>"\n\n var replaceTime = 2;\n\n var theString = "";\n\n if (elevatorAtTop) {\n theString += "<<revision elevatortop>><span class='home'>[[open doors.|" + homeLinkDestination + "]]</span><<becomes>>";\n theString += "<<timedreplace " + replaceTime + "s>><<cyclinglink 'closing doors.'>> " + inactiveButton + "<<becomes>>";\n\n theString += "<<timedinsert " + replaceTime*2 + "s>>down.\sn\sn";\n\n for (var i = 0; i < floors; i++) {\n theString += "<<timedinsert " + replaceTime + "s>>down.\sn\sn";\n }\n for (var i = 0; i < floors; i++) {\n theString += "<<endtimedinsert>>";\n }\n theString += "<<endtimedinsert>>";\n\n theString += "<<timedreplace " + (floors+4)*replaceTime + "s>>" + closedDoors + " " + inactiveButton + "<<becomes>>";\n // theString += "<<timedreplace " + replaceTime + "s>> <<cyclinglink 'closed doors.'>> " + inactiveButton + "<<becomes>>"\n theString += "<<timedreplace " + replaceTime + "s>> <<cyclinglink 'opening doors.'>> " + inactiveButton + "<<becomes>>"\n theString += "<span class='warning'>[[open doors.|" + warningLinkDestination + "]]</span> " + inactiveButton;\n theString += "<<endtimedreplace>>";\n // theString += "<<endtimedreplace>>";\n theString += "<<endtimedreplace>>";\n theString += "<<endtimedreplace>>";\n theString += "<<endrevision>>";\n\n theString += " <span class='warning'><<revise elevatortop 'button.'>></span>"\n }\n else {\n theString += "<<revision elevatorbottom>>" + Array(floors+1).join("\sn\sn") + "\sn\sn" + closedDoors + "<<becomes>>";\n\n theString += "<<timedreplace " + replaceTime + "s>>" + Array(floors+1).join("\sn\sn") + "\sn\sn" + "<<cyclinglink 'closing doors.'>> " + inactiveButton + "<<becomes>>";\n theString += "<<timedreplace " + replaceTime*2 + "s>>" + Array(floors+1).join("\sn\sn") + "\sn\sn" + "<<cyclinglink 'closed doors.'>> " + inactiveButton + "<<becomes>>";\n\n for (var i = 0; i < floors; i++) {\n var floor = (floors - i);\n theString += "<<timedreplace " + replaceTime + "s>>";\n theString += Array(floor+1).join("\sn\sn") + closedDoors + " " + inactiveButton;\n theString += Array(i+1).join("\sn\snup.");\n theString += "\sn\snup.";\n theString += "<<becomes>>";\n }\n theString += "<<timedreplace " + replaceTime*2 + "s>>"\n theString += closedDoors + " " + inactiveButton + Array(floors+2).join("\sn\snup.");\n theString += "<<becomes>>"\n theString += "<<timedreplace " + replaceTime + "s>>";\n theString += "<<cyclinglink 'opening doors.'>>" + " " + inactiveButton + Array(floors+2).join("\sn\snup.");\n theString += "<<becomes>>";\n theString += "<span class='home'>[[open doors.|" + homeLinkDestination + "]]</span>" + " " + inactiveButton + Array(floors+2).join("\sn\snup.");\n theString += "<<endtimedreplace>><<endtimedreplace>>"\n for (var i = 0; i < floors; i++) {\n theString += "<<endtimedreplace>>";\n }\n theString += "<<endtimedreplace>>";\n theString += "<<endtimedreplace>>";\n theString += "<<endrevision>>";\n theString += "<<revise elevatordoortop 'button.'>>";\n theString += " <span class='warning'><<revise elevatorbottom 'button.'>></span>";\n\n }\n\n return theString;\n}\n\nfunction generateSnow(params) {\n var numSnows = parseInt(params[0]);\n\n var indentAmount = 10;\n var indentDirection = 1;\n var currentIndent = indentAmount;\n var previousIndent = 0;\n var theString = "";\n\n for (var i = 0; i < numSnows; i++) {\n theString += "<span class=\s"snow\s">";\n var padding = 0;\n for (var j = 0; j < 10; j++) {\n if (Math.random() < 0.5) {\n padding += 1;\n }\n }\n theString += "@@padding-left: " + padding + "px;"\n theString += "<<cyclinglink \s"snow.\s" \s"snow.\s">>";\n theString += "@@";\n theString += "</span> ";\n }\n\n return theString;\n}\n\nfunction generateFrost(params) {\n var numSnows = parseInt(params[0]);\n\n var indentAmount = 10;\n var indentDirection = 1;\n var currentIndent = indentAmount;\n var previousIndent = 0;\n var theString = "";\n\n for (var i = 0; i < numSnows; i++) {\n theString += "";\n\n // theString += "@@padding-left: 2px;"\n theString += "<<replace 'frost.'>><<cyclinglink 'footstep.'>><<endreplace>> ";\n // theString += "@@";\n theString += "";\n }\n\n return theString;\n}\n\nfunction generateWater(params) {\n var numWater = parseInt(params[0]);\n\n var indentAmount = 10;\n var indentDirection = 1;\n var currentIndent = indentAmount;\n var previousIndent = 0;\n var theString = "";\n\n for (var i = 0; i < numWater; i++) {\n // theString += "";\n // for (var j = 0; j < 3; j++) {\n // if (Math.random() < 0.5) {\n // theString += " ";\n // }\n // }\n // theString += "@@padding-left: 2px;"\n theString += "<<hoverreplace>>water<<becomes>>water<<endhoverreplace>>. ";\n // theString += "@@";\n theString += "";\n }\n\n return theString;\n}\n\nfunction generateCycles(params) {\n\n console.log(params);\n\n var theString = "";\n var numCycles = parseInt(params.shift());\n var cycleMin = parseFloat(params.shift());\n var cycleMax = parseFloat(params.shift());\n\n for (var i = 0; i < numCycles; i++) {\n theString += "<<cyclinglink ";\n for (var j = 0; j < params.length-1; j++) {\n theString += "'" + params[j] + "' ";\n }\n theString += "'" + params[params.length-1] + "'>> ";\n }\n\n //\n // for (var i = 0; i < numCycles; i++) {\n // theString += "<<timedcycle " + (cycleMin + (Math.random() * (cycleMax - cycleMin))) + "s>>"\n // for (var j = 0; j < params.length-1; j++) {\n // theString += "<<cyclinglink '" + params[j] + "'>><<becomes>>";\n // }\n // theString += "<<cyclinglink '" + params[params.length-1] + "'>><<becomes>>";\n // theString += "<<endtimedcycle>> ";\n // }\n\n return theString;\n}\n\nfunction generateTimedCycles(params) {\n\n var theString = "";\n var numCycles = parseInt(params.shift());\n var cycleMin = parseFloat(params.shift());\n var cycleMax = parseFloat(params.shift());\n var totalTime = parseInt(params.shift());\n\n theString += "<<timedreplace " + totalTime + "s>>"\n for (var i = 0; i < numCycles; i++) {\n theString += "<<timedcycle " + (cycleMin + (Math.random() * (cycleMax - cycleMin))) + "s>>"\n for (var j = 0; j < params.length-2; j++) {\n theString += "<<cyclinglink '" + params[j] + "'>><<becomes>>";\n }\n theString += "<<cyclinglink '" + params[params.length-2] + "'>><<becomes>>";\n theString += "<<endtimedcycle>> ";\n }\n theString += "<<becomes>>"\n for (var i = 0; i < numCycles; i++) {\n theString += "<<cyclinglink '" + params[params.length-1] + "'>> ";\n }\n theString += "<<endtimedreplace>>"\n\n return theString;\n}\n\nvar theWastelandLines = [\n [\n "What is that sound high in the air",\n "Murmur of maternal lamentation",\n "What is the city over the mountains",\n "Cracks and reforms and bursts in the violet air",\n "Falling towers",\n "Unreal"\n ],\n [\n "And bats with baby faces in the violet light",\n "Whistled, and beat their wings",\n "And crawled head downward down a blackened wall",\n "And upside down in air were towers",\n "Tolling reminiscent bells, that kept the hours",\n "And voices singing out of empty cisterns and exhausted wells.",\n ],\n [\n "In this decayed hole among the mountains",\n "There is the empty chapel, only the wind’s home.",\n "Dry bones can harm no one.",\n "In a flash of lightning. Then a damp gust",\n "The jungle crouched, humped in silence.",\n ],\n [\n "Then spoke the thunder",\n "DA",\n "The awful daring of a moment’s surrender",\n "By this, and this only, we have existed",\n "In our empty rooms",\n ],\n [\n "DA",\n "Dayadhvam: I have heard the key",\n "We think of the key, each in his prison",\n "Thinking of the key, each confirms a prison",\n ],\n [\n "DA",\n "These fragments I have shored against my ruins",\n "Datta. Dayadhvam. Damyata.",\n "Shantih shantih shantih",\n ]\n];\n\ncount = 0;\nlinesIndex = 0;\n\nfunction generateTheWasteland(params) {\n var theString = "";\n\n switch (count) {\n\n case 0:\n theString += "<<generatenoise 'whitenoise' 0.0 " + 0.0 + " 0.0>>"\n break;\n\n case 1:\n theString += generateWastelandPassage(true,0,0,false,0,0);\n theString += "<<generatenoise 'whitenoise' 0.2 " + (count*0.1) + " 1.0>>"\n\n break;\n\n case 2:\n theString += generateWastelandPassage(true,0,0,true,0,0);\ntheString += "<<generatenoise 'whitenoise' 0.2 " + (count*0.1) + " 1.0>>"\n\n break;\n\n case 3:\n theString += generateWastelandPassage(true,0.1,0,true,0.1,0);\ntheString += "<<generatenoise 'whitenoise' 0.2 " + (count*0.1) + " 1.0>>"\n\n break;\n\n case 4:\n theString += generateWastelandPassage(true,0.25,0.05,true,0.25,0.05);\ntheString += "<<generatenoise 'whitenoise' 0.2 " + (count*0.1) + " 1.0>>"\n\n break;\n\n case 5:\n theString += generateWastelandPassage(true,0.5,0.1,true,0.5,0.1);\ntheString += "<<generatenoise 'whitenoise' 0.2 " + (count*0.1) + " 1.0>>"\n\n break;\n\n case 6:\n theString += generateWastelandPassage(true,0.75,0.25,true,0.75,0.25);\n theString += "<<generatenoise 'whitenoise' 0.2 " + (count*0.1) + " 1.0>>"\n break;\n\n case 7:\n theString += generateWastelandPassage(true,1,0.5,true,1,0.5);\n theString += "<<generatenoise 'whitenoise' 0.2 " + (count*0.1) + " 1.0>>"\n\n break;\n\n case 8:\n theString += "<<generatenoise 'whitenoise' 0.0 " + (count*0.0) + " 0.0>>"\n\n break;\n\n case 9:\n\n theString += "<span style='animation: fadeout 0.5s forwards 10s'>";\n theString += "<<timedinsert 0.1s>><<these>><<endtimedinsert>>";\n theString += "<<timedinsert 0.2s>><<fragments>><<endtimedinsert>>";\n theString += "<<timedinsert 0.3s>><<i>><<endtimedinsert>>";\n theString += "<<timedinsert 0.4s>><<have>><<endtimedinsert>>";\n theString += "<<timedinsert 0.5s>><<shored>><<endtimedinsert>>";\n theString += "<<timedinsert 0.6s>><<against>><<endtimedinsert>>";\n theString += "<<timedinsert 0.7s>><<my>><<endtimedinsert>>";\n theString += "<<timedinsert 0.8s>><<ruins>><<endtimedinsert>>";\n theString += "</span>"\n\n break;\n\n case 10:\n\n break;\n\n case 11:\n\n theString += "<span class='black'><<cyclinglink 'end.'>></span>";\n\n break;\n }\n\n if (count == 9) theString += "<<timedgoto 'The Wasteland' 6s>>";\n else if (count < 11) theString += "<<timedgoto 'The Wasteland' 5s>>";\n\n\n // if (count < 11) theString += "<<generatenoise 'whitenoise' 0.2 " + (count*0.1) + " 1.0>>"\n\n count++;\n\n\n return theString;\n}\n\nfunction generateWastelandPassage(showDarks,darkCorruptRate,darkBreakRate,showLines,lineCorruptRate,lineBreakRate) {\n var theString = "";\n\n var darks = 100;\n console.log(linesIndex);\n console.log(theWastelandLines[linesIndex]);\n console.log(theWastelandLines[linesIndex].length);\n var textFrequency = Math.floor(darks/(theWastelandLines[linesIndex].length));\n var textCounter = 0;\n var textIndex = 0;\n\n\n for (var i = 0; i < darks; i++) {\n if (showDarks) {\n theString += "<span class='black'>";\n theString += "<span style='" + ((Math.random() < 0.5) ? "opacity: 1" : "opacity: 0") + "; animation: flicker " + (0.5 + Math.random() * 2) + "s infinite;'>";\n theString += corrupt("dark.",darkCorruptRate,darkBreakRate);\n theString += "</span>";\n theString += "</span> ";\n }\n\n if (showLines) {\n if (textCounter == textFrequency) {\n theString += "<span class='lightning-text'>";\n theString += "<span style='animation: lightning " + (1 + Math.random() * 8) + "s infinite;'>";\n theString += corrupt(theWastelandLines[linesIndex][textIndex],lineCorruptRate,lineBreakRate);\n theString += "</span>"\n theString += "</span> ";\n textIndex++;\n textCounter = 0;\n }\n\n textCounter++;\n }\n }\n if (showLines) linesIndex++;\n\n\n return theString;\n}\n\nfunction corrupt(text,corruptRate,breakRate) {\n // console.log("Corrupting: " + text);\n var corrupted = "";\n // First corrupt the text\n for (var i = 0; i < text.length; i++) {\n if (Math.random() < corruptRate) {\n corrupted += getRandomChar();\n }\n else {\n corrupted += text.charAt(i);\n }\n }\n\n var returnText = "";\n if (Math.random() > breakRate) {\n returnText += "<<cyclinglink '" + corrupted + "'>>";\n }\n else {\n var textArray = corrupted.split(' ');\n returnText += "<<" + textArray.join('') + ">><<timedinsert " + Math.floor(1+Math.random()*5) + "s>><<generatenoise 'whitenoise' 0.2 2 1.0>><<endtimedinsert>>";\n }\n\n return returnText;\n}\n\nfunction getRandomChar() {\n var char = String.fromCharCode(Math.random() * 0xffff);\n if ("|[]@;<>".indexOf(char) != -1) {\n char = "0";\n }\n return char;\n}\n
\n\nbody {\n\tbackground-color: #bbbbbb;\n}\n\n#passages {\n\tbackground-color: #bbbbbb;\n\tcolor: white;\n\tline-height: 1.5;\n\tbackground-color: #bbbbbb;\n}\n\n\n#sidebar {\n\tdisplay: none;\n}\n\ninput {\n\tfont-size: 18pt;\n\twidth: 400px;\n}\n\n.passage a {\n\tcolor: white;\n\tbackground-color: #55cc55;\n}\n\n.passage a:hover {\n\tcolor: white;\n\tbackground-color: green;\n}\n\n.passage a:active {\n\tbackground-color: white;\n\tcolor: white;\n}\n\n#footer, #footer-container, #floater, .toolbar, .title, #storyTitle, #storyAuthor {\n\tdisplay: none;\n}\n\n
<<generateui 2 "Thunder Antichamber" "$thunderAirlockDoorUnlocked" true true 0.05 "Thunder UI">><<generatenoise "tone" 100>>
<<if previous() is "Fire Antichamber">><<generatespace "stairs" true "a door." "Chess Antichamber" 25 "a door." "Fire Antichamber">><<scroll "bottom">><<else>><<generatespace "stairs" false "a door." "Chess Antichamber" 25 "a door." "Fire Antichamber">><<endif>><<generatenoise "whitenoise" 0.009 0.2 1.0>>
body {\n\tbackground-color: #222;\n}\n\n#passages {\n\tbackground-color: #222;\n\tfont-family: fixed;\n\tfont-size: 14pt;\n\tcolor: white;\n\tline-height: 1.5;\n\n\t-webkit-animation-name: flicker;\n\t-webkit-animation-duration: 0.2s;\n\t-webkit-animation-iteration-count: infinite;\n\t-webkit-animation-timing-function: linear;\n}\n\n\n#sidebar {\n\tdisplay: none;\n}\n\ninput {\n\tfont-size: 18pt;\n\twidth: 20%;\n}\n\n.passage a {\n\tcolor: red;\n\t-webkit-animation-name: flicker;\n\t-webkit-animation-duration: 0.2s;\n\t-webkit-animation-iteration-count: infinite;\n\t-webkit-animation-timing-function: linear;\n}\n\n.passage a:hover {\n\tbackground-color: red;\n\tcolor: red;\n}\n\n.passage a:active {\n\tbackground-color: white;\n\tcolor: white;\n}\n\n#footer, #footer-container, #floater, .toolbar, .title, #storyTitle, #storyAuthor {\n\tdisplay: none;\n}\n\n
<span class="home">[[home.|home.]]</span> <<generatespace "snow" 50>> <<if $burialDoorUnlocked is true>><span class="flicker"><<cyclinglink 'a blank screen.'>></span> <<generatespace "snow" 20>> <span class="warning">[[a door.|Burial Chamber]]</span><<else>><span class="glow"><<replace "snow.">>a glow.<<becomes>><span class="screen">[[a screen.|Burial UI]]</span><<endreplace>></span> <<generatespace "snow" 25>><<replace>><span class="snow"><<cyclinglink 'snow.'>></span><<becomes>><span class='warning'><<cyclinglink 'a door.'>></span><<becomes>><span class='warning'><<cyclinglink 'a locked door.'>></span><<endreplace>></span><<endif>><<generatespace "snow" 50>><<generatenoise "whitenoise" 0.075 0.05 5.0>>\n
\n\nbody {\n\tbackground-color: #dddddd;\n}\n\n#passages {\n\tbackground-color: #dddddd;\n}\n\n.passage {\n\tcolor: white;\n\tline-height: 1.5;\n\tbackground-color: #dddddd;\n}\n\n#sidebar {\n\tdisplay: none;\n}\n\ninput {\n\tfont-size: 18pt;\n\twidth: 400px;\n}\n\n\n#passages .snow a {\n\tcolor: #aaaaaa;\n\tbackground-color: #fff;\n}\n\n#footer, #footer-container, #floater, .toolbar, .title, #storyTitle, #storyAuthor {\n\tdisplay: none;\n}\n\n
@@font-size:2em;font-weight:bold;color:white;Burnt Matches.@@\n@@font-size:1em;font-weight:regular;color:white;Pippin Barr.@@\n\n<<timedgoto "Snow" 5s>>\n<<runtracking>>
var linked = false;\n\ntry {\n\n version.extensions['runtrackingMacro'] = {\n major:1, minor:0, revision:0\n };\n\n macros['runtracking'] = {\n handler: function(place, macroName, params, parser) {\n window.runtracking = function () {\n // var sc_project=6867947;\n // var sc_invisible=1;\n // var sc_security="458bbcb5";\n // var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www.");\n // document.write("<sc"+"ript type='text/javascript' src='" +scJsHost+"statcounter.com/counter/counter.js'></"+"script>");\n // <!-- End of StatCounter Code for Default Guide -->\n\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n\n ga('create', 'UA-25915730-1', 'auto');\n ga('send', 'pageview');\n }\n\n window.runtracking();\n\n console.log("Tracking.");\n },\n init: function() {\n },\n };\n}\ncatch(e) {\n console.log(e.message);\n throwError(place,"randomunicode Setup Error: "+e.message);\n}\n
<span class="home">[[five steps.|Snow]]</span> <<replace "dried lilacs.">><<cyclinglink "lilac fragments.">><<endreplace>> <<generatespace "frost" 25>> <span class="warning"><<if $burialDoorOpen>>an open door. [[a corridor.|Burial Corridor]]</span><<else>><span class="warning"><<replace "a door.">>an open door.<<set $burialDoorOpen to true>> [[a corridor.|Burial Corridor]]<<endreplace>></span><<endif>> <<replace "a diagram.">><<cyclinglink 'a circle with radiating lines.'>><<endreplace>><<generatenoise "whitenoise" 0.05 0.03 5.0>>
body {\n\tbackground-color: #4c4;\n}\n\n#passages {\n\tbackground-color: #4c4;\n}\n\n.passage {\n\tcolor: #666;\n\tline-height: 1.5;\n\tbackground-color: #4c4;\n}\n\n#sidebar {\n\tdisplay: none;\n}\n\n#footer, #footer-container, #floater, .toolbar, .title, #storyTitle, #storyAuthor {\n\tdisplay: none;\n}\n
(function(){postrender.typewriter = function (b) {\nif(this.tags){var r=new RegExp("t8n.typewriter.([0-9]+)(?:[^0-9]|$)","g");var t=r.exec(this.tags.toString());\nif(t){typeout(b,t[1]+0);}}return b;};var typeout=function(c,t){var Furl=function(current){this.n=current;\nthis.out=false;this.data=current.nodeValue;current.nodeValue="";this.kids=[];var cn=current.childNodes;\nif(current.style && current.style.display=="none"){return;}while(cn.length>0){var f=new Furl(cn[0]);\ncurrent.removeChild(cn[0]);f.out=true;this.kids.push(f);}};var nodes=new Furl(c);\nvar unfurl=function(furled,d){var n=furled.n;if(furled.out){d.appendChild(n);furled.out=false;\n}if(furled.data){n.nodeValue+=furled.data[0];furled.data=furled.data.slice(1);return true;\n}for(var j=0;j<furled.kids.length;j++){var ret=unfurl(furled.kids[j],n);if(ret){return true;\n}}return false;};var title=state.history[0].passage.title;var intr=setInterval(function(){if(state.history[0].passage.title==title&&unfurl(nodes,null)){return;\n}clearInterval(intr);},t);};}());
version.extensions.cyclinglinkMacro={major:3,minor:3,revision:0};\nmacros.cyclinglink={handler:function(a,b,c){var rl="cyclingLink";\nfunction toggleText(w){w.classList.remove("cyclingLinkInit");\nw.classList.toggle(rl+"Enabled");w.classList.toggle(rl+"Disabled");\nw.style.display=((w.style.display=="none")?"inline":"none")}switch(c[c.length-1]){case"end":var end=true;\nc.pop();break;case"out":var out=true;c.pop();break}var v="";if(c.length&&c[0][0]=="$"){v=c[0].slice(1);\nc.shift()}var h=state.history[0].variables;if(out&&h[v]===""){return\n}var l=Wikifier.createInternalLink(a,null);l.className="internalLink cyclingLink";\nl.setAttribute("data-cycle",0);for(var i=0;i<c.length;i++){var on=(i==Math.max(c.indexOf(h[v]),0));\nvar d=insertElement(null,"span",null,"cyclingLinkInit cyclingLink"+((on)?"En":"Dis")+"abled");\nif(on){h[v]=c[i];l.setAttribute("data-cycle",i)}else{d.style.display="none"\n}insertText(d,c[i]);if(on&&end&&i==c.length-1){l.parentNode.replaceChild(d,l)\n}else{l.appendChild(d)}}l.onclick=function(){var t=this.childNodes;\nvar u=this.getAttribute("data-cycle")-0;var m=t.length;toggleText(t[u]);\nu=(u+1);if(!(out&&u==m)){u%=m;if(v){h[v]=c[u]}}else{h[v]=""}if((end||out)&&u==m-(end?1:0)){if(end){var n=this.removeChild(t[u]);\nn.className=rl+"End";n.style.display="inline";this.parentNode.replaceChild(n,this)\n}else{this.parentNode.removeChild(this);return}return}toggleText(t[u]);\nthis.setAttribute("data-cycle",u)}}};\n
<<generateui 2 "Fire Antichamber" "$fireDoorUnlocked" false false 0.1 "Fire UI">><<generatenoise "tone" 100>>
<<generatespace "cycles" 15 2 10 "rock." "dry." "red.">> <<if $thunderAirlockDoorUnlocked is true>><<if $thunderAirlockDoorOpen is false>><<timedreplace 2s>><span class="home">[[open doors.|Water Elevator]]</span><<becomes>><<timedreplace 2s>><<cyclinglink "closing doors.">><<becomes>><<replace "closed doors.">><<cyclinglink 'sealed doors.'>><<endreplace>><<endtimedreplace>><<endtimedreplace>><<else>><<replace "closed doors.">><<cyclinglink 'sealed doors.'>><<endreplace>><<endif>><<else>><span class="home">[[open doors.|Water Elevator]]</span><<endif>> <<generatespace "cycles" 15 2 10 "rock." "dry." "red.">> <<if $thunderAirlockDoorUnlocked is false>><span class="screen">[[a screen.|Thunder UI]]</span><<else>><span class="flicker"><<cyclinglink "a blank screen.">></span><<endif>> <<generatespace "cycles" 20 2 10 "rock." "dry." "red.">> <<if $thunderAirlockDoorUnlocked is true>><<if $thunderAirlockDoorOpen is false>><span class="warning"><<timedreplace 2s>><<cyclinglink "closed doors.">><<becomes>><<timedreplace 2s>><<cyclinglink "opening doors.">><<becomes>><<set $thunderAirlockDoorOpen to true>>[[open doors.|Thunder Airlock]]</span><<endtimedreplace>><<endtimedreplace>></span><<else>><span class="warning">[[open doors.|Thunder Airlock]]</span><<endif>><<else>><span class="warning"><<replace "closed doors.">></span><<cyclinglink "locked doors.">><<endreplace>><<endif>> <<generatespace "cycles" 20 2 10 "rock." "dry." "red.">><<generatenoise "browniannoise" 0.2 0.4 1.0>>
\n\nbody {\n\tbackground-color: #000;\n}\n\n#passages {\n\tbackground-color: #000;\n}\n\n.passage {\n\tcolor: #666;\n\tline-height: 1.5;\n\tbackground-color: #000;\n}\n\n#sidebar {\n\tdisplay: none;\n}\n\n#passages .corrupt {\n\tuser-select: none;\n\tcolor: #000;\n\tbackground-color: #fff;\n}\n\n\n.fadeout {\n\tanimation: fadeout 10s forwards;\n}\n\n#passages .corrupt:after {\n\tcontent: "韵";\n}\n\n#passages .corrupt:before {\n\tcontent: "籭";\n}\n\n\n#passages .black a {\n\tcolor: #222;\n\tbackground-color: #111;\n}\n\n#passages .black .thunder a {\n\tuser-select: none;\n\tcolor: #000;\n\tbackground-color: #fff;\n}\n\n#passages .lightning a {\n\tuser-select: none;\n\tcolor: rgba(255,255,255,0);\n\tbackground-color: rgb(255,255,255);\n}\n\n#passages .lightning-text a {\n\tuser-select: none;\n\tcolor: #000;\n\tbackground-color: #fff;\n}\n\n\n#footer, #footer-container, #floater, .toolbar, .title, #storyTitle, #storyAuthor {\n\tdisplay: none;\n}\n\n.hidden {\n\tdisplay: none;\n}\n\n@keyframes flicker {\n\t50% { opacity: 0; }\n\t100% { opacity: 1; }\n}\n\n@keyframes lightning {\n\t0% { opacity: 0; }\n\t88% { opacity: 0; }\n\t99% { opacity: 1; }\n\t100% {opacity: 0; }\n}\n\n@keyframes fadeout {\n\tfrom { opacity: 1; }\n\tto {opacity: 0;}\n}\n
<<if previous() is "Thunder Antichamber">><<set $elevatorStatus to "bottom">><<else>><<set $elevatorStatus to "top">><<endif>><<if $elevatorStatus is "top">>\n<<generatespace "elevator" true "Water Antichamber" 10 "Thunder Antichamber">>\n<<else>>\n<<generatespace "elevator" false "Water Antichamber" 10 "Thunder Antichamber">>\n<<scroll "bottom">>\n<<endif>><<generatenoise "whitenoise" 0.004 0.75 1.0>>
<<generatechessui 10 "Chess Antichamber" "$chessDoorUnlocked">><<generatenoise "tone" 100>>
var linked = false;\nvar context = null;\n\ntry {\n\n version.extensions['generateNoiseMacro'] = {\n major:1, minor:0, revision:0\n };\n\n macros['generatenoise'] = {\n handler: function(place, macroName, params, parser) {\n\n if (params.length != 0) {\n\n var type = params[0];\n\n if (context) {\n context.close();\n }\n context = new (window.AudioContext || window.webkitAudioContext)();\n\n switch(type) {\n case "tone":\n\n var osc = context.createOscillator(); // instantiate an oscillator\n osc.type = 'sine'; // this is the default - also square, sawtooth, triangle\n osc.frequency.value = parseInt(params[1]); // Hz\n osc.connect(context.destination); // connect it to the destination\n osc.start();\n\n break;\n\n case "whitenoise":\n\n var bufferSize = 2 * context.sampleRate,\n noiseBuffer = context.createBuffer(1, bufferSize, context.sampleRate),\n output = noiseBuffer.getChannelData(0);\n for (var i = 0; i < bufferSize; i++) {\n output[i] = Math.random() * 2 - 1;\n output[i] *= 2;\n }\n whiteNoise = context.createBufferSource();\n whiteNoise.buffer = noiseBuffer;\n whiteNoise.loop = true;\n\n whiteNoise.playbackRate.value = parseFloat(params[1]);\n\n var gainNode = context.createGain();\n // gainNode.gain.setValueAtTime(1, context.currentTime);\n whiteNoise.connect(gainNode);\n gainNode.connect(context.destination);\n\n whiteNoise.start(0);\n // gainNode.gain.exponentialRampToValueAtTime(1.0, context.currentTime);\n // gainNode.gain.setValueAtTime(0, context.currentTime);\n gainNode.gain.value = 0;\n gainNode.gain.linearRampToValueAtTime(parseFloat(params[2]), context.currentTime+parseFloat(params[3]));\n // gainNode.gain.exponentialRampToValueAtTime(1.0, context.currentTime+1000);\n\n // gainNode.gain.setTargetAtTime(1.0, context.currentTime+4,1);\n\n break;\n\n case "browniannoise":\n\n var bufferSize = 4096;\n var brownNoise = (function() {\n var lastOut = 0.0;\n var node = context.createScriptProcessor(bufferSize, 1, 1);\n node.onaudioprocess = function(e) {\n var output = e.outputBuffer.getChannelData(0);\n for (var i = 0; i < bufferSize; i++) {\n var white = Math.random() * 2 - 1;\n output[i] = (lastOut + (0.02 * white)) / 1.02;\n lastOut = output[i];\n output[i] *= 3.5; // (roughly) compensate for gain\n }\n }\n node.playbackRate = 0.1;\n return node;\n })();\n\n brownNoise.playbackRate.value = parseFloat(params[1]);\n\n var gainNode = context.createGain();\n brownNoise.connect(gainNode);\n gainNode.connect(context.destination);\n gainNode.gain.value = 0;\n gainNode.gain.linearRampToValueAtTime(parseFloat(params[2]), context.currentTime+parseFloat(params[3]));\n\n // brownNoise.connect(context.destination);\n // brownNoise.start(0);\n\n break;\n }\n\n // new Wikifier(place, theString);\n }\n },\n init: function() {\n\n },\n };\n}\ncatch(e) {\n console.log(e.message);\n throwError(place,"randomunicode Setup Error: "+e.message);\n}\n
var linked = false;\n\ntry {\n\n version.extensions['scrollMacro'] = {\n major:1, minor:0, revision:0\n };\n\n macros['scroll'] = {\n handler: function(place, macroName, params, parser) {\n var scrollDelay = 100;\n if (params.length != 0) {\n if (params[0] == "bottom") {\n window.setTimeout(function () {\n console.log(width() + "x" + height());\n // window.scrollBy(0,height());\n window.scrollBy(0,10000);\n },scrollDelay);\n }\n else if (params[0] == "right") {\n window.setTimeout(function () {\n window.scrollBy(10000,0);\n },scrollDelay);\n }\n else if (params[0] == "bottomright") {\n window.setTimeout(function () {\n console.log(width() + "x" + height());\n window.scrollBy(10000,10000);\n },scrollDelay);\n }\n }\n\n //\n },\n init: function() { },\n };\n}\ncatch(e) {\n console.log(e.message);\n throwError(place,"randomunicode Setup Error: "+e.message);\n}\n\nfunction height() {\n var body = document.body;\n var html = document.documentElement;\n\n var height = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight );\n var width = Math.max( body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth );\n\n return 400;\n return height;\n}\n\nfunction width() {\n var body = document.body;\n var html = document.documentElement;\n\n var height = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight );\n var width = Math.max( body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth );\n\n return width;\n}\n
String.prototype.unDash = function()\n{\n\tvar s = this.split("-");\n\tif(s.length > 1)\n\t\tfor(var t=1; t < s.length; t++)\n\t\t\ts[t] = s[t].substr(0,1).toUpperCase() + s[t].substr(1);\n\treturn s.join("");\n};
var linked = false;\n\ntry {\n\n version.extensions['generatechessuiMacro'] = {\n major:1, minor:0, revision:0\n };\n\n macros['generatechessui'] = {\n handler: function(place, macroName, params, parser) {\n\n if (params.length != 0) {\n\n var paragraphs = 1 + Math.floor(Math.random() * parseInt(params[0]));\n var linkBack = params[1];\n var lockVar = params[2];\n\n var theString = "";\n linked = false;\n\n var p = 0;\n while (p < paragraphs || !linked) {\n\n theString += generateParagraph(linkBack,lockVar);\n\n theString += "\sn";\n p++;\n }\n\n new Wikifier(place, theString);\n }\n },\n init: function() { },\n };\n}\ncatch(e) {\n console.log(e.message);\n throwError(place,"randomunicode Setup Error: "+e.message);\n}\n\nfunction generateParagraph(linkBack,lockVar) {\n\n var thePara = "";\n\n var paragraphLength = 10 + Math.round(Math.random() * 10);\n\n var linking = false;\n var replacing = false;\n // var css = false;\n\n for (var i = 0; i < paragraphLength; i++) {\n\n if (!linking && Math.random() < 0.05) {\n thePara += "<span class=\s"warning\s">[[";\n linking = true;\n }\n else if (linking) {\n var link;\n if (Math.random() > 0.15) {\n link = "Chess UI";\n }\n else {\n link = linkBack;\n }\n thePara += "|" + link + "][" + lockVar + "= true]]</span>";\n linking = false;;\n linked = true;\n }\n\n thePara += getRandomChar();\n }\n\n if (linking) thePara += "|" + linkBack + "][" + lockVar + "= true]]</span>";\n\n return thePara;\n}\n\nfunction getNRandomChars(n) {\n var chars = "";\n for (var i = 0; i < n; i++) {\n chars += getRandomChar();\n }\n return chars;\n}\n\nfunction getRandomChar() {\n var char = String.fromCharCode(0x2654 + Math.random() * 0x000b);\n if ("|[]@;".indexOf(char) != -1) {\n char = "0";\n }\n return char;\n}\n
<<print state.history[0].passage.title>>
<span class="home"><<cyclinglink 'end.'>></span>\n<<generatenoise "whitenoise" 0 0 0>>
jquery:on\nhash:off\nbookmark:on\nmodernizr:off\nundo:off\nobfuscate:off\nexitprompt:off\nblankcss:on\n
<span class="home">[[a door.|Burial Corridor]]</span> \n@@margin-left:10%;<<replace "a chair.">>an unremarkable chair.<<endreplace>>@@\n@@margin-left:15%;<<replace "overhead lights.">>seven overhead lights.<<endreplace>>@@\n@@margin-left:-5%;<<replace "a table.">>a table with concentric circles scratched onto its surface.<<endreplace>>@@\n@@margin-left:5%;<<replace "a framed picture face down on the table.">>a framed picture of a man, his eyes whited out, upright on the table.<<endreplace>>@@\n@@margin-left:20%;<<replace "a time device on the wall.">>a motionless time device.<<endreplace>>@@\n@@margin-left:-10%;<<replace "a faint breeze.">>an insipid breeze from a ventilation duct.<<endreplace>>@@\n@@margin-left:5%;<<replace "a scent.">>a synthetic scent.<<endreplace>>@@\n@@margin-left:10%;<<replace "the ceiling.">>the ceiling, pitted and marked.<<endreplace>>@@\n@@margin-left:20%;<<replace "bones.">>the bones of rodents.<<endreplace>>@@\n@@margin-left:10%;<<if $chessDoorUnlocked is false>><span class="screen">[[a screen.|Chess UI]]</span><<else>><span class="flicker"><<cyclinglink "a blank screen.">></span><<endif>>@@\n@@margin-left:-10%;<<if $chessDoorUnlocked is true>><<if $chessAntichamberDoorOpen is true>>an open door. <span class="warning">[[a flight of stairs.|Chess Stairs]]</span><<else>><span class="warning"><<replace "a closed door.">>an open door.<<set $chessAntichamberDoorOpen to true>> [[a flight of stairs.|Chess Stairs]]<<endreplace>></span><<endif>><<else>><span class="warning"><<replace "a door.">><<cyclinglink 'a locked door.'>><<endreplace>></span><<endif>>@@<<generatenoise "whitenoise" 0.01 0.1 1.0>>\n
<<if previous() is "Water Antichamber">><<generatespace "corridor" true "[[a door.|Fire Antichamber]]" "a river of concrete." "flowing downhill." "a river of concrete." "leading you on." "a river of concrete." "all the way down." "a river of concrete." "full-fathom deep." "a river of concrete." "to an unknown depth." "a river of concrete." "pulling you on." "a river of concrete." "pulling you in." "a river of concrete." "down you go." "a river of concrete." "weialala leia." "a river of concrete." "wallala leialala." "a river of concrete." "[[a door.|Water Antichamber]]">><<else>><<generatespace "corridor" false "[[a door.|Fire Antichamber]]" "a river of concrete." "flowing downhill." "a river of concrete." "leading you on." "a river of concrete." "all the way down." "a river of concrete." "full-fathom deep." "a river of concrete." "to an unknown depth." "a river of concrete." "pulling you on." "a river of concrete." "pulling you in." "a river of concrete." "down you go." "a river of concrete." "weialala leia." "a river of concrete." "wallala leialala." "a river of concrete." "[[a door.|Water Antichamber]]">><<endif>>\n<<scroll "bottomright">><<generatenoise "whitenoise" 0.007 0.4 1.0>>
.revision-span-in {\n\topacity: 0;\n}\n.revision-span:not(.revision-span-out) {\n\ttransition: 1s; -webkit-transition: 1s;\n}\n.revision-span-out {\n\tposition:absolute;\n\topacity: 0;\n}
(function () {\n "use strict";\n version.extensions['soundMacros'] = {\n major: 1,\n minor: 1,\n revision: 2\n };\n var p = macros['playsound'] = {\n soundtracks: {},\n handler: function (a, b, c, d) {\n var loop = function (m) {\n if (m.loop == undefined) {\n m.loopfn = function () {\n this.play();\n };\n m.addEventListener('ended', m.loopfn, 0);\n } else m.loop = true;\n m.play();\n };\n var s = eval(d.fullArgs());\n if (s) {\n s = s.toString();\n var m = this.soundtracks[s.slice(0, s.lastIndexOf("."))];\n if (m) {\n if (b == "playsound") {\n m.play();\n } else if (b == "loopsound") {\n loop(m);\n } else if (b == "pausesound") {\n m.pause();\n } else if (b == "unloopsound") {\n if (m.loop != undefined) {\n m.loop = false;\n } else if (m.loopfn) {\n m.removeEventListener('ended', m.loopfn);\n delete m.loopfn;\n }\n } else if (b == "stopsound") {\n m.pause();\n m.currentTime = 0;\n } else if (b == "fadeoutsound" || b == "fadeinsound") {\n if (m.interval) clearInterval(m.interval);\n if (b == "fadeinsound") {\n if (m.currentTime>0) return;\n m.volume = 0;\n loop(m);\n } else {\n if (!m.currentTime) return;\n m.play();\n }\n var v = m.volume;\n m.interval = setInterval(function () {\n v = Math.min(1, Math.max(0, v + 0.005 * (b == "fadeinsound" ? 1 : -1)));\n m.volume = Math.easeInOut(v);\n if (v == 0 || v == 1) clearInterval(m.interval);\n if (v == 0) {\n m.pause();\n m.currentTime = 0;\n m.volume = 1;\n }\n }, 10);\n }\n }\n }\n }\n }\n macros['fadeinsound'] = p;\n macros['fadeoutsound'] = p;\n macros['unloopsound'] = p;\n macros['loopsound'] = p;\n macros['pausesound'] = p;\n macros['stopsound'] = p;\n macros['stopallsound'] = {\n handler: function () {\n var s = macros.playsound.soundtracks;\n for (var j in s) {\n\t\tif (s.hasOwnProperty(j)) {\n s[j].pause();\n if (s[j].currentTime) {\n\t\t s[j].currentTime = 0;\n\t\t }\n\t\t}\n }\n }\n }\n var div = document.getElementById("storeArea").firstChild;\n var fe = ["ogg", "mp3", "wav", "webm"];\n while (div) {\n var b = String.fromCharCode(92);\n var q = '"';\n var re = "['" + q + "]([^" + q + "']*?)" + b + ".(ogg|mp3|wav|webm)['" + q + "]";\n k(new RegExp(re, "gi"));\n div = div.nextSibling;\n }\n\n function k(c, e) {\n do {\n var d = c.exec(div.innerHTML);\n if (d) {\n var a = new Audio();\n if (a.canPlayType) {\n for (var i = -1; i < fe.length; i += 1) {\n if (i >= 0) d[2] = fe[i];\n if (a.canPlayType("audio/" + d[2])) break;\n }\n if (i < fe.length) {\n a.setAttribute("src", d[1] + "." + d[2]);\n a.interval = null;\n macros.playsound.soundtracks[d[1]] = a;\n } else console.log("Browser can't play '" + d[1] + "'");\n }\n }\n } while (d);\n }\n}());
<<timedreplace 2s>><span class="home">[[an open door.|Thunder Antichamber]]</span><<becomes>><<timedreplace 2s>><span class="home">[[a closing door.|Thunder Antichamber]]</span><<becomes>><<timedreplace 2s>><span class="home">[[an almost closed door.|Thunder Antichamber]]</span><<becomes>><<replace "a closed door.">><<cyclinglink "a locked door.">><<endreplace>><<endtimedreplace>><<endtimedreplace>><<endtimedreplace>><<generatenoise "browniannoise" 0.2 0.2 0.2>>\n\n<<timedreplace 8s>><<becomes>>After the torch-light red on sweaty faces<<generatenoise "tone" 75>><<endtimedreplace>>\n<<timedreplace 10s>><<becomes>>After the frosty silence in the gardens<<endtimedreplace>>\n<<timedreplace 12s>><<becomes>>After the agony in stony places<<endtimedreplace>> \n<<timedreplace 14s>><<becomes>>The shouting and the crying<<endtimedreplace>>\n<<timedreplace 16s>><<becomes>>Prison and place and reverberation<<endtimedreplace>>\n<<timedreplace 18s>><<becomes>>Of thunder of spring over distant mountains<<endtimedreplace>>\n<<timedreplace 20s>><<becomes>>He who was living is now dead<<endtimedreplace>>\n<<timedreplace 22s>><<becomes>>We who were living are now dying<<endtimedreplace>>\n<<timedreplace 24s>><<becomes>>With a little patience<<endtimedreplace>>\n\n<span class="warning"><<timedreplace 28s>><<replace "a closed door.">><<cyclinglink "a locked door.">><<endreplace>><<becomes>><<generatenoise "tone" 55>><<timedreplace 2s>>[[an opening door.|The Wasteland]]<<becomes>>[[an open door.|The Wasteland]]<<generatenoise "tone" 5>><<endtimedreplace>><<endtimedreplace>></span>\n
\n.nowrap {\n\twhite-space: nowrap;\n\toverflow: hidden;\n}\n\n#passages {\n\tborder: 0;\n\tmargin: 0;\n\twidth: 80%;\n\tmargin-top: 10%;\n\tmargin-left: 10%;\n\tfont-size: 1.5em;\n\tuser-select: none;\n}\n\n@media only screen and (max-width: 768px) {\n\n\t#passages {\n\t\tfont-size: 1.2em;\n\t}\n\n}\n\n#passages a {\n\tcolor: white;\n\tbackground-color: #aaa;\n}\n\n#passages .home a {\n\tbackground-color: #5d5;\n}\n\n\n#passages .glow a {\n\tcolor: #ccc;\n\tbackground-color: #fee;\n}\n\n#passages .warning a {\n\tcursor: all-scroll;\n\tbackground-color: #d55;\n}\n\n#passages .glow .warning a {\n\tcolor: #fff;\n\tbackground-color: #d55 !important;\n\tcursor: all-scroll;\n\tanimation: flicker 0.4s infinite;\n}\n\n#passages .screen a {\n\tcolor: #fff;\n\tbackground-color: #d55 !important;\n\tcursor: all-scroll;\n\tanimation: flicker 0.4s infinite;\n}\n\n.flicker {\n\tanimation: flicker 0.4s infinite;\n}\n\n@keyframes flicker {\n\t20% {opacity: 0.8}\n\t30% {opacity: 1}\n\t50% {opacity: 0.6}\n\t60% {opacity: 0.9}\n\t80% {opacity: 0.7}\n}\n\n
<<generateui 1 "Water Antichamber" "$waterDoorUnlocked" true false 0.02 "Water UI">><<generatenoise "tone" 100>>
<<generatespace "water" 30>><span class="home">[[a door.|Fire Ramp]]</span> <<generatespace "water" 30>><<if $waterDoorUnlocked is false>><span class="screen">[[a screen.|Water UI]]</span><<else>><span class="flicker"><<cyclinglink "a blank screen.">></span><<endif>> <<generatespace "water" 30>><<if $waterDoorUnlocked is true>><<if $waterDoorOpen is false>><span class="warning"><<timedreplace 2s>><<cyclinglink "closed elevator doors.">><<becomes>><<timedreplace 2s>><<cyclinglink "opening elevator doors.">><<becomes>><<set $waterDoorOpen to true>>[[open elevator doors.|Water Elevator]]</span><<endtimedreplace>><<endtimedreplace>></span><<else>><span class="warning">[[open elevator doors.|Water Elevator]]</span><<endif>><<else>><span class="warning"><<replace "elevator doors.">><<cyclinglink "closed elevator doors.">><<endreplace>></span><<endif>> <<generatespace "water" 30>><<generatenoise "whitenoise" 0.005 0.5 1.0>>
<<if previous() is "Chess Antichamber">><<generatespace "corridor" true "[[a door.|Burial Chamber]]" "lilac fragments." "rough concrete." "chalk markings." "cracked concrete." "a small wood figure with a crown." "the smell of concrete." "stippled mould." "grey concrete." "dead air." "dusty concrete." "ridged pipes." "chipped concrete." "a small round hole." "damp concrete." "a red rock." "a tree root through concrete." "hyacinth fragments." "pale concrete." "bird bones." "the weight of concrete." "a card with a picture of a drowned man." "a wall of concrete." "a pool of light." "[[a door.|Chess Antichamber]]">><<scroll "right">><<else>><<generatespace "corridor" false "[[a door.|Burial Chamber]]" "lilac fragments." "rough concrete." "chalk markings." "cracked concrete." "a small wood figure with a crown." "the smell of concrete." "stippled mould." "grey concrete." "dead air." "dusty concrete." "ridged pipes." "chipped concrete." "a small round hole." "damp concrete." "a red rock." "a tree root through concrete." "hyacinth fragments." "pale concrete." "bird bones." "the weight of concrete." "a card with a picture of a drowned man." "a wall of concrete." "a pool of light." "[[a door.|Chess Antichamber]]">><<endif>><<generatenoise "whitenoise" 0.025 0.03 5.0>>
<<generatespace "wasteland">>
(function(){version.extensions.replaceMacrosCombined={major:1,minor:1,revision:7};var nullobj={handler:function(){}};function showVer(n,notrans){if(!n){return;}n.innerHTML="";\nnew Wikifier(n,n.tweecode);n.setAttribute("data-enabled","true");n.style.display="inline";n.classList.remove("revision-span-out");if(!notrans){n.classList.add("revision-span-in");\nif(n.timeout){clearTimeout(n.timeout);}n.timeout=setTimeout(function(){n.classList.remove("revision-span-in");n=null;},20);}}function hideVer(n,notrans){if(!n){return;\n}n.setAttribute("data-enabled","false");n.classList.remove("revision-span-in");if(n.timeout){clearTimeout(n.timeout);}if(!notrans){n.classList.add("revision-span-out");\nn.timeout=setTimeout(function(){if(n.getAttribute("data-enabled")=="false"){n.classList.remove("revision-span-out");n.style.display="none";n.innerHTML="";}n=null;\n},1000);}else{n.style.display="none";n.innerHTML="";n=null;}}function tagcontents(b,starttags,desttags,endtags,k){var l=0,c="",tg,a,i;function tagfound(i,e,endtag){for(var j=0;\nj<e.length;j++){if(a.indexOf("<<"+e[j]+(endtag?">>":""),i)==i){return e[j];}}}a=b.source.slice(k);for(i=0;i<a.length;i++){if(tg=tagfound(i,starttags)){l++;}else{if((tg=tagfound(i,desttags,true))&&l==0){b.nextMatch=k+i+tg.length+4;\nreturn[c,tg];}else{if(tg=tagfound(i,endtags,true)){l--;if(l<0){return null;}}}}c+=a.charAt(i);}return null;}var begintags=[];var endtags=[];function revisionSpanHandler(g,e,f,b){var k=b.source.indexOf(">>",b.matchStart)+2,vsns=[],vtype=e,flen=f.length,becomes,c,cn,m,h,vsn;\nfunction mkspan(vtype){h=insertElement(m,"span",null,"revision-span "+vtype);h.setAttribute("data-enabled",false);h.style.display="none";h.tweecode="";return h;}if(this.shorthand&&flen){while(f.length>0){vsns.push([f.shift(),(this.flavour=="insert"?"gains":"becomes")]);\n}}else{if(this.flavour=="insert"||(this.flavour=="continue"&&this.trigger=="time")){vsns.push(["","becomes"]);}}if(this.flavour=="continue"&&flen){b.nextMatch=k+b.source.slice(k).length;\nvsns.push([b.source.slice(k),vtype]);}else{becomes=["becomes","gains"];c=tagcontents(b,begintags,becomes.concat(endtags),endtags,k);if(c&&endtags.indexOf(c[1])==-1){while(c){vsns.push(c);\nc=tagcontents(b,begintags,becomes,endtags,b.nextMatch);}c=tagcontents(b,begintags,["end"+e],endtags,b.nextMatch);}if(!c){throwError(g,"can't find matching end"+e);\nreturn;}vsns.push(c);if(this.flavour=="continue"){k=b.nextMatch;b.nextMatch=k+b.source.slice(k).length;vsns.push([b.source.slice(k),""]);}}if(this.flavour=="remove"){vsns.push(["","becomes"]);\n}cn=0;m=insertElement(g,"span",null,e);m.setAttribute("data-flavour",this.flavour);h=mkspan("initial");vsn=vsns.shift();h.tweecode=vsn[0];showVer(h,true);while(vsns.length>0){if(vsn){vtype=vsn[1];\n}vsn=vsns.shift();h=mkspan(vtype);h.tweecode=vsn[0];}if(typeof this.setup=="function"){this.setup(m,g,f);}}function quantity(m){return(m.children.length-1)+(m.getAttribute("data-flavour")=="remove");\n}function revisionSetup(m,g,f){m.className+=" "+f[0].replace(" ","_");}function keySetup(m,g,f){var key=f[0];m.setEventListener("keydown",function l(e){var done=!revise("revise",m);\nif(done){m.removeEventListener("keydown",l);}});}function timeSetup(m,g,f){function cssTimeUnit(s){if(typeof s=="string"){if(s.slice(-2).toLowerCase()=="ms"){return Number(s.slice(0,-2))||0;\n}else{if(s.slice(-1).toLowerCase()=="s"){return Number(s.slice(0,-1))*1000||0;}}}throwError(g,s+" isn't a CSS time unit");return 0;}var tm=cssTimeUnit(f[0]);var s=state.history[0].passage.title;\nsetTimeout(function timefn(){if(state.history[0].passage.title==s){var done=!revise("revise",m);if(!done){setTimeout(timefn,tm);}}},tm);}function hoverSetup(m){var fn,noMouseEnter=(document.head.onmouseenter!==null),m1=m.children[0],m2=m.children[1],gains=m2.className.indexOf("gains")>-1;\nif(!m1||!m2){return;}m1.onmouseenter=function(e){var efp=document.elementFromPoint(e.clientX,e.clientY);while(efp&&efp!==this){efp=efp.parentNode;}if(!efp){return;\n}if(this.getAttribute("data-enabled")!="false"){revise("revise",this.parentNode);}};m2.onmouseleave=function(e){var efp=document.elementFromPoint(e.clientX,e.clientY);\nwhile(efp&&efp!==this){efp=efp.parentNode;}if(efp){return;}if(this.getAttribute("data-enabled")!="false"){revise("revert",this.parentNode);}};if(gains){m1.onmouseleave=m2.onmouseleave;\n}if(noMouseEnter){fn=function(n){return function(e){if(!event.relatedTarget||(event.relatedTarget!=this&&!(this.compareDocumentPosition(event.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY))){this[n]();\n}};};m1.onmouseover=fn("onmouseenter");m2.onmouseout=fn("onmouseleave");if(gains){m1.onmouseout=m2.onmouseout;}}m=null;}function mouseSetup(m){var evt=(document.head.onmouseenter===null?"onmouseenter":"onmouseover");\nm[evt]=function(){var done=!revise("revise",this);if(done){this[evt]=null;}};m=null;}function linkSetup(m,g,f){var l=Wikifier.createInternalLink(),p=m.parentNode;\nl.className="internalLink replaceLink";p.insertBefore(l,m);l.insertBefore(m,null);l.onclick=function(){var p,done=false;if(m&&m.parentNode==this){done=!revise("revise",m);\nscrollWindowTo(m);}if(done){this.parentNode.insertBefore(m,this);this.parentNode.removeChild(this);}};l=null;}function visitedSetup(m,g,f){var i,done,shv=state.history[0].variables,os="once seen",d=(m.firstChild&&(this.flavour=="insert"?m.firstChild.nextSibling:m.firstChild).tweecode);\nshv[os]=shv[os]||{};if(d&&!shv[os].hasOwnProperty(d)){shv[os][d]=1;}else{for(i=shv[os][d];i>0&&!done;i--){done=!revise("revise",m,true);}if(shv[os].hasOwnProperty(d)){shv[os][d]+=1;\n}}}[{name:"insert",flavour:"insert",trigger:"link",setup:linkSetup},{name:"timedinsert",flavour:"insert",trigger:"time",setup:timeSetup},{name:"insertion",flavour:"insert",trigger:"revisemacro",setup:revisionSetup},{name:"later",flavour:"insert",trigger:"visited",setup:visitedSetup},{name:"keyinsert",flavour:"insert",trigger:"key",setup:keySetup},{name:"replace",flavour:"replace",trigger:"link",setup:linkSetup},{name:"timedreplace",flavour:"replace",trigger:"time",setup:timeSetup},{name:"mousereplace",flavour:"replace",trigger:"mouse",setup:mouseSetup},{name:"hoverreplace",flavour:"replace",trigger:"hover",setup:hoverSetup},{name:"revision",flavour:"replace",trigger:"revisemacro",setup:revisionSetup},{name:"keyreplace",flavour:"replace",trigger:"key",setup:keySetup},{name:"timedremove",flavour:"remove",trigger:"time",setup:timeSetup},{name:"mouseremove",flavour:"remove",trigger:"mouse",setup:mouseSetup},{name:"hoverremove",flavour:"remove",trigger:"hover",setup:hoverSetup},{name:"removal",flavour:"remove",trigger:"revisemacro",setup:revisionSetup},{name:"once",flavour:"remove",trigger:"visited",setup:visitedSetup},{name:"keyremove",flavour:"remove",trigger:"key",setup:keySetup},{name:"continue",flavour:"continue",trigger:"link",setup:linkSetup},{name:"timedcontinue",flavour:"continue",trigger:"time",setup:timeSetup},{name:"mousecontinue",flavour:"continue",trigger:"mouse",setup:mouseSetup},{name:"keycontinue",flavour:"continue",trigger:"key",setup:keySetup},{name:"cycle",flavour:"cycle",trigger:"revisemacro",setup:revisionSetup},{name:"mousecycle",flavour:"cycle",trigger:"mouse",setup:mouseSetup},{name:"timedcycle",flavour:"cycle",trigger:"time",setup:timeSetup},{name:"keycycle",flavour:"replace",trigger:"key",setup:keySetup}].forEach(function(e){e.handler=revisionSpanHandler;\ne.shorthand=(["link","mouse","hover"].indexOf(e.trigger)>-1);macros[e.name]=e;macros["end"+e.name]=nullobj;begintags.push(e.name);endtags.push("end"+e.name);});function insideDepartingSpan(elem){var r=elem.parentNode;\nwhile(!r.classList.contains("passage")){if(r.classList.contains("revision-span-out")){return true;}r=r.parentNode;}}function reviseAll(rt,rname){var rall=document.querySelectorAll(".passage [data-flavour]."+rname),ret=false;\nfor(var i=0;i<rall.length;i++){if(!insideDepartingSpan(rall[i])){ret=revise(rt,rall[i])||ret;}}return ret;}function revise(rt,r,notrans){var ind2,curr,next,ind=-1,rev=(rt=="revert"),rnd=(rt.indexOf("random")>-1),fl=r.getAttribute("data-flavour"),rc=r.childNodes,cyc=(fl=="cycle"),rcl=rc.length-1;\nfunction doToGainerSpans(n,fn){for(var k=n-1;k>=0;k--){if(rc[k+1].classList.contains("gains")){fn(rc[k],notrans);}else{break;}}}for(var k=0;k<=rcl;k++){if(rc[k].getAttribute("data-enabled")=="true"){ind=k;\n}}if(rev){ind-=1;}curr=(ind>=0?rc[ind]:(cyc?rc[rcl]:null));ind2=ind;if(rnd){ind2=(ind+(Math.floor(Math.random()*rcl)))%rcl;}next=((ind2<rcl)?rc[ind2+1]:(cyc?rc[0]:null));\nvar docurr=(rev?showVer:hideVer);var donext=(rev?hideVer:showVer);var currfn=function(){if(!(next&&next.classList.contains("gains"))||rnd){docurr(curr,notrans);doToGainerSpans(ind,docurr,notrans);\n}};var nextfn=function(){donext(next,notrans);if(rnd){doToGainerSpans(ind2+1,donext,notrans);}};if(!rev){currfn();nextfn();}else{nextfn();currfn();}return(cyc?true:(rev?(ind>0):(ind2<rcl-1)));\n}macros.revert=macros.revise=macros.randomise=macros.randomize={handler:function(a,b,c){var l,rev,rname;function disableLink(l){l.style.display="none";}function enableLink(l){l.style.display="inline";\n}function updateLink(l){if(l.className.indexOf("random")>-1){enableLink(l);return;}var rall=document.querySelectorAll(".passage [data-flavour]."+rname),cannext,canprev,i,ind,r,fl;\nfor(i=0;i<rall.length;i++){r=rall[i],fl=r.getAttribute("data-flavour");if(insideDepartingSpan(r)){continue;}if(fl=="cycle"){cannext=canprev=true;}else{if(r.firstChild.getAttribute("data-enabled")==!1+""){canprev=true;\n}if(r.lastChild.getAttribute("data-enabled")==!1+""){cannext=true;}}}var can=(l.classList.contains("revert")?canprev:cannext);(can?enableLink:disableLink)(l);}function toggleText(w){w.classList.toggle(rl+"Enabled");\nw.classList.toggle(rl+"Disabled");w.style.display=((w.style.display=="none")?"inline":"none");}var rl="reviseLink";if(c.length<2){throwError(a,b+" macro needs 2 parameters");\nreturn;}rname=c.shift().replace(" ","_");l=Wikifier.createInternalLink(a,null);l.className="internalLink "+rl+" "+rl+"_"+rname+" "+b;var v="";var end=false;var out=false;\nif(c.length>1&&c[0][0]=="$"){v=c[0].slice(1);c.shift();}switch(c[c.length-1]){case"end":end=true;c.pop();break;case"out":out=true;c.pop();break;}var h=state.history[0].variables;\nfor(var i=0;i<c.length;i++){var on=(i==Math.max(c.indexOf(h[v]),0));var d=insertElement(null,"span",null,rl+((on)?"En":"Dis")+"abled");if(on){h[v]=c[i];l.setAttribute("data-cycle",i);\n}else{d.style.display="none";}insertText(d,c[i]);l.appendChild(d);}l.onclick=function(){reviseAll(b,rname);var t=this.childNodes,u=this.getAttribute("data-cycle")-0,m=t.length,n,lall,i;\nif((end||out)&&u>=m-(end?2:1)){if(end){n=this.removeChild(t[u+1]||t[u]);n.className=rl+"End";n.style.display="inline";this.parentNode.replaceChild(n,this);}else{this.parentNode.removeChild(this);\nreturn;}}else{toggleText(t[u]);u=(u+1)%m;if(v){h[v]=c[u];}toggleText(t[u]);this.setAttribute("data-cycle",u);}lall=document.getElementsByClassName(rl+"_"+rname);\nfor(i=0;i<lall.length;i++){updateLink(lall[i]);}};disableLink(l);setTimeout((function(l){return function(){updateLink(l);};}(l)),1);l=null;}};macros.mouserevise=macros.hoverrevise={handler:function(a,b,c,d){var endtags=["end"+b],evt=(window.onmouseenter===null?"onmouseenter":"onmouseover"),t=tagcontents(d,[b],endtags,endtags,d.source.indexOf(">>",d.matchStart)+2);\nif(t){var rname=c[0].replace(" ","_"),h=insertElement(a,"span",null,"hoverrevise hoverrevise_"+rname),f=function(){var done=!reviseAll("revise",rname);if(b!="hoverrevise"&&done){this[evt]=null;\n}};new Wikifier(h,t[0]);if(b=="hoverrevise"){h.onmouseover=f;h.onmouseout=function(){reviseAll("revert",rname);};}else{h[evt]=f;}h=null;}}};macros.instantrevise={handler:function(a,b,c,d){reviseAll("revise",c[0].replace(" ","_"));\n}};macros.endmouserevise=nullobj;macros.endhoverrevise=nullobj;}());
<span class="home">[[a door.|Chess Stairs]]</span> \n<<replace "leaves.">>dry leaves.<<becomes>>pieces of dry leaves<<becomes>>fragments of dry leaves.<<endreplace>>\n<<replace "small pieces of wood.">>matches.<<becomes>>burnt matches.<<endreplace>>\n<<replace "cigarette ends.">>ancient cigarette ends.<<endreplace>>\n<<replace "the sound of a river.">>the sound of a river?<<becomes>>a soft white noise.<<becomes>>a small speaker emitting white noise.<<endreplace>>\n<<replace "cold.">>a feeling of cold.<<becomes>>a coldness.<<endreplace>>\n<<replace "a rat's bones.">>a rat's skull.<<becomes>>a rat's foot.<<becomes>>pieces of a rat.<<becomes>>broken pieces of rat.<<endreplace>>\n<<replace "dim light.">>dimming vision.<<becomes>>indistinct greys.<<becomes>>a sense of blindness.<<endreplace>>\n<<replace "a shell.">>a small shell.<<becomes>>a twisted shell.<<endreplace>>\n<<replace "a button.">>a non-functional button.<<endreplace>>\n<<if $fireDoorUnlocked is false>><span class="screen">[[a screen.|Fire UI]]</span><<else>><span class="flicker"><<cyclinglink "a blank screen.">></span><<endif>>\n<<if $fireDoorUnlocked is true>><span class="warning"><<if $fireDoorOpen is true>>an open door. [[a ramp.|Fire Ramp]]<<else>><<replace "a closed door.">>an open door.<<set $fireDoorOpen to true>> [[a ramp.|Fire Ramp]]<<endreplace>></span><<endif>><<else>><span class="warning"><<replace "a door.">><<cyclinglink 'a locked door.'>><<endreplace>></span><<endif>><<generatenoise "whitenoise" 0.008 0.3 1.0>>
body {\n}\n\n.passage {\n}\n\n#passages {\n}\n\n#passages .warning a {\n\tmargin-right: 100px;\n\tmargin-bottom: 50px;\n}
version.extensions.timedgotoMacro={major:1,minor:2,revision:0};\nmacros["goto"]=macros.timedgoto={timer:null,handler:function(a,b,c,d){function cssTimeUnit(s){if(typeof s=="string"){if(s.slice(-2).toLowerCase()=="ms"){return +(s.slice(0,-2))||0\n}else{if(s.slice(-1).toLowerCase()=="s"){return +(s.slice(0,-1))*1000||0\n}}}throwError(a,s+" isn't a CSS time unit");return 0}var t,d,m,s;\nt=c[c.length-1];d=d.fullArgs();m=0;if(b!="goto"){d=d.slice(0,d.lastIndexOf(t));\nm=cssTimeUnit(t)}d=eval(Wikifier.parse(d));if(d+""&&state&&state.init){if(macros["goto"].timer){clearTimeout(macros["goto"].timer)\n}s=state.history[0].passage.title;macros["goto"].timer=setTimeout(function(){if(state.history[0].passage.title==s){state.display(d,a)\n}},m)}}};\n
try {\n\n version.extensions['closeWindowMacro'] = {\n major:1, minor:0, revision:0\n };\n\n macros['closewindow'] = {\n handler: function(place, macroName, params, parser) {\n\t\twindow.close();\n },\n init: function() { },\n };\n}\ncatch(e) {\n console.log(e.message);\n throwError(place,"randomunicode Setup Error: "+e.message);\n}
body {\n\tbackground: linear-gradient(#999,#000);\n\tbackground-repeat: no-repeat;\n background-attachment: fixed;\n}\n\n.passage {\n\ttransform: rotate(20deg);\n\tbackground: transparent;\n\tmargin-right: 100px;\n}\n\n#passages {\n\tbackground: transparent;\n\tmargin-right: 100px;\n}\n\n#passages .warning a {\n\tmargin-right: 100px;\n\tmargin-bottom: 50px;\n}
Pippin Barr
var linked = false;\n\ntry {\n\n version.extensions['generateuiMacro'] = {\n major:1, minor:0, revision:0\n };\n\n macros['generateui'] = {\n handler: function(place, macroName, params, parser) {\n\n if (params.length != 0) {\n\n var paragraphs = 1 + Math.round(Math.random() * parseInt(params[0]));\n var linkBack = params[1];\n var lockVar = params[2];\n var includeUI = params[3] == "true";\n var timedReplace = params[4] == "true";\n var linkbackChance = params[5];\n var linkSelf = params[6];\n\n var theString = "";\n linked = false;\n\n var p = 0;\n while (p < paragraphs || !linked) {\n var forceLink = (p + 1 == paragraphs);\n theString += generateParagraph(linkBack,lockVar,includeUI,timedReplace,forceLink,linkbackChance,linkSelf);\n theString += "\sn\sn";\n p++;\n }\n\n new Wikifier(place, theString);\n }\n },\n init: function() { },\n };\n}\ncatch(e) {\n console.log(e.message);\n throwError(place,"randomunicode Setup Error: "+e.message);\n}\n\nfunction generateParagraph(linkBack,lockVar,includeUI,timedReplace,forceLink,linkbackChance,linkSelf) {\n\n var thePara = "";\n\n var paragraphLength = 20 + Math.round(Math.random() * 50);\n\n var linking = false;\n var replacing = false;\n // var css = false;\n\n for (var i = 0; i < paragraphLength; i++) {\n\n if (!linking && Math.random() < 0.01) {\n thePara += "<span class=\s"warning\s">[[";\n linking = true;\n }\n else if (linking && Math.random() < 0.1) {\n if (Math.random() < linkbackChance) {\n thePara += "|" + linkBack + "][" + lockVar + "= true]]</span>";\n }\n else {\n thePara += "|" + linkSelf + "]]</span>";\n }\n linking = false;;\n linked = true;\n }\n\n if (timedReplace && !linking && Math.random() < 0.9) {\n thePara += "<<timedcycle " + Math.random() * 10 + "s>>";\n\n thePara += getRandomChar();\n thePara += "<<becomes>>";\n\n thePara += getRandomChar();\n thePara += "<<endtimedcycle>>";\n }\n\n if (includeUI) {\n if (!linking && Math.random() < 0.1) {\n if (Math.random() < linkbackChance) {\n link = linkBack;\n }\n else {\n link = linkSelf;\n }\n\n thePara += "<<textinput $value [[" + getNRandomChars(1+Math.floor(Math.random()*8)) +"|" + link + "][" + lockVar + "= true]]>>";\n }\n\n if (!linking && Math.random() < 0.1) {\n thePara += "<<radio $value \s"" + getNRandomChars(1+Math.floor(Math.random()*8)) +"\s">>";\n }\n\n if (!linking && Math.random() < 0.1) {\n thePara += "<<checkbox $value \s"" + getNRandomChars(1+Math.floor(Math.random()*8)) +"\s">>";\n }\n }\n\n thePara += getRandomChar();\n }\n\n if (linking) thePara += "|" + linkBack + "][" + lockVar + "= true]]</span>";\n\n if (forceLink && !linked) {\n thePara += "<span class=\s"warning\s">[[";\n var chars = Math.floor(Math.random() * 5) + 3;\n for (var i = 0; i < chars; i++) {\n thePara += getRandomChar();\n }\n if (Math.random() < linkbackChance) {\n thePara += "|" + linkBack + "][" + lockVar + "= true]]</span>";\n }\n else {\n thePara += "|" + linkSelf + "]]</span>";\n }\n linked = true;\n }\n\n return thePara;\n}\n\nfunction getNRandomChars(n) {\n var chars = "";\n for (var i = 0; i < n; i++) {\n chars += getRandomChar();\n }\n return chars;\n}\n\nfunction getRandomChar() {\n var char = String.fromCharCode(Math.random() * 0xffff);\n if ("|[]@;".indexOf(char) != -1) {\n char = "0";\n }\n return char;\n}\n
<<generateui 0 "Snow" "$burialDoorUnlocked" false false 0.25 "Burial UI">><<generatenoise "tone" 100>>