(set: $hp to 100)
(set: $coins to 1000)
(set: $days to 0)
(display: "Primal")
(set: $weapon to "Club")
Days since you began exploring $days days. Your funds are $coins coins. Your health level is $hp.
[[Relax]]
[[Shop]]
[[Adventure]] You have returned to your village. You are surrounded by your fellow cave people. People greet you as you walk by. The sun warms you, as your bare feet thud across the dusty trail. You approach your mud hut at the far edge of the village.
[[Open the door]]
[[Adventure->start adventure]](set: $hp to 100) (set: $days to $days + 1)
(text-colour: "#11FA44")[**You have been refreshed.**]
(display: "Primal")(text-colour: "#FF2D19")[**A Mammoth begins rampaging towards you!**] (set: $mammoth_hp to 3)
[[fight]]
[[flee->Primal]](if: (either: 0, 1) is 0)[
(text-colour: "#FF2D19")[**The mammoth attacks you!** ]
(set: $hp to $hp - (either: 10))
(if: $hp < 1)+(text-colour: "#FF2D19")[ You were [[killed]]! ]
(else:)+(text-colour: "#FF2D19")[ Your health is $hp.
[[fight]]
[[flee|Primal]] ]
]
(else:)[
(text-colour: "#C78FBA")[**You weakened the mammoth!** ]
(if: $weapon is "Club")[(set: $damage to 1)](else-if: $weapon is "Spiked club")[(set: $damage to 3)](else-if: $weapon is "Diamond spiked club")[(set: $damage to 5)] (if: $weapon is "Club")[(set: $damage to 1)](else-if: $weapon is "Spiked club")[(set: $damage to 3)](else-if: $weapon is "Diamond spiked club")[(set: $damage to 5)](else-if: $weapon is "Stone dagger")[(set: $damage to 7)](else-if: $weapon is "Diamond spear")[(set: $damage to 10)](set:$mammoth_hp = $mammoth_hp - $damage)
(if: $mammoth_hp < 1)+(text-colour: "#943E80")[ The [[mammoth is dead]]! You saved the village! ]
(else:)+(text-colour: "#943E80")[Its health is $mammoth_hp.
[[fight]]
[[flee|Primal]] ]
]**You are dead!** [[restart?|Primal]](set: $streak to $streak + 1)
(set: $drop to (random: 50,500) * $streak)
(set: $riches to $riches + $drop)
You collect $drop coins from the mammoth carcass! Your riches are currently $riches coins and your health is $hp. You've killed $streak beast (if: not($streak is 1))[s] on this adventure.
[[Another Mammoth attacks!|adventure]]
[[Continue|second adventure]]
[[Return to Village|collect riches]](set: $riches to 0) (set: $streak to 0)
(display: "Adventure")(display: "Adventure")(set: $coins to $coins + $riches)
(display: "Primal")(text-colour: "#FF2D19")[**A Saber-toothed tiger threatens your village!**] (set: $sabertooth_hp to 5)
[[fight-> fight2]]
[[Take riches and flee->collect riches]](if: (either: 0, 1) is 0)[
(text-colour: "#FF2D19")[**The Saber-toothed tiger attacks you!** ]
(set: $hp to $hp - (either: 20))
(if: $hp < 1)+(text-colour: "#FF2D19")[ You were [[killed]]! ]
(else:)+(text-colour: "#FF2D19")[ Your health is $hp.
[[fight-> fight2]]
[[flee|Primal]] ]
]
(else:)[
(text-colour: "#C78FBA")[**You weakened the Saber-toothed tiger!** ]
(if: $weapon is "Club")[(set: $damage to 1)](else-if: $weapon is "Spiked club")[(set: $damage to 3)](else-if: $weapon is "Diamond spiked club")[(set: $damage to 5)](if: $weapon is "Club")[(set: $damage to 1)](else-if: $weapon is "Spiked club")[(set: $damage to 3)](else-if: $weapon is "Diamond spiked club")[(set: $damage to 5)](else-if: $weapon is "Stone dagger")[(set: $damage to 7)](else-if: $weapon is "Diamond spear")[(set: $damage to 10)](set:$sabertooth_hp = $sabertooth_hp - $damage)
(if: $sabertooth_hp < 1)+(text-colour: "#943E80")[ The [[Saber-toothed tiger is dead]]! The villagers cheer with joy!]
(else:)+(text-colour: "#943E80")[Its health is $sabertooth_hp.
[[fight -> fight2]]
[[flee|Primal]] ]
](set: $streak to $streak + 1)
(set: $drop to (random: 300,700) * $streak)
(set: $riches to $riches + $drop)
You collect $drop coins from the Saber-toothed tiger carcass! Your riches are currently $riches coins and your health is $hp. You've killed $streak beasts on this adventure.
[[Another Saber-toothed tiger attacks!|second adventure]]
[[Another Mammoth attacks!|adventure]]
[[Continue|third adventure]]
[[Return to village|collect riches]]Your current weapon is a $weapon.
(if: $weapon is "Club")[ [[buy Spiked club]] (500 coins, does 3 damage) ](if: $weapon is "Spiked club")[ [[buy Diamond spiked club]] (1000 coins, does 5 damage) ]
(if: $weapon is "Diamond spiked club")[ [[buy Stone dagger ]] (1500 coins, does 7 damage) ]
(if: $weapon is "Stone dagger")[ [[buy Diamond spear ]] (2000 coins, does 10 damage) ]
[[go back home|Primal]](if: $coins > 500)[ (set: $weapon to "Spiked club") (set: $coins to $coins - 500) (display: "Shop")](else:)[You don't have enough money!
(display: "Shop")](if: $coins > 1000)[ (set: $weapon to "Diamond spiked club") (set: $coins to $coins - 1000) (display: "Shop")](else:)[You don't have enough money!
(display: "Shop")](text-colour: "#FF2D19")[**A Giant ground sloth is tormenting the villagers!**] (set: $gsloth_hp to 10)
[[fight-> fight3]]
[[Take riches and flee->collect riches]](if: (either: 0, 1) is 0)[
(text-colour: "#FF2D19")[**The Giant sloth bear attacks you!** ]
(set: $hp to $hp - (either: 20))
(if: $hp < 1)+(text-colour: "#FF2D19")[ You were [[killed]]! ]
(else:)+(text-colour: "#FF2D19")[ Your health is $hp.
[[fight-> fight3]]
[[flee|Primal]] ]
]
(else:)[
(text-colour: "#C78FBA")[**You weakened the Giant sloth bear!** ]
(if: $weapon is "Club")[(set: $damage to 1)](else-if: $weapon is "Spiked club")[(set: $damage to 3)](else-if: $weapon is "Diamond spiked club")[(set: $damage to 5)](if: $weapon is "Club")[(set: $damage to 1)](else-if: $weapon is "Spiked club")[(set: $damage to 3)](else-if: $weapon is "Diamond spiked club")[(set: $damage to 5)](else-if: $weapon is "Stone dagger")[(set: $damage to 7)](else-if: $weapon is "Diamond spear")[(set: $damage to 10)](set:$gsloth_hp = $gsloth_hp - $damage)
(if: $gsloth_hp < 1)+(text-colour: "#943E80")[ The [[Giant sloth bear is dead]]! The villagers are safe again!]
(else:)+(text-colour: "#943E80")[Its health is $gsloth_hp.
[[fight -> fight3]]
[[flee|Primal]] ]
](set: $streak to $streak + 1)
(set: $drop to (random: 700,1000) * $streak)
(set: $riches to $riches + $drop)
You collect $drop coins from the Giant sloth bear carcass! Your riches are currently $riches coins and your health is $hp. You've killed $streak beasts on this adventure.
[[Another Saber-toothed tiger attacks!|second adventure]]
[[Another Mammoth attacks!|adventure]]
[[Another Giant sloth bear attacks!|third adventure]]
[[Continue|forth adventure]]
[[Return to village|collect riches]](if: $coins > 1500)[ (set: $weapon to "Stone dagger") (set: $coins to $coins - 1500) (display: "Shop")](else:)[You don't have enough money!
(display: "Shop")](text-colour: "#FF2D19")[**An enraged Woolly Rhino threatens to wreak havoc on the village!**] (set: $gsloth_hp to 15)
[[fight-> fight4]]
[[Take riches and flee->collect riches]](if: (either: 0, 1) is 0)[
(text-colour: "#FF2D19")[**The Woolly Rhino attacks you!** ]
(set: $hp to $hp - (either: 20))
(if: $hp < 1)+(text-colour: "#FF2D19")[ You were [[killed]]! ]
(else:)+(text-colour: "#FF2D19")[ Your health is $hp.
[[fight-> fight4]]
[[flee|Primal]] ]
]
(else:)[
(text-colour: "#C78FBA")[**You weakened the Woolly Rhino!** ]
(if: $weapon is "Club")[(set: $damage to 1)](else-if: $weapon is "Spiked club")[(set: $damage to 3)](else-if: $weapon is "Diamond spiked club")[(set: $damage to 5)](if: $weapon is "Club")[(set: $damage to 1)](else-if: $weapon is "Spiked club")[(set: $damage to 3)](else-if: $weapon is "Diamond spiked club")[(set: $damage to 5)](else-if: $weapon is "Stone dagger")[(set: $damage to 7)](else-if: $weapon is "Diamond spear")[(set: $damage to 10)](set:$wrhino_hp = $wrhino_hp - $damage)
(if: $wrhino_hp < 1)+(text-colour: "#943E80")[ The [[Woolly Rhino is dead]]! The villagers are elated!]
(else:)+(text-colour: "#943E80")[Its health is $wrhino_hp.
[[fight -> fight4]]
[[flee|Primal]] ]
](set: $streak to $streak + 1)
(set: $drop to (random: 900,1500) * $streak)
(set: $riches to $riches + $drop)
You collect $drop coins from the Woolly Rhino carcass! Your riches are currently $riches coins and your health is $hp. You've killed $streak beasts on this adventure.
[[Another Saber-toothed tiger attacks!|second adventure]]
[[Another Mammoth attacks!|adventure]]
[[Another Giant sloth bear attacks!|third adventure]]
[[Another Woolly Rhino attacks!|forth adventure]]
[[Return to village|collect riches]](if: $coins > 2000)[ (set: $weapon to "Diamond spear") (set: $coins to $coins - 2000) (display: "Shop")](else:)[You don't have enough money!
(display: "Shop")]