(set:$hp = 100) (set: $coins to 1000) (set: $days to 0) (set: $big_sword to (datamap: "Id", "big sword", "Cost", 50, "Damage", 5, "Next", 0)) (set: $small_sword to (datamap: "Id", "small sword", "Cost", 30, "Damage", 3, "Next", $big_sword)) (set: $dagger to (datamap: "Id", "dagger", "Cost", 10, "Damage", 1, "Next", $small_sword)) (set: $weapon to $dagger) (set: $s to (datamap: "Id", "s", "Cost", 50, "Health", 5, "Next", 0)) (set: $f to (datamap: "Id", "f", "Cost", 30, "Health", 3, "Next", $s)) (set: $z to (datamap: "Id", "z", "Cost", 10, "Health", 1, "Next", $f)) (set: $armour to $z) (display: "main") You've been adventuring for $days days. You have $coins coins and your health is $hp. (set:$lvl= 1+($xp/50)) your lvl is $lvl, your Hero Class is (if: $rankearned < 20)["C-Class"] (else:)["B-Class"] (print: $WD) Damage test [[Go kill some ghouls->Start Survival Mode]] [[Inventory]] [[Shop]] If this your first time playing to collect your weapon [[Vist the healer ninja's hospital->Sleep]] [[main]] lvl 1 ghoul appears! (set: $ghoul_hp to 30) [[fight]] [[flee->main]] (set: $counter to $counter + 5) [[Weapons]] [[Armour]] [[Consumables]] unlocked at lvl 20 [[main]] (if: (either: 0, 1) is 0)[ The ghoul takes a bite (set: $hp to $hp - $damage1) (set: $damage1 to (either:(random: 5,10),(random: 5,10),(random: 5,10),(random: 5,10),((random: 5,10)*5))) (if: $hp < 1)[ [[You barely escape]]!] (else:)[ Your health is $hp. [[fight]] [[flee|main]]] ] (else:)[ You hit the ghoul somehow! (set:$ghoul_hp = $ghoul_hp - $damageh - $damagea)(set: $damageh to (either:($WD*(random: 5,10)),($WD*(random: 5,10)),($WD*(random: 5,10)),($WD*(random: 5,10)),($WD*(random: 5,10)*5))) (if: $ghoul_hp < 1)[ [[What..What the hell are you]]!] (else:)[ Its health is $ghoul_hp. [[fight]] [[flee|main]]] ] You thought you could beat a ghoul pitiful human, atleast you can [[flee->main]] and go vist the [[healers->Sleep]] (set: $WD= $weapon's Damage* $lvl) (set: $hp to (100+$armour's Health)* $lvl) (set: $days to $days + 1) You feel good as new. (display: "main") (set: $coins to $coins + $spoils) (set: $xp to $xp +$xpearned) (display: "main") (set: $streak to $streak + 1) (set: $rankearned to $rankearned +1) (set: $drop to (random: 3,10) * $streak) (set: $spoils to $spoils + $drop) (set: $xpearned to (random: 3,10) * $streak) You collect $drop coins from the ghouls remains! Your spoils are currently $spoils coins $xpearned xp and your health is $hp. You've killed $streak ghoul (if: not($streak is 1))[s] on this adventure. [[continue|Survival Mode]] [[go home|collect spoils]] (set: $spoils to 0) (set: $streak to 0) (display: "Survival Mode") (if: $coins > ($next_weapon's Cost))[(set: $weapon to $next_weapon) (set: $coins to $coins - ($weapon's Cost)) (display: "Shop")] (else:)[You don't have enough money! (display: "Shop")] Your current weapon is a (print: $weapon's Id). (set: $next_weapon to $weapon's Next) (if: not ($next_weapon is 0))[ (set: $nwn to $next_weapon's Id) [[buy $nwn->buy]] ((print: $next_weapon's Cost) coins, does (print: $next_weapon's Damage) damage)] [[Shop]] Your current weapon is a (print: $armour's Id). (set: $next_armour to $armour's Next) (if: not ($next_armour is 0))[ (set: $nwn to $next_armour's Id) [[buy $nwn->buy 2]] ((print: $next_armour's Cost) coins, does (print: $next_armour's Health) Health)] [[Shop]] Double-click this passage to edit it. (if: $coins > ($next_armour's Cost))[(set: $armour to $next_armour) (set: $coins to $coins - ($armour's Cost)) (display: "Shop")] (else:)[You don't have enough money! (display: "Shop")]