Riddles in the Dark 1: Can you crack these tricky riddle poems?
Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
HEALTH
<<set $MaxHP = 50>> /* Maximum Hit Points */
<<set $CurHP = 50>> /* Current Hit Points */
<<set $CurHP2 = 50>> /* 2nd VERSION Current Hit Points */
<<script>>$(document).one(':passagerender', function (ev) {
Health2(50, 50, "hzhealthbar", true, ev.content);
});<</script>>
WISDOM
<<set $wisdom to 4>>
TRACKING THE LEVEL PLAYERS ARE UP TO (FOR HEALTH RETURNS and OTHER STUFF)
<<set $currentlevel to -1>>
CHARACTER RIDDLES
<<set $riddlestatus to "need a new riddle">>
<<set $characterriddlecount to 0>>
<<set $riddlelevel to 1>>
<<set $characterriddlearray= [1,2,3]>>
SCRAMBLED WORDS SETUP:
<<set $hint1 to " ">>
<<set $hint2 to " ">>
<<set $hint3 to " ">>
<<set $hint4 to " ">>
<<set $hintcount to 0>>
<<set $alphabet= ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]>>
<<set $alphabetbackup= ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]>>
<<set $fakeletters = $alphabet.pluckMany(6)>>
HANGMAN
<<set $hangmanstatus to "need a new hangman">>
<<set $hangmancount to 0>>
<<set $hangmanarray= [1,2,3,4,5]>>
STARTUP MESSAGES
<<set $message_characterriddles to "no">>
<<set $message_gridpuzzle to "no">>
<<set $message_timeline to "no">>
<<set $message_scenestudy to "no">>
<<set $message_maskpuzzle to "no">>
<<set $message_hangman to "no">>
/* THIS LINKS TO THE JAVASCRIPT IMAGE LOADING--SEE THAT SECION
<<set _bgm = setup.SoundPath + "StartMusic.mp3">>
<<cacheaudio "start_bgm" _bgm>>*/
SOUNDS
background music
<<set _bgm = setup.SoundPath + "background.mp3">>
<<cacheaudio "background" _bgm>>
<<set _bgm = setup.SoundPath + "background2.mp3">>
<<cacheaudio "background2" _bgm>>
<<set _bgm = setup.SoundPath + "background3.mp3">>
<<cacheaudio "background3" _bgm>>
Background playlist
<<createplaylist "background">>
<<track "background" volume 0.3>>
<<track "background2" volume 0.4>>
<<track "background3" volume 0.4>>
<</createplaylist>>
<<set _bgm = setup.SoundPath + "gameover.mp3">>
<<cacheaudio "gameover" _bgm>>
<<set _bgm = setup.SoundPath + "gamewin.mp3">>
<<cacheaudio "gamewin" _bgm>>
error sounds
<<set _bgm = setup.SoundPath + "0error.mp3">>
<<cacheaudio "error" _bgm>>
<<set _bgm = setup.SoundPath + "0ohoh.mp3">>
<<cacheaudio "ohoh" _bgm>>
<<set _bgm = setup.SoundPath + "0ooh.mp3">>
<<cacheaudio "ooh" _bgm>>
<<set _bgm = setup.SoundPath + "0ouch.mp3">>
<<cacheaudio "ouch" _bgm>>
<<set _bgm = setup.SoundPath + "0ow.mp3">>
<<cacheaudio "ow" _bgm>>
<<set _bgm = setup.SoundPath + "error.mp3">>
<<cacheaudio "ow" _bgm>>
Error Playlist
<<createplaylist "error">>
<<track "error" volume 1>>
<<track "ohoh" volume 1>>
<<track "ooh" volume 1>>
<<track "ouch" volume 1>>
<<track "ow" volume 0.7>>
<</createplaylist>>
victory sounds
<<set _bgm = setup.SoundPath + "1giggle.mp3">>
<<cacheaudio "giggle" _bgm>>
<<set _bgm = setup.SoundPath + "1hehehe.mp3">>
<<cacheaudio "hehehe" _bgm>>
<<set _bgm = setup.SoundPath + "1hohoho.mp3">>
<<cacheaudio "hohoho" _bgm>>
<<set _bgm = setup.SoundPath + "1trumpet.mp3">>
<<cacheaudio "trumpet" _bgm>>
<<set _bgm = setup.SoundPath + "1whoohoo.mp3">>
<<cacheaudio "whoohoo" _bgm>>
<<set _bgm = setup.SoundPath + "1yay.mp3">>
<<cacheaudio "yay" _bgm>>
<<set _bgm = setup.SoundPath + "1yeah.mp3">>
<<cacheaudio "yeah" _bgm>>
<<set _bgm = setup.SoundPath + "1yeah2.mp3">>
<<cacheaudio "yeah2" _bgm>>
<<set _bgm = setup.SoundPath + "1yes.mp3">>
<<cacheaudio "yes" _bgm>>
<<createplaylist "victory">>
<<track "giggle" volume 1>>
<<track "hehehe" volume 1>>
<<track "hohoho" volume 1>>
<<track "trumpet" volume 1>>
<<track "whoohoo" volume 1>>
<<track "yay" volume 1>>
<<track "yeah" volume 1>>
<<track "yeah2" volume 1>>
<<track "yes" volume 1>>
<</createplaylist>>
Misc sounds
<<set _bgm = setup.SoundPath + "button.mp3">>
<<cacheaudio "button" _bgm>>
<<set _bgm = setup.SoundPath + "wisdom.mp3">>
<<cacheaudio "wisdom" _bgm>><<set $code to "blah">>
!Enter Supporter Code
<div id="code-form">\
<<textbox "$code" "" >> \
<<button "Continue">>
/* Sanitize $code value. */
<<set $code to $code.trim()>>
/* Check $code value. */
<<if $code is "blah" >>
/* Code is valid, so enable extras and replace the form. */
/* …code to enable extras here… */
<<replace "#code-form">>Success! Extras unlocked.<</replace>>
<<else>>
/* Code is invalid, so show error. */
<<replace "#code-error">><br>Invalid code! Try again?<</replace>>
<</if>>
<</button>>\
<span id="code-error"></span>
</div><iframe src="https://www.jigsawplanet.com/?rc=play&pid=0dbf7c4fd92e&view=iframe" style="width:100%;height:600px" frameborder=0 allowfullscreen></iframe><iframe src="https://www.bookwidgets.com/play/HJLFUR?teacher_id=4569752539234304" frameBorder="0" width="100%" height="600"></iframe>
<iframe src="http://180.150.66.86:8000/list/" width="100%" height="800"></iframe>
<div
class="canva-embed"
data-design-id="DADktL4canU"
data-height-ratio="2.5000"
style="padding:250.0000% 5px 5px 5px;background:rgba(0,0,0,0.03);border-radius:8px;"
></div>
<script async src="https://sdk.canva.com/v1/embed.js"></script>
<a href="https://www.canva.com/design/DADktL4canU/view?utm_content=DADktL4canU&utm_campaign=designshare&utm_medium=embeds&utm_source=link" target="_blank" rel="noopener">Design</a> by <a href="https://www.canva.com/GilbertWalker8?utm_campaign=designshare&utm_medium=embeds&utm_source=link" target="_blank" rel="noopener">Gilbert Walker</a>
<iframe src="https://www.canva.com/design/DADktL4canU/view" width="100%" height="800"></iframe>
<iframe src="https://www.bookwidgets.com/play/3JJNR5" width="100%" height="800"></iframe>
<iframe width="100%" height="400" src="https://time.graphics/embed?v=1&id=294477" frameborder="0" allowfullscreen></iframe>
<div><a style="font-size: 12px; text-decoration: none;" title="Powered by Time.Graphics" href="https://time.graphics">Powered by Time.Graphics</a></div>
<iframe src="https://im-a-puzzle.com/#/play?difficulty=3&gallery=&mode=1" frameBorder="0" width="100%" height="600"></iframe>
<iframe src="https://www.proprofs.com/games/puzzle/sliding/timeline-practice/?ew=500" frameBorder="0" width="770px" height="625"></iframe>
<iframe src="https://docs.google.com/document/d/1GuadNUze9NE7_nn8FqW4p0it806GD1lwYe_n1Tdsqfw/edit?usp=sharing" frameBorder="0" width="100%" height="600"></iframe>
<iframe src="https://paper.dropbox.com/doc/Untitled--AkSNc6Vy9ANdAVIcJsfneMb~AQ-Brqu5EE1aYqoHZME9jIxk" frameBorder="0" width="100%" height="600"></iframe>
<iframe src="https://im-a-puzzle.com/#/play?difficulty=3&gallery=&mode=0" frameBorder="0" width="100%" height="600"></iframe>
https://www.canva.com/design/DADktL4canU/view
<iframe src="https://trello.com/b/nC8QJJoZ.html" frameBorder="0" width="100%" height="600"></iframe>
<iframe src="https://trello.com/c/quz86KZ1" frameBorder="0" width="100%" height="600"></iframe>
<blockquote class="trello-card">
<a href="{url to card}">Trello Card</a>
</blockquote>
<script src="https://p.trellocdn.com/embed.min.js"></script>
<<return "click here to go back">>
SOUNDS:
-background tracks by Feslyian Studios: https://www.fesliyanstudios.com/royalty-free-music/downloads-c/epic-music/4
-Life Pickup (Yo Frankie!) sound by Blender Foundation: https://opengameart.org/content/life-pickup-yo-frankie
-Win Music #3 by remaxim: https://opengameart.org/content/win-music-3
-Epic Amulet item sound by CosmicD: https://opengameart.org/content/epic-amulet-item
CODE:
-Animated Healthbar, and other Javascript effects by HiEV
IMAGES:
-Adobe Stock
<<return "click here to go back">>Double-click this passage to edit it.-1. PREVIOUSLY SET ACTUAL WORDS ARRAYS? (Maybe figure out a way to make a string into an array)
0. Set variable to a random array from the previous ^^ array lists
display dash array that's the same length as the word array
display greyed out hangman noose?
1. get player to select a letter from the alphabet (each letter is a hyperlink, and all link to the next step)
2. check letter player inputted against the letters contained in the array
IF it's a correct letter check it's spot in the array and copy just that position in the array to the dash array (so now the dash array should have dashes + that letter) (might have to repeat this in case there are multiple correct letters)
Check to see if word is complete, if so, game over -->victory!
IF it's NOT a correct letter:
eliminate that letter from the letter hyperlinks
check where hangman image is up to --> add next picture
Check to see if the hangman image is complete, if so, game over, defeat!
I help the beggar and feed the famished,
I’m a place where little fish are banished.
<<nobr>>
<<set $answer= ["bowl","tin"]>>
<<set $answerarray= ["b","o","w","l"]>>
<<set $hint to "Something you do in cricket">>
<<set $hint2 to "You can also do it in an alley...">>
<</nobr>>I am sleeping in a crib
Or telling you a fib
<<nobr>>
<<set $answer= ["lying"]>>
<<set $answerarray= ["l","y","i","n","g"]>>
<<set $hint to "It'd be [...] to say the sky's green">>
<<set $hint2 to "You'd be [...] in your coffin">>
<</nobr>>I am a mother, with 8 other brothers.
We spin through life without a break,
but our youngest brother has been called a fake.
<<nobr>>
<<set $answer= ["earth"]>>
<<set $answerarray= ["e","a","r","t","h"]>>
<<set $hint to "9 spinning things that aren't man made...">>
<<set $hint2 to "Think bigger">>
<</nobr>>I am the valley and the crest
A farewell for a friend or guest
<<nobr>>
<<set $answer= ["wave"]>>
<<set $answerarray= ["w","a","v","e"]>>
<<set $hint to "How do you say goodbye?">>
<<set $hint2 to "Looks like mountains, but is not solid">>
<</nobr>>I guard doors and windows from thieves in the night.
I am the reaction of cowards in flight.
The coil of cloth, the arrow from bow,
The wrath of the Gods on mere mortals below.
<<nobr>>
<<set $answer= ["bolt"]>>
<<set $answerarray= ["b","o","l","t"]>>
<<set $hint to "What do angry gods strike mortals with?">>
<<set $hint2 to "How do you secure a door?">>
<</nobr>>I am a line, a complete thought,
The final judgement in the court.
<<nobr>>
<<set $answer= ["sentence"]>>
<<set $answerarray= ["s","e","n","t","e","n","c","e"]>>
<<set $hint to "You write me on paper...">>
<<set $hint2 to "His [...] was 14 years in jail">>
<</nobr>>In tolling bell,
and ancient oak.
A royal seal,
and lover's oath.
<<nobr>>
<<set $answer= ["ring"]>>
<<set $answerarray= ["r","i","n","g"]>>
<<set $hint to "How do you know a tree is old?">>
<<set $hint2 to "What do Kings sign papers with?">>
<</nobr>>I begin in the earth,
And I never enter air.
I am near the edge of water,
And I always end in fire
<<nobr>>
<<set $answer= ["e"]>>
<<set $answerarray= ["e"]>>
<<set $hint to "An element...NOT a word">>
<<set $hint2 to "Look at the last words in each line">>
<</nobr>><<nobr>>
<<set $hintcount to $hintcount +1>>
/*MAKE A NEW VARIABLE (riddlelength) INTO A NUMBER EQUAL TO THE LENGTH OF THE RIDDLE STRING (answer)*/
<<set $riddlelength to $answerarray.length>>
<<include [[fake letters]]>>
/*SET A NEW VARIABLE (merged) AS A COMBINATION OF THE REAL ANSWER (answerarray) AND 6 RANDOM LETTERS (fakeletters).*/
<<set $merged to $answerarray.concatUnique($fakeletters)>>
/*THEN, SET A NEW VARIABLE (scrambled) AS THE MERGED REAL AND FAKE LETTERS SHUFFLED*/
<<set $scrambled to $merged.shuffle()>>
<</nobr>>
<<nobr>>
<<set $fakeletters = $alphabet.pluckMany(6)>>
<<set $alphabet = $alphabetbackup>>
<</nobr>>
<<nobr>>
<strong><<switch $riddlelength>>
<<case 1>><<display [[1 letterhint]]>>
<<case 2>><<display [[2 letterhint]]>>
<<case 3>><<display [[3 letterhint]]>>
<<case 4>><<display [[4 letterhint]]>>
<<case 5>><<display [[5 letterhint]]>>
<<case 6>><<display [[6 letterhint]]>>
<<case 7>><<display [[7 letterhint]]>>
<<case 8>><<display [[8 letterhint]]>>
<<case 9>><<display [[9 letterhint]]>>
<<case 10>><<display [[10 letterhint]]>>
<<case 11>><<display [[11 letterhint]]>>
<<case 12>><<display [[12 letterhint]]>>
<<default>> There aren't enough dashes to display a word of this length
<</switch>></strong>
<</nobr>>-- -- - -- - - -- - - - -- - - - - -- - - - - - -- - - - - - - -- - - - - - - - -- - - - - - - - - -- - - - - - - - - - -- - - - - - - - - - - -I am owned by the King and the beggar alike
In every land treasured by babes in the night
I'm a helper on hand but I'm often opposed
Sometimes I'm bare but other times clothed
I am green in the garden, the captain of five
and the common folk know many good rules of mine
<<nobr>>
<<set $answer= ["thumb"]>>
<<set $answerarray= ["t","h","u","m","b"]>>
<<set $hint to "Hmmm...what is there 5 of?">>
<<set $hint2 to "It's close to you right now">>
<</nobr>>Mirror image, evil twin,
I am a game you lose or win.
Meet me in your equal foe –
Or Juliet and Romeo!
I’m useless in the wind and frost,
But useful when your power is lost.
<<nobr>>
<<set $answer= ["match"]>>
<<set $answerarray= ["m","a","t","c","h"]>>
<<set $hint to "Know what'power' means? Sure? ;)">>
<<set $hint2 to "What's another word for game?">>
<</nobr>><<set $CurHP = $CurHP-10>>
<<run Health2($CurHP, $MaxHP, "hzhealthbar", true)>>
<<goto [[riddle display]] >><div class="container"><div class="riddle">
<h1>You have been
defeated by the
words of darkness...</h1>
<<nobr>>
<<audio :playing fadeoverto 1 0>>
<<audio "gameover" volume 0.2 play>>
<<timed 6s>>
<<button "Try again">>
<<set $CurHP to 50>>
<<set $riddlelevel to 1>>
<<set $wisdom to 4>>
<<audio "button" volume 1 play>>
<<goto [[loading]]>>
<</button>>
<<audio "gameover" stop>>
<<audio "gameover" volume 0.1 play>>
<</timed>>
<</nobr>>
</div></div>
<div id="horizontalhealthbarbkg" class="hzbarbkg"><div id="horizontalhealthbar" class="hzbar"></div></div>
<<script>>$(document).one(':passagerender', function (ev) {
Health(State.variables.CurHP, State.variables.MaxHP, "horizontalhealthbar", true, ev.content);
});<</script>><div class="container"><div class="riddle">
<h1>Level $riddlelevel:</h1><<nobr>>
/*THIS MAKES HEALTH BAR DISPLAY AT THE START OF A PASSAGE*/
<<script>>$(document).one(':passagerender', function (ev) {
Health2(State.variables.CurHP, State.variables.MaxHP, "hzhealthbar", true, ev.content);
});<</script>>
<</nobr>><<nobr>>
<<switch $riddlelevel>>
<<case 1>>
<<include [[bowl]]>>
<<case 2>>
<<include [[lying]]>>
<<case 3>>
<<include [[earth]]>>
<<case 4>>
<<include [[wave]]>>
<<case 5>>
<<include [[bolt]]>>
<<case 6>>
<<include [[sentence]]>>
<<case 7>>
<<include [[ring]]>>
<<case 8>>
<<include [[e]]>>
<<case 9>>
<<include [[thumb]]>>
<<case 10>>
<<include [[match]]>>
<<default>>
you've seen every character riddle apparently...
<</switch>> <<include [[scrambled words]]>> /* <--LOOK */
<</nobr>><span id="length"></span>
<span id="letters"></span>
<span id="hint"></span>
<span class="textenter">
<div id="code-form"><<textbox "$code" "" >><<button "Go!">>
/* Sanitize $code value. */
<<set $code to $code.trim()>>
<<set $code to $code.toLowerCase()>>
/* Check $code value. */
<<if $answer.includesAny($code)>>
<<playlist "victory" volume 1 shuffle play>>
<<playlist "victory" fadeoverto 1.8 0>>
<<set $riddlelevel to $riddlelevel +1>>
<<timed 2s>>
<<playlist "victory" stop>>
<<if $riddlelevel is 11>>
<<goto [[victory]]>>
<<else>>
<<include [[plus wisdom]]>>
<<goto [[riddle display]]>>
<</if>>
<</timed>>
<<if $CurHP lte 40>>
<<set $CurHP = $CurHP+10>>
<<else>>
<</if>>
<<replace "#error">><<include [[random congratulations]]>> <</replace>>
<<else>>
/* Code is invalid, so show error. */
<<playlist "error" volume 1 shuffle play>>
<<playlist "error" fadeoverto 1.5 0>>
<<set $CurHP = $CurHP-10>>
<<run Health2($CurHP, $MaxHP, "hzhealthbar", true)>>
<<if $CurHP lte 0>>
<<replace "#error">> <strong>:( :( :(</strong> <</replace>>
<<timed 1.5s>>
<<playlist "error" stop>>
<<goto [[death]]>>
<</timed>>
<<else>>
<<replace "#error">> <strong> :( </strong> <</replace>>
<<timed 1.5s>>
<<playlist "error" stop>>
<<replace "#error">> <strong> :| </strong> <</replace>>
<</timed>>
<</if>>
<</if>>
<</button>>
</div></span><span id="error"></span>
<<nobr>><<button "Length">>
<<if $buttonlength is "ready" and $wisdom gt 0>>
<<replace "#length">>
<<include [[dash letter hints display]]>>
<</replace>>
<<include [[minus wisdom]]>>
<<set $buttonlength to "used">>
<<else>>
<<audio "button" volume 0.6 fadeoverto 1 0>>
<<timed 1s>><<audio "button" stop>><</timed>>
<</if>>
<</button>> -
<<button "Letters">>
<<if $buttonletters is "ready" and $wisdom gt 0>>
<<replace "#letters">>
$scrambled
<</replace>>
<<include [[minus wisdom]]>>
<<set $buttonletters to "used">>
<<else>>
<<audio "button" volume 0.6 fadeoverto 1 0>>
<<timed 1s>><<audio "button" stop>><</timed>>
<</if>>
<</button>> -
<<button "Hint">>
<<if $buttonhint is "ready" and $wisdom gt 0>>
<<replace "#hint">>
$hint
<</replace>>
<<include [[minus wisdom]]>>
<<set $buttonhint to "hint2">>
<<elseif $buttonhint is "hint2" and $wisdom gt 0>>
<<replace "#hint">>
$hint2
<</replace>>
<<include [[minus wisdom]]>>
<<set $buttonhint to "used">>
<<else>>
<<audio "button" volume 0.6 fadeoverto 1 0>>
<<timed 1s>><<audio "button" stop>><</timed>>
<</if>>
<</button>><</nobr>>
</div></div>
<<playlist "background" fadeoverto 1 0>>
<<timed 1s>>
<<playlist "background" stop>>
<<playlist "background" volume 1 shuffle play>>
<</timed>>!!A Riddle Room
!!!by Gil Walker
!!!!gogamewise.com
/*<div id="verticalhealthbarbkg" class="vertbarbkg"><div id="verticalhealthbar" class="vertbar"></div></div><<run Health($CurHP, $MaxHP, "verticalhealthbar", false)>>
*/
[[CREDITS|attribution]]
<<set $buttonlength to "ready">>
<<set $buttonletters to "ready">>
<<set $buttonhint to "ready">>
/*Exclamation mark means any passage WITHOUT 'bbar' tag displays below.*/
<<if !tags().includes("bbar")>> <div id="bottombar"><div id="bbblock"><div id="bbtext"> <div id="totalwisdom">
<span id="1wisdom"></span><span id="2wisdom"></span><span id="3wisdom"> </span><span id="4wisdom"></span>
</div>
<div id="hzhealthbarbkg" class="hzbarbkg">
<div id="hzhealthbar" class="hzbar"></div></div>
<<include [[wisdom display]]>>
<</if>>
<strong><<include [[congrats1]]>><<include [[congrats2]]>></strong><<set $congrats2 to random(1,12)>>
<<switch $congrats2>>
<<case 1>> cupcake!
<<case 2>> Big Bird!
<<case 3>> Donkey Kong!
<<case 4>> mate!
<<case 5>> Sherlock
<<case 6>> champ!
<<case 7>> big brain!
<<case 8>> dude!
<<case 9>> Heroic Hippo!
<<case 10>> Captain!
<<case 11>> Boss!
<<case 12>> Adventurer!
<<default>>
Hmm this is weird...
<</switch>><<set $congrats1 to random(1,12)>>
<<switch $congrats1>>
<<case 1>> You got this
<<case 2>> You did it
<<case 3>> Looks like you're pretty sharp after all
<<case 4>> And they said you couldn't do it
<<case 5>> You showed them
<<case 6>> Yeeeehaa! You go
<<case 7>> Booyeah
<<case 8>> Slam dunk
<<case 9>> You shoot, you score! Nice job
<<case 10>> Good work detective
<<case 11>> You're a smarty, smartypants
<<case 12>> Just like that
<<default>>
Hmm this is weird...
<</switch>><div class="container"><div class="riddle"><span id="loading">Loading...</span>
<<timed 3s>>
<<replace "#loading">>
<<button "Begin!">> <<goto [[riddle display]]>> <</button>>
<</replace>>
<</timed>>
<<script>>UIBar.stow()<</script>>
</div></div><<repeat 1s>>
<<set $seconds to $seconds - 1>>
<<if $seconds gt 0>>
<<replace "#countdown">>$seconds seconds til death<</replace>>
<<else>>
<<replace "#countdown">>Too Late!<</replace>>
<<playlist "error" volume 1 shuffle play>>
<<playlist "error" fadeoverto 1.5 0>>
<<set $CurHP = 0>>
<<run Health2($CurHP, $MaxHP, "hzhealthbar", true)>>
<<timed 1.5s>>
<<playlist "error" stop>>
<<goto [[death]]>>
<</timed>>
<<stop>>
<</if>>
<</repeat>>
<<nobr>>
→ Insert some text after 5 seconds with a transition
I want to go to…<<timed 5s t8n>> WONDERLAND!<</timed>>
→ Replace some text after 10 seconds
I like green <span id="eggs">eggs</span> and ham!\
<<timed 10s>><<replace "#eggs">>pancakes<</replace>><</timed>>
→ A execute <<goto>> after 10 seconds
<<timed 10s>><<goto "To the Moon, Alice">><</timed>>
→ Insert some text in 2 second intervals three times (at: 2s, 4s, 6s)
<<timed 2s>>Hi! Ho!
<<next>>Hi! Ho!
<<next>>It's off to work we go!
<</timed>>
→ Replace some text in 1 second intervals
I'll have <span id="drink">some water</span>, please.\
<<timed 1s>><<replace "#drink">>a glass of milk<</replace>>\
<<next>><<replace "#drink">>a can of soda<</replace>>\
<<next>><<replace "#drink">>a cup of coffee<</replace>>\
<<next>><<replace "#drink">>tea, southern style, sweet<</replace>>\
<<next>><<replace "#drink">>a scotch, neat<</replace>>\
<<next>><<replace "#drink">>a bottle of your finest absinthe<</replace>>\
<</timed>>
→ Set a $variable after 4 seconds, 3 seconds, 2 seconds, and 1 second
<<silently>>
<<set $choice to 0>>
<<timed 4s>>
<<set $choice to 1>>
<<next 3s>>
<<set $choice to 2>>
<<next 2s>>
<<set $choice to 3>>
<<next 1s>>
<<set $choice to 4>>
<</timed>>
<<silently>><div class="container"><div class="blackfont">
<<audio :playing fadeoverto 1 0>>
<<audio "gamewin" volume 0.5 play>>
<strong>You escaped
Into the light
VICTORY!</strong>
</div></div>BUTTON THAT REPLACES (span) LENGTH and also MINUSES WISDOM ICONS
<<button "Length">> <<replace "#length">><<include [[dash letter hints display]]>><</replace>>
<<if $wisdom gt 0>>
<<switch $wisdom>>
<<case 1>> <<replace "#1wisdom">> [empty] <</replace>>
<<case 2>> <<replace "#2wisdom">> [empty] <</replace>>
<<case 3>> <<replace "#3wisdom">> [empty] <</replace>>
<<case 4>> <<replace "#4wisdom">> [empty] <</replace>>
<<default>> there's an error in wisdom switch
<</switch>>
<<audio "wisdom" volume 0.3 fadeoverto 1.5 0>>
<<timed 1.5s>><<audio "wisdom" stop>><</timed>>
<<set $wisdom to $wisdom -1>>
<<else>>
<<audio "button" volume 0.6 fadeoverto 1 0>>
<<timed 1s>><<audio "button" stop>><</timed>>
<</if>>
<</button>>
<span id="1wisdom"> <img src="images/1wisdom.png" width="50%"> </span>
<span id="2wisdom"> <img src="images/1wisdom.png" width="50%"> </span>
<span id="3wisdom"> <img src="images/1wisdom.png" width="50%"> </span>
<span id="4wisdom"> <img src="images/1wisdom.png" width="50%"> </span>
<span id="length"> length span substitute </span>
/*ADD WISDOM ICONS (UP TO 4)*/
<<if $wisdom lt 4>>
<<switch $wisdom>>
<<case 0>> <<replace "#1wisdom">> <img src="images/1wisdom.png" width="50%"> <</replace>>
<<case 1>> <<replace "#2wisdom">> <img src="images/1wisdom.png" width="50%"> <</replace>>
<<case 2>> <<replace "#3wisdom">> <img src="images/1wisdom.png" width="50%"> <</replace>>
<<case 3>> <<replace "#3wisdom">> <img src="images/1wisdom.png" width="50%"> <</replace>>
<<default>> there's an error in adding wisdom switch
<</switch>>
<<audio "wisdom" volume 0.3 fadeoverto 1.5 0>>
<<timed 1.5s>><<audio "wisdom" stop>><</timed>>
<<set $wisdom to $wisdom -1>>
<<else>>
<<audio "button" volume 0.6 fadeoverto 1 0>>
<<timed 1s>><<audio "button" stop>><</timed>>
<</if>>
/*ADD WISDOM ICONS IF YOU HAVE LESS THAN 4*/
<<if $wisdom lt 4>>
<<set $wisdom to $wisdom +1>>
<<include [[wisdom display]]>>
<<audio "wisdom" volume 0.3 fadeoverto 1.5 0>>
<<timed 1.5s>><<audio "wisdom" stop>><</timed>>
<<else>>
<<audio "button" volume 0.6 fadeoverto 1 0>>
<<timed 1s>><<audio "button" stop>><</timed>>
<</if>>/*Minus wisdom if you have 1 or more wisdom*/
<<if $wisdom gt 0>>
<<set $wisdom to $wisdom -1>>
<<include [[wisdom display]]>>
<<audio "wisdom" volume 0.3 fadeoverto 1.5 0>>
<<timed 1.5s>><<audio "wisdom" stop>><</timed>>
<<else>>
<<audio "button" volume 0.6 fadeoverto 1 0>>
<<timed 1s>><<audio "button" stop>><</timed>>
<</if>>/*CHECKS AND DISPLAYS TOTAL WISDOM*/
<<timed 100ms>>
<<switch $wisdom>>
<<case 0>>
<<replace "#1wisdom">> <</replace>>
<<replace "#2wisdom">> <</replace>>
<<replace "#3wisdom">> <</replace>>
<<replace "#4wisdom">> <</replace>>
<<case 1>>
<<replace "#1wisdom">><img src="images/1wisdom.png" width="20%"><</replace>>
<<replace "#2wisdom">> <</replace>>
<<replace "#3wisdom">> <</replace>>
<<replace "#4wisdom">> <</replace>>
<<case 2>>
<<replace "#1wisdom">><img src="images/1wisdom.png" width="20%"><</replace>>
<<replace "#2wisdom">><img src="images/1wisdom.png" width="20%"><</replace>>
<<replace "#3wisdom">> <</replace>>
<<replace "#4wisdom">> <</replace>>
<<case 3>>
<<replace "#1wisdom">><img src="images/1wisdom.png" width="20%"><</replace>>
<<replace "#2wisdom">><img src="images/1wisdom.png" width="20%"><</replace>>
<<replace "#3wisdom">><img src="images/1wisdom.png" width="20%"><</replace>>
<<replace "#4wisdom">> <</replace>>
<<case 4>>
<<replace "#1wisdom">><img src="images/1wisdom.png" width="20%"><</replace>>
<<replace "#2wisdom">><img src="images/1wisdom.png" width="20%"><</replace>>
<<replace "#3wisdom">><img src="images/1wisdom.png" width="20%"><</replace>>
<<replace "#4wisdom">><img src="images/1wisdom.png" width="20%"><</replace>>
<</switch>>
<</timed>><div id="code-form"><<textbox "$code" "" >><<button "Guess!">>
/* Sanitize $code value. */
<<set $code to $code.trim()>>
<<set $code to $code.toLowerCase()>>
/* Check $code value. */
<<if $code is $answer >>
<<playlist "victory" volume 1 shuffle play>>
<<playlist "victory" fadeoverto 1.8 0>>
<<set $riddlelevel to $riddlelevel +1>>
<<timed 2s>>
<<playlist "victory" stop>>
<<if $riddlelevel is 11>>
<<goto [[victory]]>>
<<else>>
<<include [[plus wisdom]]>>
<<goto [[riddle display]]>>
<</if>>
<</timed>>
<<if $CurHP lte 40>>
<<set $CurHP = $CurHP+10>>
<<else>>
<</if>>
<<replace "#congratulations">>
<<include [[random congratulations]]>>
<</replace>>
<<else>>
/* Code is invalid, so show error. */
<<playlist "error" volume 1 shuffle play>>
<<playlist "error" fadeoverto 1.5 0>>
<<set $CurHP = $CurHP-10>>
<<run Health2($CurHP, $MaxHP, "hzhealthbar", true)>>
<<if $CurHP lte 0>>
<<timed 1.5s>>
<<playlist "error" stop>>
<<goto [[death]]>>
<</timed>>
<<else>>
<<timed 1.5s>>
<<playlist "error" stop>>
<<replace "#code-form">>
<<include [[textbox]] >>
<</replace>>
<</timed>>
<</if>>
<</if>>
<</button>>
</div>