<center>@@color:darkgrey;letter-spacing:3px;font-size:2.5em;RANGER@@</center>
<center>@@color:darkgrey;letter-spacing:3px;font-size:1.5em;An Isaac Pampling game.@@</center>
<center>Enter your name.</center>
<center><<textbox "$playa" "">></center>
<center>[[Roll Stats|Stat Roll]]</center>
<center> <<display save/load>> </center>
<<set $ingame to 0>><center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;$playa@@</center> <<set $brawn to random(1, 10)>><<set $reflex to random(1, 10)>><<set $wit to random(1, 10)>><<set $int to random(1, 10)>><<set $grit to random(1, 10)>>
<center>Your base stats are randomly assigned, feel free to re-roll until you are satisfied.</center>
<center>Stats:</center>
<center>Brawn: $brawn</center>
<center>Grit: $grit</center>
<center>Reflex: $reflex</center>
<center>Wit: $wit</center>
<center>Intelligence: $int</center>
<center>[[Re-roll|Stat Roll]]</center>
<center>[[Set Off on the Trail|Begin]]</center><<link "Save/Load">><<script>>UI.saves()<</script>><</link>><center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Road to $city1 @@</center> <<nobr>> <<set $tempthreat to $temp - $clothes>><<if $tempthreat lt 0>> <<set $tempthreat to 0>><</if>><<set $banditroll to random(1, 40)>>
<<set $banditwitdc to random(10, 16)>><<set $witroll to random(1,10) +$wit>><<set $sneakdc to random(8, 15)>>
<</nobr>>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
<<nobr>><<set $biome1 to either("woods", "plains", "wooded clearing")>> <</nobr>><<nobr>><<set $dreamherbsell to random(0, 5)>><</nobr>>
<<nobr>>
<<if $banditroll is 40 and $witroll gt ($banditwitdc - 1)>>
You notice a bandit ahead. [[Try to sneak past|banditsneak1]] (REF DC:$sneakdc)
<</if>><</nobr>>
<<nobr>>
<<if $trade1roll is 20>>
You have crossed paths with a [[travelling merchant!|trade1]]
<</if>><</nobr>>
<<if $stamina lt 1>> You are too tired to do anything other than rest.<</if>>
<<nobr>>
<<if $biome1 is "woods" and $stamina gt 0>>
This is prime [[hunting land|hunting1]]
<</if>><</nobr>>
<<nobr>>
<<if $stamina gt 0 and $biome1 is "wooded clearing">>
This is prime [[grounds for foraging|foraging1]]<</if>><</nobr>><<nobr>><<if $stamina gt 0 and $biome1 is "plains">>
This is prime [[grounds for foraging|foraging1]]<</if>><</nobr>>
<<nobr>>
<<if $biome1 is "wooded clearing">>
This spot would be suitable for [[camp.|CAMP1]]
<</if>><</nobr>>
[[Carry on down the road|progress1]]
@@color:darkgrey;letter-spacing:2px;font-size:0.75em;The road continues through the $biome1.@@
<<if $health lt 1>><<goto DEATH>><</if>>
<<nobr>><<set $buy1 to random(2, 5)>><<set $buy2 to random(2, 5)>><<set $buy3 to random(2, 5)>><<set $buy4 to random(2, 5)>><<set $sell1 to random(1, 4)>><<set $sell2 to random(1, 2)>><<set $sell3 to random(1, 2)>><<set $sell4 to random(1, 4)>>
<</nobr>>
<<if $ingame gt 0>><<set $consumabletotal to $hpherb + $stimherb +$dreamherb>>
-------------------------------------------------------------------
HP:$health/$maxhealth DMG:1d6 (dagger)
STA:$stamina/10
Hunger:$hunger Clothes:$clothes
Rations:$ration Arrows:$arrow
Currency:$currency Pelts:$pelt
BRWN:$brawn|GRIT:$grit
REF:$reflex|WIT:$wit|INT:$int
@@color:darkgrey;letter-spacing:2px;font-size:0.85em;Distance traveled: $DisTrav@@
@@color:darkgrey;letter-spacing:2px;font-size:0.65em;Temperature:$disptemp | Temperature Threat:$tempthreat@@<<set $disptemp to $temp - 70>>
<<if $consumabletotal gt 0>>
-------------------------------------------------------------------
<<nobr>><<if $hpherb gt 0>> Healing Herb(s): $hpherb <</if>><</nobr>>
<<nobr>><<if $stimherb gt 0>> Stimulant Herb(s): $stimherb <</if>><</nobr>>
<<nobr>><<if $dreamherb gt 0>> Dreaming Herb(s): $dreamherb <</if>><</nobr>>
<</if>><</if>>
<<nobr>>
<<set $leg1 to random(32, 65)>><<set $temp to random(90, 98)>><<set $disptemp to $temp - 70>>
<<set $leg2 to random(43, 88)>>
<<set $leg3 to random(44, 90)>>
<<set $leg4 to random(67, 135)>>
<<set $leg5 to random(30, 45)>>
<<set $legtotal to $leg1 + $leg2 + $leg3 + $leg4 + $leg5>>
<<set $city1 to either("Armadale", "Gosnells", "Mandurah")>>
<<set $city2 to either("Byford", "Thornlie", "Claisebrook")>>
<<set $city3 to either("Midland", "Kwinana", "Ellenbrook")>>
<<set $city4 to either("Cloverdale", "Belmont", "East Vic Park")>>
<<set $city5 to either("Perth", "Subiaco", "Joondalup")>>
<<set $currency to random(3, 12)>>
<<set $ration to random(4, 8)>>
<<set $stamina to random(7, 10)>>
<<set $health to random(1, 4) + $grit>>
<<set $maxhealth to $health>>
<<set $arrow to random(1, 8)>>
<<set $hunger to 100>>
<<set $clothes to 100>>
<<set $DisTrav to 0>>
<<set $pelt to random(0, 2)>>
<<set $hpherb to random(0, 1)>>
<<set $stimherb to random(0, 1)>>
<<set $dreamherb to 0>>
<</nobr>>
HP: $health/$maxhealth
Stamina: $stamina/10
Currency: $currency
Rations: $ration
Arrows: $arrow
Total Journey Distance: $legtotal
[[Awaken]]
<<set $playadmg to 6>>YOU MADE IT TO PERTH!! YOU WIN!!!
[[Begin again?|START]]<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Road to $city1@@</center> <<nobr>> <<set $tempthreat to $temp - $clothes>><<if $tempthreat lt 0>> <<set $tempthreat to 0>><</if>><<if $tempthreat gt 0>><<set $coldroll to random(1, 100)>><</if>><</nobr>><<set $treesnag to random(1,10)>>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center> <<set $hungerroll to random(1, 8)>><<set $hunger to $hunger - $hungerroll>> <<nobr>><<set $trade1roll to random(1,20)>><<if $hunger gt 0>>
You wander further down the road.
-$hungerroll hunger.<<else>>
You are starving.
-1 hp<<set $health to $health - 1>><</if>><</nobr>>
<<nobr>><<if $biome1 is "woods" and $clothes gt 0 and $treesnag gt 7>><<set $clothdamage to random(3, 12)>> Your clothes got torn by a thorned branch on the path. -$clothdamage clothes. <<set $clothes to $clothes - $clothdamage>><</if>><<if $clothes lt 0>><<set $clothes to 0>><</if>><<if $trade1roll eq 20>>
There appears to be a travelling merchant ahead!<</if>><</nobr>>
<<nobr>><<if $coldroll lt $tempthreat or $coldroll eq $tempthreat>>
<<if $temp lt 70 and $temp gt 55>>
<<set $colddamagehp to random(0, 1)>><<else>> <<set $colddamagehp to 0>><</if>><<if $temp lt 56>>
<<set $colddamagehp to random(1, 4)>><</if>>
<<set $colddamagesta to random(1, 2)>><<set $health to $health - $colddamagehp>><<set $stamina to $stamina - $colddamagesta>>
The cold is bitter. -$colddamagehp hp, -$colddamagesta stamina.<</if>><</nobr>>
<<if $hunger lt -15>><<set $hunger to -15>><</if>>
<<if $health gt 0>> [[Carry on|Trail1]] <<else>> [[You have no fight left.|DEATH]]<</if>>
<<if $stamina lt 1 and $stimherb gt 0 and $health gt 0>>[[Take Stimulant Herb|stim1]] +1d4 Stamina, -1 to Stimulant Herb(s)<</if>>
<<nobr>>
<<set $leg1 to $leg1 - 1>><<set $DisTrav to $DisTrav + 1>>
<<if $leg1 lt 1>><<goto entercity1>><</if>>
<<set $buy1 to random(2, 5)>><<set $buy2 to random(2, 5)>><<set $buy3 to random(2, 5)>><<set $buy4 to random(2, 5)>><<set $sell1 to random(1, 4)>><<set $sell2 to random(1, 2)>><<set $sell3 to random(1, 2)>><<set $sell4 to random(1, 4)>><<set $stock to random(10, 25)>>
<<if $stamina lt 0>><<set $stamina to 0>><</if>>
<<if $banditroll eq 40>> <<goto banditapproaches1>><</if>>
<</nobr>>You awaken next to the remains of the fire you lit last night for warmth.
<<set $ingame to 1>><<set $tempthreat to $temp - $clothes>><<if $tempthreat lt 0>> <<set $tempthreat to 0>><</if>>
[[Continue on the trail|Trail1]]
<<nobr>><<set $buy1 to random(2, 5)>><<set $buy2 to random(2, 5)>><<set $buy3 to random(2, 5)>><<set $buy4 to random(2, 5)>><<set $sell1 to random(1, 4)>><<set $sell2 to random(1, 2)>><<set $sell3 to random(1, 2)>><<set $sell4 to random(1, 4)>><<set $stock to random(10, 25)>><</nobr>>TEST STAGE 1 DONE! Only 4 more trails to make!
[[restart|START]]<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Hunting@@</center>
<<set $brawndifficulty to random(8, 17)>><<set $reflexdifficulty to random(7, 16)>>
You have taken note of the local small game within the woods, and have assessed the difficulty of hunting in this area accordingly.
[[BRWN|brawn1hunt]] DC: $brawndifficulty, -1 stamina.
<<if $arrow gt 0>> [[REF|reflex1hunt]] DC: $reflexdifficulty, -1d4 arrows<</if>>
[[I shouldn't waste time hunting, I have to keep moving.|progress1]]<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Foraging@@</center>
<<set $witdifficulty to random(6, 15)>><<set $intdifficulty to random(7, 18)>>
You spent some time perusing the local flora, and have assessed the difficulty of identifying the edible plants.
[[WIT|forage1witcheck]] DC:$witdifficulty | [[INT|forage1intcheck]] DC:$intdifficulty
[[I shouldn't waste time foraging, I have to keep moving.|progress1]]
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Foraging@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;DC: $intdifficulty@@</center>
<<set $introll to random(1, 10) + $int>><<set $bounty to either("berries", "fungus", "nuts", "roots")>>
Your roll: $introll
<<nobr>><<if $introll gt $intdifficulty or $introll eq $intdifficulty>>
You successfully foraged some edible $bounty. <<set $bountyroll to random(1, 6)>><<set $ration to $ration + $bountyroll>>
Gained +$bountyroll rations!
<<if $introll gt $intdifficulty + 2 and $introll gt 15 and $biome1 is "wooded clearing">><<set $bountyroll2 to random(1, 4)>>
You also managed to identify some healing herbs!
+$bountyroll2 Healing Herb(s). <<set $hpherb to $hpherb + $bountyroll2>><</if>>
<<else>>
<<set $pen to either("health", "stamina")>><<set $penroll to random(1, 3)>>
<<if $pen is "health">>
<<set $health to $health - $penroll>>
<<else>>
<<set $stamina to $stamina - $penroll>><</if>>
You ate a poisonous $bounty, and lost $penroll $pen!!<</if>>
<</nobr>>
<<if $stamina lt 0>> <<set $stamina to 0>> <</if>>
[[Continue down the road.|progress1]]
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Foraging@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;DC: $witdifficulty@@</center>
<<set $witroll to random(1, 10) + $wit>><<set $bounty to either("berries", "fungus", "nuts", "roots")>>
Your roll: $witroll
<<nobr>><<if $witroll gt $witdifficulty or $witroll eq $witdifficulty>>
You successfully foraged some edible $bounty. <<set $bountyroll to random(1, 4)>><<set $ration to $ration + $bountyroll>>
Gained +$bountyroll rations!
<<if $witroll gt $witdifficulty + 2 and $witroll gt 15 and $biome1 is "plains">><<set $bountyroll2 to random(1, 4)>>
You also managed to identify some stimulant herbs!
+$bountyroll2 Stimulant Herb(s). <<set $stimherb to $stimherb + $bountyroll2>><</if>>
<<else>>
<<set $pen to either("health", "stamina")>><<set $penroll to random(1, 3)>>
<<if $pen is "health">>
<<set $health to $health - $penroll>>
<<else>>
<<set $stamina to $stamina - $penroll>><</if>>
You ate a poisonous $bounty, and lost $penroll $pen!!<</if>>
<</nobr>>
<<if $stamina lt 0>> <<set $stamina to 0>> <</if>>
[[Continue down the road.|progress1]]
You dieder :(
[[restart|START]]<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Camp@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
<<set $stamina to $stamina + random(1,4)>><<if $stamina gt 10>><<set $stamina to 10>><</if>>
You awake beside the dim glowing remnants of last night's fire.
[[Hit the road.|progress1]]
<<if $stamina lt 10 and $stimherb gt 0>>[[Take Stimulant Herb before hitting the road.|stim1]] +1d4 Stamina, -1 to Stimulant Herb(s)<</if>><center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Camp@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center> <<set $tempthreat to $temp - $clothes>><<if $tempthreat lt 0>> <<set $tempthreat to 0>><</if>>
You settle down to setup camp, lighting a small fire.
<<nobr>><<if $ration gt 0 and $hunger lt 100>>
[[Consume ration (+2d4 hunger)|eatration1]] <</if>><</nobr>>
<<nobr>>
<<if $stamina gt 0>>
[[Whittle and fletch some arrows (+1d4 arrows, -1 stamina)|fletch1]]<</if>><</nobr>>
<<nobr>>
<<if $pelt gt 0 and $clothes lt 100 and $stamina gt 0>>
[[Repair clothes (+1d4 clothes)|repair1]] <</if>><</nobr>>
<<nobr>>
<<if $health lt $maxhealth and $hpherb gt 0>>
[[Consume herbs to ease your wounds (+0-1hp)|heal1]] <</if>><</nobr>>
[[Go to sleep and keep moving come morning.|sleep1]]<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Road to $city1 @@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
"I have no stock left my friend! I wish you safe travels on your journey!"
[[Hit the road.|progress1]]<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Camp@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
You drift off to the crackling of the fire beside you.
[[Continue|awake1]]<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Camp@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
<<set $rationroll to random(2, 8)>><<set $ration to $ration -1>><<set $hunger to $hunger + $rationroll>> <<if $hunger gt 100>><<set $hunger to 100>><</if>>
You consume a ration, gaining +$rationroll hunger.
[[Turn your attentions back to camp.|CAMP1]]<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Camp@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
<<set $fletchroll to random(1, 4)>><<set $arrow to $arrow + $fletchroll>><<set $stamina to $stamina - 1>>
You gather sticks and some plant fibres from around the camp, which are in abundance. The work is tiring and tedious, but sure enough, you manage to complete $fletchroll arrows. -1 stamina.
[[Turn your attentions back to camp.|CAMP1]]<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Hunting@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;DC: $brawndifficulty@@</center>
<<set $brawnroll to random(1, 10) + $brawn>><<set $bounty to either("hare", "duck", "pheasant", "squirrel")>>
Your roll: $brawnroll
<<nobr>><<if $brawnroll gt $brawndifficulty or $brawnroll eq $brawndifficulty>>
You successfully managed to get the jump on a $bounty! <<set $bountyroll1 to random(1, 4)>><<set $bountyroll2 to random(0, 2)>><<set $ration to $ration + $bountyroll1>><<set $pelt to $pelt + $bountyroll2>><<set $stamina to $stamina - 1>>
Gained +$bountyroll1 rations and +$bountyroll2 pelts!
-1 stamina.
<<else>><<set $penroll to random(1, 3)>><<set $health to $health - $penroll>><<set $injurytype to either("tripped", "fell", "slipped")>><<set $injuryarea to either("head", "neck", "spine")>><<set $stamina to $stamina - 1>>
You $injurytype whilst hunting in the woods, hitting your $injuryarea! -$penroll hp, -1 stamina.<</if>><</nobr>>
[[Continue down the road.|progress1]]
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Hunting@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;DC: $reflexdifficulty@@</center>
<<set $reflexroll to random(1, 10) + $reflex>><<set $bounty to either("hare", "duck", "pheasant", "squirrel")>><<set $arrowroll to random(1,4)>><<if $arrowroll gt $arrow>><<set $arrowroll to $arrow>><</if>>
You skulk around the woods, spotting a $bounty! You swiftly fire $arrowroll arrow(s) in it's direction.
Your roll: $reflexroll
<<nobr>><<if $reflexroll gt $reflexdifficulty or $reflexroll eq $reflexdifficulty>>
<<set $bountyroll1 to random(1, 6)>><<set $bountyroll2 to random(0, 4)>><<set $ration to $ration + $bountyroll1>><<set $pelt to $pelt + $bountyroll2>><<set $arrow to $arrow - $arrowroll>><<set $arrowrecover to random(0, $arrowroll)>>
Your arrow(s) land true!
Gained +$bountyroll1 rations and +$bountyroll2 pelts!
-$arrowroll arrows.
<<else>>
Miss! Your bounty escapes!
-$arrowroll arrows.
<</if>><</nobr>>
[[Continue down the road.|progress1]]
<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Camp@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
<<set $repairroll to random(1, 4)>><<set $pelt to $pelt -1>><<set $clothes to $clothes + $repairroll>> <<if $clothes gt 100>><<set $clothes to 100>><</if>>
You sit down and patch the holes in your garb. +$repairroll clothes.
[[Turn your attentions back to camp.|CAMP1]]
<<set $tempthreat to $temp - $clothes>><<if $tempthreat lt 0>> <<set $tempthreat to 0>><</if>>
<<set $dice1 to random(1, 10)>><<set $dice2 to random(1, 10)>><<set $dice3 to random(1, 10)>><<set $dice4 to random(1, 10)>><<set $dice5 to random(1, 10)>>
Rolls: $dice1 | $dice2 | $dice3 | $dice4 | $dice5
<center>[[Re-roll|Stat roll 2nd ed.]]</center>
[[Procede|stat brwn]]]<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Camp@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
<<set $hproll to random(0, 1)>><<set $hpherb to $hpherb - 1>><<set $health to $health + $hproll>>
You consume the healing herb, gaining +$hproll hp.
[[Turn your attentions back to camp.|CAMP1]]<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Road to $city1@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
<<set $stimroll to random(1, 4)>><<set $stamina to $stamina + $stimroll>><<if $stamina gt 10>><<set $stamina to 10>><</if>><<set $stimherb to $stimherb - 1>>
The effects of the Stimulating Herb are immediate. +$stimroll to Stamina, -1 Stimulant Herb(s)
[[Carry on|Trail1]]
<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Road to $city1 @@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
The merchant smiles with glee as you approach.
"Come! Come see my wares traveller!"
Remaining Stock: $stock <<if $stock lt 1>> <<goto nostock1>><</if>>
Buy:
<<if $currency gt $buy1 or $currency eq $buy1>><<link "+1 pelt for -$buy1 currency">><<set $pelt to $pelt + 1>><<set $currency to $currency - $buy1>><<set $stock to $stock - 1>><<goto trade1>><</link>><</if>>
<<if $currency gt $buy2 or $currency eq $buy2>><<link "+1 ration for -$buy2 currency">><<set $ration to $ration + 1>><<set $currency to $currency - $buy2>><<set $stock to $stock - 1>><<goto trade1>><</link>><</if>>
<<if $currency gt $buy3 or $currency eq $buy3>><<link "+1 arrow for -$buy3 currency">><<set $arrow to $arrow + 1>><<set $currency to $currency - $buy3>><<set $stock to $stock - 1>><<goto trade1>><</link>><</if>>
Sell:
<<if $pelt gt 0>><<link "-1 pelt for +$sell1 currency">><<set $pelt to $pelt - 1>><<set $currency to $currency + $sell1>><<goto trade1>><</link>><</if>>
<<if $ration gt 0>><<link "-1 ration for +$sell2 currency">><<set $ration to $ration - 1>><<set $currency to $currency + $sell2>><<goto trade1>><</link>><</if>>
<<if $arrow gt 0>><<link "-1 arrow for +$sell3 currency">><<set $arrow to $arrow - 1>><<set $currency to $currency + $sell3>><<goto trade1>><</link>><</if>>
[[Leave.|progress1]]<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Road to $city1@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center><<nobr>><<set $turn to 0>>
<<set $bandithp to random(3, 8)>><<set $banditmaxhp to $bandithp>><<set $banditbrawn to random(3, 8)>><<set $banditreflex to random(3, 8)>><<set $banditdice to either(4, 6)>><<set $flee to 0>><<set $fleedc to $reflex + $grit>><<if $fleedc gt 20>><<set $fleedc to 20>><</if>><<set $arrowshoot to 0>><</nobr>>
A bandit approaches!
[[FIGHT!|banditbattle1]]First, decide what temperature range the game will operate within.
-24c -- + 36c range of 60! need range of 100 for current clothing and threat calc? fuck it
display temp = temp (1-100) - 70, ergo temp 70 = 0 degrees display temp
only do damage to hp if temp is below 0
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Stealth@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;DC: $sneakdc@@</center> <<set $reflexroll to random(1, 10) + $reflex>> <<if $reflexroll gt $sneakdc or $reflexroll eq $sneakdc>> <<set $banditroll to 0>> <</if>>
Your roll: $reflexroll
<<if $reflexroll gt $sneakdc or $reflexroll eq $sneakdc>> You manage to sneak past without making a sound. [[Carry on|progress1]]<<else>>"What's this over here then? Tryin' to sneak past me was ya?"
[[The bandit approaches.|banditapproaches1]]
<</if>>
<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Road to $city1@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;COMBAT@@</center>
<<nobr>>
<<set $banditattack to random(1, 4)>> <<set $banditclothdmg to random(2, 6)>><<set $banditbrawnroll to random(1, 10) + $banditbrawn>> <<set $banditreflexroll to random(1, 10) +$banditreflex>> <<if $bandithp lt 1>> <<set $banditattack to 0>> <<set $banditbrawnroll to 0>> <<set $banditreflexroll to 0>> <</if>>
<<set $brawnroll to random(1, 10) + $brawn>> <<set $reflexroll to random(1, 10) + $reflex>> <<set $playaattack to random(1, 6)>><<set $bowdmg to random(1, 6)>>
<<if $flee is 1>><<set $brawnroll to 0>><<set $reflexroll to 0>><</if>>
<</nobr>>
<<if $turn gt 0>>-------------------------------------------------------------------
$playa rolled: BRWN:$brawnroll REF:$reflexroll
Bandit rolled: BRWN:$banditbrawnroll REF:$banditreflexroll
-------------------------------------------------------------------
<<if $flee is 1>>$playa tried to escape! but failed! (Rolled $fleeroll)<</if>>
<<if $arrowshoot is 0 and $flee is 0>><<if $brawnroll gt $banditreflexroll or $brawnroll eq $banditreflexroll>>$playa got a hit on the bandit! Dealing $playaattack damage!<<set $bandithp to $bandithp - $playaattack>><<else>>$playa missed! <</if>><</if>>
<<if $banditbrawnroll gt $reflexroll or $banditbrawnroll eq $reflexroll>>The bandit ruthlessly tears into $playa! Dealing $banditattack HP and $banditclothdmg Clothes damage!<<set $health to $health - $banditattack>><<set $clothes to $clothes - $banditclothdmg>><<else>>The bandit missed! <</if>>
<<if $arrowshoot is 1>><<if $reflexroll gt $banditreflexroll or $reflexroll eq $banditreflexroll>>$playa's arrow made it's mark! Dealing $bowdmg damage!<<set $bandithp to $bandithp - $bowdmg>><<set $arrow to $arrow - 1>><<set $arrowshot to 0>><<else>>$playa's arrow missed! <<set $arrow to $arrow - 1>><<set $arrowshot to 0>><</if>><</if>>
<</if>>-------------------------------------------------------------------
Bandit
HP:$bandithp/$banditmaxhp BRWN:$banditbrawn REF:$banditreflex
Damage: 1d4 (Knife) <<if $bandithp lt 1 and $health gt 1>>[[Loot|bandit1loot]]<</if>>
<<if $health gt 0 and $bandithp gt 0>>-------------------------------------------------------------------<<set $flee to 0>><<nobr>>
<</nobr>>
<<link "BRAWL: BRWN vs REF">> <<set $arrowshoot to 0>><<goto banditbattle1>><</link>>
<<if $arrow gt 0>><<link "SHOOT: REF vs REF, 1d6 damage,-1 arrow">> <<set $arrowshoot to 1>><<goto banditbattle1>><</link>><</if>>
<<if $stamina gt 0>><<link "FLEE! DC:$fleedc (1d20), -1 stamina">><<set $fleeroll to random(1, 20)>><<if $fleeroll gt $fleedc or $fleeroll eq $fleedc>><<goto escapebandit>><<set $stamina to $stamina - 1>><<else>><<set $flee to 1>> <<goto banditbattle1>><<set $stamina to $stamina - 1>><</if>><</link>><</if>>
<</if>><<if $health lt 1>>-------------------------------------------------------------------
[[You have no fight left.|DEATH]]<</if>>
<<nobr>><<set $turn to $turn + 1>><</nobr>>
<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Road to $city1@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
You escaped the bandit!<<set $banditroll to 0>>
[[Carry on.|progress1]]<center>@@color:darkgrey;letter-spacing:2px;font-size:1.25em;Road to $city1@@</center>
<center>@@color:darkgrey;letter-spacing:2px;font-size:0.75em;Distance remaining: $leg1@@</center>
You search the corpse of the bandit, and find:
<<nobr>> <<set $banditroll to 0>> <<set $banditcurrency to random (4, 16)>> <<set $banditpelts to random (0, 3)>> <<set $banditration to random(4, 16)>> <<set $banditdreamherb to random(0, 1)>>
<<if $banditcurrency gt 0>>+ $banditcurrency currency <</if>>
<<if $banditpelts gt 0>>+ $banditpelts pelt(s) <</if>>
<<if $banditration gt 0>>+ $banditration ration(s) <</if>>
<<if $banditdreamherb gt 0>>+ $banditdreamherb dreaming herb! <</if>>
<<set $dreamherb to $dreamherb + $banditdreamherb>> <<set $currency to $currency + $banditcurrency>> <<set $pelt to $pelt + $banditpelts>> <<set $ration to $ration + $banditration>>
<</nobr>>
You quickly pack the items into your pack.
[[Journey on.|progress1]]