(set: $hp to 10) (set: $coins to 10) (set: $days to 0) (display: "Main") You've been adventuring for $days days. You have $coins coins and your health is $hp. [[rest]] [[adventure]] [[shop]] (if: $hp < 10)[ (set: $hp to 10) You have rested well, you have gained full health again! Hurrah! ] (else:)[ You are already rested enough ] (set: $days to $days + 1) [[Good sleep|Main]] A monster appears! (set: $monster_hp to (random: 1,10)) It's at $monster_hp health! [[fight]] [[flee->Main]][[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:$monster_hp = $monster_hp - (random: 1,3)) (if: $monster_hp < 1)[ The [[monster is dead]]! ] (else:)[ Its health is $monster_hp. [[fight]] [[flee|Main]] ] ] You are dead! [[restart?|Init]](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|adventure]] [[go home|collect spoils]] You are fatigued. Would you like to rest or continue to fight? [[rest]] [[Continue|adventure]] (set: $coins to $coins + $spoils) (display: "Main")