(set: $hp to 10) (set: $turns to 0) (set: $inv to (a:)) (set: $fruit to 1) (set: $ore to 1) (set: $root to 1) (set: $inv to $inv + (a: "fruit")) (set: $offstage to (a: $fruit, $ore, $root, $fish, $cat, $mushroom)) [[Begin]] When you finally come to, you are laying in a cold, dark pit. The smell of wet dirt engulfs you. Standing, you are unable to make sense of a direction. You stumble over an endless network of tree roots. A growl echoes behind you. On your knees you turn. “Squish, squish, squish…” Your health is $hp. (if: $inv's length > 0)[Your inventory contains (print: $inv.join(", ")).] (else:)[Your inventory is empty.] [[Adventure->start adventure]] [[Mining]] [[Foraging]] <iframe width="560" height="315" src="https://www.youtube.com/embed/HaSKWtnzalA?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> “Squish, squish, squish…” You’ve heard stories of these grotesque beasts. Horrifying, viscous, terribly strong and worst of all...really, really, dumb. (set: $troll_hp to 9) [[Fight|Q1]] [[Flee->main]] (if: (either: 0, 1) is 0)[ The monster bites you! (set: $hp to $hp - (either: 1,2,3)) (if: $hp < 1)[ You are [[dead]]! ] (else:)[ Your health is $hp. [[Fight]] [[Flee|main]] ] ] (else:)[ You hit the monster! (set:$troll_hp = $troll_hp - 1) (if: $troll_hp < 1)[ The [[monster is dead]]! ] (else:)[ Its health is $troll_hp. [[Fight]] [[Flee|main]] ] ]You are dead! [[Restart|Init]] Congratulations! You've completed our first Math Lesson and defeated the Ogre. As the game is in Beta, I don't have a way of tracking your progress in the game. Please write down this code: 23V8 Keep track of which codes you complete to earn loot for your character! (set: $spoils to 0) (set: $streak to 0) (set: $turns to it+1) (display: "adventure")(set: $coins to $coins + $spoils) (display: "init2")(if: (passage:)'s name is "inventory")[<!--Do nothing-->] (else-if: (passage:)'s tags contains "noinventory")[<!--Do nothing-->] (else:)[Check [[inventory]].](if: $inv's length > 0)[Your inventory contains (print: $inv.join(", ")).] (else:)[Your inventory is empty.] (link-goto: "Return", (history:)'s last) (click: "fruit")[(display: "fruit")] (click: "root")[(display: "root")](set: $inv to $inv - (a: $fruit)) (set: $hp to $hp + (either: 1,2,)) (set: $turns to it+1) You munch happily on your fruit. You dig around the dark looking for ore... (if: ($ore) is 0)[ You've already searched this area. (set: $turns to it+1) [[Continue|main]] ] (else:) [[Mine]] You dig around the dark looking for herbs... (if: ($root) is 0)[ You've already searched this area. (set: $turns to it+1) [[Continue|main]] ] (else:) [[Forage]] (display: "main")(if: (either: 0, 1) is 0)[ You don't find anything. (set: $turns to it+1) [[Continue|main]] ] (else:)[ You found an Ore! (set: $inv to $inv + (a: "an ore")) (set: $turns to it+1) (set: $ore to it-1) [[Continue|main]] ] (if: (either: 0, 1) is 0)[ You don't find anything. (set: $turns to it+1) [[Continue|main]] ] (else:)[ You found a root! (set: $inv to $inv + (a: "a root")) (set: $turns to it+1) (set: $root to it-1) [[Continue|main]] ] (set: $q2 to (prompt: "60 divided by 3:", "")) (if: $q2 is '20')[ You hit the monster! (set:$troll_hp = $troll_hp - 1) (if: $troll_hp < 1)[ The [[monster is dead]]! ] (else:)[ Its health is $troll_hp. [[Fight|Q3]] [[Flee|main]] ] ] (else:)[ The monster bites you! (set: $hp to $hp - (either: 1,2,3)) (if: $hp < 1)[ You are [[dead]]! ] (else:)[ Your health is $hp. [[Fight|Q2]] [[Flee|main]] ] ] (set: $q1 to (prompt: "80 divided by 2:", "")) (if: $q1 is '40')[ You hit the monster! (set:$troll_hp = $troll_hp - 1) (if: $troll_hp < 1)[ The [[monster is dead]]! ] (else:)[ Its health is $troll_hp. [[Fight|Q2]] [[Flee|main]] ] ] (else:)[ The monster bites you! (set: $hp to $hp - (either: 1,2)) (if: $hp < 1)[ You are [[dead]]! ] (else:)[ Your health is $hp. [[Fight|Q1]] [[Flee|main]] ] ] (set: $Q3 to (prompt: "80 divided by 4:", "")) (if: $Q3 is '20')[ You hit the monster! (set: $troll_hp = $troll_hp - 1) (if: $troll_hp < 1)[ The [[monster is dead]]! ] (else:)[ Its health is $troll_hp. [[Fight|video2]] [[Flee|main]] ] ] (else:)[ The monster bites you! (set: $hp to $hp - (either: 1,2,3)) (if: $hp < 1)[ You are [[dead]]! ] (else:)[ Your health is $hp. [[Fight|Q3]] [[Flee|main]] ] ] (set: $Q3 to (prompt: "48 divided by 4:", "")) (if: $Q3 is '12')[ You hit the monster! (set: $troll_hp = $troll_hp - 1) (if: $troll_hp < 1)[ The [[monster is dead]]! ] (else:)[ Its health is $troll_hp. [[Fight|Q5]] [[Flee|main]] ] ] (else:)[ The monster bites you! (set: $hp to $hp - (either: 1,2)) (if: $hp < 1)[ You are [[dead]]! ] (else:)[ Your health is $hp. [[Fight|Q4]] [[Flee|main]] ] ] (set: $Q3 to (prompt: "55 divided by 5:", "")) (if: $Q3 is '11')[ You hit the monster! (set: $troll_hp = $troll_hp - 1) (if: $troll_hp < 1)[ The [[monster is dead]]! ] (else:)[ Its health is $troll_hp. [[Fight|Q6]] [[Flee|main]] ] ] (else:)[ The monster bites you! (set: $hp to $hp - (either: 1,2)) (if: $hp < 1)[ You are [[dead]]! ] (else:)[ Your health is $hp. [[Fight|Q5]] [[Flee|main]] ] ] (set: $Q3 to (prompt: "39 divided by 3:", "")) (if: $Q3 is '13')[ You hit the monster! (set: $troll_hp = $troll_hp - 1) (if: $troll_hp < 1)[ The [[monster is dead]]! ] (else:)[ Its health is $troll_hp. [[Fight|video3]] [[Flee|main]] ] ] (else:)[ The monster bites you! (set: $hp to $hp - (either: 1,2)) (if: $hp < 1)[ You are [[dead]]! ] (else:)[ Your health is $hp. [[Fight|Q6]] [[Flee|main]] ] ] (set: $Q3 to (prompt: "52 divided by 4:", "")) (if: $Q3 is '13')[ You hit the monster! (set: $troll_hp = $troll_hp - 1) (if: $troll_hp < 1)[ The [[monster is dead]]! ] (else:)[ Its health is $troll_hp. [[Fight|Q8]] [[Flee|main]] ] ] (else:)[ The monster bites you! (set: $hp to $hp - (either: 1,2)) (if: $hp < 1)[ You are [[dead]]! ] (else:)[ Your health is $hp. [[Fight|Q7]] [[Flee|main]] ] ] (set: $Q3 to (prompt: "75 divided by 5:", "")) (if: $Q3 is '15')[ You hit the monster! (set: $troll_hp = $troll_hp - 1) (if: $troll_hp < 1)[ The [[monster is dead]]! ] (else:)[ Its health is $troll_hp. [[Fight|Q9]] [[Flee|main]] ] ] (else:)[ The monster bites you! (set: $hp to $hp - (either: 1,2)) (if: $hp < 1)[ You are [[dead]]! ] (else:)[ Your health is $hp. [[Fight|Q8]] [[Flee|main]] ] ] (set: $Q3 to (prompt: "72 divided by 6:", "")) (if: $Q3 is '12')[ You hit the monster! (set: $troll_hp = $troll_hp - 1) (if: $troll_hp < 1)[ The [[monster is dead]]! ] (else:)[ Its health is $troll_hp. [[Fight]] [[Flee|main]] ] ] (else:)[ The monster bites you! (set: $hp to $hp - (either: 1,2)) (if: $hp < 1)[ You are [[dead]]! ] (else:)[ Your health is $hp. [[Fight|Q9]] [[Flee|main]] ] ] <iframe width="560" height="315" src="https://www.youtube.com/embed/g3Tdf5riT7M?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> [[Continue|Q4]] <iframe width="560" height="315" src="https://www.youtube.com/embed/Y5oJPm6skyI?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> [[Continue|Q7]] (set: $streak to $streak + 1) (set: $drop to (random: 3,10) * $streak) (set: $spoils to $spoils + $drop) You collect $drop coins from the monster carcass! Your spoils are currently $spoils coins and your health is $hp. You've killed $streak monster(if: not($streak is 1))[s] on this adventure. [[continue|collect spoils]]