(if: $rerolls is 0)[(set: $rerolls = 4)](set: $str = (random: 1,6)+(random: 1,6)+(random: 1,6))(set: $dex = (random: 1,6)+(random: 1,6)+(random: 1,6))(set: $con = (random: 1,6)+(random: 1,6)+(random: 1,6))(set: $maxhp = 10 + $con * 2)(set: $damagelow = 0 + (floor: $str/2))(set: $damagehigh = $damagelow + 5)(set: $hp = $maxhp, $level = 1, $nextlevel = 50, $skillpoints = 0, $gold = ((random: 1,10) + (random: 1,10)) * 10, $day = 1, $res = 0, $healthPotions = 0)(set: $blackout = (t8ndepart: "dissolve") + (t8ntime: 5s))(set: $exp = 0)Rolling 3d6 for Strength: $str Rolling 3d6 for Dexterity: $dex Rolling 3d6 for Constitution: $con Rolling 2d10 * 10 for starting money: $gold Done! [[To the game!!|main]] (if: $rerolls is not 1)[(linkrevealgoto: (text: $rerolls - 1) + " Reroll(s) Left", "INIT")[(set: $rerolls = it - 1)]](if: $hp < 1)[(set: $hp = 1, $res = 1)](set: $inventoryLocation = "main")Health: (print: '<meter value="' + (text: $hp) + '" min="0" max="' + (text: $maxhp) + '"></meter>') $hp/$maxhp HP Level: $level EXP: (print: '<progress value="' + (text: $exp) + '" min="0" max="' + (text: $nextlevel) + '"></meter>') $exp/$nextlevel Money: $gold GP Day: $day (set: $adventureStarted = 0) (if: $res is 1)[(if: $stash > 0 is true)[You were resurrected in town. As you check for your stash, it's gone! ](else:)[You were resurrected in town. ]] (if: $res is not 1)[[[Adventure!|adventureINIT]]](else:)[You are exhausted from your resurrection. Maybe you should rest?] [[Rest]] [[Shop]] [[Inventory]] [[Stats]]Health: (print: '<meter value="' + (text: $hp) + '" min="0" max="' + (text: $maxhp) + '"></meter>') $hp/$maxhp HP Stash: $stash GP EXP: (live: 1ms)[(print: '<progress value="' + (text: $exp) + '" min="0" max="' + (text: $nextlevel) + '"></meter>') $exp/$nextlevel] Kill Streak: $killStreak (set: $monster_hp = (random: 15,30) + $killStreak * 2) Monster Health: $monster_hp (set: $inventoryLocation = "attack", $hasntReturnedFromInventory = 1) You encountered a monster! [[Attack|attack]] (link: "Flee (Lose 1/4 of your stash)")[ Are you Sure? [[Yes|flee]]] [[Inventory]](set: $sleeping = 0)(set: $sleeptime = 1)You will rest for (live: 1ms)[$sleeptime] day(s). You will have (live: 1ms)[(set: $dispHP = $hp + ($sleeptime * 5))(if: $dispHP > $maxhp)[(set: $dispHP = $maxhp)](if:$sleeping is 0)[$dispHP](else:)[(text: $hp)]]/$maxhp HP when you are done resting. (linkrepeat: "[-10 Days]")[(set: $sleeptime = it - 10)(if: $sleeptime < 1)[(set: $sleeptime = 1)]] (linkrepeat: "[-1 Day]")[(set: $sleeptime = it - 1)(if: $sleeptime < 1)[(set: $sleeptime = 1)]] (linkrepeat: "[+1 Day]")[(set: $sleeptime = it + 1)] (linkrepeat: "[+10 Days]")[(set: $sleeptime = it + 10)] [[Cancel|main]] $blackout[[Sleep|sleeping]]NOTE: Not fully implemented, planning to add weapons, armor, and other items here in the final game. Which isn't gonna be here because prerelease version. Money: $gold GP [[Buy Health Potion - 10 GP|buyHealthPotion]] [[Return|main]](if: $gold >= 10)[(set: $gold = it - 10, $healthPotions = it + 1)] (goto: "Shop")NOTE: This is not fully developed yet, eventually, there will be a category-based system in the modern version. Of course this won't ever be updated here, bc prerelease version lmao(set: $hasntReturnedFromInventory = 0) Health: (print: '<meter value="' + (text: $hp) + '" min="0" max="' + (text: $maxhp) + '"></meter>') $hp/$maxhp HP (if: $healthPotions > 0)[ Health Potion(s): $healthPotions - [[Drink|drinkHealthPotion]] ] [[Return|returnToPosition]](set: $hp = $maxhp, $healthPotions = it - 1)(goto: "Inventory")(goto: $inventoryLocation)(if: $adventureStarted is 0)[(set: $stash = 0, $adventureStarted = 1, $killStreak = 0)] (set: $res = false) (goto: "Adventure!")(if: $hasntReturnedFromInventory is 1)[(if: (either: 0,1) is 0)[(set: $attacker = 0)](else:)[(set: $attacker = 1)]](else:)[(set: $attacker to 0)](set: $inventoryLocation = "attack", $successfulLifeThrows = 0)(if: $attacker is 0)[(set: $damage = (random: 1,8 + $killStreak))(set: $hp = it - $damage)(set:$failedLifeThrows = ($hp / -1) * 2)(if: $hp < 1 is true)[Health: (print: '<meter value="0" min="0" max="' + (text: $maxhp) + '"></meter>') 0/$maxhp HP EXP: (live: 1ms)[(print: '<progress value="' + (text: $exp) + '" min="0" max="' + (text: $nextlevel) + '"></meter>') $exp/$nextlevel] Monster Health: $monster_hp The monster attacks(cond: $hasntReturnedFromInventory is 0, " while you are vulnerable!", "!") Rolling 1d(print: 8 + $killStreak) for damage: $damage You take $damage damage! The attack knocks you out! Trying to survive... (if: $hp < 0)[Extra damage lowered your survival rate!] (live: 25ms)[(set: $rollResult = (random: 1,20))(if: $rollResult <= 10)[(set: $failedLifeThrows = it + 1)](else:)[(set: $successfulLifeThrows = it + 1)]Instability: (print: '<meter max=1000 min=0 value=' + (text: $failedLifeThrows * 10) + ' high=1 low=1 optimum=0>') Stability: (print: ' <meter max=1000 min=0 value=' + (text: $successfulLifeThrows * 10) + '>')(if: ($failedLifeThrows >= 100) or ($successfulLifeThrows >= 100))[(stop:)(if: $failedLifeThrows >= 100)[ Your heart faulters, and then stops beating. You died! $blackout[[//All you see is black...//|aDayPasses]]](else:)[(set: $hp = 1) You become stable, and wake up an hour later... (set: $day = it + 2) [[Crawl Home|claim]]]]]](else:)[Health: (print: '<meter value="' + (text: $hp) + '" min="0" max="' + (text: $maxhp) + '"></meter>') $hp/$maxhp HP EXP: (live: 1ms)[(print: '<progress value="' + (text: $exp) + '" min="0" max="' + (text: $nextlevel) + '"></meter>') $exp/$nextlevel] Monster Health: $monster_hp The monster attacks(cond: $hasntReturnedFromInventory is 0, " while you are vulnerable!", "!") Rolling 1d(print: 8 + $killStreak) for damage: $damage You take $damage damage! [[Attack|attack]] (link: "Flee (Lose 1/4 of your stash)")[ Are you Sure? [[Yes|flee]]] [[Inventory]]]](else:)[(set: $damage = (random: $damagelow,$damagehigh))(set: $monster_hp = it - $damage)(if: $monster_hp < 1 is true)[Health: (print: '<meter value="' + (text: $hp) + '" min="0" max="' + (text: $maxhp) + '"></meter>') $hp/$maxhp HP EXP: (live: 1ms)[(print: '<progress value="' + (text: $exp) + '" min="0" max="' + (text: $nextlevel) + '"></meter>') $exp/$nextlevel] Monster Health: 0 (set: $loot = (random: 1,5) + $killStreak, $xpgain = (round: (random: 5,10) * (($killStreak + 1)*0.25)))(set: $stash = it + $loot, $exp = it + $xpgain) You attack! Rolling 1d6 + (text: $damagelow - 1) for damage: $damage You deal $damage damage! The attack was lethal! The monster died! On its corpse, it had $loot GP. Your stash is now worth $stash GP. You gained $xpgain EXP! (if: $exp >= $nextlevel)[You leveled up! You got 3 skillpoints!(set: $skillpoints = it + 3, $level = it + 1, $nextlevel = it + (round: it * 0.1), $exp = it - $nextlevel)] (set: $killStreak = it + 1) [[Continue Adventuring!|adventureINIT]] [[Go home|claim]]](else:)[Health: (print: '<meter value="' + (text: $hp) + '" min="0" max="' + (text: $maxhp) + '"></meter>') $hp/$maxhp HP EXP: (live: 1ms)[(print: '<progress value="' + (text: $exp) + '" min="0" max="' + (text: $nextlevel) + '"></meter>') $exp/$nextlevel] Monster Health: $monster_hp You attack! Rolling 1d6 + (text: $damagelow - 1) for damage: $damage You deal $damage damage! [[Attack|attack]] (link: "Flee (Lose 1/4 of your stash)")[ Are you Sure? [[Yes|flee]]] [[Inventory]]]] (set: $hasntReturnedFromInventory = 1)(set: $goldLost = (round: $stash / 4))(set: $stash = it - $goldLost)You flee back to town! You lost $goldLost GP from your stash! Your stash is now worth $stash GP. [[Continue|claim]](set: $gold = it + $stash)You claim $stash GP. $blackout[[Return to town|aDayPasses]](live: 7s)[(stop:)(set: $day = it + 1)(goto: "main")] (set: $hp = $hp + ($sleeptime * 5), $sleeping = 1)(if: $hp > $maxhp)[(set: $hp = $maxhp)](set: $res = false) (set: $day = it + ($sleeptime - 1)) (goto: "aDayPasses")(live: 1ms)[(set: $maxhp = 10 + $con * 2)(set: $damagelow = 0 + (floor: $str/2))(set: $damagehigh = $damagelow + 5)]Health: (live: 1ms)[(print: '<meter value="' + (text: $hp) + '" min="0" max="' + (text: $maxhp) + '"></meter>') $hp/$maxhp HP] Level: $level EXP: (print: '<progress value="' + (text: $exp) + '" min="0" max="' + (text: $nextlevel) + '"></meter>') $exp/$nextlevel Money: $gold GP Day: $day (live: 1ms)[Skill Points: $skillpoints] Strength: (live: 1ms)[$str] (linkrepeat: "+1")[(if: $skillpoints is not 0)[(set: $str = it + 1, $skillpoints = it - 1)]] Dexterity (Does nothing, so no button, used in modern version): $dex Constitution: (live: 1ms)[$con] (linkrepeat: "+1")[(if: $skillpoints is not 0)[(set: $con = it + 1, $skillpoints = it - 1)]] Damage (Dependent on Strength): (live: 1ms)[$damagelow - $damagehigh (1d6 + (text: $damagelow - 1))] [[Return|main]]