/* Your story will use the CSS in this passage to style the page.\nGive this passage more tags, and it will only affect passages with those tags.\nExample selectors: */\n\nbody {\n\t/* This affects the entire page */\n\t\n\t\n}\n.passage {\n\t/* This only affects passages */\n\t\n\t\n}\n.passage a {\n\t/* This affects passage links */\n\t\n\t\n}\n.passage a:hover {\n\t/* This affects links while the cursor is over them */\n\t\n\t\n}
You go forwards. \n\n<<CustomersAppear>>
<<set $Event3Monday0 = $Event3Monday0 + 1>>\nEvent3\n<<$Event3Monday0>>
<<set $Event1Monday0 = $Event1Monday0 + 1>>\n\nYou see a fish falling from the sky. It lands on your face.\n<<$Event1Monday0>>
Do you want to change what recipe<<if $twoIceCream>>s<<endif>> you're using?\n<<if previous("EndDay")>>[[Yes|ChoosingIceCream]][[No|TomorrowCream]]<<elseif>>\nYou mix up a fresh batch of ice cream: <<$iceCream1>><<if $twoIceCream is true>>, and <<$iceCream2>><<endif>><<if $threeIceCream is true>>, <<$iceCream2>>, and <<$iceCream3>><<endif>> and put it in the freezer. \n\n<<if $twoIceCream is false>>This costs you £10<<set $cashTotal = $cashTotal - 10>>, you have £<<$cashTotal>> remaining.\n\n<<elseif>>\s\n<<if $threeIceCream is false>>This costs you £20<<set $cashTotal = $cashTotal - 20>>, you have £<<$cashTotal>> remaining.\n\n<<elseif>>\s\nThis costs you £30<<set $cashTotal = $cashTotal - 30>>, you have £<<$cashTotal>> remaining.\n<<endif>><<endif>><<endif>>\s
<<nobr>>\n<<set $dayWeek = $today + $week>>\n<<endnobr>>\n<<$eventTimer>>\n<<$eventCount>>\n<<$dayTime>>\n[[Get on with things|$dayWeek]]\n<<nobr>>\n<<if $dayTime >= 13 >>\n<<set $today = $today + "X">>\n<<EndDay>>\n<<endif>>\n<<endnobr>>\n\n
Welcome to GAME NAME\n\n\n[[Beginning|TestBeginning][$number = 6]]\n[[other]]\n[[Start here|TrueStart]]
<<nobr>>\n<<set $dayWeek = $today + $week>>\n<<if $dayTime <= 4 >>\n<<Morning>>\n<<elseif>>\n<<if $dayTime <= 8 >>\n<<Midday>>\n<<endif>>\n<<if $dayTime > 8>>\n<<if $dayTime <= 12 >>\n<<Afternoon>>\n<<endif>>\n<<endif>>\n<<endif>>\n<<if $dayTime >= 13 >>\n<<set $today = $today + "X">>\n<<set $week = $week + 1 >>\n<<EndDay>>\n<<endif>>\n<<endnobr>>\n<<$eventTimer>>\n<<$eventCount>>\n<<$dayTime>>
<<set $Event2Monday0 = $Event2Monday0 + 1>>\n\nEvent 2\n<<$Event2Monday0>>
(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;}());
<<nobr>>\n<<if $dayTime is 5>>12:00<<endif>>\n<<if $dayTime is 6>>12:30<<endif>>\n<<if $dayTime is 7>>13:00<<endif>>\n<<if $dayTime is 8>>13:30<<endif>>\n<<endnobr>>\n<<PeopleBuying>>
<<nobr>>\n<<if previous('TrueStart')>><<set $today = "Monday">>\n<<endif>>\n<<set $dayWeek = $today + $week>>\n<<if $dayTime <= 4 >>\n<<Morning>>\n<<elseif>>\n<<if $dayTime <= 8 >>\n<<Midday>>\n<<endif>>\n<<if $dayTime > 8>>\n<<if $dayTime <= 12 >>\n<<Afternoon>>\n<<endif>>\n<<endif>>\n<<endif>>\n<<if $dayTime >= 13 >>\n<<set $today = $today + "X">>\n<<EndDay>>\n<<endif>>\n<<endnobr>>\n<<$eventTimer>>\n<<$eventCount>>\n<<$dayTime>>
<<nobr>>\n<<set $dayWeek = $today + $week>>\n<<if $dayTime <= 4 >>\n<<Morning>>\n<<elseif>>\n<<if $dayTime <= 8 >>\n<<Midday>>\n<<endif>>\n<<if $dayTime > 8>>\n<<if $dayTime <= 12 >>\n<<Afternoon>>\n<<endif>>\n<<endif>>\n<<endif>>\n<<if $dayTime >= 13 >>\n<<set $today = $today + "X">>\n<<EndDay>>\n<<endif>>\n<<endnobr>>\n<<$eventTimer>>\n<<$eventCount>>\n<<$dayTime>>
<<set $eventTimer to either(2,3,3,4,4,4)>>\n<<print $dayWeek>>\n<<display $dayWeek>>\n[[$today][$eventCount = 1]]\n
<<set $test to random(1,10)>>\n\n<<print $test>>
\n<<cycle "One">>One <<becomes $there = "Two">> Two <<endcycle>>\n<<cycle $here = "What">> What <<becomes $here = "When">> When <<endcycle>>\n<<cycle>> <<set $that = "Blanket">> Blanket <<becomes>> <<set $that = "Duvet">> Duvet <<endcycle>>\n<<cycle onwards>> Me <<becomes>> You<<endcycle>>\n\n<<print either($there, $here, $that, $this)>>
<span id="Directional">\n<a data-passage="Up" data-setter="$eventCount = $eventCount + 1">⬆</a>\n<a data-passage="Left" data-setter="$eventCount = $eventCount + 1">⬅</a> ◇ <a data-passage="Right" data-setter="$eventCount = $eventCount + 1">➡</a>\n<a data-passage="Down" data-setter="$eventCount = $eventCount + 1">⬇</a>\n</span>\n
Untitled Story
<<set $Event5Monday0 = $Event5Monday0 + 1>>\n\n<<$Event5Monday0>>\n\nEvent5
<<set $Event4Monday0 = $Event4Monday0 + 1>>\n\nEvent4\n<<$Event4Monday0>>
jquery:on\nhash:off\nbookmark:off\nmodernizr:off\nundo:off\nobfuscate:off\nexitprompt:off\nblankcss:on\n
Today you have sold £<<$dayTotal>> worth of ice cream, which gives you a total of £<<set $cashTotal = $dayTotal + $cashTotal >><<$cashTotal>> in the bank. \n\n<<nobr>>\n<<if $today is "MondayX">>\n<<set $today = "Tuesday">>\n<<endif>>\n<<if $today is "TuesdayX">>\n<<set $today = "Wednesday">>\n<<endif>>\n<<if $today is "WednesdayX">>\n<<set $today = "Thursday">>\n<<endif>>\n<<if $today is "ThursdayX">>\n<<set $today = "Friday">>\n<<endif>>\n<<if $today is "FridayX">>\n<<set $today = "Saturday">>\n<<endif>>\n<<if $today is "SaturdayX">>\n<<set $today = "Sunday">>\n<<endif>>\n<<if $today is "SundayX">>\n<<set $today = "Monday">>\n<<endif>>\n<<set $eventTimer to either(2,3,3,4,4,4)>>\n<<set $cumTotal = $cumTotal + $dayTotal>>\n<<endnobr>>\n\n<<if $today is "Thursday">>\nTomorrow is <<$today>> which is when you relax at home, talking to your friends and researching new ice cream recipes. \n\nA nice chance to sort out any new equipment or fix anything which has needed doing throughout the week. \n[[Go to bed|Thursday][$eventCount = 0; $daytime= 1]]\n<<elseif>>\nTomorrow is a new day of ice cream selling, before you go to bed though, you have to make your flavour<<if $iceCream2 is true>>s<<endif>> for <<$today>>\n[[Make the Ice Cream|TomorrowCream][$eventCount = 0; $dayTime= 1; $dayTotal = 0]]\n<<endif>>
$(document).on("keydown", function (event) {\n\tif (event.which === 38) {\n\t\tdocument\n\t\t\t.querySelector('a[data-passage="Up"]')\n\t\t\t.dispatchEvent(new MouseEvent("click"))\n\t}\nif (event.which === 37) {\n\t\tdocument\n\t\t\t.querySelector('a[data-passage="Left"]')\n\t\t\t.dispatchEvent(new MouseEvent("click"))\n\t}\nif (event.which === 39) {\n\t\tdocument\n\t\t\t.querySelector('a[data-passage="Right"]')\n\t\t\t.dispatchEvent(new MouseEvent("click"))\n\t}\nif (event.which === 40) {\n\t\tdocument\n\t\t\t.querySelector('a[data-passage="Down"]')\n\t\t\t.dispatchEvent(new MouseEvent("click"))\n\t}\n});\n\n$(document).on("keydown", function (event) {\n\tif (event.which === 32) {\n\t\tdocument\n\t\t\t.querySelector('a[data-passage="$today"]')\n\t\t\t.dispatchEvent(new MouseEvent("click"))\n\t}\n\n});\n$(document).on("keyup", function (event) {\n\tif (event.which === 13) {\n\t\tdocument\n\t\t\t.querySelector('a[data-passage="Enter"]')\n\t\t\t.dispatchEvent(new MouseEvent("click"))\n\t}\n\n});
<<if visited()>>\n<<set $number = $number + 1>><<endif>>\n<<if $number is 10>><<elseif>>\n<<if $seenTest1 > 1>>\n<<if $event is 1>>\n<<Test1>><<elseif>>\n<<set $event = random(1,3)>>\n One\n<<List>>\n<<endif>>\n<<endif>>\n<<if $seenTest2 > 1>>\n<<if $event is 2>>\n<<Test2>><<elseif>>\n<<set $event = random(1,3)>> \nTwo\n<<List>>\n<<endif>>\n<<endif>>\n<<if $seenTest3 > 1>>\n<<if $event is 3>>\n<<Test3>>\n<<endif>><<elseif>>\n<<set $event = random(1,3)>> \n Three\n<<List>>\n<<endif>>\n<<endif>>\n\n\nCounting from <<print $number>> until 10\n<<if $number is 10>>[[END|TestBeginning]]<<elseif>>\n[[List][$event = random(1,3)]]<<endif>>
<<nobr>>\n<<set $dayWeek = $today + $week>>\n<<if $dayTime <= 4 >>\n<<Morning>>\n<<elseif>>\n<<if $dayTime <= 8 >>\n<<Midday>>\n<<endif>>\n<<if $dayTime > 8>>\n<<if $dayTime <= 12 >>\n<<Afternoon>>\n<<endif>>\n<<endif>>\n<<endif>>\n<<if $dayTime >= 13 >>\n<<set $today = $today + "X">>\n<<EndDay>>\n<<endif>>\n<<endnobr>>\n<<$eventTimer>>\n<<$eventCount>>\n<<$dayTime>>
<<nobr>>\n<<if $dayTime is 1>>10:00<<endif>>\n<<if $dayTime is 2>>10:30<<endif>>\n<<if $dayTime is 3>>11:00<<endif>>\n<<if $dayTime is 4>>11:30<<endif>>\n<<endnobr>>\n\n<<PeopleBuying>>
Your second ice cream is: \n\n~<<$iceCream2>>~\n\n<<if $iceCream1 is not "Chocolate"; $iceCream3 is not "Chocolate">>[[Chocolate|IceCream2][$iceCream2 = "Chocolate"]]<<endif>>\n<<if $iceCream1 is not "Vanilla"; $iceCream3 is not "Vanilla">>[[Vanilla|IceCream2][$iceCream2 = "Vanilla"]]<<endif>>\n<<if $iceCream1 is not "Strawberry"; $iceCream3 is not "Strawberry">>[[Strawberry|IceCream2][$iceCream2 = "Strawberry"]]<<endif>>\n\n[[Back|ChoosingIceCream]]
Your third ice cream is:\n\n<<$iceCream3>>\n\n<<if $iceCream1 is not "Chocolate"; $iceCream2 is not "Chocolate">>[[Chocolate|IceCream3][$iceCream3 = "Chocolate"]]<<endif>>\n<<if $iceCream1 is not "Vanilla"; $iceCream2 is not "Vanilla">>[[Vanilla|IceCream3][$iceCream3 = "Vanilla"]]<<endif>>\n<<if $iceCream1 is not "Strawberry"; $iceCream2 is not "Strawberry">>[[Strawberry|IceCream3][$iceCream3 = "Strawberry"]]<<endif>>\n\n[[Back|ChoosingIceCream]]
You go right. \n\n<<CustomersAppear>>
You are a <<print either("man", "woman", "person")>> and you have decided to sell ice cream over the summer holidays to raise some cash for a holiday. \n\nYou have £<<set $cashTotal = 550.0>><<$cashTotal>> in your bank account.\n\nYou spend £500 on a second hand ice cream bike-cart to deliver your handmade ice cream around a nearby popular park. <<set $cashTotal = $cashTotal - 500>>This leaves you with £<<$cashTotal>>. \n\nIt costs you £10 each day to buy the materials you need to make your ice cream. You have space for 1 type of Ice Cream in your cooler. What flavour of Ice Cream do you want?\n\n[[Chocolate|TrueStart][$chosen1 = true; $iceCream1 = "Chocolate"]]\n[[Vanilla|TrueStart][$chosen1 = true; $iceCream1 = "Vanilla"]]\n[[Strawberry|TrueStart][$chosen1 = true; $iceCream1 = "Strawberry"]]\n\n<<if $chosen1 is true>>You have chosen <<$iceCream1>>.\n[[Yes|TrueStart][$confirmed1 = true]]<<if $confirmed1 is false>> [[No|TrueStart][$chosen1 = false]]<<endif>>\n<<endif>><<if $confirmed1 is true>>\nTomorrow is Monday, you spend £10<<set $cashTotal = $cashTotal - 10>> on ingredients for <<$iceCream1>> and make your ice cream. It tastes <<print either("amazing","delicious","fantastic")>>.\n\nYou are left with £<<$cashTotal>>.\n<<set $eventTimer to either(2,3,3,4,4,4)>>\nBegin [[Monday][$dayTime = 1; $eventCount = 1]] \n<<endif>>
\n\n<<if $oneIceCream>><<if previous("IceCream1")>>You've chosen <<print $iceCream1>> ice cream.<<elseif>>[[Choose the First Ice Cream|IceCream1]]<<endif>><<endif>>\s\n<<if $twoIceCream>><<if previous("IceCream2")>>And you've chosen <<print $iceCream2>> ice cream.<<elseif>>[[Choose the Second Ice Cream|IceCream2]]<<endif>><<endif>>\s\n<<if $threeIceCream>><<if previous("IceCream3")>>And finally you've chosen <<print $iceCream3>> ice cream.<<elseif>>[[Choose the Third Ice Cream|IceCream3]]<<endif>><<endif>>\s\n\n[[Start $today|$today]]
<<nobr>><<set $MondayRandom0 to random(1,5)>>\n<<if $MondayRandom0 is 1>>\n<<Event1Monday0>>\n<<endif>>\n<<if $MondayRandom0 is 2>>\n<<Event2Monday0>>\n<<endif>>\n<<if $MondayRandom0 is 3>>\n<<Event3Monday0>>\n<<endif>>\n<<if $MondayRandom0 is 4>>\n<<Event4Monday0>>\n<<endif>>\n<<if $MondayRandom0 is 5>>\n<<Event5Monday0>>\n<<endif>>\n<<endnobr>>
<<nobr>><<if $eventCount <= $eventTimer>>\n<<PushCart>>\n<<elseif>>\n<<set $eventTimer = 0>>\n<<SpecialEvent>>\n<<endif>>\n<<endnobr>>
You go left. \n\n<<CustomersAppear>>
<<set $seenTest1 = 0>>\n<<set $seenTest1 = $seenTest1 + 1>>\n<<set $amountPeople to random(1,8)>>\n<<set $sold = 0>>\n<<if $amountPeople is 1>>\nOne person appears and<<print either("he buys", "she buys", "they buy")>> an ice cream. <<set $sold = $sold + 3>>\n\n<<elseif>>\n<<print $amountPeople>> people have appeared. They each buy an ice cream. <<set $sold = $sold + $amountPeople*3>> \n<<endif>> \n\nYou have made £<<print $sold+".00">>.
<<set $seenTest3 = 0>>\nThis is also a test!!!!\n<<set $seenTest3 = $seenTest3 + 1>>\n
This is also a test.\n<<set $seenTest2 = 0>>\n<<set $seenTest2 = $seenTest2 + 1>>\n
You are pushing the cart. Which direction will you go?\n\n<<Directions>>
<<nobr>>\n<<set $dayWeek = $today + $week>>\n<<if $dayTime <= 4 >>\n<<Morning>>\n<<elseif>>\n<<if $dayTime <= 8 >>\n<<Midday>>\n<<endif>>\n<<if $dayTime > 8>>\n<<if $dayTime <= 12 >>\n<<Afternoon>>\n<<endif>>\n<<endif>>\n<<endif>>\n<<if $dayTime >= 13 >>\n<<set $today = $today + "X">>\n<<EndDay>>\n<<endif>>\n<<endnobr>>\n<<$eventTimer>>\n<<$eventCount>>\n<<$dayTime>>
You go backwards. \n\n<<CustomersAppear>>
Your <<if $twoIceCream is true>>first <<endif>>ice cream is:\n\n~<<$iceCream1>>~\n\n<<if $iceCream2 is not "Chocolate"; $iceCream3 is not "Chocolate">>[[Chocolate|IceCream1][$iceCream1 = "Chocolate"]]<<endif>>\n<<if $iceCream2 is not "Vanilla"; $iceCream3 is not "Vanilla">>[[Vanilla|IceCream1][$iceCream1 = "Vanilla"]]<<endif>>\n<<if $iceCream2 is not "Strawberry"; $iceCream3 is not "Strawberry">>[[Strawberry|IceCream1][$iceCream1 = "Strawberry"]]<<endif>>\n\n[[Back|ChoosingIceCream]]
You are an ice cream seller doing a test, which test do you get? \n<<set $event to random(1,3)>>\n\n[[List]]\n<<replace "First">>Second <<becomes>> Penis <<endreplace>>\n<<replace "First">> Second<<becomes>>Something<<endreplace>>\n\n[[MoreTesting]]
<<nobr>><<set $amountPeople to random(1,8)>>\n<<set $sold = 0>>\n<<set $sold = $sold + $amountPeople*2>>\n<<endnobr>>\n<<if $amountPeople is 1>>\nA<<print either(" young", "n old", " fashionable", " strange", " tall", " short", "n interesting")>> person appears and <<print either("he buys", "she buys", "they buy")>> an ice cream. \n\n<<elseif>>\nA group of <<print $amountPeople>> people have appeared. They each buy an ice cream.\n<<endif>> \n\nYou have made £<<print $sold+".00">>.\n\n<<set $dayTotal = $dayTotal + $sold>>\n\n\n<a data-passage="$today" data-setter="$dayTime = $dayTime + 1">⦗You look around⦘</a>\n/%[[Moving onwards|$today][$dayTime = $dayTime + 1]]%/\n
Anonymous
<<nobr>>\n<<set $dayWeek = $today + $week>>\n<<if $dayTime <= 4 >>\n<<Morning>>\n<<elseif>>\n<<if $dayTime <= 8 >>\n<<Midday>>\n<<endif>>\n<<if $dayTime > 8>>\n<<if $dayTime <= 12 >>\n<<Afternoon>>\n<<endif>>\n<<endif>>\n<<endif>>\n<<if $dayTime >= 13 >>\n<<set $today = $today + "X">>\n<<EndDay>>\n<<endif>>\n<<endnobr>>\n<<$eventTimer>>\n<<$eventCount>>\n<<$dayTime>>
<<nobr>>\n<<if $dayTime is 9>>14:00<<endif>>\n<<if $dayTime is 10>>14:30<<endif>>\n<<if $dayTime is 11>>15:00<<endif>>\n<<if $dayTime is 12>>15:30<<endif>>\n<<endnobr>>\n<<PeopleBuying>>