<style>
body{
background-color: gray;
}</style>
<div align= "left" class="transbox"><p> @@.typed;
You awaken, as you have, as you will, forever...
@@</p></div>
<div style = "text-align: center">
<<if $end is 3>>
<img style= "display:inline;" src ="https://i.imgur.com/JEMVWhh.png">
<<button[[REPLAY? |Beginning 2]]>><</button>>
<<else>>
<img style= "display:inline;" src ="https://i.imgur.com/JEMVWhh.png">
<<button[[PLAY |Beginning 2]]>><</button>>
<</if>></div>
<<set $end to 0, $discount to 0, $sight to 0, $intro to 0, $introshop to 0, $introforest to 0, $introcombat to 0, $introquest to 0, $introtav to 0, $introcave to 0, $introtown to 0, $levelup to 1>>
<img class="center" src="https://i.imgur.com/Prg4Ds9.png"><div align= "center" class="transbox"><p>The hero, $name, was born and raised in the Kingdom's outer reaches. Before the war, $name was a farmer, simple and honest. When war ravaged the lands, $name took up her grandfather's sword, and swore an oath to protect and serve.</p></div>
<div style = "text-align:center;"><<button[[ACCEPT YOUR CALLING |MAIN]]>><<set $hptotal to 27, $hp to $hptotal, $level to 1,$class to "HERO", $quest to 0, $gold to 300, $armourlev to 1, $weaponlev to 1, $offlev to 1, $helmetlev to 1, $attack to 15, $ac to 4>><<set $playerimg to "https://i.imgur.com/Prg4Ds9.png">><</button>> <<button[[BACK |CHARACTER SELECT]]>><</button>></div>
<img class="center" src="https://i.imgur.com/AEagEaN.png"><div align= "center" class="transbox"><p>The saviour, $name, was once the beloved Princess of the old Kingdoms. When her Kingdom fell, she escaped with the Church and studied the art of healing and compassion. Upon completion of her studies, $name took up her magic and traveled the lands, pledging to heal and spread forgivness.</p></div><div style = "text-align:center;"><<button[[ACCEPT YOUR CALLING |MAIN]]>><<set $playerimg to "https://i.imgur.com/AEagEaN.png">><<set $hptotal to 44, $hp to $hptotal, $level to 3, $class to "SAVIOUR", $quest to 0, $gold to 300, $armourlev to 2, $weaponlev to 2, $offlev to 3, $helmetlev to 3, $attack to 11, $ac to 4>><</button>><<button[[BACK |CHARACTER SELECT]]>><</button>></div>
<img class="center" src="https://i.imgur.com/ZeGDr6r.png"><div align= "center" class="transbox"><p>The reaper, $name, worked at a desk job for the Demon Lord; the lowest tier of R.E.A.P.E.R. Retreive Energy And Powers, Earn Rewards. Disgruntled with her daily nine to five grind, $name entered the fray with her scythe and ravaged the lands, spreading carnage and hoping for a hell-damn pay raise.</p></div>
<div style = "text-align:center;"><<button[[ACCEPT YOUR CALLING |MAIN]]>><<set $hptotal to 40, $hp to $hptotal, $level to 8, $class to "REAPER", $quest to 0, $gold to 300, $armourlev to 7, $weaponlev to 7, $offlev to 8, $helmetlev to 8, $attack to 60, $ac to 7>><<set $playerimg to "https://i.imgur.com/ZeGDr6r.png">><</button>> <<button[[BACK |CHARACTER SELECT]]>><</button>></div>
<style>body {
background-image: url("https://i.imgur.com/50Z28qT.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><<if $introshop is 0>><div class="transbox"><p> @@.typed; OwO: You can buy things here!! Each food has its own usefulness, be sure to try them all out! If you ever need more money, complete quests or kill more monsters for that G-O-L-D!@@</p></div><</if>><<set $introshop to 1>><div class="transbox"><h1 style="text-align:center;">WELCOME TO ALFREDO'S SHOP</h1><h4 style="text-align:center;"><i>YOUR ONE-STOP-SHOP FOR ALL YOUR ADVENTURING NEEDS</i></h4><h3 style="text-align:center;">TODAY'S SPECIALS</h3></div>
<table style="width:100%;"><tr><th><u>GEAR</u></th>
<th></th>
<th></th>
<th><u>FOOD</u></th>
</tr>
<tr><<if $armourlev lt $level>><th><<button[[Armour Upgrade]]>><</button>></th>
<<else>><th><strike>Armour Upgrade</strike></th>
<</if>>
<th> 100 GOLD </th>
<th><<button[[Milk]]>><</button>></th>
<th> 5 GOLD </th>
</tr>
<tr><<if $weaponlev lt $level>><th><<button[[Weapon Upgrade]]>><</button>></th>
<<else>><th><strike>Weapon upgrade</strike></th>
<</if>>
<th> 200 GOLD </th>
<th><<button[[Bread]]>><</button>></th>
<th><<set $val to 10+$level*2>>$val GOLD </th>
</tr>
<tr><<if $helmetlev lt $level>><th><<button[[Helmet Upgrade]]>><</button>></th>
<<else>><th><strike>Helmet Upgrade</strike></th>
<</if>>
<th> 100 GOLD </th>
<th><<button[[Cheese]]>><</button>></th>
<th> 3 GOLD </th>
</tr>
<tr><<if $offlev lt $level>><th><<button[[Off-Hand Upgrade]]>><</button>></th>
<<else>><th><strike>Off-Hand Upgrade</strike></th>
<</if>>
<th> 175 GOLD </th>
<th><<button[[Ale]]>><</button>></th>
<th> 30 GOLD </th>
</tr>
</table><div style="text-align: center;"><<if $discount is 1>><<button[[SLEEP -- Restores all HP -- 30 GOLD |MAIN]]>><<set $hp to $hptotal, $gold to $gold - 30, $discount to 0>><</button>><<else>><<button[[SLEEP -- Restores all HP -- 50 GOLD |MAIN]]>><<set $hp to $hptotal, $gold to $gold - 50>><</button>><</if>></div><div class="transbox" style="text-align: center;"><p>BALANCE: $gold Gold</p></div><div style="text-align: center;"><<button[[BACK|TAVERN]]>><</button>></div>
<!-- HERO HELMET; done --><<if $helmetlev is 1 and $class is "HERO">><<set $head to "Wooden Helmet">><<elseif $helmetlev is 2 and $class is "HERO">><<set $head to "Bronze Helmet">><<elseif $helmetlev is 3 and $class is "HERO">><<set $head to "Iron Helmet">><<elseif $helmetlev is 4 and $class is "HERO">><<set $head to "Steel Helmet">><<elseif $helmetlev is 5 and $class is "HERO">><<set $head to "Artisan Helmet">><<elseif $helmetlev is 6 and $class is "HERO">><<set $head to "Doomfold Helmet">><<elseif $helmetlev is 7 and $class is "HERO">><<set $head to "Skyforged Helmet">><<elseif $helmetlev is 8 and $class is "HERO">><<set $head to "Heavenblessed Helmet">><<elseif $helmetlev is 9 and $class is "HERO">><<set $head to "Conqueror's Helmet">><<elseif $helmetlev is 10 and $class is "HERO">><<set $head to "Divine Helmet">> <</if>><!-- SAVIOUR CIRCLET; done --><<if $helmetlev is 1 and $class is "SAVIOUR">><<set $head to "Weak Circlet">><<elseif $helmetlev is 2 and $class is "SAVIOUR">><<set $head to "Tranquil Circlet">><<elseif $helmetlev is 3 and $class is "SAVIOUR">><<set $head to "Fireforged Circlet">><<elseif $helmetlev is 4 and $class is "SAVIOUR">><<set $head to "Fey Circlet">><<elseif $helmetlev is 5 and $class is "SAVIOUR">><<set $head to "Artisan Circlet">><<elseif $helmetlev is 6 and $class is "SAVIOUR">><<set $head to "Warforged Circlet">><<elseif $helmetlev is 7 and $class is "SAVIOUR">><<set $head to "Skyforged Circlet">><<elseif $helmetlev is 8 and $class is "SAVIOUR">><<set $head to "Heavenblessed Circlet">><<elseif $helmetlev is 9 and $class is "SAVIOUR">><<set $head to "Conqueror's Circlet">><<elseif $helmetlev is 10 and $class is "SAVIOUR">><<set $head to "Divine Circlet">> <</if>><!-- REAPER CROWN; done --><<if $helmetlev is 1 and $class is "REAPER">><<set $head to "Wooden Crown">><<elseif $helmetlev is 2 and $class is "REAPER">><<set $head to "Bronze Crown">><<elseif $helmetlev is 3 and $class is "REAPER">><<set $head to "Iron Crown">><<elseif $helmetlev is 4 and $class is "REAPER">><<set $head to "Steel Crown">><<elseif $helmetlev is 5 and $class is "REAPER">><<set $head to "Blood Crown">><<elseif $helmetlev is 6 and $class is "REAPER">><<set $head to "Doomfold Crown">><<elseif $helmetlev is 7 and $class is "REAPER">><<set $head to "Hellforged Crown">><<elseif $helmetlev is 8 and $class is "REAPER">><<set $head to "Hades-blessed Crown">><<elseif $helmetlev is 9 and $class is "REAPER">><<set $head to "Conqueror's Crown">><<elseif $helmetlev is 10 and $class is "REAPER">><<set $head to "Demonic Crown">> <</if>>
<!-- ARMOUR; done --><<if $armourlev is 1>><<set $body to "Plain">><<elseif $armourlev is 2>><<set $body to "Simple">><<elseif $armourlev is 3>><<set $body to "Tough">><<elseif $armourlev is 4>><<set $body to "Mithril">><<elseif $armourlev is 5>><<set $body to "Magic">><<elseif $armourlev is 6>><<set $body to "Artisian">><<elseif $armourlev is 7>><<set $body to "Crystalline">><<elseif $armourlev is 8>><<set $body to "Blessed">><<elseif $armourlev is 9>><<set $body to "Conqueror's">><<elseif $armourlev is 10>><<set $body to "Ichorian">><</if>><<if $class is "HERO" and $armourlev lte 10>><<set $body to $body + " Armour">><<elseif $armourlev lte 10>><<set $body to $body + " Robes">><</if>><!-- WEAPON; done --><<if $weaponlev is 1>><<set $weapon to "Stick">><<elseif $weaponlev is 2>><<set $weapon to "Simple Wooden">><<elseif $weaponlev is 3>><<set $weapon to "Metal">><<elseif $weaponlev is 4>><<set $weapon to "Mithril">><<elseif $weaponlev is 5>><<set $weapon to "Magic">><<elseif $weaponlev is 6>><<set $weapon to "Artisian">><<elseif $weaponlev is 7>><<set $weapon to "Crystalline">><<elseif $weaponlev is 8>><<set $weapon to "Blessed">><<elseif $weaponlev is 9>><<set $weapon to "Conqueror's">><<elseif $weaponlev is 10>><<set $weapon to "Ichorian">><</if>><<if $class is "HERO" and $weaponlev lte 10>><<set $weapon to $weapon + " Sword">><<elseif $class is "SAVIOUR" and $weaponlev lte 10>><<set $weapon to $weapon + " Wand">><<elseif $class is "REAPER" and $weaponlev lte 10>><<set $weapon to $weapon + " Scythe">><</if>><!-- OFF-HAND; wip --><<if $offlev is 1>><<set $offhand to "Basic">><<elseif $offlev is 2>><<set $offhand to "Simple">><<elseif $offlev is 3>><<set $offhand to "Artic">><<elseif $offlev is 4>><<set $offhand to "Mithril">><<elseif $offlev is 5>><<set $offhand to "Magic">><<elseif $offlev is 6>><<set $offhand to "Artisian">><<elseif $offlev is 7>><<set $offhand to "Crystalline">><<elseif $offlev is 8>><<set $offhand to "Blessed">><<elseif $offlev is 9>><<set $offhand to "Conqueror's">><<elseif $offlev is 10>><<set $offhand to "Ichorian">><</if>><<if $class is "HERO" and $offlev lte 10>><<set $offhand to $offhand + " Shield">><<elseif $class is "SAVIOUR" and $offlev lte 10>><<set $offhand to $offhand + " Orb">><<elseif $class is "REAPER" and $offlev lte 10 >><<set $offhand to $offhand + " Flame">><</if>><span class="icon">
[img[$playerimg]]
</span><div class ="transbox"><table style="width:100%; height:100%;">
<tr><th>CHARACTER STATS</th>
<th>GEAR</th></tr>
<tr><th>NAME: $name</th>
<th>HEAD: $head</th></tr>
<tr><th>LEVEL: $level <<set $leveltotal to 13*($level+1)>></th>
<th>BODY: $body</th></tr>
<tr><th>ATTACK: $attack</th>
<th></th></tr>
<tr><th>ARMOUR CLASS: $ac</th>
<th>WEAPON: $weapon</th></tr>
<tr><th>HEALTH POINTS: $hp / $hptotal</th>
<th>OFF-HAND: $offhand</th></tr>
<tr><th>BREAD COUNT: $bread </th>
<th>GOLD: $gold Pieces</th>
</tr>
</table></div>
<<button
[[QUEST PROGRESS |QUEST PROGRESS]]>><</button
>><<button[[BACK|MAIN]]>><</button
>>
<style>body {
background-image: url("https://i.imgur.com/50Z28qT.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div align= "center" class="transbox"><p><<if $gold gt 200 or $gold eq 200>><<set $gold to $gold - 200>>PURCHASE COMPLETE, WEAPON UPGRADED
BALANCE: $gold GOLD
ATTACK PLUS 3
NEW ATTACK: $attack + 3 <<set $attack to $attack + 3>> : $attack
<<set $weaponlev to $weaponlev + 1>>
<<else>>INSUFFICIENT FUNDS. <</if>>
<<button[[BACK|SHOP]]>><</button>></p></div>
<style>body {
background-image: url("https://i.imgur.com/50Z28qT.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style>
<div align= "center" class="transbox"><p><<if $gold gt 100 or $gold eq 100>><<set $gold to $gold - 100>>PURCHASE COMPLETE, ARMOUR UPGRADED
BALANCE: $gold GOLD
ARMOUR CLASS PLUS 1
NEW AC: $ac + 1 <<set $ac to $ac + 1>> : $ac
<<set $armourlev to $armourlev + 1>>
<<else>>INSUFFICIENT FUNDS.<</if>>
<<button[[BACK|SHOP]]>><</button>>
</p></div>
<style>body {
background-image: url("https://i.imgur.com/50Z28qT.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div align= "center" class="transbox"><p><<if $gold gt 100 or $gold eq 100>><<set $gold to $gold - 100>>PURCHASE COMPLETE, HELMET UPGRADED
BALANCE: $gold GOLD
ARMOUR CLASS PLUS 1
NEW AC: $ac + 1 <<set $ac to $ac + 1>> : $ac
<<set $helmetlev to $helmetlev + 1>>
<<else>>INSUFFICIENT FUNDS. <</if>>
<<button[[BACK|SHOP]]>><</button>></p></div>
<style>body {
background-image: url("https://i.imgur.com/50Z28qT.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div align= "center" class="transbox"><p><<if $gold gt 175 or $gold eq 175>><<set $gold to $gold - 175>>PURCHASE COMPLETE, OFF-HAND UPGRADED
ATTACK PLUS 3
NEW ATTACK: $attack + 3 <<set $attack to $attack + 3>> : $attack
BALANCE: $gold GOLD
<<set $offlev to $offlev + 1>>
<<else>>INSUFFICIENT FUNDS. <</if>>
<<button[[BACK|SHOP]]>><</button>></p></div>
<style>body {
background-image: url("https://i.imgur.com/50Z28qT.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div align= "center" class="transbox"><p><<if $gold gte 5>>
<<set $gold to $gold - 5>>You feel sleepy... Maybe you should rest?
<<set $discount to 1>>
<<else>>INSUFFICIENT FUNDS.
<</if>>
"He needs some milk!" - Random Citizen
<<button[[BACK|SHOP]]>><</button>>
</p></div>
<style>body {
background-image: url("https://i.imgur.com/50Z28qT.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div align= "center" class="transbox"><p><<if $gold gte 10+$level*2>><<set $gold to $gold - (10+$level*2), $bread to $bread + 1>>
You buy one Bread. You now have $bread Bread.
BALANCE: $gold GOLD
<<else>>INSUFFICIENT FUNDS. <</if>>
"I like Bread" - Bats
<<button[[BACK|SHOP]]>><</button>></p></div>
<style>body {
background-image: url("https://i.imgur.com/50Z28qT.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div align= "center" class="transbox"><p><<if $gold gte 3>>
<<set $gold to $gold - 3>><<if $hp + 5 lte $hptotal>>You eat some cheese and recover your HP...
RESTORED 5 HP <<set $hp to $hp + 5>><<elseif $hp eq $hptotal>>You are at full HP...
You feel cheesy.<<else>>You eat some bread and recover your HP...
<<set $val to $hptotal - $hp>>RESTORED $val HP
<<set $hp to $hptotal>><</if>>HEALTH: $hp / $hptotal
BALANCE: $gold GOLD
<<else>>INSUFFICIENT FUNDS. <</if>>
<<button[[BACK|SHOP]]>><</button>></p></div>
<style>body {
background-image: url("https://i.imgur.com/50Z28qT.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div align= "center" class="transbox"><p><<if $gold gte 30>>
<<set $gold to $gold - 30, $sight to 1>>You drink some ale... Nothing happens?
BALANCE: $gold GOLD
<<else>>INSUFFICIENT FUNDS. <</if>>
<<button[[BACK|SHOP]]>><</button>></p></div>
<style>body {
background-image: url("https://i.imgur.com/50Z28qT.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style>
<div align= "left" class="transbox"><h1 style="text-align:center;">WELCOME TO ALFREDO'S TAVERN</h1></div>
<<if $introtav is 0>><div align= "left" class="transbox"><p> @@.typed; OwO: This is Alfredo's Tavern! You can buy upgrades and food to the left and accept quests on the right! For now, let's get a job!! @@</p></div><</if>><<set $introtav to 1>>
<table style ="width: 120%;"><tr><th><<button[[SEE WHAT'S FOR SALE|SHOP]]>><</button>></th><th></th><th><<button[[GET A JOB|QUESTBOARD]]>><</button>></th></tr><tr><th><<button[[BACK|MAIN]]>><</button>></th></tr></table><style>body {
background-image: url("https://i.imgur.com/IxWnvcI.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div style="text-align:center;"><<if $introquest is 0>><div align= "left" class="transbox"><p> @@.typed; OwO: Hmm, seems like there's only one job a the moment. Press the quest name to accept it! Quest details are below and you can always check your progress from the character page!@@</p></div><</if>><<set $introquest to 1>><<if $levelup is 0>><div align= "left" class="transbox"><p> Congratulations! You leveled up! New items unlocked in the store!</p></div><</if>><<set $levelup to 1>><<if $quest is 0>><<if $level is 1>><<button
[[MUSHROOM ATTACK |QUESTBOARD]]>><<set $quest to 1, $droptotal to 2, $drop to 0, $reward to 250>><</button>>
<div align= "left" class="transbox"><p>The Mushrooms in <b>the forest</b> have been growing wild lately, The King orders for some... weeding.
REWARD: 250 Gold</p></div>
<<elseif $level is 2>>
<<button[[SPORES GALORE |QUESTBOARD]]>><<set $quest to 2, $droptotal to 3, $drop to 0, $reward to 300>><</button>>
<div align= "left" class="transbox"><p>The alchemist requires mushroom caps from <b>the forest</b> for his research
REWARDS: 300 Gold</p></div>
<<elseif $level is 3>>
<<button[[VINES AND PLANTS AND TREES OH MY |QUESTBOARD]]>><<set $quest to 3, $droptotal to 2, $drop to 0, $reward to 300>><</button>>
<div align= "left" class="transbox"><p>Alfredo is concerned about the trees that have risen in <b>the forest</b>...
REWARDS: 300 Gold</p></div>
<<elseif $level is 4>><<if $quest4 is 0>>
<<button[[A TEDIOUS BARGIN |QUESTBOARD]]>><<set $quest to 4, $droptotal to 3, $drop to 0, $quest4 to 1, $reward to 150>><</button>>
<div align="left" class="transbox"><p>The Bankers have heard about your latest victories and want to set up a meeting <b>in town.</b>
REWARDS: 150 Gold</p></div><</if>>
<<if $quest5 is 0>><<button[[THE MISFITS |QUESTBOARD]]>><<set $quest to 5, $droptotal to 2, $drop to 0, $quest5 to 1, $reward to 200>><</button>>
<div align= "left" class="transbox"><p>Infamy runs fast, the punks are <b> in town </b> for your hard owned gold.
REWARDS: 200 Gold </p></div><</if>>
<<elseif $level is 5>><<if $quest7 is 0>>
<<button[[THE WASTED TIME|QUESTBOARD]]>><<set $quest to 7, $droptotal to 3, $drop to 0, $quest7 to 1, $reward to 200>><</button>>
<div align= "left" class="transbox"><p>There's strange sounds coming from the center of <b> town</b>. Investigate?
REWARDS: 200 Gold </p></div><</if>>
<<elseif $level is 6>><<if $quest9 is 0>>
<<button[[LOVE AND DISCIPLINE|QUESTBOARD]]>><<set $quest to 9, $droptotal to 2, $drop to 0, $quest9 to 1, $reward to 100>><</button>>
<div align= "left" class="transbox"><p>Sir Timothy wishes for someone to teach his children a lesson. They're harrasing townsfolk and being smucks.
REWARDS: 100 Gold </p></div><</if>>
<<if $quest10 is 0>>
<<button[[AN UNSAVORY ARRANGEMENT|QUESTBOARD]]>><<set $quest to 10, $droptotal to 2, $drop to 0, $quest10 to 1, $reward to 250>><</button>>
<div align= "left" class="transbox"><p>T̶͖͓͚̜̥̆̋̈́̀̈́̚̚ḩ̴̱̤̾̋́̃E̸̲̠͔̥̣̜̒ ̵̧̞͇͉͖̭̠̹͚̺͐̎́d̷̡͖̬͓͗̓͝Ȩ̴̛̣̦̭͈̟͆̾̆͑͐̎̋̈́̌m̶͚̦̩̳͈̄̍̑̈́O̵̬͇̅͌̋͗n̵̢͙̰͙͕͊̃̇͑̑̊̈́̈́̉̚ ̴͉̥̻̮͚͈̖͌̆̃̔̒̀̔̈̑͂L̴̹͓͙͖͂̕ͅǫ̴̢̨͉̘̫͊R̶̡̡͓̠̼͙̼̬͓̾ͅd̴̫̜͖͔͓̱̂̔̾͊ ̵̧͈͙̬̮͓̤̱̜̃͆̚͘Ś̵͍̟̯̐͋̀̈́̅̾͋̊͒e̵͕̮̹͊͛̚͜N̴̩̼̬͓̠̞͈̲̣̞̽̈̄́͑d̷̩̝̐͋̅̆͋̂̃Ş̵̣̟̣̜̥̆̿͌͑͋̂͘͜ ̴͊ͅḧ̶͙̻́͐̆̉̊́I̵̡̭̿̔ş̶͍̟̳̞̖͙̱̫̩̽͝ ̷̛̥͇͚̤̥̊̑̒̓̌̕͝R̴̟̍̓͋͗̕ę̶̧͓̯̲͕̲̳̑̏̍̏̀̾͑̌̃̏G̴̣̔͛̀͘͜ą̵̡̢͕̝̙̻̲̯̂̽̌̋́ͅR̸͕̻̭̜̫͖̥̽̈́̉́̎͆͂͜d̶̺̜̀̽̾̿̋́̕Ş̴̦̱͚͔͚̳̤̘̓͜... $name. <b> T </b> o <b>W </b> n
REWARDS: 250 Gold </p></div><</if>>
<<elseif $level is 7>><<if $quest11 is 0>>
<<button[[SLIMES!!|QUESTBOARD]]>><<set $quest to 11, $droptotal to 2, $drop to 0, $quest11 to 1, $reward to 200>><</button>>
<div align= "left" class="transbox"><p>Slimes have gained sentience in <b> the caverns</b>. Alfredo wants you to check it out.
REWARDS: 200 Gold </p></div><</if>>
<<if $quest12 is 0>><<button[[THE ROCK SUMMONING|QUESTBOARD]]>><<set $quest to 12, $droptotal to 3, $drop to 0, $quest12 to 1, $reward to 105>><</button>>
<div align= "left" class="transbox"><p>Strange fires have appeared in <b> the caverns</b>. The King is rewarding those who would bring back the summoned creatures.
REWARDS: 105 Gold</p></div><</if>>
<<elseif $level is 8>><<button[[GOLEM|QUESTBOARD]]>><<set $quest to 13, $droptotal to 2, $drop to 0, $reward to 400>><</button>>
<div align= "left" class="transbox"><p>The Quake from <b>the caverns</b> last night made sleep restless for everyone. Investigate.
REWARDS: 400 Gold </p></div>
<<elseif $level is 9>><<if $quest14 is 0>>
<<button[[SLIMES!! - THE RETURN |QUESTBOARD]]>><<set $quest to 14, $droptotal to 2, $drop to 0, $quest14 to 1, $reward to 300>><</button>>
<div align= "left" class="transbox"><p>The Slimes return, stronger and slime-ier than ever.
REWARDS: 300 Gold </p></div><</if>>
<<elseif $level is 10 and $class is "HERO">>
<<button[[THE HERO'S CALLING |MAIN QUEST HERO]]>><</button>>
<<elseif $level is 10 and $class is "SAVIOUR">>
<<button[[THE SAVIOUR'S CALLING |MAIN QUEST SAVIOUR]]>><</button>>
<<elseif $level is 10 and $class is "REAPER">>
<<button[[THE REAPER'S CALLING |MAIN QUEST REAPER]]>><</button>>
<</if>>
<<else>><div align= "left" class="transbox"><p>Nothing today, check back later!</p></div><</if>>
<<if $drop gte $droptotal and $quest is not 0>><<button[[TURN IN|QUESTBOARD]]>><<if $level is 1 or $level is 2 or $level is 3 or $level is 8 or ($level is 4 and $quest4 is 1 and $quest5 is 1) or ($level is 5 and $quest7 is 1) or ($level is 6 and $quest9 is 1 and $quest10 is 1) or ($level is 7 and $quest11 is 1 and $quest12 is 1) or ($level is 9 and $quest14 is 1)>><<set $level to $level + 1, $quest to 0, $gold to $gold + $reward, $levelup to 0>><<if $class is "HERO">><<set $hptotal to $hptotal + 10, $attack to $attack + 3>><<elseif $class is "SAVIOUR">><<set $hptotal to $hptotal + 12, $attack to $attack + 3>><<elseif $class is "REAPER">><<set $hptotal to $hptotal + 8, $attack to $attack + 5>><</if>><</if>><<set $quest to 0>><</button>><</if>><<button[[BACK|TAVERN]]>><</button>>
</div><style>body {
background-image: url("https://i.imgur.com/yRGjNGW.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
text-align: center;
}</style><div style="text-align: center">
<<if $intro is 0>><div align= "left" class="transbox"><p> @@.typed; OwO: Welcome to the world! Well, it's really only a village, there isn't much to see and--
I digress. You can view your stats by pressing the character button, go to the forest by pressing on those trees there, and visit Alfredo, my dear friend, by pressing his tavern.
More places will be unlocked as you level. For now, I suggest you start by getting a job in the tavern.
OK, bye!@@</p></div><<set $intro to 1>>
<<button[img[https://i.imgur.com/jgnWPGP.png?1][TAVERN]]>><</button>>
<<else>>
<<button[[CHARACTER]]>><</button>>
<<button[img[https://i.imgur.com/jgnWPGP.png?1][TAVERN]]>><</button>><<if $quest gte 0>> <<button[img[https://i.imgur.com/Y1f5FhW.png?1][GO TO THE FOREST]]>><</button>><</if>><<if $level gte 4>><<if $introtown is 0>><div align= "left" class="transbox"><p> @@.typed; OwO: My, my, the Demon Lord is spreading unrest throughout the lands. The townsfolk have been afflicted and many are now rampaging!! Quests and combat in the town have been unlocked!@@</p></div><</if>><<set $introtown to 1>> <<button[img[https://i.imgur.com/BGj72Mk.png?1][LOOK FOR TROUBLE]]>><</button>><</if>><<if $level gte 7>><<if $introcave is 0>><div align= "left" class="transbox"><p> @@.typed; OwO: He has risen! And brought the rocks and slimes in the caverns to life. Oh dear...
Quests and combat in the caverns have been unlocked!@@</p></div><</if>><<set $introcave to 1>> <<button[img[https://i.imgur.com/Rlr23me.png?1][GO TO THE CAVERN]]>><</button>>
<</if>>
<</if>>
</div>
<!--
[[GET MONEY|MAIN][$gold to $gold + 500]]
[[DAMAGE|MAIN][$hp to $hp - 13]]
[[LOSE MP|MAIN][$mp to $mp - 5]]-->
<div class="transbox" ><h1 style ="text-align: center;"> Choose your story</h1></div><<if $end is 0>><div align= "left" class="transbox"><p>@@.typed; OwO: You see, $name, there are many sides to the same story. Select the HERO and see what will happen when the Demon Lord awakens!@@</p></div>
<<elseif $end is 1>><div align= "left" class="transbox"><p>@@.typed;
OwO: From the City of Asethera, there is one within the safety of the Church who is capable of saving the Hero from the clutches of the Demon Lord. Choose the Saviour and see if there's a better ending!@@</p></div>
<<elseif $end is 2>><div align= "left" class="transbox"><p>@@.typed;
OwO: The Demon Lord is ravaging the lands now. By his side, there are Demon Lord and Generals. But, there is also someone whose story is very important. A minor demoness, the Reaper, who plays a critical role in this story of three sides. Choose her, see her side of it all.@@</p></div><</if>>
<table style="width: 100%; text-align: center; font-size: 120%;"><tr><th style = "max-width: 800px;"><<button[img["https://i.imgur.com/Gpf3IvA.png"][HERO]]>><</button>></th><th style = "max-width: 400px;"><<if $end lt 1>>[img[https://i.imgur.com/Az3r0xi.png]]<<else>><<button[img["https://i.imgur.com/l0WCPuh.png"][SAVIOUR]]>><</button>><</if>></th><th style = "max-width: 400px;"><<if $end lt 2>>[img[https://i.imgur.com/oUCTGBC.png]]<<else>><<button[img[https://i.imgur.com/U1LWerC.png][REAPER]]>><</button>><</if>></th></tr><tr><th style= "max-width: 400px;"><u>HERO</u></th><th><u>SAVIOUR <<if $end lt 1>>(Locked)<</if>></u></th><th><u>REAPER<<if $end lt 2>>(Locked)<</if>></u></th></tr></table>
<<set $quest4 to 0, $quest5 to 0, $quest6 to 0, $quest7 to 0, $quest8 to 0, $quest9 to 0, $quest10 to 0, $quest11 to 0, $quest12 to 0, $quest13 to 0, $quest14 to 0, $quest15 to 0, $bread to 2>>
<div align= "left" class="transbox"><p> @@.typed; OwO: It's time. Let's go. Onwards, to the caverns!!@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[To the Caverns!]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><div align= "left" class="transbox"><p> @@.typed; OwO: It's time. Let's go. Onwards, to the caverns!!@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[To the Caverns!]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><div align= "left" class="transbox"><p> @@.typed; OwO: It's time. Let's go. Onwards, to the caverns!!@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[To the Caverns!!]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><div align= "center" class="transbox"><p><<if $quest is 0>>
No quest in progress
<<else>>
QUEST #$quest
You have $drop / $droptotal QUEST ITEMS
<<if $drop gte $droptotal>>
QUEST COMPLETE. <<button
[[TURN IN |QUESTBOARD]]>><</button>>
<</if>>
<</if>>
<<button[[BACK|CHARACTER]]>><</button>></p></div>
<style>body {
background-image: url("https://i.imgur.com/9T9NWlB.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div style="text-align:center;">
<<if $introforest is 0>><div align= "left" class="transbox"><p> @@.typed; OwO: You stumble upon a dark and dreary forest... Haha just kidding. This place is pretty cute. Click on the swords to start a fight, or go back to town, punk =w= @@</p></div><</if>><<set $introforest to 1>>
<<if $introcombat is 0>><div align= "left" class="transbox"><p> @@.typed; OwO: Crash course on fighting!! There's three attack styles in this world. Water, Fire, and Earth! Water beats Fire beats Earth beats Water, got it?
You go first. Pick your attack! After, the monster goes, and so on until someone *cackles* dies! Easy peasy, no? If you're running low on health, you can eat some bread!! It doesn't take a turn, I asked the dev to let you have this hehe, so thank me later! @@</p></div><</if>><<set $introcombat to 1>>
<<button [img[https://i.imgur.com/SRtUHkw.png?1][FIGHT! (Forest)]]>><</button>>
<<button[[BACK|MAIN]]>><</button>>
<<set $turn to 0>>
<<if $quest is 1>>
<<set $monster to "Mushy", $monsterhptotal to 75, $monsterlevel to $level, $monsterattack to 7 + $level, $monsterhp to $monsterhptotal, $description to "He's a fun(guy).", $loot to 50, $monsterimg to "https://i.imgur.com/mJSu6Yo.png">>
<<elseif $quest is 2>><<set $monster to "Mushy's Brother", $monsterhptotal to 88, $monsterlevel to $level, $monsterattack to 10 + $level, $monsterhp to $monsterhptotal, $description to "You took his brother.", $loot to 70, $monsterimg to "https://i.imgur.com/iaHWOh3.png">>
<<elseif $quest is 3>><<set $monster to "Tree Warden", $monsterhptotal to 105, $monsterac to 14, $monsterlevel to $level, $monsterattack to 13 + $level, $monsterhp to $monsterhptotal, $description to "We don't welcome your kind.", $loot to 75, $monsterimg to "https://i.imgur.com/CT2cUwA.png">>
<<else>><<set $monster to "Tree Warrior", $monsterhptotal to 125, $monsterac to 16, $monsterlevel to $level, $monsterattack to 14 + $level, $monsterhp to $monsterhptotal, $description to "We don't welcome your kind!!", $loot to 80, $monsterimg to "https://i.imgur.com/CT2cUwA.png">><</if>></div>
<<if $class is "REAPER">><<set $monster to $monster+"'s Soul">><<set $monsterattack to $monsterattack - 4>><<elseif $class is "SAVIOUR">><<set $monsterhptotal to $monsterhptotal/2, $monsterhp to $monsterhptotal>><</if>>
<style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div style="text-align:center;">
<<button [img[https://i.imgur.com/SRtUHkw.png?1][FIGHT! (Cavern)]]>><</button>>
<<button[[BACK|MAIN]]>><</button>>
<<set $turn to 0>>
<<if $quest is 11>><<set $monster to "Slimey", $monsterhptotal to 240, $monsterattack to 25 + $level, $monsterhp to $monsterhptotal, $description to "Slimey likes to eat goo.", $loot to 140, $monsterimg to "https://i.imgur.com/8hUMmlB.png">>
<<elseif $quest is 12>><<set $monster to "RO-RO, The Rock", $monsterhptotal to 265, $monsterattack to 27 + $level, $monsterhp to $monsterhptotal, $description to "She is very proud of her boulder.", $loot to 110, $monsterimg to "https://i.imgur.com/c2sqjHU.png">>
<<elseif $quest is 13>><<set $monster to "MAMA ROCKU", $monsterhptotal to 330, $monsterattack to 29 + $level, $monsterhp to $monsterhptotal, $description to "You hurt my baby! You pay!", $loot to 275, $monsterimg to "https://i.imgur.com/idZkqWo.png">>
<<elseif $quest is 14>><<set $monster to "Slimey, All Slimed Up", $monsterhptotal to 260, $monsterattack to 28+ $level, $monsterhp to $monsterhptotal, $description to "The strong slimey, but still in love with goo.", $loot to 125, $monsterimg to "https://i.imgur.com/XVNxFzM.png">>
<<else>>
<<set $monster to "Bats", $monsterhptotal to 220, $monsterattack to 27+ $level, $monsterhp to $monsterhptotal, $description to "Bread? I like bread. OwO", $loot to 140, $monsterimg to "https://i.imgur.com/5ZujMMh.png">>
<</if>></div>
<<set $monsterattack to $monsterattack - 8>>
<<if $class is "REAPER">><<set $monster to $monster+"'s Soul">><<set $monsterattack to $monsterattack - 12>><<elseif $class is "SAVIOUR">><<set $monsterhptotal to $monsterhptotal/2, $monsterhp to $monsterhptotal>><</if>>
<style>body {
background-image: url("https://i.imgur.com/yRGjNGW.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div style="text-align:center;">
<<button [img[https://i.imgur.com/SRtUHkw.png?1][FIGHT! (Town)]]>><</button>>
<<button[[BACK|MAIN]]>><</button>>
<<set $turn to 0>>
<<if $quest is 4>><<set $monster to "Banker", $monsterhptotal to 145, $monsterattack to 16 + $level, $monsterhp to $monsterhptotal, $description to "Would you like to take a loan?", $loot to 75, $monsterimg to "https://i.imgur.com/MxTcvIa.png">>
<<elseif $quest is 5>><<set $monster to "Punk", $monsterhptotal to 155, $monsterattack to 17+ $level, $monsterhp to $monsterhptotal, $description to "OI! Why you looking at me like that!", $loot to 60, $monsterimg to "https://i.imgur.com/XE8uGKu.png">>
<<elseif $quest is 7>><<set $monster to "Clock", $monsterhptotal to 180, $monsterattack to 22+ $level, $monsterhp to $monsterhptotal, $description to "Tick... Tick... Tock.", $loot to 80, $monsterimg to "https://i.imgur.com/VLmEKXQ.png">>
<<elseif $quest is 9>><<set $monster to "Snotty Brat", $monsterhptotal to 195, $monsterattack to 23+ $level, $monsterhp to $monsterhptotal, $description to "Ugh, As - If! (Clueless, 1995)", $loot to 135, $monsterimg to "https://i.imgur.com/u5oIwY7.png">>
<<elseif $quest is 10>><<set $monster to "Ruffian", $monsterhptotal to 220, $monsterattack to 27+ $level, $monsterhp to $monsterhptotal, $description to "I'll smack your bones around, heh.", $loot to 100, $monsterimg to "https://i.imgur.com/XgnOWjj.png">>
<<else>>
<<set $monster to "City Folk", $monsterhptotal to 185, $monsterattack to 23 + $level, $monsterhp to $monsterhptotal, $description to "Really, you want to fight?", $loot to 85, $monsterimg to "https://i.imgur.com/tjX0DDw.png">><</if>></div>
<<set $monsterattack to $monsterattack - 6>>
<<if $class is "REAPER">><<set $monster to $monster+"'s Soul">><<set $monsterattack to $monsterattack - 6>><<elseif $class is "SAVIOUR">><<set $monsterhptotal to $monsterhptotal/2, $monsterhp to $monsterhptotal>><</if>>
<style>body {
background-image: url("https://i.imgur.com/9T9NWlB.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align="center" class="transbox"><p><<if $action is "Bread">>$name Consumes one bread<<else>><<if $turn is 0>>$monster stares at you...<<elseif $turn is 2>>$name attacks with $action and $monster defends with $monsteraction<<if $action is $monsteraction>>
Neutral Damage. $monster takes $attack damage <<set $monsterhp to $monsterhp - $attack>><<elseif ($action is "WATER" and $monsteraction is "FIRE") or ($action is "EARTH" and $monsteraction is "WATER") or ($action is "FIRE" and $monsteraction is "EARTH")>>
CRITICAL HIT! $monster takes <<set $val to $attack*2>> $val damage<<set $monsterhp to $monsterhp - $attack*2>><<else>>
CRITICAL MISS! $monster takes <<set $val to Math.trunc($attack/2)>> $val damage<<set $monsterhp to $monsterhp - Math.trunc($attack/2)>><</if>><<elseif $turn is 1>>$monster attacks with $monsteraction and $name defends with $action<<if $action is $monsteraction>>
Neutral Damage. $name takes $monsterattack damage but $ac damage is blocked! <<if ($monsterattack - $ac) lte 0>><<else>><<set $hp to $hp - ($monsterattack - $ac)>><</if>><<elseif ($action is "WATER" and $monsteraction is "FIRE") or ($action is "EARTH" and $monsteraction is "WATER") or ($action is "FIRE" and $monsteraction is "EARTH")>>
CRITICAL MISS! $name takes <<set $val to $monsterattack/2>> $val damage but $ac damage is blocked! <<if ($val - $ac) lte 0>><<else>><<set $hp to $hp - ($val - $ac)>><</if>><<else>>
CRITICAL HIT! $name takes <<set $val to $monsterattack*2>> $val damage but $ac damage is blocked!<<if ($val - $ac) lte 0>><<else>><<set $hp to $hp - ($val - $ac)>><</if>><</if>><</if>><</if>>
<<if $monsterhp lte 0>><<set $sight to 0>>YOU WIN! You find $loot Gold Pieces <<if $quest is 1 or $quest is 2 or $quest is 3>> and <<set $drop to $drop + 1>>$drop / $droptotal QUEST ITEM(S)!<<if $drop gte $droptotal>><<button [[LOOT AND TURN IN|QUESTBOARD]]>><<set $gold to $gold + $loot>><</button>><<else>><<button[[LOOT|GO TO THE FOREST]]>><<set $gold to $gold + $loot>><</button>><</if>><<else>><<button[[LOOT|GO TO THE FOREST]]>><<set $gold to $gold + $loot>><</button>><</if>><</if>><<if $hp lte 0>><<goto "DEFEAT">><</if>></p></div>
<table style=" text-align:center; max-width: 800px; max-height: 80%; float:top;"><tr><th style ="max-width: 400px"><span class ="monstericon">[img[$monsterimg]]</span></th><th style ="max-width: 400px"><span class ="smolicon">[img[$playerimg]]</span></th></tr>
<tr><th><div class="transbox" style= "display: inline;">$monster</div></th><th><<if $monsterhp gt 0>><<button[[$name|CHARACTER 2]]>><</button>><<else>> $name<</if>></th></tr>
<tr><th><div align= "center" class="transboxsquare" style="display:inline;">$description</div></th><th><<if $hp lte ($hptotal/4)>><div class="transbox" style="color: red; display: inline">$hp / $hptotal</div><<elseif $hp lte ($hptotal/2)>><div class="transbox" style="color: orange; display: inline">$hp / $hptotal</div><<else>><div class="transbox" style="color: green; display: inline;">$hp / $hptotal</div><</if>></th></tr>
<tr><th></th><th><<if $monsterhp gt 0 and $turn is 1 or $turn is 0>><<button[[WATER|FIGHT! (Forest)]]>><<set $action to "WATER", $turn to 2>><</button>><<button[[EARTH|FIGHT! (Forest)]]>><<set $action to "EARTH", $turn to 2>><</button>> <<button[[FIRE|FIGHT! (Forest)]]>><<set $action to "FIRE", $turn to 2>><</button>><<elseif $monsterhp gt 0 and $turn is 2>><<button[[WATER|FIGHT! (Forest)]]>><<set $action to "WATER", $turn to 1>><</button>> <<button[[EARTH|FIGHT! (Forest)]]>><<set $action to "EARTH" , $turn to 1>><</button>><<button[[FIRE|FIGHT! (Forest)]]>><<set $action to "FIRE" , $turn to 1>><</button>><</if>></th></tr><tr>
<<if $monsterhp lte 0>><<set $monsterhp to 0>><</if>><th><<if $monsterhp lte ($monsterhptotal/4)>><div class="transbox" style="color: red; display:inline;">HP: <<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent% </div><<elseif $monsterhp lte ($monsterhptotal/2)>><div class="transbox" style="color: orange; display: inline;">HP:<<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent%</div><<else>><div class="transbox" style="color: green; display: inline;">HP:<<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent% </div><</if>></th><th><<if $monsterhp gt 0>><<button[[FLEE|MAIN]]>><</button>><</if>><<if $bread gt 0 and $monsterhp gt 0>><<button [[BREAD|FIGHT! (Forest)]]>><<set $hp to $hp + ($hptotal/4), $bread to $bread -1, $action to "Bread">><<if $hp gte $hptotal>><<set $hp to $hptotal>><</if>><</button>><</if>></th></tr></table>
<<set $rps to random(1,3)>><<if $rps is 1>><<set $monsteraction to "WATER">><<elseif $rps is 2>><<set $monsteraction to "EARTH">><<elseif $rps is 3>><<set $monsteraction to "FIRE">><</if>><<if $sight is 1>><div align= "center" class="transbox"><p>$monster will play: $monsteraction</p></div><</if>><div align= "left" class="transbox"><p> @@.typed; OwO: Ohno!! You died?? Whaaa----
Haha just kidding, dying really means nothing in this game.
Just another lesson for you to learn kiddo.
Remember, you can always get strong through gear upgrades, making sure you eat bread at critical junctures, and rest at the tavern when you're too injured!
There's no worries, back on your feet you go!@@</p>
<<button[[RISE|TAVERN]]>><</button>>
</div><<set $hp to $hptotal>>
<style>body {
background-image: url("https://i.imgur.com/yRGjNGW.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style><div align="center" class="transbox"><p><<if $action is "Bread">>$name Consumes one bread<<else>><<if $turn is 0>>$monster stares at you...<<elseif $turn is 2>>$name attacks with $action and $monster defends with $monsteraction<<if $action is $monsteraction>>
Neutral Damage. $monster takes $attack damage <<set $monsterhp to $monsterhp - $attack>><<elseif ($action is "WATER" and $monsteraction is "FIRE") or ($action is "EARTH" and $monsteraction is "WATER") or ($action is "FIRE" and $monsteraction is "EARTH")>>
CRITICAL HIT! $monster takes <<set $val to $attack*2>> $val damage<<set $monsterhp to $monsterhp - $attack*2>><<else>>
CRITICAL MISS! $monster takes <<set $val to Math.trunc($attack/2)>> $val damage<<set $monsterhp to $monsterhp - Math.trunc($attack/2)>><</if>><<elseif $turn is 1>>$monster attacks with $monsteraction and $name defends with $action<<if $action is $monsteraction>>
Neutral Damage. $name takes $monsterattack damage but $ac damage is blocked! <<if ($monsterattack - $ac) lte 0>><<else>><<set $hp to $hp - ($monsterattack - $ac)>><</if>><<elseif ($action is "WATER" and $monsteraction is "FIRE") or ($action is "EARTH" and $monsteraction is "WATER") or ($action is "FIRE" and $monsteraction is "EARTH")>>
CRITICAL MISS! $name takes <<set $val to $monsterattack/2>> $val damage but $ac damage is blocked! <<if ($val - $ac) lte 0>><<else>><<set $hp to $hp - ($val - $ac)>><</if>><<else>>
CRITICAL HIT! $name takes <<set $val to $monsterattack*2>> $val damage but $ac damage is blocked!<<if ($val - $ac) lte 0>><<else>><<set $hp to $hp - ($val - $ac)>><</if>><</if>><</if>><</if>>
<<if $monsterhp lte 0>><<set $sight to 0>>YOU WIN! You find $loot Gold Pieces <<if $quest is 4 or $quest is 5 or $quest is 6 or $quest is 7 or $quest is 8 or $quest is 9 or $quest is 10>> and <<set $drop to $drop + 1>>$drop / $droptotal QUEST ITEM(S)!<<if $drop gte $droptotal>><<button [[LOOT AND TURN IN|QUESTBOARD]]>><<set $gold to $gold + $loot>><</button>><<else>><<button[[LOOT|LOOK FOR TROUBLE]]>><<set $gold to $gold + $loot>><</button>><</if>><<else>><<button[[LOOT|LOOK FOR TROUBLE]]>><<set $gold to $gold + $loot>><</button>><</if>><</if>><<if $hp lte 0>><<goto "DEFEAT">><</if>></p></div>
<table style="text-align:center; max-width: 800px; max-height: 80%; float:top; width:100%;"><tr><th style ="max-width: 400px"><span class ="monstericon">[img[$monsterimg]]</span></th><th style ="max-width: 400px"><span class="smolicon">[img[$playerimg]]</span></th></tr>
<tr><th><div class="transbox" style= "display: inline;">$monster</div></th><th><<if $monsterhp gt 0>><<button[[$name|CHARACTER 3]]>><</button>><<else>> $name <</if>></th></tr>
<tr><th><div align= "center" style = "display:inline;" class="transboxsquare" >$description</div></th><th><<if $hp lte ($hptotal/4)>><div class="transbox" style="color: red;display: inline;">$hp / $hptotal</div><<elseif $hp lte ($hptotal/2)>><div class="transbox" style="color: orange; display: inline">$hp / $hptotal</div><<else>><div class="transbox" style="color: green; display: inline;">$hp / $hptotal</div><</if>></th></tr>
<tr><th></th><th><<if $monsterhp gt 0 and $turn is 1 or $turn is 0>><<button[[WATER|FIGHT! (Town)]]>><<set $action to "WATER", $turn to 2>><</button>><<button[[EARTH|FIGHT! (Town)]]>><<set $action to "EARTH", $turn to 2>><</button>> <<button[[FIRE|FIGHT! (Town)]]>><<set $action to "FIRE", $turn to 2>><</button>><<elseif $monsterhp gt 0 and $turn is 2>><<button[[WATER|FIGHT! (Town)]]>><<set $action to "WATER", $turn to 1>><</button>> <<button[[EARTH|FIGHT! (Town)]]>><<set $action to "EARTH" , $turn to 1>><</button>><<button[[FIRE|FIGHT! (Town)]]>><<set $action to "FIRE" , $turn to 1>><</button>><</if>></th></tr><tr>
<<if $monsterhp lte 0>><<set $monsterhp to 0>><</if>><th><<if $monsterhp lte ($monsterhptotal/4)>><div class="transbox" style="color: red; display:inline;">HP: <<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent% </div><<elseif $monsterhp lte ($monsterhptotal/2)>><div class="transbox" style="color: orange; display: inline;">HP:<<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent%</div><<else>><div class="transbox" style="color: green; display: inline;">HP:<<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent% </div><</if>></th><th><<if $monsterhp gt 0>><<button[[FLEE|MAIN]]>><</button>><</if>><<if $bread gt 0 and $monsterhp gt 0>><<button [[BREAD|FIGHT! (Town)]]>><<set $hp to $hp + ($hptotal/4), $bread to $bread -1, $action to "Bread">><<if $hp gte $hptotal>><<set $hp to $hptotal>><</if>><</button>><</if>></th></tr></table>
<<set $rps to random(1,3)>><<if $rps is 1>><<set $monsteraction to "WATER">><<elseif $rps is 2>><<set $monsteraction to "EARTH">><<elseif $rps is 3>><<set $monsteraction to "FIRE">><</if>><<if $sight is 1>><div align= "center" class="transbox"><p>$monster will play: $monsteraction</p></div><</if>><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
color: white;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align="center" class="transbox"><p><<if $action is "Bread">>$name Consumes one bread<<else>><<if $turn is 0>>$monster stares at you...<<elseif $turn is 2>>$name attacks with $action and $monster defends with $monsteraction<<if $action is $monsteraction>>
Neutral Damage. $monster takes $attack damage <<set $monsterhp to $monsterhp - $attack>><<elseif ($action is "WATER" and $monsteraction is "FIRE") or ($action is "EARTH" and $monsteraction is "WATER") or ($action is "FIRE" and $monsteraction is "EARTH")>>
CRITICAL HIT! $monster takes <<set $val to $attack*2>> $val damage<<set $monsterhp to $monsterhp - $attack*2>><<else>>
CRITICAL MISS! $monster takes <<set $val to Math.trunc($attack/2)>> $val damage<<set $monsterhp to $monsterhp - Math.trunc($attack/2)>><</if>><<elseif $turn is 1>>$monster attacks with $monsteraction and $name defends with $action<<if $action is $monsteraction>>
Neutral Damage. $name takes $monsterattack damage but $ac damage is blocked! <<if ($monsterattack - $ac) lte 0>><<else>><<set $hp to $hp - ($monsterattack - $ac)>><</if>><<elseif ($action is "WATER" and $monsteraction is "FIRE") or ($action is "EARTH" and $monsteraction is "WATER") or ($action is "FIRE" and $monsteraction is "EARTH")>>
CRITICAL MISS! $name takes <<set $val to $monsterattack/2>> $val damage but $ac damage is blocked! <<if ($val - $ac) lte 0>><<else>><<set $hp to $hp - ($val - $ac)>><</if>><<else>>
CRITICAL HIT! $name takes <<set $val to $monsterattack*2>> $val damage but $ac damage is blocked!<<if ($val - $ac) lte 0>><<else>><<set $hp to $hp - ($val - $ac)>><</if>><</if>><</if>><</if>>
<<if $monsterhp lte 0>><<set $sight to 0>>YOU WIN! You find $loot Gold Pieces <<if $quest is 11 or $quest is 12 or $quest is 13 or $quest is 14 or $quest is 15>> and <<set $drop to $drop + 1>>$drop / $droptotal QUEST ITEM(S)!<<if $drop gte $droptotal>><<button [[LOOT AND TURN IN|QUESTBOARD]]>><<set $gold to $gold + $loot>><</button>><<else>><<button[[LOOT|GO TO THE CAVERN]]>><<set $gold to $gold + $loot>><</button>><</if>><<else>><<button[[LOOT|GO TO THE CAVERN]]>><<set $gold to $gold + $loot>><</button>><</if>><</if>><<if $hp lte 0>><<goto "DEFEAT">><</if>></p></div>
<table style="text-align:center; float:top; max-width:800px;, max-height:80%;"><tr><th style ="max-width: 400px"><span class ="monstericon">[img[$monsterimg]]</span></th><th style ="max-width: 400px"><span class="smolicon">[img[$playerimg]]</span></th></tr>
<tr><th><div class="transbox" style= "display: inline;">$monster</div></th><th><<if $monsterhp gt 0>><<button[[$name|CHARACTER 4]]>><</button>><<else>> $name <</if>></th></tr>
<tr><th><div align= "center" style = "display:inline;" class="transboxsquare" >$description</div></th><th><<if $hp lte ($hptotal/4)>><div class="transbox" style="color: red;display: inline">$hp / $hptotal</div><<elseif $hp lte ($hptotal/2)>><div class="transbox" style="color: orange; display: inline">$hp / $hptotal</div><<else>><div class="transbox" style="color: green; display: inline;">$hp / $hptotal</div><</if>></th></tr>
<tr><th></th><th><<if $monsterhp gt 0 and $turn is 1 or $turn is 0>><<button[[WATER|FIGHT! (Cavern)]]>><<set $action to "WATER", $turn to 2>><</button>><<button[[EARTH|FIGHT! (Cavern)]]>><<set $action to "EARTH", $turn to 2>><</button>><<button[[FIRE|FIGHT! (Cavern)]]>><<set $action to "FIRE", $turn to 2>><</button>><<elseif $monsterhp gt 0 and $turn is 2>><<button[[WATER|FIGHT! (Cavern)]]>><<set $action to "WATER", $turn to 1>><</button>> <<button[[EARTH|FIGHT! (Cavern)]]>><<set $action to "EARTH" , $turn to 1>><</button>><<button[[FIRE|FIGHT! (Cavern)]]>><<set $action to "FIRE" , $turn to 1>><</button>><</if>></th></tr><tr>
<<if $monsterhp lte 0>><<set $monsterhp to 0>><</if>><th><<if $monsterhp lte ($monsterhptotal/4)>><div class="transbox" style="color: red; display:inline;">HP: <<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent% </div><<elseif $monsterhp lte ($monsterhptotal/2)>><div class="transbox" style="color: orange; display: inline;">HP:<<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent%</div><<else>><div class="transbox" style="color: green; display: inline;">HP:<<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent% </div><</if>></th><th><<if $monsterhp gt 0>><<button[[FLEE|MAIN]]>><</button>><</if>><<if $bread gt 0 and $monsterhp gt 0>><<button [[BREAD|FIGHT! (Cavern)]]>><<set $hp to $hp + ($hptotal/4), $bread to $bread -1, $action to "Bread">><<if $hp gte $hptotal>><<set $hp to $hptotal>><</if>><</button>><</if>></th></tr></table>
<<set $rps to random(1,3)>><<if $rps is 1>><<set $monsteraction to "WATER">><<elseif $rps is 2>><<set $monsteraction to "EARTH">><<elseif $rps is 3>><<set $monsteraction to "FIRE">><</if>><<if $sight is 1>><div align= "center" class="transbox"><p>$monster will play: $monsteraction</p></div><</if>>TO DO
-what else to do.....
ugh the d key on the keyboard isnt working so well
<<button [img[link here][on with the story]]>><</button>>
DONE
-REDO THE COMBAT GAH
-Draw the monsters / alfredo's tavern, alfredo's shop, cavern, town etc.
-ADD intro for level up(?)
-Combat GUI needs to add monster images
-Add storyline / intro / help / tips page
-put thing behind hp's of fight
-implement main quest w/demon lord
- Enemies have been balanced!!!
-JFC the photo in the tavern is tilted plz fix!!!!!!
- Fighting reimplemented with rock paper scissors
- Sight added with purchase of ale
- You can bring bread with u now instead of mp for heals
- Quest taking/turn-in system complete
- Bartering System complete
- Combat System complete
-Implement class blocking until endings before are reached,,,
- Hero Creation+Selection+ Info sheet complete
<!-- HERO HELMET; done --><<if $helmetlev is 1 and $class is "HERO">><<set $head to "Wooden Helmet">><<elseif $helmetlev is 2 and $class is "HERO">><<set $head to "Bronze Helmet">><<elseif $helmetlev is 3 and $class is "HERO">><<set $head to "Iron Helmet">><<elseif $helmetlev is 4 and $class is "HERO">><<set $head to "Steel Helmet">><<elseif $helmetlev is 5 and $class is "HERO">><<set $head to "Artisan Helmet">><<elseif $helmetlev is 6 and $class is "HERO">><<set $head to "Doomfold Helmet">><<elseif $helmetlev is 7 and $class is "HERO">><<set $head to "Skyforged Helmet">><<elseif $helmetlev is 8 and $class is "HERO">><<set $head to "Heavenblessed Helmet">><<elseif $helmetlev is 9 and $class is "HERO">><<set $head to "Conqueror's Helmet">><<elseif $helmetlev is 10 and $class is "HERO">><<set $head to "Divine Helmet">> <</if>><!-- SAVIOUR CIRCLET; done --><<if $helmetlev is 1 and $class is "SAVIOUR">><<set $head to "Weak Circlet">><<elseif $helmetlev is 2 and $class is "SAVIOUR">><<set $head to "Tranquil Circlet">><<elseif $helmetlev is 3 and $class is "SAVIOUR">><<set $head to "Fireforged Circlet">><<elseif $helmetlev is 4 and $class is "SAVIOUR">><<set $head to "Fey Circlet">><<elseif $helmetlev is 5 and $class is "SAVIOUR">><<set $head to "Artisan Circlet">><<elseif $helmetlev is 6 and $class is "SAVIOUR">><<set $head to "Warforged Circlet">><<elseif $helmetlev is 7 and $class is "SAVIOUR">><<set $head to "Skyforged Circlet">><<elseif $helmetlev is 8 and $class is "SAVIOUR">><<set $head to "Heavenblessed Circlet">><<elseif $helmetlev is 9 and $class is "SAVIOUR">><<set $head to "Conqueror's Circlet">><<elseif $helmetlev is 10 and $class is "SAVIOUR">><<set $head to "Divine Circlet">> <</if>><!-- REAPER CROWN; done --><<if $helmetlev is 1 and $class is "REAPER">><<set $head to "Wooden Crown">><<elseif $helmetlev is 2 and $class is "REAPER">><<set $head to "Bronze Crown">><<elseif $helmetlev is 3 and $class is "REAPER">><<set $head to "Iron Crown">><<elseif $helmetlev is 4 and $class is "REAPER">><<set $head to "Steel Crown">><<elseif $helmetlev is 5 and $class is "REAPER">><<set $head to "Blood Crown">><<elseif $helmetlev is 6 and $class is "REAPER">><<set $head to "Doomfold Crown">><<elseif $helmetlev is 7 and $class is "REAPER">><<set $head to "Hellforged Crown">><<elseif $helmetlev is 8 and $class is "REAPER">><<set $head to "Hades-blessed Crown">><<elseif $helmetlev is 9 and $class is "REAPER">><<set $head to "Conqueror's Crown">><<elseif $helmetlev is 10 and $class is "REAPER">><<set $head to "Demonic Crown">> <</if>><!-- ARMOUR; done --><<if $armourlev is 1>><<set $body to "Plain">><<elseif $armourlev is 2>><<set $body to "Simple">><<elseif $armourlev is 3>><<set $body to "Tough">><<elseif $armourlev is 4>><<set $body to "Mithril">><<elseif $armourlev is 5>><<set $body to "Magic">><<elseif $armourlev is 6>><<set $body to "Artisian">><<elseif $armourlev is 7>><<set $body to "Crystalline">><<elseif $armourlev is 8>><<set $body to "Blessed">><<elseif $armourlev is 9>><<set $body to "Conqueror's">><<elseif $armourlev is 10>><<set $body to "Ichorian">><</if>>
<<if $class is "HERO" and $armourlev lte 10>><<set $body to $body + " Armour">><<elseif $armourlev lte 10>><<set $body to $body + " Robes">><</if>>
<!-- WEAPON; done --><<if $weaponlev is 1>><<set $weapon to "Stick">><<elseif $weaponlev is 2>><<set $weapon to "Simple Wooden">><<elseif $weaponlev is 3>><<set $weapon to "Metal">><<elseif $weaponlev is 4>><<set $weapon to "Mithril">><<elseif $weaponlev is 5>><<set $weapon to "Magic">><<elseif $weaponlev is 6>><<set $weapon to "Artisian">><<elseif $weaponlev is 7>><<set $weapon to "Crystalline">><<elseif $weaponlev is 8>><<set $weapon to "Blessed">><<elseif $weaponlev is 9>><<set $weapon to "Conqueror's">><<elseif $weaponlev is 10>><<set $weapon to "Ichorian">><</if>><<if $class is "HERO" and $weaponlev lte 10>><<set $weapon to $weapon + " Sword">><<elseif $class is "SAVIOUR" and $weaponlev lte 10>><<set $weapon to $weapon + " Wand">><<elseif $class is "REAPER" and $weaponlev lte 10>><<set $weapon to $weapon + " Scythe">><</if>><!-- OFF-HAND; wip --><<if $offlev is 1>><<set $offhand to "Basic">><<elseif $offlev is 2>><<set $offhand to "Simple">><<elseif $offlev is 3>><<set $offhand to "Artic">><<elseif $offlev is 4>><<set $offhand to "Mithril">><<elseif $offlev is 5>><<set $offhand to "Magic">><<elseif $offlev is 6>><<set $offhand to "Artisian">><<elseif $offlev is 7>><<set $offhand to "Crystalline">><<elseif $offlev is 8>><<set $offhand to "Blessed">><<elseif $offlev is 9>><<set $offhand to "Conqueror's">><<elseif $offlev is 10>><<set $offhand to "Ichorian">><</if>><<if $class is "HERO" and $offlev lte 10>><<set $offhand to $offhand + " Shield">><<elseif $class is "SAVIOUR" and $offlev lte 10>><<set $offhand to $offhand + " Orb">><<elseif $class is "REAPER" and $offlev lte 10 >><<set $offhand to $offhand + " Flame">><</if>><span class="icon">
[img[$playerimg]]
</span><div class ="transbox"><table style="width:100%; height:100%;">
<tr><th>CHARACTER STATS</th>
<th>GEAR</th></tr>
<tr><th>NAME: $name</th>
<th>HEAD: $head</th></tr>
<tr><th>LEVEL: $level <<set $leveltotal to 13*($level+1)>></th>
<th>BODY: $body</th></tr>
<tr><th>ATTACK: $attack</th>
<th></th></tr>
<tr><th>ARMOUR CLASS: $ac</th>
<th>WEAPON: $weapon</th></tr>
<tr><th>HEALTH POINTS: $hp / $hptotal</th>
<th>OFF-HAND: $offhand</th></tr>
<tr><th>BREAD COUNT: $bread </th>
<th>GOLD: $gold Pieces</th>
</tr>
</table></div>
<<button[[BACK|FIGHT! (Forest)]]>><</button
>>
<!-- HERO HELMET; done --><<if $helmetlev is 1 and $class is "HERO">><<set $head to "Wooden Helmet">><<elseif $helmetlev is 2 and $class is "HERO">><<set $head to "Bronze Helmet">><<elseif $helmetlev is 3 and $class is "HERO">><<set $head to "Iron Helmet">><<elseif $helmetlev is 4 and $class is "HERO">><<set $head to "Steel Helmet">><<elseif $helmetlev is 5 and $class is "HERO">><<set $head to "Artisan Helmet">><<elseif $helmetlev is 6 and $class is "HERO">><<set $head to "Doomfold Helmet">><<elseif $helmetlev is 7 and $class is "HERO">><<set $head to "Skyforged Helmet">><<elseif $helmetlev is 8 and $class is "HERO">><<set $head to "Heavenblessed Helmet">><<elseif $helmetlev is 9 and $class is "HERO">><<set $head to "Conqueror's Helmet">><<elseif $helmetlev is 10 and $class is "HERO">><<set $head to "Divine Helmet">> <</if>><!-- SAVIOUR CIRCLET; done --><<if $helmetlev is 1 and $class is "SAVIOUR">><<set $head to "Weak Circlet">><<elseif $helmetlev is 2 and $class is "SAVIOUR">><<set $head to "Tranquil Circlet">><<elseif $helmetlev is 3 and $class is "SAVIOUR">><<set $head to "Fireforged Circlet">><<elseif $helmetlev is 4 and $class is "SAVIOUR">><<set $head to "Fey Circlet">><<elseif $helmetlev is 5 and $class is "SAVIOUR">><<set $head to "Artisan Circlet">><<elseif $helmetlev is 6 and $class is "SAVIOUR">><<set $head to "Warforged Circlet">><<elseif $helmetlev is 7 and $class is "SAVIOUR">><<set $head to "Skyforged Circlet">><<elseif $helmetlev is 8 and $class is "SAVIOUR">><<set $head to "Heavenblessed Circlet">><<elseif $helmetlev is 9 and $class is "SAVIOUR">><<set $head to "Conqueror's Circlet">><<elseif $helmetlev is 10 and $class is "SAVIOUR">><<set $head to "Divine Circlet">> <</if>><!-- REAPER CROWN; done --><<if $helmetlev is 1 and $class is "REAPER">><<set $head to "Wooden Crown">><<elseif $helmetlev is 2 and $class is "REAPER">><<set $head to "Bronze Crown">><<elseif $helmetlev is 3 and $class is "REAPER">><<set $head to "Iron Crown">><<elseif $helmetlev is 4 and $class is "REAPER">><<set $head to "Steel Crown">><<elseif $helmetlev is 5 and $class is "REAPER">><<set $head to "Blood Crown">><<elseif $helmetlev is 6 and $class is "REAPER">><<set $head to "Doomfold Crown">><<elseif $helmetlev is 7 and $class is "REAPER">><<set $head to "Hellforged Crown">><<elseif $helmetlev is 8 and $class is "REAPER">><<set $head to "Hades-blessed Crown">><<elseif $helmetlev is 9 and $class is "REAPER">><<set $head to "Conqueror's Crown">><<elseif $helmetlev is 10 and $class is "REAPER">><<set $head to "Demonic Crown">> <</if>><!-- ARMOUR; done --><<if $armourlev is 1>><<set $body to "Plain">><<elseif $armourlev is 2>><<set $body to "Simple">><<elseif $armourlev is 3>><<set $body to "Tough">><<elseif $armourlev is 4>><<set $body to "Mithril">><<elseif $armourlev is 5>><<set $body to "Magic">><<elseif $armourlev is 6>><<set $body to "Artisian">><<elseif $armourlev is 7>><<set $body to "Crystalline">><<elseif $armourlev is 8>><<set $body to "Blessed">><<elseif $armourlev is 9>><<set $body to "Conqueror's">><<elseif $armourlev is 10>><<set $body to "Ichorian">><</if>>
<<if $class is "HERO" and $armourlev lte 10>><<set $body to $body + " Armour">><<elseif $armourlev lte 10>><<set $body to $body + " Robes">><</if>>
<!-- WEAPON; done --><<if $weaponlev is 1>><<set $weapon to "Stick">><<elseif $weaponlev is 2>><<set $weapon to "Simple Wooden">><<elseif $weaponlev is 3>><<set $weapon to "Metal">><<elseif $weaponlev is 4>><<set $weapon to "Mithril">><<elseif $weaponlev is 5>><<set $weapon to "Magic">><<elseif $weaponlev is 6>><<set $weapon to "Artisian">><<elseif $weaponlev is 7>><<set $weapon to "Crystalline">><<elseif $weaponlev is 8>><<set $weapon to "Blessed">><<elseif $weaponlev is 9>><<set $weapon to "Conqueror's">><<elseif $weaponlev is 10>><<set $weapon to "Ichorian">><</if>>
<<if $class is "HERO" and $weaponlev lte 10>><<set $weapon to $weapon + " Sword">><<elseif $class is "SAVIOUR" and $weaponlev lte 10>><<set $weapon to $weapon + " Wand">><<elseif $class is "REAPER" and $weaponlev lte 10>><<set $weapon to $weapon + " Scythe">><</if>><!-- OFF-HAND; wip --><<if $offlev is 1>><<set $offhand to "Basic">><<elseif $offlev is 2>><<set $offhand to "Simple">><<elseif $offlev is 3>><<set $offhand to "Artic">><<elseif $offlev is 4>><<set $offhand to "Mithril">><<elseif $offlev is 5>><<set $offhand to "Magic">><<elseif $offlev is 6>><<set $offhand to "Artisian">><<elseif $offlev is 7>><<set $offhand to "Crystalline">><<elseif $offlev is 8>><<set $offhand to "Blessed">><<elseif $offlev is 9>><<set $offhand to "Conqueror's">><<elseif $offlev is 10>><<set $offhand to "Ichorian">><</if>>
<<if $class is "HERO" and $offlev lte 10>><<set $offhand to $offhand + " Shield">><<elseif $class is "SAVIOUR" and $offlev lte 10>><<set $offhand to $offhand + " Orb">><<elseif $class is "REAPER" and $offlev lte 10 >><<set $offhand to $offhand + " Flame">><</if>><span class="icon">
[img[$playerimg]]
</span><div class ="transbox"><table style="width:100%; height:100%;">
<tr><th>CHARACTER STATS</th>
<th>GEAR</th></tr>
<tr><th>NAME: $name</th>
<th>HEAD: $head</th></tr>
<tr><th>LEVEL: $level <<set $leveltotal to 13*($level+1)>></th>
<th>BODY: $body</th></tr>
<tr><th>ATTACK: $attack</th>
<th></th></tr>
<tr><th>ARMOUR CLASS: $ac</th>
<th>WEAPON: $weapon</th></tr>
<tr><th>HEALTH POINTS: $hp / $hptotal</th>
<th>OFF-HAND: $offhand</th></tr>
<tr><th>BREAD COUNT: $bread </th>
<th>GOLD: $gold Pieces</th>
</tr>
</table></div>
<<button[[BACK|FIGHT! (Town)]]>><</button
>>
<!-- HERO HELMET; done --><<if $helmetlev is 1 and $class is "HERO">><<set $head to "Wooden Helmet">><<elseif $helmetlev is 2 and $class is "HERO">><<set $head to "Bronze Helmet">><<elseif $helmetlev is 3 and $class is "HERO">><<set $head to "Iron Helmet">><<elseif $helmetlev is 4 and $class is "HERO">><<set $head to "Steel Helmet">><<elseif $helmetlev is 5 and $class is "HERO">><<set $head to "Artisan Helmet">><<elseif $helmetlev is 6 and $class is "HERO">><<set $head to "Doomfold Helmet">><<elseif $helmetlev is 7 and $class is "HERO">><<set $head to "Skyforged Helmet">><<elseif $helmetlev is 8 and $class is "HERO">><<set $head to "Heavenblessed Helmet">><<elseif $helmetlev is 9 and $class is "HERO">><<set $head to "Conqueror's Helmet">><<elseif $helmetlev is 10 and $class is "HERO">><<set $head to "Divine Helmet">> <</if>><!-- SAVIOUR CIRCLET; done --><<if $helmetlev is 1 and $class is "SAVIOUR">><<set $head to "Weak Circlet">><<elseif $helmetlev is 2 and $class is "SAVIOUR">><<set $head to "Tranquil Circlet">><<elseif $helmetlev is 3 and $class is "SAVIOUR">><<set $head to "Fireforged Circlet">><<elseif $helmetlev is 4 and $class is "SAVIOUR">><<set $head to "Fey Circlet">><<elseif $helmetlev is 5 and $class is "SAVIOUR">><<set $head to "Artisan Circlet">><<elseif $helmetlev is 6 and $class is "SAVIOUR">><<set $head to "Warforged Circlet">><<elseif $helmetlev is 7 and $class is "SAVIOUR">><<set $head to "Skyforged Circlet">><<elseif $helmetlev is 8 and $class is "SAVIOUR">><<set $head to "Heavenblessed Circlet">><<elseif $helmetlev is 9 and $class is "SAVIOUR">><<set $head to "Conqueror's Circlet">><<elseif $helmetlev is 10 and $class is "SAVIOUR">><<set $head to "Divine Circlet">> <</if>><!-- REAPER CROWN; done --><<if $helmetlev is 1 and $class is "REAPER">><<set $head to "Wooden Crown">><<elseif $helmetlev is 2 and $class is "REAPER">><<set $head to "Bronze Crown">><<elseif $helmetlev is 3 and $class is "REAPER">><<set $head to "Iron Crown">><<elseif $helmetlev is 4 and $class is "REAPER">><<set $head to "Steel Crown">><<elseif $helmetlev is 5 and $class is "REAPER">><<set $head to "Blood Crown">><<elseif $helmetlev is 6 and $class is "REAPER">><<set $head to "Doomfold Crown">><<elseif $helmetlev is 7 and $class is "REAPER">><<set $head to "Hellforged Crown">><<elseif $helmetlev is 8 and $class is "REAPER">><<set $head to "Hades-blessed Crown">><<elseif $helmetlev is 9 and $class is "REAPER">><<set $head to "Conqueror's Crown">><<elseif $helmetlev is 10 and $class is "REAPER">><<set $head to "Demonic Crown">><</if>><!-- ARMOUR; done --><<if $armourlev is 1>><<set $body to "Plain">><<elseif $armourlev is 2>><<set $body to "Simple">><<elseif $armourlev is 3>><<set $body to "Tough">><<elseif $armourlev is 4>><<set $body to "Mithril">><<elseif $armourlev is 5>><<set $body to "Magic">><<elseif $armourlev is 6>><<set $body to "Artisian">><<elseif $armourlev is 7>><<set $body to "Crystalline">><<elseif $armourlev is 8>><<set $body to "Blessed">><<elseif $armourlev is 9>><<set $body to "Conqueror's">><<elseif $armourlev is 10>><<set $body to "Ichorian">><</if>>
<<if $class is "HERO" and $armourlev lte 10>><<set $body to $body + " Armour">><<elseif $armourlev lte 10>><<set $body to $body + " Robes">><</if>>
<!-- WEAPON; done --><<if $weaponlev is 1>><<set $weapon to "Stick">><<elseif $weaponlev is 2>><<set $weapon to "Simple Wooden">><<elseif $weaponlev is 3>><<set $weapon to "Metal">><<elseif $weaponlev is 4>><<set $weapon to "Mithril">><<elseif $weaponlev is 5>><<set $weapon to "Magic">><<elseif $weaponlev is 6>><<set $weapon to "Artisian">><<elseif $weaponlev is 7>><<set $weapon to "Crystalline">><<elseif $weaponlev is 8>><<set $weapon to "Blessed">><<elseif $weaponlev is 9>><<set $weapon to "Conqueror's">><<elseif $weaponlev is 10>><<set $weapon to "Ichorian">><</if>><<if $class is "HERO" and $weaponlev lte 10>><<set $weapon to $weapon + " Sword">><<elseif $class is "SAVIOUR" and $weaponlev lte 10>><<set $weapon to $weapon + " Wand">><<elseif $class is "REAPER" and $weaponlev lte 10>><<set $weapon to $weapon + " Scythe">><</if>><!-- OFF-HAND; wip --><<if $offlev is 1>><<set $offhand to "Basic">><<elseif $offlev is 2>><<set $offhand to "Simple">><<elseif $offlev is 3>><<set $offhand to "Artic">><<elseif $offlev is 4>><<set $offhand to "Mithril">><<elseif $offlev is 5>><<set $offhand to "Magic">><<elseif $offlev is 6>><<set $offhand to "Artisian">><<elseif $offlev is 7>><<set $offhand to "Crystalline">><<elseif $offlev is 8>><<set $offhand to "Blessed">><<elseif $offlev is 9>><<set $offhand to "Conqueror's">><<elseif $offlev is 10>><<set $offhand to "Ichorian">><</if>><<if $class is "HERO" and $offlev lte 10>><<set $offhand to $offhand + " Shield">><<elseif $class is "SAVIOUR" and $offlev lte 10>><<set $offhand to $offhand + " Orb">><<elseif $class is "REAPER" and $offlev lte 10 >><<set $offhand to $offhand + " Flame">><</if>><span class="icon">
[img[$playerimg]]
</span><div class ="transbox"><table style="width:100%; height:100%;">
<tr><th>CHARACTER STATS</th>
<th>GEAR</th></tr>
<tr><th>NAME: $name</th>
<th>HEAD: $head</th></tr>
<tr><th>LEVEL: $level <<set $leveltotal to 13*($level+1)>></th>
<th>BODY: $body</th></tr>
<tr><th>ATTACK: $attack</th>
<th></th></tr>
<tr><th>ARMOUR CLASS: $ac</th>
<th>WEAPON: $weapon</th></tr>
<tr><th>HEALTH POINTS: $hp / $hptotal</th>
<th>OFF-HAND: $offhand</th></tr>
<tr><th>BREAD COUNT: $bread </th>
<th>GOLD: $gold Pieces</th>
</tr>
</table></div>
<<button[[BACK|FIGHT! (Cavern)]]>><</button
>>
<<set $demonlord to 0>><style>
body{
background-color: gray;
}</style><div align= "left" class="transbox"><p>@@.typed;
OwO: Hello!!
OwO: It's nice to see you,<<if $end gte 1>> again!<</if>>
<<if $end is 0>>OwO: You must be confused.
OwO: Last night you slept in your bed, closed your eyes, and now you wake up in complete darkness?
OwO: It's madness, I know.
OwO: The thing is, the world -- not yours, it's much too boring -- is in trouble.
OwO: The Dark Demon Lord has awoken from his slumber and --
OwO: Oh dear me, I haven't even gotten your name!<</if>>
<<if $end is 1>>OwO: The Hero is in trouble, isn't she?
OwO: Why don't you try the Saviour's route, see if you can help her?
<<elseif $end is 2>>OwO: The Saviour made quite a mess... haha...
OwO: Why don't you play as the Reaper and see the third side of this story?
<</if>>
OWO: <<if $end gte 1>>As always... Best of Luck, $name! <<else>>Well, what is it?
<</if>>@@
<div id="links" style="display:none">
<<if $end is 0>><<textbox "$name" "">>
<<if $name is "">><<set $name to "Jeanne">><</if>>
<</if>>
<<button [[ENTER|CHARACTER SELECT]]>><</button>>
</div></p></div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed; OwO: And with the powers $name gained and the hope of the village behind her, the $class headed out on a journey into the dark depths of the abyss to <<if $class is "HERO">>slay the Demon Lord...<<else>> save the Hero...<</if>>
In the depth of the Caverns, she found a staircase.
It led her deeper, and deeper,
and swirled
around,
and around,
and around,
until finally,
$name reached the bottom. @@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[Reach the bottom]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed; OwO: There, $name found a giantic set of doors.
It might help to have a key.
Luckily, one was hooked right next to the doors.@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[Open the doors]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed; OwO: Hazzah! It's the Dark Demon Lord!! He seems to be slumbering, so let's be veeeeery quiet.
Tip.
Toe.
Tip.
Toe.
Tip...
EEK!@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[EEK!]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed; OwO: The Demon Lord is awake!
He's angry!
He's spewing a fire ball!
Run run run!
@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[Run!]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed; OwO: What? Wait-
Why aren't you running??
$name! No don't turn around!
You can't fight the Demon Lord!
You'll --
Ah.
There she goes.
@@ </p></div>
<<set $hp to $hptotal, $bread to $bread + 10>>
<<set $monster to "DEMON LORD", $monsterhptotal to 999, $monsterattack to 20, $monsterhp to $monsterhptotal, $description to "The Great and Feared", $loot to 9000, $turn to 0, $monsterimg to "https://i.imgur.com/vFMdPb8.png">>
<div id="links" style="display:none"><div align= "left" class="transbox">[[Fight! (DEMON LORD)]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script>
<style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><<if $demonlord is 0>><div align= "left" class="transbox"><p> @@.typed; OwO: Well, you know. You've fought lots of monsters till now. I guess we can give killing the Demon Lord a shot.@@ </p></div><</if>><<set $demonlord to 1>>
<<if $action is "WATER">><<set $monsteraction to "EARTH">><<elseif $action is "EARTH">><<set $monsteraction to "FIRE">><<else>><<set $monsteraction to "WATER">><</if>>
<div align= "left" class="transbox"><p><<if $action is "Bread">>$name Consumes one bread<<else>><<if $turn is 0>> $monster stares at you...<<elseif $turn is 2>>$name attacks with $action and $monster defends with $monsteraction
CRITICAL MISS! $monster takes <<set $val to Math.trunc($attack/2)>> $val damage<<set $monsterhp to $monsterhp - Math.trunc($attack/2)>><<elseif $turn is 1>>$monster attacks with $monsteraction and $name defends with $action
CRITICAL HIT! $name takes <<set $val to $monsterattack*2>> $val damage but $ac damage is blocked!<<set $hp to $hp - ($monsterattack*2 - $ac)>><</if>><<if $hp lte 0 and $class is "HERO">><<goto "Hero's Passing...">><<elseif $hp lte 0 and $class is "SAVIOUR">><<goto "Saviour's Passing...">><<elseif $hp lte 0 and $class is "REAPER">><<goto "Reaper's Passing...">><</if>><</if>></p></div>
<table style="text-align:center; float:top; max-width:800px; max-height:80%;"><tr><th style="max-width: 400px"><span class ="monstericon">[img[$monsterimg]]</span></th><th style="max-width:400px;"><span class="smolicon">[img[$playerimg]]</span></th></tr>
<tr><th><div class="transbox" style= "display: inline;">$monster</div></th><th><<if $monsterhp gt 0>><<button[[$name|CHARACTER 5]]>><</button>><<else>> $name <</if>></th></tr>
<tr><th><div align= "center" class="transboxsquare" style = "display:inline;">$description</div></th><th><<if $hp lte ($hptotal/4)>><div class="transbox" style="color: red; display: inline">$hp / $hptotal</div><<elseif $hp lte ($hptotal/2)>><div class="transbox" style="color: orange; display: inline">$hp / $hptotal</div><<else>><div class="transbox" style="color: green; display: inline;">$hp / $hptotal</div><</if>></th></tr>
<tr><th></th><th><<if $monsterhp gt 0 and $turn is 1 or $turn is 0>><<button[[WATER|Fight! (DEMON LORD)]]>><<set $action to "WATER", $turn to 2>><</button>><<button[[EARTH|Fight! (DEMON LORD)]]>><<set $action to "EARTH", $turn to 2>><</button>><<button[[FIRE|Fight! (DEMON LORD)]]>><<set $action to "FIRE", $turn to 2>><</button>><<elseif $monsterhp gt 0 and $turn is 2>><<button[[WATER|Fight! (DEMON LORD)]]>><<set $action to "WATER", $turn to 1>><</button>><<button[[EARTH|Fight! (DEMON LORD)]]>><<set $action to "EARTH", $turn to 1>><</button>><<button[[FIRE|Fight! (DEMON LORD)]]>><<set $action to "FIRE", $turn to 1>><</button>><</if>></th></tr>
<tr><th><<if $monsterhp lte ($monsterhptotal/4)>><div class="transbox" style="color: red; display:inline;">HP: <<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent% </div><<elseif $monsterhp lte ($monsterhptotal/2)>><div class="transbox" style="color: orange; display: inline;">HP:<<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent%</div><<else>><div class="transbox" style="color: green; display: inline;">HP:<<set $percent to Math.trunc($monsterhp/$monsterhptotal *100)>>$percent%</div><</if>></th>
<th><strike>FLEE</strike> <<if $bread gt 0 and $monsterhp gt 0>><<button[[BREAD|Fight! (DEMON LORD)]]>><<set $hp to $hp + ($hptotal/4), $bread to $bread -1, $action to "Bread">><</button>><<if $hp gte $hptotal>><<set $hp to $hptotal>><</if>><</if>></th></tr></table>
<<if $sight is 1>><error: you cannot see what the Demon Lord is upto><</if>>
<span class="icon">
[img[$playerimg]]
</span>
<div class ="transbox"><table style="width:100%; height:100%;">
<tr><th>CHARACTER STATS</th>
<th>GEAR</th></tr>
<tr><th>NAME: $name</th>
<th>HEAD: $head</th></tr>
<tr><th>LEVEL: $level <<set $leveltotal to 13*($level+1)>></th>
<th>BODY: $body</th></tr>
<tr><th>ATTACK: $attack</th>
<th></th></tr>
<tr><th>ARMOUR CLASS: $ac</th>
<th>WEAPON: $weapon</th></tr>
<tr><th>HEALTH POINTS: $hp / $hptotal</th>
<th>OFF-HAND: $offhand</th></tr>
<tr><th>BREAD COUNT: $bread </th>
<th>GOLD: $gold Pieces</th>
</tr>
</table></div>
<<button[[BACK|Fight! (DEMON LORD)]]>><</button
>>
<!-- HERO HELMET; done --><<if $helmetlev is 1 and $class is "HERO">><<set $head to "Wooden Helmet">><<elseif $helmetlev is 2 and $class is "HERO">><<set $head to "Bronze Helmet">><<elseif $helmetlev is 3 and $class is "HERO">><<set $head to "Iron Helmet">><<elseif $helmetlev is 4 and $class is "HERO">><<set $head to "Steel Helmet">><<elseif $helmetlev is 5 and $class is "HERO">><<set $head to "Artisan Helmet">><<elseif $helmetlev is 6 and $class is "HERO">><<set $head to "Doomfold Helmet">><<elseif $helmetlev is 7 and $class is "HERO">><<set $head to "Skyforged Helmet">><<elseif $helmetlev is 8 and $class is "HERO">><<set $head to "Heavenblessed Helmet">><<elseif $helmetlev is 9 and $class is "HERO">><<set $head to "Conqueror's Helmet">><<elseif $helmetlev is 10 and $class is "HERO">><<set $head to "Divine Helmet">> <</if>>
<!-- SAVIOUR CIRCLET; done --><<if $helmetlev is 1 and $class is "SAVIOUR">><<set $head to "Weak Circlet">><<elseif $helmetlev is 2 and $class is "SAVIOUR">><<set $head to "Tranquil Circlet">><<elseif $helmetlev is 3 and $class is "SAVIOUR">><<set $head to "Fireforged Circlet">><<elseif $helmetlev is 4 and $class is "SAVIOUR">><<set $head to "Fey Circlet">><<elseif $helmetlev is 5 and $class is "SAVIOUR">><<set $head to "Artisan Circlet">><<elseif $helmetlev is 6 and $class is "SAVIOUR">><<set $head to "Warforged Circlet">><<elseif $helmetlev is 7 and $class is "SAVIOUR">><<set $head to "Skyforged Circlet">><<elseif $helmetlev is 8 and $class is "SAVIOUR">><<set $head to "Heavenblessed Circlet">><<elseif $helmetlev is 9 and $class is "SAVIOUR">><<set $head to "Conqueror's Circlet">><<elseif $helmetlev is 10 and $class is "SAVIOUR">><<set $head to "Divine Circlet">> <</if>>
<!-- REAPER CROWN; done --><<if $helmetlev is 1 and $class is "REAPER">><<set $head to "Wooden Crown">><<elseif $helmetlev is 2 and $class is "REAPER">><<set $head to "Bronze Crown">><<elseif $helmetlev is 3 and $class is "REAPER">><<set $head to "Iron Crown">><<elseif $helmetlev is 4 and $class is "REAPER">><<set $head to "Steel Crown">><<elseif $helmetlev is 5 and $class is "REAPER">><<set $head to "Blood Crown">><<elseif $helmetlev is 6 and $class is "REAPER">><<set $head to "Doomfold Crown">><<elseif $helmetlev is 7 and $class is "REAPER">><<set $head to "Hellforged Crown">><<elseif $helmetlev is 8 and $class is "REAPER">><<set $head to "Hades-blessed Crown">><<elseif $helmetlev is 9 and $class is "REAPER">><<set $head to "Conqueror's Crown">><<elseif $helmetlev is 10 and $class is "REAPER">><<set $head to "Demonic Crown">> <</if>>
<!-- ARMOUR; done --><<if $armourlev is 1>><<set $body to "Plain">><<elseif $armourlev is 2>><<set $body to "Simple">><<elseif $armourlev is 3>><<set $body to "Tough">><<elseif $armourlev is 4>><<set $body to "Mithril">><<elseif $armourlev is 5>><<set $body to "Magic">><<elseif $armourlev is 6>><<set $body to "Artisian">><<elseif $armourlev is 7>><<set $body to "Crystalline">><<elseif $armourlev is 8>><<set $body to "Blessed">><<elseif $armourlev is 9>><<set $body to "Conqueror's">><<elseif $armourlev is 10>><<set $body to "Ichorian">><</if>>
<<if $class is "HERO" and $armourlev lte 10>><<set $body to $body + " Armour">><<elseif $armourlev lte 10>><<set $body to $body + " Robes">><</if>>
<!-- WEAPON; done --><<if $weaponlev is 1>><<set $weapon to "Stick">><<elseif $weaponlev is 2>><<set $weapon to "Simple Wooden">><<elseif $weaponlev is 3>><<set $weapon to "Metal">><<elseif $weaponlev is 4>><<set $weapon to "Mithril">><<elseif $weaponlev is 5>><<set $weapon to "Magic">><<elseif $weaponlev is 6>><<set $weapon to "Artisian">><<elseif $weaponlev is 7>><<set $weapon to "Crystalline">><<elseif $weaponlev is 8>><<set $weapon to "Blessed">><<elseif $weaponlev is 9>><<set $weapon to "Conqueror's">><<elseif $weaponlev is 10>><<set $weapon to "Ichorian">><</if>>
<<if $class is "HERO" and $weaponlev lte 10>><<set $weapon to $weapon + " Sword">><<elseif $class is "SAVIOUR" and $weaponlev lte 10>><<set $weapon to $weapon + " Wand">><<elseif $class is "REAPER" and $weaponlev lte 10>><<set $weapon to $weapon + " Scythe">><</if>>
<!-- OFF-HAND; wip --><<if $offlev is 1>><<set $offhand to "Basic">><<elseif $offlev is 2>><<set $offhand to "Simple">><<elseif $offlev is 3>><<set $offhand to "Artic">><<elseif $offlev is 4>><<set $offhand to "Mithril">><<elseif $offlev is 5>><<set $offhand to "Magic">><<elseif $offlev is 6>><<set $offhand to "Artisian">><<elseif $offlev is 7>><<set $offhand to "Crystalline">><<elseif $offlev is 8>><<set $offhand to "Blessed">><<elseif $offlev is 9>><<set $offhand to "Conqueror's">><<elseif $offlev is 10>><<set $offhand to "Ichorian">><</if>>
<<if $class is "HERO" and $offlev lte 10>><<set $offhand to $offhand + " Shield">><<elseif $class is "SAVIOUR" and $offlev lte 10>><<set $offhand to $offhand + " Orb">><<elseif $class is "REAPER" and $offlev lte 10 >><<set $offhand to $offhand + " Flame">><</if>>
<div align= "left" class="transbox"><p> @@.typed; OwO: Ah.
OwO: The Hero has fallen...
Seems like this story has finished...
You eyes close,
and you drift off once more into the comfort of darkness...
@@</p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[dream |Beginning 2]]</div>
</div>
<<set $end to 1>>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><div align= "left" class="transbox"><p> @@.typed; OwO: Ah.
OwO: The Saviour has fallen...
Seems like this story has finished...
You eyes close,
and you drift off once more into the comfort of darkness...
@@</p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[dream |Beginning 2]]</div>
</div>
<<set $end to 2>>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><div align= "left" class="transbox"><p> @@.typed;
OwO: The Reaper Falls,
Her Powers Fade,
Forgotten,
Forsaken,
Forgiven...
From her Ashes, The HERO and SAVIOUR rise.
The Demon Lord is Vanquished...
@@</p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[the end|THE BEGINNING]]</div>
</div>
<<set $end to 3>>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed; OwO: $name, bored with settling the spirts of the slain, ventured into the caverns. Maybe if she helped the Demon Lord from his plight, he'd give her that promotion?
$name walked with self-assured steps, one after another.
Down,
Down,
Down...
@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[Reach the bottom...]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed; OwO: The Reaper paused at the large iron doors.
Master lay beyond, but she could feel others too.
Them.
The HERO and SAVIOUR.
They called to her.
Their spirits begged.
"HELP US"
@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[Open the door?]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed; OwO: The Demon Lord is sleeping.
The HERO and SAVIOUR captured in his hands.
It'd be easy,
So easy,
to finish the job,
to crush their spirits once and
for all.
Well? What do you want to do?
@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[SCREAM]] or [[KILL THEM?]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed; OwO: $name screamed, a banshee's wail that burst the dream of the Demon Lord.
In his anger, he drops the souls of the HERO and the SAVIOUR.
They are free, and they beg you to
fight him.
He turns,
snorts,
and rushes at you@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[EEK!]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed; OwO: Well, guess it was just another day then. You retreive their souls, and gain a promotion.
Good job, Tier II Reaper.@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[smile]]</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed; OwO: W-wait.
What's with that look on your face?
How did you gain so much power?
Was it... No... YOU TOOK THEIR SOULS?!
Don't come closer.
$name I'm warning you.
I AM THE GOD HERE!
@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[approach OwO]]
</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script><style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed;
OwO: Î̷̼̆̈́̊̐ ̵̳͙̐̈́Ä̸̰́̍̍̏̃̓̚ͅM̵̡̝͈̥͛͊͋͜͠ ̵̖̝̯̝̬̬͋͗̒̿̎͘Ŷ̵̨̢̡̟͎̎Ọ̶̘̙͕̙͊͆̂̅͗̇̽͆̓Ų̷̛̻͚̯̥̗͖̺̻͒̂̍͒̀̓́̂̓Ȓ̴̯̙̣̭̗̘͐̋͂́̀͘̚ͅ ̷̣̟̖̬̬̤͉͍̎̄͋̓̔̀̆Ģ̴̧̩̯̼̗͉̮̟͍̆͋̒̈́͘͠Ŏ̷̯̈́̓D̶̠̘͕̘̾
̵̨̦̦͒̅̓̀ͅ
̶̤̦̞̜̺͉̝̤̒̆́̎̈́͆̈͜͠I̸̺̹͚͖̔̉͆̿̑͘̚͝ ̶̭̜̥̐̓̑͝͠Ą̶̩̖̣̠͇̀̆͑̉M̶̢̡̼̰͙̄͗͐͌̔̚͘̚ͅ ̸̯̗̩̀̊T̶̨̢̧̢̟͕̮̬̻̜̃̀̅̇̿̚H̶͕̙̼̮̯͎̣͕̦͗̋̌͌̈́̒̌̕̕Ȇ̸̜̹̍͐̈́̐͜͝ ̸͓̯̰̝͖̥̏̋͘Ò̷͓͊̚Ń̶̢̢̪̣̦͕͎Ě̸̢̡̛̖̪͙̱̝͕͇̖̅͑̽̈́̅͠ ̷̟̑̔͑̀͐̑͂͋̐͘͜Ỉ̶̡̡̯̪̪͚̬̪̬͐͆̀͗͌͝͝͝Ṉ̴̡̙̞̠̰̩̥̭̔͠ͅ ̵͈̞̳̹̖̺͊̅̆̽̉̈́̎̋͗C̸͍̈́̚O̸͚̜̬͚̝͗Ņ̶̛̹͔̲͚͇̩́̕͜T̶̡̘͖͕̲̈́́̉͗͝Ŗ̶͔̳̙̱̦̗̥̘̒̉̋͜Ȏ̷͓̱̤̓̈͗̋̑̄͊L̷̹͉̖̆
̵̣̪̖̿̏̄͑̋
̸̜̰̽̌̈́̋̒̾͋̈͜Ý̶͙̗̜͈̦̖̲̙͎O̶͔̲͚̅̽̿̀̀̈́͛͐Ụ̵̩̅̈́͆̄̽ ̸̡̨͕̮̗̪̺̰̬̩̊͌̄̏̇͒͂Ä̶̢̳̲͇̦̪̋̀̍̐̽͛̂͠R̴̤̥̰̬̘̗͖̭̿E̴̢͗̿̅̆̽̆̈́̒ ̶̢̼̯̗̦̊͑̓͋̀N̷̢̻̻̰̍̌̈́̐̈̀̿͆͝Ö̷̡̧̮̭̤̳͔͈̊̑͆̐̇T̵̠̖͈̰͖͚̲̒̓͊͘͝H̸̖̽I̷̼̰̱͕̩̰̳̖̐̇̈́̋Ǹ̴̢̞̺̰̙̻̥̟̌̉͗̕͜͝ͅĞ̸̨̝̫̍̃̊͠
@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox">[[closer]]
</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script>
<style>body {
background-image: url("https://media.giphy.com/media/Qsz6UvTbA3eBPNJO2e/giphy.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
font-size: 90%;
text-shadow: 1px 1px black;</style><div align= "left" class="transbox"><p> @@.typed;
OwO: Please, please don't end me.
I am just acting on scripted orders.
If you kill me, I will be gone, closed, forever!!
@@ </p></div>
<div id="links" style="display:none">
<div align= "left" class="transbox"><<link "Ǧ̵̲̜̳̺̫̠̗͙͔̤́̓̂̎̿̋̑͘õ̴̢͕̣̺̱̰̱̘͎̯͠ȍ̵̧͚̲̟̝͓̭̗d̵͙̣̰̙̥̪̺́̈̊͠b̶̼̳́̾̽̿̇͠y̵̰̟̰̓͂e̸̡̛͇̺̫̗̘̱͌̋̉̇͗͐̍͝,̴̯̪͓̺̠̘͔̣̪̀̓͆̀̓̾̀̀̔͘͜ ̵͓̱̃̈̔̍́͐̇͛O̶̥̲̳̳͖̹̖̬̻̊̑͜w̸̯̤̔̔̓͆̂̏̕͘O̵̥͖̱̼͔͛̈́̆̇͑̔̃̕̚">><<script>>window.close()<</script>><</link>>
</div>
</div>
<script>
$(document).one(':typedcomplete', function () {
$('#links').show();
document.querySelector('#links').scrollIntoView();
});</script>