<<stopsound $sound>> <<playsound "the bells of friendship ring true.ogg">>\n\n<html><div class="right pink">lol</div>\n\n<div class="left lime">shibe friendship</div>\n\n<div class="centerright blue">was da tru treasure all along</div>\n\n<div class="center">~end~</div></html>\n\n[[credits]]
shibequest
<<if $riddle == "death">>\n\n<html><div class="center lime">no wrong</html>\n\n[[once more|enemy 2 ghost]]\n\n<<else>>\n\n<html><div class="center red">u may pass</html>\n\n[[at last the treasure]]\n\n<<endif>>
<<silently>>\n <<set $shibe.primary = $primary_stat>>\n <<if $secondary_stat == "u don kno me">>\n <<set $shibe.secondary = "aggressive">>\n <<endif>>\n <<if $secondary_stat == "omg wow so frenz">>\n <<set $shibe.secondary = "charismatic">>\n <<endif>>\n <<if $shibe.secondary == "aggressive">>\n <<set $shibe.strength = 5>>\n <<else>>\n <<set $shibe.strength = 3>>\n <<endif>>\n <<if $shibe.primary == "brave">>\n <<set $shibe.hp += 2>>\n <<endif>>\n<<endsilently>>\n\n<html><div class="centerleft pink">empty</div>\n\n<div class="green">sorrow</div>\n\n<div class="right red">the fate of da kingdom</div>\n\n<div class="center pink">lol brave knight u are my onli hope</div></html>\n\n[[on da road|encounter1]]
<<silently>>\n <<set $enemy = {strength: 2, hp: 5, dead: false}>>\n <<stopsound $sound>>\n <<set $sound = "the war warrior.ogg">>\n <<loopsound $sound>>\n<<endsilently>>\n\n<html><div class="center pink">its time</div>\n\n<br><br>\n\n<div class="right green">are you ready for shibe</div></html>\n\n[[attack|attack enemy 1]]
<<silently>>\n <<stopsound $sound>>\n <<set $over = "shibe over.ogg">>\n <<playsound $over>>\n<<endsilently>> <html><div class="center red">wow</div>\n\n<div class="centerright green">so dead</div>\n\n<div class="centerleft blue">is this the end of shibe</div>\n\n<div class="center pink">this story is not hppay end~</div></html>\n\n[[restart|Start]]
<<silently>>\n <<set $shibe = {hp: 5, dead: false}>>\n <<if $over>>\n <<stopsound $over>>\n <<set $over = false>>\n <<endif>>\n<<loopsound "journ.ogg">> <<endsilently>>\n<html><div class="center red">wow</div>\n<div class="centerright green">shibe warrior gonna war</div></html>so <<cyclinglink $primary_stat "brave" "smrat">>\n\n<<cyclinglink $secondary_stat "u don kno me" "omg wow so frenz">>\n\n[[ok wow so quest]]
\n<html><div class="center red">no not shibe ghost</div></html>\n\n<<if $shibe.primary == "smrat">> <html>\n\n<div class="right pink">shiba riddles</div>\n\n<div class="centerleft black">its the only way</div>\n\n<div class="center red">what is blacker than night</div>\n\n<div class="blue centerright">darker than shade</div>\n\n<div class="lime center">sharper than any blade</div></html>\n\n<<silently>>\n <<cyclinglink $riddle "death" "shibe soul">>\n <<if $sound != "spookshib.ogg">>\n <<stopsound $sound>>\n <<set $sound = "spookshib.ogg">>\n <<loopsound $sound>>\n <<endif>>\n<<endsilently>>\n\n[[i kno|try riddle]]\n\n<<else>>\n\n<html><div class="right pink">ghost fight</div>\n\n<div class="center blue">its the only way</div></html> <<set $enemy = {strength: 3, hp: 4, dead: false}>>\n\n[[take me on|attack enemy 2]]\n\n<<endif>>
version.extensions["cyclinglinkMacro"]={major:3,minor:1,revision:1};macros.cyclinglink={handler:function(a,b,c){var l=Wikifier.createInternalLink(a,null);\nl.className="internalLink cyclingLink";l.setAttribute("data-cycle",0);var v="";var end=false;\nif(c.length&&c[0][0]=="$"){v=c[0].slice(1);c.shift();}if(c[c.length-1]=="end"){end=true;\nc.pop();}var h=state.history[0].variables;for(var i=0;i<c.length;i++){var on=(i==Math.max(c.indexOf(h[v]),0));\nvar d=insertElement(null,"span",null,"cyclingLink"+((on)?"En":"Dis")+"abled");if(on){h[v]=c[ i ];\nl.setAttribute("data-cycle",i);}insertText(d,c[ i ]);l.appendChild(d);}l.onclick=function(){var t=this.childNodes;\nvar d="cyclingLink";var u=this.getAttribute("data-cycle")-0;var m=t.length;if(end&&u==m-2){var n=this.removeChild(t[u+1]);\nn.className=d+"End";this.parentNode.replaceChild(n,this);return;}t[u].classList.toggle(d+"Enabled");\nt[u].classList.toggle(d+"Disabled");u=(u+1)%m;if(v){h[v]=c[u];}t[u].classList.toggle(d+"Enabled");\nt[u].classList.toggle(d+"Disabled");this.setAttribute("data-cycle",u);};},init:function(){addStyle(".cyclingLinkDisabled { display:none; } ");\n}};macros.cyclinglink.init();\n
.center\n{\ntext-align: center;\n}\n\n.right\n{\ntext-align: right;\n}\n\n.centerright\n{\nmargin-left: 80%;\n}\n\n.centerleft\n{\nmargin-right: 80%;\n}\n\n.red {color:red;}\n.blue {color:#AFEEEE;}\n.green {color:#8FBC8F;}\n.pink {color:#FFB6C1;}\n.black {color:black;}\n.lime {color:#7CFC00;}\na:link {color:#00BFFF;}\n\n.passage\n{\nwidth: 500px;\nheight: 500px;\noverflow-x: visible;\noverflow-y: visible;\nbackground-color: black;\nbackground-repeat: no-repeat;\nbackground-position: center;\nfont-family: "Comic Sans MS";\nfont-size: 1.5em;\ncolor: #FFEBCD;\n}\n\n.passage .content\n{\npadding: 50px 85px 50px 85px;\n}\n\n[data-tags~=smaufrai]\n{\nbackground-image:url('smaufrai.jpg');\n}\n\n[data-tags~=intro]\n{\nbackground-image:url('intro.jpg');\n}\n\n[data-tags~=meetenemy1]\n{\nbackground-image:url('enemy1.jpg');\n}\n\n[data-tags~=dead]\n{\nbackground-image:url('dead.jpg');\n}\n\n[data-tags~=fight1]\n{\nbackground-image:url('fight1.jpg');\n}\n\n[data-tags~=enemy2]\n{\nbackground-image:url('enemy2.jpg');\n}\n\n[data-tags~=enemy2ghost]\n{\nbackground-image:url('enemy2ghost.jpg');\n}\n\n[data-tags~=scream]\n{\nbackground-image:url('scream.jpg');\n}\n\n[data-tags~=treasure]\n{\nbackground-image:url('friends.jpg');\n}
<<set $dmg = Math.floor(Math.random() * $shibe.strength) + 1>>\n\n<<set $get = Math.floor(Math.random() * $enemy.strength) + 1>>\n\n<html><div class="center blue">grrrrr</div></html>\n\nyou hit for <<print $dmg>> <<set $enemy.hp -= $dmg>> <<if $enemy.hp < 1>> <<set $enemy.dead = true>> <<endif>>\n\n<html><div class="center red">omg what</div></html>\n\nenemy hits for <<print $get>> <<set $shibe.hp -= $get>> <<if $shibe.hp < 1>> <<set $shibe.dead = true>> <<endif>>
<<display "combat loop 1">>\n\n<<if $enemy.dead && !$shibe.dead>>\n[[thats what i thought|encounter2]]\n<<else>>\n<<if $shibe.dead>>\n[[wat noooooo|dead]]\n<<else>>\n[[hit me again|attack enemy 1]]\n<<endif>>\n<<endif>>
Ms. Tea
<<silently>>\n <<stopsound $sound>>\n <<set $sound = "the war warrior.ogg">>\n <<loopsound $sound>>\n<<endsilently>> <html><div class="red">shibe this is ur most fersome foe yet</div></html>\n<<display "combat loop 2">>\n\n<<if $enemy.dead && !$shibe.dead>>\n[[at last the treasure]]\n<<else>>\n<<if $shibe.dead>>\n[[wat noooooo|dead]]\n<<else>>\n[[hit me again|attack enemy 2]]\n<<endif>>\n<<endif>>
Text/etc: Ms. Tea\nMusic: SF\n\nCyclinglink macro by [[Leon Arnott|http://l.j-factor.com/twine/]].\n\nMost photos used under Creative Commons licenses.\n\n* [[smaufrai from @DogSolutions|http://twitter.com/DogSolutions/status/210836474025881600/photo/1]]\n* [[tokyo the shiba by _tar0_ on Flickr|http://www.flickr.com/photos/_tar0_/5958945531/]]\n* [[Shiba inu by Yuya Tamai on Flickr|http://www.flickr.com/photos/tamaiyuya/6073282904/]]\n* [[Shiba in the snow by Truk71 on Flickr|http://www.flickr.com/photos/24161110@N00/399356547/]]\n* [[shiba rinji wrestles with shiba taro by _tar0_ on Flickr|http://www.flickr.com/photos/_tar0_/6174353458/]]\n* [[shiba shadow by _tar0_ on Flickr|http://www.flickr.com/photos/_tar0_/7207054956/]]\n* [[Shiba #2 by atubbs on Flickr|http://www.flickr.com/photos/atubbs/3189700418/]]\n* [[taro shiba yawning by _tar0_ on Flickr|http://www.flickr.com/photos/_tar0_/5106890898/]]\n* [[shiba siblings (kiyom & taro) & their lazy sunday|http://www.flickr.com/photos/_tar0_/7390117678/]]\n\n<html><a rel="license" href="http://creativecommons.org/licenses/by/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">shibequest</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://dl.dropboxusercontent.com/u/79581979/shibe.html" property="cc:attributionName" rel="cc:attributionURL">Ms. Tea / SF</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/deed.en_US">Creative Commons Attribution 3.0 Unported License</a>.</html> Cyclinglink macro is not included in this license.
\n(function () {\n version.extensions['soundMacros'] = {\n major: 1,\n minor: 1,\n revision: 1\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 var i = s[j];\n i.pause();\n i.currentTime = 0;\n }\n }\n }\n var div = $("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 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}());\n
<<if $shibe.secondary == "charismatic">>\n\n<html><div class="right green">the code of the honores</div> <br><br>\n\n<div class="pink">the way of the warriors</div> <br><br><br>\n\n<div class="center blue">shibe know respect</div></html>\n\n[[go from this place|encounter2]]\n\n<<else>>\n\n<html><div class="pink">no</div>\n\n<div class="red right">this ends now</div></html>\n\n[[take on me|fight enemy1]]\n\n<<endif>>
<<silently>>\n <<if $sound != "wheel of fate.ogg">>\n <<stopsound $sound>>\n <<set $sound = "wheel of fate.ogg">>\n <<loopsound $sound>>\n <<endif>>\n<<endsilently>> <html><div class="right green">wat</div>\n\n<br><br><br>\n\n<div class="red">shadow what is this</div></html>\n\n[[go look|enemy 2 ghost]]
<<silently>>\n <<stopsound "journ.ogg">>\n <<set $sound = "wheel of fate.ogg">>\n <<loopsound $sound>>\n<<endsilently>>\n\n<html><div class="center red">u want to get wit me bitch</div>\n\n<div class="centerright blue">u messin wit da wrong shibe</div></html>\n\n[[fight|fight enemy1]]\n\n[[talk|talk enemy1]]
<<set $dmg = Math.floor(Math.random() * $shibe.strength) + 1>>\n\n<<set $get = Math.floor(Math.random() * $enemy.strength) + 1>>\n\n<html><div class="blue">grrrrr</div></html>\n\nyou hit for <<print $dmg>> <<set $enemy.hp -= $dmg>> <<if $enemy.hp < 1>> <<set $enemy.dead = true>> <<endif>>\n\n<html><div class="red">wooooo no</div></html>\n\nghost hits for <<print $get>> <<set $shibe.hp -= $get>> <<if $shibe.hp < 1>> <<set $shibe.dead = true>> <<endif>>