(set: $hp to 20)
(set: $max_hp to 20)
You are standing outside of a run-down white house with a boarded up front door. There is a small mailbox here.
[[Open Mailbox->Mailbox]]
[[House->Look Closer(Start)]]
(set: $y to (text-color:"yellow"))
(set: $b to (text-color:"blue"))
(set: $r to (text-color:"red"))
(set: $weapon_name to "Nothing")
(set: $weapon to 0)
(set: $weapon_damage to 0)
(set: $weapon_list to (a:))The mailbox is very full. All of the contents fall out onto the ground. Would you like to try to search through it for (color: white)[ [[something important]]]?
[[Search]]
(if: $egg1 is 0)[
You found an easter egg! Here's $y[50 gold]!
(set: $gold to it + 50)
(set: $egg1 to 1)
](else:)[
Sorry, you already found this easter egg.
]
(display: "Mailbox")(live: .5s)[(either:"Spam Mail","Catalogue","[[Important Mail]]")]The letter you find is a business letter. It says:
Dear sir,
I am sending you this letter to offer you an offer. This offer I am offering is an offer that will change your life, if you choose to accept my offer I am offering you. If you accept the offer I am currently offering you, you will go on an adventure. You must defeat the great monster that has been plaguing the land. Along the way you will encounter many different obstacles such as puzzles or duels, and you must overcome all of them. There will be checkpoints. If you refuse the offer I am offering you, bad luck will be yours for a year. However, if you accept the offer I am offering you, you will be offered payment (which you can of course refuse, if you so wish to do that), and you will have the (link:"Adventure of a Lifetime")[(open-url:"https://www.youtube.com/watch?v=QtXby3twMmI")]. Best of luck on your adventure,
Ebon Boyger
[[Accept The Offer Offered To You->Acceptance]]
(link: "Refuse it")[Your life is boring, why should you?]You accepted the offer. Inside the letter, you find $y[10 Gold].
You may want to buy some items to prepare for your journey.
(set: $gold to it + 10)
[[To Shop->Shop]]
[[Start Quest]]This is the shop. You can buy items here.
You have $y[$gold Gold].
[[Buy Weapons]]
Your current weapon is: $weapon_name
[[Start your quest->Start Quest]](if: $gold > 9)[(set: $purchased to 1)]
(else:)[(set: $purchased to 0)]
(if: $purchased is 0)[(goto: "PurchaseFailed")]
(else:)[
(set: $gold to it - 10)
(set: $weapon to 1)
(set: $weapon_name to "Sword")
(set: $weapon_damage to 4)
(set: $hassword to 1)
(goto: "PurchaseSuccess")
](if: $swordType is 5)[$r[Your sword is already at the highest tier!]]
(if: $gold > 5*$swordType and $swordType < 5)[(set: $confirmPurchase to 1)]
(else-if: $gold < 5*$swordType or $swordType is 5)[(set: $confirmPurchase to 0)]
(if: $confirmPurchase is 1)[You upgraded your Sword.]
(unless: $confirmPurchase is 0)[(set: $gold to it - 5*$swordType)]
(unless: $confirmPurchase is 0)[(set: $swordType to it + 1)]
(if: $confirmPurchase is 0)[$r[You don't have enough gold to (either:"perform","complete") this action.]]
[[Done->Upgrade Weapons]]I'm taking this out for now. It doesn't really have much of a purpose.
(if: $swordType is 1)[You have a level 1 (link:"Wooden")[(open-url:"https://en.wikipedia.org/wiki/Wood")] Sword.]
(if: $swordType is 2)[You have a level 2 (link:"Stone")[(open-url:"https://en.wikipedia.org/wiki/Rock_(geology)")] Sword.]
(if: $swordType is 3)[You have a level 3 (link:"Iron")[(open-url:"https://en.wikipedia.org/wiki/Iron")] Sword.]
(if: $swordType is 4)[You have a level 4 (link:"Steel")[(open-url:"https://en.wikipedia.org/wiki/Steel")] Sword.]
(if: $swordType is 5)[You have a level 5 (link:"Mithril")[(open-url:"https://en.wikipedia.org/wiki/Mithril")] Sword.]
(if: $daggerType is 1)[You have a level 1 (link:"Wooden")[(open-url:"https://en.wikipedia.org/wiki/Wood")] Dagger.]
(if: $daggerType is 2)[You have a level 2 (link:"Stone")[(open-url:"https://en.wikipedia.org/wiki/Rock_(geology)")] Dagger.]
(if: $daggerType is 3)[You have a level 3 (link:"Iron")[(open-url:"https://en.wikipedia.org/wiki/Iron")] Dagger.]
(if: $daggerType is 4)[You have a level 4 (link:"Steel")[(open-url:"https://en.wikipedia.org/wiki/Steel")] Dagger.]
(if: $daggerType is 5)[You have a level 5 (link:"Mithril")[(open-url:"https://en.wikipedia.org/wiki/Mithril")] Dagger.]
(if: $axeType is 1)[You have a level 1 (link:"Wooden")[(open-url:"https://en.wikipedia.org/wiki/Wood")] Axe.]
(if: $axeType is 2)[You have a level 2 (link:"Stone")[(open-url:"https://en.wikipedia.org/wiki/Rock_(geology)")] Axe.]
(if: $axeType is 3)[You have a level 3 (link:"Iron")[(open-url:"https://en.wikipedia.org/wiki/Iron")] Axe.]
(if: $axeType is 4)[You have a level 4 (link:"Steel")[(open-url:"https://en.wikipedia.org/wiki/Steel")] Axe.]
(if: $axeType is 5)[You have a level 5 (link:"Mithril")[(open-url:"https://en.wikipedia.org/wiki/Mithril")] Axe.]
Which weapon would you like to buy?
(if: $hassword is 0)[ [[Buy Sword]]$y[ - 10 Gold]]
(if: $hasdagger is 0)[ [[Buy Dagger]]$y[ - 5 Gold]]
(if: $hasaxe is 0)[ [[Buy Axe]]$y[ - 10 Gold]]
[[Back->Shop]]Also disabling this, you might want to rework it later.
Select the weapon you would like to upgrade:
(if: $hasSword is 1)[ [[Upgrade Sword]]]
(if: $hasDagger is 1)[ [[Upgrade Dagger]]]
(if: $hasAxe is 1)[ [[Upgrade Axe]]]
(if: $hasSword is 0 and $hasDagger is 0 and $hasAxe is 0)[$r[You do not own any weapons.]]
[[Back->Shop]](if: $gold > 4)[(set: $purchased to 1)]
(else:)[(set: $purchased to 0)]
(if: $purchased is 0)[(goto: "PurchaseFailed")]
(else:)[
(set: $gold to it - 5)
(set: $weapon to 2)
(set: $weapon_name to "Dagger")
(set: $weapon_damage to 2)
(set: $hasdagger to 1)
(goto: "PurchaseSuccess")
](if: $gold > 9)[(set: $purchased to 1)]
(else:)[(set: $purchased to 0)]
(if: $purchased is 0)[(goto: "PurchaseFailed")]
(else:)[
(set: $gold to it - 10)
(set: $weapon to 3)
(set: $weapon_name to "Axe")
(set: $weapon_damage to 5)
(set: $hasaxe to 1)
(goto: "PurchaseSuccess")
](if: $daggerType is 5)[$r[Your dagger is already at the highest tier!]]
(if: $gold > 5*$daggerType and $daggerType < 5)[(set: $confirmPurchase to 1)]
(else-if: $gold < 5*$daggerType or $daggerType is 5)[(set: $confirmPurchase to 0)]
(if: $confirmPurchase is 1)[You upgraded your Dagger.]
(unless: $confirmPurchase is 0)[(set: $gold to it - 5*$daggerType)]
(unless: $confirmPurchase is 0)[(set: $daggerType to it + 1)]
(if: $confirmPurchase is 0)[$r[You don't have enough gold to (either:"perform","complete") this action.]]
[[Done->Upgrade Weapons]](if: $axeType is 5)[$r[Your axe is already at the highest tier!]]
(if: $gold > 5*$axeType and $axeType < 5)[(set: $confirmPurchase to 1)]
(else-if: $gold < 5*$axeType or $axeType is 5)[(set: $confirmPurchase to 0)]
(if: $confirmPurchase is 1)[You upgraded your Axe.]
(unless: $confirmPurchase is 0)[(set: $gold to it - 5*$axeType)]
(unless: $confirmPurchase is 0)[(set: $axeType to it + 1)]
(if: $confirmPurchase is 0)[$r[You do not have enough gold to (either:"perform","complete") this action.]]
[[Done->Upgrade Weapons]]You decide to begin the quest.
(save-game: "Slot 1")
[[Let's Goooooooooo->Forest]]You see a sign that says that the floor is unstable and could collapse. You decide not to go any further.
[[Back->Start]]You enter the forest behind the house and you are immediately on alert. You feel the presences of strange creatures lurking about in the bushes.
[[Search Bushes->Bushes]]
[[Continue Onward->Continue (Forest)]]You decided to inspect the bushes. This was a $r[(text-style:"rumble")[BAD]] idea. You found a strange creature that looked similar to a kangaroo but had an eyeball for a head. You are now dueling it.
(set: $creature_ID to 1)
(set: $beforefight to "Forest")
[[Duel->Enemy]]You continue down the path. The path is made of dirt, packed down by animals that have traveled through this region. You hear the sound of singing in the distance. It seems to be coming from somewhere off the path.
[[Follow Singing]]
[[Continue On Path]]You're fighting a: $creature_name
It has $creature_hp of $creature_maxhp
It deals $creature_damage damage!
(set: $hp to it - $creature_damage)
Your HP: $hp of $max_hp
Your weapon is a: $weapon_name
(if: $hp > 0)[ [[Hit it->DuelDamage]] ]
(else:)[
You died. [[Game over]].
]Click where you think the singing is coming from!
<div onmousemove="showCoords(event);" onclick="mouseClicked(event);" onmouseout="clearCoor()"></div>
<p id="found"></p>
<p id="stats"></p>
<audio id="singing" >
<source src="http://soundbible.com/mp3/Mystic_Chanting_2-Marianne_Gagnon-1201995361.mp3" type="audio/mp3">
</audio>
[[<p id="link">Continue</p>->Continue (To Gerblins)]]
<script>
document.getElementById('link').style.display = 'none';
var singing = document.getElementById('singing');
function showCoords(event) {
var x = event.clientX;
var y = event.clientY;
var distance = Math.sqrt(Math.pow((x-700),2)+(Math.pow(y-300),2))
singing.volume = 1 - (distance / 500);
singing.play();
var xClick = event.clientX;
var yClick = event.clientY;
var coor = "X coords: " + x + ", Y coords: " + y;
var dist = "Distance: " + distance;
<!--document.getElementById("stats").innerHTML = coor + dist;-->
}
function mouseClicked(event) {
var x = event.clientX;
var y = event.clientY;
var distance = Math.sqrt(Math.pow((x-700),2)+(Math.pow(y-30),2))
if(distance <=10) {
document.getElementById('found').innerHTML = "You found the singing!"
document.getElementById('link').style.display = 'block';
}
}
function clearCoor() {
document.getElementById("stats").innerHTML = "";
}
</script>Your hunger and the sound of the singing overpowers you and you decide to follow the singing, unable to resist it. You think there might be food. You begin to head back to where you first heard it.
(live: 7s)[(goto:"Continue (Forest)")] You find the source of the singing and it turns out to be //GERBLINS//. They seem goodnatured. They are having a feast in the trees of the forest.
[[Approach The Gerblins->Approach Gerblins]]
[[Leave]]You approach the gerblins. They are feasting on fruit and roasted nuts and singing merrily. Torches and candles light the wooden tables, and the seats are large logs. They see you approaching and are instantly silent.
[[Talk To Gerblins]]
[[Take A Seat->Take Seat]]You feel the sting of the wind as it bites at your face. You are cold. The sky begins to get darker as the sun sets. You need food and shelter.
[[Back->Continue (To Gerblins)]] (color:blue)[Hello, kind Gerblins. I am a tired traveler. I beg that you allow me to sit and eat, so that I may be on my way,] you say.
(color:green)[You do not seem like a threat, so you may eat. Just be aware that this is the //High Table//,] the king replies.
(set: $captured to 1)
(live: 7s)[(goto: "Eat/Offend")]You decide to take a seat at the table.
(set: $captured to 0)
(set: $offended to 0)
$r[(text-style:"rumble")[WHO DARES TAKE A SEAT AT THE HIGH TABLE UNINVITED?!]] growled the king gerblin.
You decide that this is not good.
(color:blue)[Pardon me, sir! I had no idea this was the High Table!] you say, getting up.
(link:"Bow To The King")[(color:green)[Very well. I can tell you mean no harm. Come sit down next to me and have some food.](set: $captured to 1)(live: 1s)[(goto: "Eat/Offend")]]
(link:"Flip Off The King")[$r[(text-style:"shudder")[YOU DARE ALSO OFFEND THE KING?! WHO DO YOU THINK YOU ARE??]](set: $offended to 1)(live: 1s)[(goto: "Eat/Offend")]](if: $offended is 1)[$r[(text-style:"smear")[Hundreds of Gerblin Soldiers swarm around you. They curse at you for offending their king, and then each take a turn stabbing you. You are now dead.]]
(live: 5s)[(load-game: "Slot 1")]]
(if: $captured is 1)[(color:green)[You sit down for a meal. You begin to eat. After a couple of minutes, you feel drowsy. You fall asleep.
(live: 7s)[(goto: "Captured")]]](if: $creature_ID is 1)[
(set: $creature_name to "Faerheln")
(set: $creature_damage to 2)
(set: $creature_maxhp to 15)
(set: $creature_hp to $creature_maxhp)
(set: $creature_gold to 5)
]
(goto: "Duel")You deal: $weapon_damage
(set: $creature_hp to it - $weapon_damage)
(if: $creature_hp > 1)[
(display: "Duel")
](else:)[
It dies. You gain: $y[$creature_gold] gold.
(link: "Leave")[(goto: $beforefight)]
]You do not have enough money to buy this.
(display: "Buy Weapons")Purchase success.
(display: "Buy Weapons")Game over.
(reload:)You wake up in a small room with rock walls. Tendrils of wood block the doorway. You can tell this was the doing of the gerblins.
[#"Fork them!"] you exclaim, pounding on the plant blocking your exit.