{ (if: $exp >= $totalexp)[(set: $level to it + 1) (set: $exp to it - $totalexp) (set: $totalexp to 100 * $level)] (set: $hpdice to 20 * $level) (set:$hp to $totalhp) <table> <td><b>Lvl:$level</b></td> <td><b>Exp:$exp/$totalexp</b></td> <td><b>Gold:$gold</b></td> </table> <table> <td>[[Adventure]] </td><td>[[Boost]]</td><td> <b>[[Save/Load]]</b></td> </table> <div>} {<table><td><b>Str:$str</b></td> <td><b>Hp:$totalhp</b></td> </table> <table><td><b> Str $$strup gold.</b></td><td></b>[[Upgrade|Str +]]</b></td> </table> <table><td><b> Hp $$hpup gold.</b></td><td>[[Upgrade|hp+]]</td> </table> <table><td><b style="color: violet";>Monster kills:$kills</b></td></table> <table><td><b style="color:violet";>Deaths:$deaths</b></td></table> <table><td>[[Back|Main]]</td> </table>} (if: $gold >= $strup)[<b>You upgraded your str by one. </b> (set: $str to it + 1)(set: $gold to $gold - $strup)(set: $strup to it + 25)](else:)[ <b>Not enough gold!</b>] </table> <td>[[Back|Boost]]</td> </table>(if: $gold >=$hpup) [<b>You upgraded your hp by 10. (set: $hp to it + 10) (set: $totalhp to it + 10) (set: $gold to it - $hpup)(set: $hpup to it + 25)] (else:) [<b>Not enough gold!.</b>] <table> <td>[[Back|Boost]]</td> </table>(set: $enemy to (either:"Gnome","Slime","Snake","Fairy","Bat","Rat","Bear","Wolf","Fox","Tarantula","Goblin","Giant toad","Troll","Gremlin","Manticore","Cyclope","Giant","Baby dragon","Green Dragon","Grey Dragon","Blue Dragon","Skelleton","Orc","Vampire","Werewolf","Giant spider","Horned viper","Giant scorpion","Giant beetle","Sand monster","Thorned devil","Witch","Knight","Vulture","Oryx","Cerberus","Kraken","Leviathan","Minotaur","Centaur","Sphinx","Chimera","Behemoth","Gorgon","Medusa","Banshee","Sabertooth","Gargoyle","Wendigo","Basilisk","Yeti","Golem","Sasquash","Reptilian","Alien","Phantom","Treant","Snowman","Giant serpent","Giant ant","Hydra","Oni","Ogre","Leperxhaun","Mermaid","Faun","Griffin","Phoenix","Unicorn","Imp","Hob goblin","Pixie","Fenrir","Giant roach","Wyvern","Hellhound",)) ((if: $level <=10) [(set:$enemystr to (random:1,30))(set: $enemyhp to(random: 5,100))] (if: $level >= 11 and <= 20)[(set: $enemystr to (random: 5, 50)) (set: $enemyhp to (random:10,150))] (if: $level >= 21 and <=30) [(set: $enemystr to (random:10,75)) (set: $enemyhp to (random: 20, 250))] (if: $level >=31 and <= 40)[(set: $enemystr to (random: 20,100)) (set: $enemyhp to (random:30,320))] (if: $level >= 41 and <= 50)[(set: $enemystr to (random: 30, 120)) (set: $enemyhp to (random: 40, 150))] (if: $level >=51 and <= 60)[(set: $enemystr to (random: 40,150)) (set: $enemyhp to (random: 50,180))] (if: $level >=61 and <= 70)[(set: $enemystr to (random:50,180)) (set: $enemyhp to (random: 60, 200))] (if: $level >= 71 and <= 80)[(set: $enemystr to (random:60,200)) (set: $enemyhp to (random: 70, 220))] (if: $hp >= 1)[ (go-to:"Fight")] (else:)[(go-to:"Dead")] {(if: $hp <= 0)[(set: $hp to 0) (go-to:"Dead")] (if: $enemyhp <=0)[(set: $enemyhp to 0) (go-to:"Win")] <table> <tr><td><b>You encounter a </b></td><td><b style="color:violet";>$enemy!</b></td></tr> <tr><td><b>Enemy Hp:</b><b style="color:violet";)>$enemyhp</b></td> <td><b>Str:$enemystr</b></td></tr> <tr><td><b>Your Hp:</b><b style="color:violet";>$hp</b></td> <td><b>Str:$str</b></td> </table> <table><td style="color: violet";>$result1</td></table> <table><td style= "color: violet";>$result2</td><table> <table><td>[[Attack]]</b><td>[[Run away]]</td> </table>} (go-to:"Main")(set: $gold to 0) (set: $str to 10) (set: $exp to 0) (set: $totalexp to 100) (set: $hp to 100) (set: $totalhp to 100) (set: $result1 to "") (set: $result2 to " ") (set: $level to 1) (set: $expwin to 0) (set: $goldwin to 0) (set: $enemyhp to 1) (set: $deaths to 0) (set: $strup to 25) (set: $hpup to 25) (go-to:"Main") (if: $enemyhp > 0 and $hp > 0) [ (set: $enemyattack to $enemystr + (random: 1,5)) ) (set: $attack to $str + (random: 1,5)) (set: $enemyhp to it - $attack) (set: $hp to it - $enemyattack) (set: $result1 to "The $enemy hits you for $enemyattack damage") (set: $result2 to "You hit the enemy for $attack damage")] (go-to:"Fight") { <table><span style="color:violet">YOU DIED!.</span></td><table> (set: $deaths to it + 1) <td><td>[[Back|Main]]</td> </table>}{(set: $result1 to "") (set: $result2 to "") (set: $kills to it + 1) (if: $level <= 10)[(set: $goldwin to (random: 1,20)) (set: $expwin to (random: 1,20))] (if: $level >= 11 and <= 20)[(set: $goldwin to (random:5,40)) (set: $expwin to (random: 5, 35))] (set: $gold to it + $goldwin) (set: $exp to it + $expwin) (if: $level >=21 and <= 30)[(set: $goldwin to (random: 10, 50)) (set: $expwin to (random: 10, 45))] (if: $level >=31 and <= 40)[(set: $goldwin to (random: 20,80)) (set: $expwin to (random:15,80))] (if: $level >=41 and <= 50)[ (set: $expwin to (random:20,90)) (set: $goldwin to (random: 25,100))] (if: $level >=51 and <= 60)[(set: $goldwin to (random:30, 140)) (set: $ezpwin to (random:25, 120))] <table><td><span style="color:violet";>WIN! </span></td> </table> <table><tr><td><b>You slayed the $enemy!.</b></td></tr> <tr><td><span style="color: violet";>You get $expwin exp and $goldwin gold!.</span> </td></tr></table> <table> <td>[[Back|Main]]</td> </table>} <table><td>[Save Game]<save| <b style="color: violet;"><-||||||||||||||||-></b> [Load Game]<restore| (click: ?save)[*Saved!*(savegame: "A")] (click: ?restore)[*If you're seeing this, the game failed to load.*(loadgame: "A")(go-to:"Main")]</td> </table> <table><td>[[Back|Main]]</td></table>