<<set $ax = 14>><<set $ay = 11>><<display "runAction">>
<<set $ax = 14>><<set $ay = 10>><<display "runAction">>
<<if $_i lt 6>>\n<<set $_x = Math.floor (Math.random() * 16)>>\n<<set $_y = Math.floor (Math.random() * 12)>>\n<<if $landscape[$_y][$_x] == 0>><<set $landscape[$_y][$_x] = 1>><<endif>>\n<<if $landscape[$_y][$_x] == 6>><<set $landscape[$_y][$_x] = 1>><<endif>>\n<<set $_i = $_i + 1>>\n<<display "growTrees'">>\n<<endif>>
* You prepare the leaf ointment and give it to the dryad. She thanks you profusely and leaves.<<set $wood = $wood - 1>><<set $whiteHerbs = $whiteHerbs - 2>><<set $visitor = "">><<display "growTrees">>\n* She also gives you a cake (leaf flavored).<<set $cakes = $cakes + 1>>\n<<display "farm">>
* You turn in for the night. <<if $dream =="good">>You have a good dream. <<set $dream = "">><<endif>>It's a clear morning the next day.\n<<silently>>\n<<set $stamina = 6>>\n<<set $day = $day + 1>>\n<<set $visitor = "">>\n<<if $day gte 3 and $day % 2 == 1>>\n<<set $visitor = $visitors[Math.floor (Math.random() * $visitors.length)]>>\n<<endif>>\n<<display "growCrops">>\n<<display "decay">>\n<<endsilently>><<display "farm">>
<<set $ax = 3>><<set $ay = 10>><<display "runAction">>
<<set $ax = 11>><<set $ay = 10>><<display "runAction">>
h1, h2, h3 {\n display: none;\n}\nbody {\n font-family: "Courier New", "Courier", "FreeMono", monospace;\n font-size: 14pt;\n}\nul {\n margin-bottom: 0;\n}\nul + ul {\n margin-top: 0;\n}
<<set $_i = 0>>\n<<display "decay'">>
<<set $ax = 3>><<set $ay = 8>><<display "runAction">>
<<set $ax = 3>><<set $ay = 11>><<display "runAction">>
<<set $ax = 9>><<set $ay = 10>><<display "runAction">>
THE FARM
<<set $ax = 6>><<set $ay = 10>><<display "runAction">>
<<if $_y lt 12>><<set $_x = 0>><<display "growCropRow">><<set $_y = $_y + 1>><<display "growCrops'">><<endif>>
<<set $ax = 5>><<set $ay = 10>><<display "runAction">>
<<set $ax = 5>><<set $ay = 11>><<display "runAction">>
<<silently>>\n<<if $_x lt 16>>\n<<if $landscape[$_y][$_x] == 4>><<set $landscape[$_y][$_x] = 5>><<endif>>\n<<if $landscape[$_y][$_x] == 3>><<set $landscape[$_y][$_x] = 4>><<endif>>\n<<if $landscape[$_y][$_x] == 9>><<set $landscape[$_y][$_x] = 16>><<endif>>\n<<if $landscape[$_y][$_x] == 8>><<set $landscape[$_y][$_x] = 9>><<endif>>\n<<if $landscape[$_y][$_x] == 7>><<set $landscape[$_y][$_x] = 8>><<endif>>\n<<if $landscape[$_y][$_x] == 17>><<set $landscape[$_y][$_x] = 0>><<endif>>\n<<if $landscape[$_y][$_x] == 15>><<set $landscape[$_y][$_x] = 17>><<endif>>\n<<if $landscape[$_y][$_x] == 2>><<set $landscape[$_y][$_x] = 15>><<endif>>\n<<if $landscape[$_y][$_x] == 20>><<set $landscape[$_y][$_x] = 14>><<endif>>\n<<if $landscape[$_y][$_x] == 19>><<set $landscape[$_y][$_x] = 20>><<endif>>\n<<set $_x = $_x + 1>><<display "growCropRow">>\n<<endif>>\n<<endsilently>>
<<set $ax = 6>><<set $ay = 9>><<display "runAction">>
<<set $ax = 6>><<set $ay = 8>><<display "runAction">>
<<set $ax = 6>><<set $ay = 5>><<display "runAction">>
<<set $ax = 6>><<set $ay = 4>><<display "runAction">>
<<set $ax = 6>><<set $ay = 7>><<display "runAction">>
<<set $ax = 6>><<set $ay = 6>><<display "runAction">>
<<set $ax = 6>><<set $ay = 1>><<display "runAction">>
<<set $ax = 6>><<set $ay = 0>><<display "runAction">>
<<set $ax = 6>><<set $ay = 3>><<display "runAction">>
<<set $ax = 6>><<set $ay = 2>><<display "runAction">>
* You steep the tea and give it to the wailing ghost. They become caught up in the wheel of life and death.<<set $greenHerbs = $greenHerbs - 2>><<set $visitor = "">>\n* They leave behind a cake (ash flavored).<<set $cakes = $cakes + 1>>\n<<display "farm">>
<<set $ax = 13>><<set $ay = 10>><<display "runAction">>
<<set $ax = 13>><<set $ay = 11>><<display "runAction">>
<<set $ax = 15>><<set $ay = 8>><<display "runAction">>
<<set $ax = 15>><<set $ay = 9>><<display "runAction">>
<<set $ax = 15>><<set $ay = 4>><<display "runAction">>
<<set $ax = 15>><<set $ay = 5>><<display "runAction">>
<<set $ax = 15>><<set $ay = 6>><<display "runAction">>
<<set $ax = 15>><<set $ay = 7>><<display "runAction">>
<<set $ax = 15>><<set $ay = 0>><<display "runAction">>
<<set $ax = 15>><<set $ay = 1>><<display "runAction">>
<<set $ax = 15>><<set $ay = 2>><<display "runAction">>
<<set $ax = 15>><<set $ay = 3>><<display "runAction">>
<<if $_y lt 12>> <<set $_k = 0>> <<display "printLandscapeRow">> <<set $_y = $_y + 1>> <<display "printLandscape'">> <<endif>>
<<if $_i lt 6>>\n<<set $_x = Math.floor (Math.random() * 16)>>\n<<set $_y = Math.floor (Math.random() * 12)>>\n<<if $landscape[$_y][$_x] == 0>><<set $landscape[$_y][$_x] = 19>><<endif>>\n<<if $landscape[$_y][$_x] == 6>><<set $landscape[$_y][$_x] = 19>><<endif>>\n<<set $_i = $_i + 1>>\n<<display "growTrees'">>\n<<endif>>
<<set $ax = 2>><<set $ay = 11>><<display "runAction">>
<<set $ax = 2>><<set $ay = 10>><<display "runAction">>
<<set $ax = 2>><<set $ay = 1>><<display "runAction">>
<<set $ax = 2>><<set $ay = 0>><<display "runAction">>
<<set $ax = 2>><<set $ay = 3>><<display "runAction">>
<<set $ax = 2>><<set $ay = 2>><<display "runAction">>
<<set $ax = 2>><<set $ay = 5>><<display "runAction">>
<<set $ax = 2>><<set $ay = 4>><<display "runAction">>
<<set $ax = 2>><<set $ay = 7>><<display "runAction">>
<<set $ax = 2>><<set $ay = 6>><<display "runAction">>
<<set $ax = 2>><<set $ay = 9>><<display "runAction">>
<<set $ax = 2>><<set $ay = 8>><<display "runAction">>
* <<set $tool = 1>>You pick up your hammer.\n<<display "farm">>
<<set $ax = 3>><<set $ay = 9>><<display "runAction">>
<<set $ax = 3>><<set $ay = 4>><<display "runAction">>
<<silently>>\n<<set $_i = 0>>\n<<display "growRocks'">>\n<<endsilently>>
<<set $ax = 11>><<set $ay = 0>><<display "runAction">>
<<set $ax = 11>><<set $ay = 1>><<display "runAction">>
<<set $ax = 11>><<set $ay = 2>><<display "runAction">>
<<set $ax = 11>><<set $ay = 3>><<display "runAction">>
<<set $ax = 11>><<set $ay = 4>><<display "runAction">>
<<set $ax = 11>><<set $ay = 5>><<display "runAction">>
<<set $ax = 11>><<set $ay = 6>><<display "runAction">>
<<set $ax = 11>><<set $ay = 7>><<display "runAction">>
<<set $ax = 11>><<set $ay = 8>><<display "runAction">>
<<set $ax = 11>><<set $ay = 9>><<display "runAction">>
<<set $ax = 12>><<set $ay = 9>><<display "runAction">>
<<set $ax = 12>><<set $ay = 8>><<display "runAction">>
<<if $_i lt 12>>\n<<set $_x = Math.floor (Math.random() * 16)>>\n<<set $_y = Math.floor (Math.random() * 12)>>\n<<if $landscape[$_y][$_x] == 18>><<set $landscape[$_y][$_x] = 6>><<else>>\n<<if $landscape[$_y][$_x] == 6>><<set $landscape[$_y][$_x] = 18>><<endif>><<endif>>\n<<if $landscape[$_y][$_x] == 0>><<set $landscape[$_y][$_x] = 6>><<endif>>\n<<if $landscape[$_y][$_x] == 12>><<set $landscape[$_y][$_x] = 0>><<endif>>\n<<set $_i = $_i + 1>>\n<<display "decay'">>\n<<endif>>
<<set $ax = 10>><<set $ay = 11>><<display "runAction">>
<<set $ax = 10>><<set $ay = 10>><<display "runAction">>
* <<set $tool = 3>>You pick up your scythe.\n<<display "farm">>
<<set $ax = 12>><<set $ay = 10>><<display "runAction">>
LEGEND:\n\n{{{,.}}}\n{{{.'}}} is grass. you can plow it into a field with the hoe, or stamp it down into dirt with the hammer,\n\n{{{';}}}\n{{{"'}}} is thick grass. you can weed it into grass with the hoe.\n\n{{{--}}}\n{{{-~}}} is bare dirt. you can erect buildings on bare dirt.\n\n{{{==}}}\n{{{==}}} is a field. you can plant crops or herbs with the seed bags.\n\n{{{Oo}}}\n{{{oO}}} are rocks. you can smash them with the hammer to get one rock.\n\n{{{/A}}}\n{{{11}}} is a tree. yes, it is. you can cut it down with the axe to get one wood.\n\n{{{,a}}}\n{{{ii}}}\n\n{{{/a}}}\n{{{tt}}} are saplings. you can cut them down with the axe, but they don't get you anything.\n\n{{{cC}}}\n{{{Hh}}} are crops and herbs in various phases of growth.\n\n{{{00}}}\n{{{YY}}} is wall. it can be destroyed with the hammer.\n\n{{{++}}}\n{{{++}}} is interior floor. it can be destroyed with the hammer.\n\n{{{@;}}}\n{{{"@}}} are berry bushes. you can harvest them with your... scythe. sure.\n\n[[<- back|farm]]
<<set $ax = 7>><<set $ay = 10>><<display "runAction">>
<<set $ax = 7>><<set $ay = 11>><<display "runAction">>
<<set $ax = 10>><<set $ay = 9>><<display "runAction">>
<<set $ax = 10>><<set $ay = 8>><<display "runAction">>
<<set $ax = 8>><<set $ay = 9>><<display "runAction">>
<<set $ax = 8>><<set $ay = 8>><<display "runAction">>
<<set $ax = 10>><<set $ay = 5>><<display "runAction">>
<<set $ax = 10>><<set $ay = 4>><<display "runAction">>
<<set $ax = 8>><<set $ay = 5>><<display "runAction">>
<<set $ax = 8>><<set $ay = 4>><<display "runAction">>
<<set $ax = 10>><<set $ay = 1>><<display "runAction">>
<<set $ax = 8>><<set $ay = 2>><<display "runAction">>
<<set $ax = 8>><<set $ay = 1>><<display "runAction">>
<<set $ax = 10>><<set $ay = 2>><<display "runAction">>
<<set $ax = 14>><<set $ay = 9>><<display "runAction">>
<<set $ax = 14>><<set $ay = 8>><<display "runAction">>
* <<set $tool = 2>>You pick up your bag of seeds.\n<<display "farm">>
<<set $ax = 14>><<set $ay = 1>><<display "runAction">>
<<set $ax = 14>><<set $ay = 0>><<display "runAction">>
<<set $ax = 14>><<set $ay = 3>><<display "runAction">>
<<set $ax = 14>><<set $ay = 2>><<display "runAction">>
<<set $ax = 14>><<set $ay = 5>><<display "runAction">>
<<set $ax = 14>><<set $ay = 4>><<display "runAction">>
<<set $ax = 14>><<set $ay = 7>><<display "runAction">>
<<set $ax = 14>><<set $ay = 6>><<display "runAction">>
<<set $ax = 1>><<set $ay = 10>><<display "runAction">>
<<set $ax = 1>><<set $ay = 11>><<display "runAction">>
<<if $_x lt 16>><<if $tools[$tool][1].indexOf ($landscape[$_y][$_x]) eq -1>><<print "{{{" + $lands[$landscape[$_y][$_x]][Math.floor (Math.random() * $lands[$landscape[$_y][$_x]].length)][$_k] + "}}}">><<else>><<print "[[" + $lands[$landscape[$_y][$_x]][Math.floor (Math.random() * $lands[$landscape[$_y][$_x]].length)][$_k] + "|x" + $_x + "y" + $_y + "]]">><<endif>><<set $_x = $_x + 1>><<display "printLandscapeCell">><<endif>>
<<set $ax = 11>><<set $ay = 11>><<display "runAction">>
* <<set $tool = 6>>You prepare a wall scaffold.\n<<display "farm">>
<<set $ax = 8>><<set $ay = 11>><<display "runAction">>
<<set $ax = 8>><<set $ay = 10>><<display "runAction">>
<<silently>>\n<<set $landscape =\n [ [13,14,18, 6,14, 6,14, 6, 1, 6,14, 1, 0, 1, 1,13]\n , [14, 6,14,14,14, 6, 6, 1, 6, 6, 0, 1, 6,14, 6, 1]\n , [ 6,14, 6,14, 6,10,10,10,10,10, 6, 0, 1, 1, 1, 1]\n , [ 0, 6,14, 6, 0,10,11,11,11,10, 0, 1, 1, 0, 6, 1]\n , [ 6,18, 6, 1, 0,10,11,11,11,10, 6, 6, 0, 1, 1, 6]\n , [ 0, 6,14, 0, 0,10,11,10,10,10, 0, 6, 1, 1,14, 0]\n , [ 0, 0, 0, 0, 0, 0,12, 0, 7, 7, 0, 0, 0, 6, 1, 1]\n , [ 0, 0, 1, 0, 0, 0,12, 0, 0, 0, 0, 0, 6, 0, 6, 1]\n , [ 0, 1, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 6, 1, 0]\n , [ 0, 0, 0, 1, 0, 0, 0, 0, 2, 2, 0, 0, 0, 6, 6, 0]\n , [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 1]\n , [13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0,13]\n ]>>\n\n<<set $lands =\n [ [ [".." // 0\n ,".."\n ]\n , ["'."\n ,",."\n ]\n , [".,"\n ,".'"\n ]\n , ["',"\n ,",'"\n ]\n ]\n , [ ["Oo" // 1\n ,"oO"\n ]\n , [",o"\n ,".O"\n ]\n , ["o."\n ,"O,"\n ]\n ]\n , [ ["==" // 2\n ,"=="\n ]\n ]\n , [ ["c=" // 3\n ,"=c"\n ]\n ]\n , [ ["Cc" // 4\n ,"cC"\n ]\n ]\n , [ ["CC" // 5\n ,"CC"\n ]\n ]\n , [ ["';" // 6\n ,'"' + "'"\n ]\n , ["'" + '"'\n ,":'"\n ]\n ]\n , [ ["=h" // 7\n ,"h="\n ]\n ]\n , [ ["hH" // 8\n ,"Hh"\n ]\n ]\n , [ ["HH" // 9\n ,"HH"\n ]\n ]\n , [ ["00" //10\n ,"YY"\n ]\n ]\n , [ ["++" //11\n ,"++"\n ]\n ]\n , [ ["--" //12\n ,"--"\n ]\n , ["-~"\n ,"~-"\n ]\n ]\n , [ [" " //13\n ," "\n ]\n ]\n , [ ["/A" //14\n ,"11"\n ]\n ]\n , [ ["==" //15\n ,"=="\n ]\n ]\n , [ ["H~" //16\n ,"~H"\n ]\n ]\n , [ ["=," //17\n ,"=."\n ]\n , [".="\n ,",="\n ]\n , [".,"\n ,",."\n ]\n ]\n , [ ["'@" //18\n ,"@" + '"'\n ]\n , ["@;"\n ,":@"\n ]\n ]\n , [ [",a" //19\n ,"ii"\n ]\n ]\n , [ ["/a" //20\n ,"tt"\n ]\n ]\n ]>>\n<<set $tools =\n [ ["hoe", [0, 6, 17]]\n , ["hammer", [0, 1, 10, 11]]\n , ["bag of seeds", [2, 15]]\n , ["scythe", [5, 8, 9, 16, 18]]\n , ["herb bag", [2, 15]]\n , ["axe", [14, 19, 20]]\n\n , ["wall scaffold", [12]]\n , ["floor tiles", [12]]\n ]>>\n\n<<set $ay = 0>>\n<<set $ax = 0>>\n\n<<set $day = 1>>\n<<set $visitor = "">>\n<<set $visitors = ["dryad", "mountain golem", "nightmare centaur", "friendly townsperson", "wailing ghost"]>>\n\n<<set $dream = "">>\n\n<<set $tool = 2>>\n<<set $stamina = 6>>\n<<set $rocks = 0>>\n<<set $wood = 0>>\n<<set $crops = 0>>\n<<set $whiteHerbs = 0>>\n<<set $greenHerbs = 0>>\n<<set $blackHerbs = 0>>\n<<set $berries = 0>>\n<<set $cakes = 0>>\n<<endsilently>><<display "farm">>
* You prepare the rock digestives and give it to the golem. It thanks you profusely and splits.<<set $rocks = $rocks - 1>><<set $blackHerbs = $blackHerbs - 1>><<set $visitor = "">><<display "growRocks">>\n* It also gives you a cake (rock flavored).<<set $cakes = $cakes + 1>>\n<<display "farm">>
<<set $ax = 12>><<set $ay = 11>><<display "runAction">>
<<if $_k lt 2>> <<set $_x = 0>> <<display "printLandscapeCell">> <<set $_k = $_k + 1>>\n<<display "printLandscapeRow">> <<endif>>
<<set $ax = 1>><<set $ay = 2>><<display "runAction">>
<<set $ax = 1>><<set $ay = 3>><<display "runAction">>
<<set $ax = 1>><<set $ay = 0>><<display "runAction">>
<<set $ax = 1>><<set $ay = 1>><<display "runAction">>
<<set $ax = 1>><<set $ay = 6>><<display "runAction">>
<<set $ax = 1>><<set $ay = 7>><<display "runAction">>
<<set $ax = 1>><<set $ay = 4>><<display "runAction">>
function shuffle (cards) {\n for (i = cards.length - 1; i > 0; i--)\n {\n var n = Math.floor (Math.random() * (i + 1));\n var t = cards[i];\n cards[i] = cards[n];\n cards[n] = t;\n }\n return cards;\n}
<<set $ax = 1>><<set $ay = 8>><<display "runAction">>
<<set $ax = 1>><<set $ay = 9>><<display "runAction">>
<<if $stamina lte 0>>\n* You're too tired to do that. You should [[get a good night's sleep|sleep]], instead!<<else>>\n<<if $landscape[$ay][$ax] == 0 && $tool == 0>>\n* You plow the grassy field.<<set $landscape[$ay][$ax] = 2>><<else>>\n<<if $landscape[$ay][$ax] == 6 && $tool == 0>>\n* You clear the weed-choked field.<<set $landscape[$ay][$ax] = 0>><<else>>\n<<if $landscape[$ay][$ax] == 17 && $tool == 0>>\n* You re-plow the overgrown field.<<set $landscape[$ay][$ax] = 2>><<else>>\n<<if $landscape[$ay][$ax] == 1 && $tool == 1>>\n* You smash the rocks with your hammer.<<set $landscape[$ay][$ax] = 0>><<set $rocks = $rocks + 1>><<else>>\n<<if $landscape[$ay][$ax] == 10 && $tool == 1>>\n* You destroy the wall with your hammer.<<set $landscape[$ay][$ax] = 0>><<else>>\n<<if $landscape[$ay][$ax] == 11 && $tool == 1>>\n* You destroy the floor with your hammer.<<set $landscape[$ay][$ax] = 0>><<else>>\n<<if $landscape[$ay][$ax] == 0 && $tool == 1>>\n* You stamp the grass down to bare dirt.<<set $landscape[$ay][$ax] = 12>><<else>>\n<<if $landscape[$ay][$ax] == 14 && $tool == 5>>\n* You cut down the tree with your axe.<<set $landscape[$ay][$ax] = 0>><<set $wood = $wood + 1>><<else>>\n<<if ($landscape[$ay][$ax] == 19 || $landscape[$ay][$ax] == 20) && $tool == 5>>\n* You cut down the sapling with your axe.<<set $landscape[$ay][$ax] = 0>><<else>>\n<<if ($landscape[$ay][$ax] == 2 || $landscape[$ay][$ax] == 15) && $tool == 2>>\n* You plant some crops.<<set $landscape[$ay][$ax] = 3>><<else>>\n<<if ($landscape[$ay][$ax] == 2 || $landscape[$ay][$ax] == 15) && $tool == 4>>\n* You plant some herbs.<<set $landscape[$ay][$ax] = 7>><<else>>\n<<if $landscape[$ay][$ax] == 5 && $tool == 3>>\n* You reap your crops.<<set $landscape[$ay][$ax] = 2>><<set $crops = $crops + 1>><<else>>\n<<if $landscape[$ay][$ax] == 8 && $tool == 3>>\n* You reap white herbs.<<set $landscape[$ay][$ax] = 2>><<set $whiteHerbs = $whiteHerbs + 1>><<else>>\n<<if $landscape[$ay][$ax] == 9 && $tool == 3>>\n* You reap green herbs.<<set $landscape[$ay][$ax] = 2>><<set $greenHerbs = $greenHerbs + 1>><<else>>\n<<if $landscape[$ay][$ax] == 16 && $tool == 3>>\n* You reap black herbs.<<set $landscape[$ay][$ax] = 2>><<set $blackHerbs = $blackHerbs + 1>><<else>>\n<<if $landscape[$ay][$ax] == 18 && $tool == 3>>\n* You pick berries.<<set $landscape[$ay][$ax] = 0>><<set $berries = $berries + 1>><<else>>\n<<if $landscape[$ay][$ax] == 12 && $tool == 6>>\n* You erect a wall.<<set $landscape[$ay][$ax] = 10>><<set $wood = $wood - 1>><<set $rocks = $rocks - 1>><<else>>\n<<if $landscape[$ay][$ax] == 12 && $tool == 7>>\n* You tile a floor.<<set $landscape[$ay][$ax] = 11>><<set $wood = $wood - 1>><<set $rocks = $rocks - 1>><<else>>\n* Nothing happened.<<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>><<endif>>\n<<set $stamina = $stamina - 1>><<endif>>\n<<display "farm">>
* <<set $tool = 4>>You pick up your bag of herb seeds.\n<<display "farm">>
<<set $ax = 5>><<set $ay = 8>><<display "runAction">>
<<set $ax = 5>><<set $ay = 9>><<display "runAction">>
<<set $ax = 5>><<set $ay = 6>><<display "runAction">>
<<set $ax = 5>><<set $ay = 7>><<display "runAction">>
<<set $ax = 5>><<set $ay = 4>><<display "runAction">>
<<set $ax = 5>><<set $ay = 5>><<display "runAction">>
<<set $ax = 5>><<set $ay = 2>><<display "runAction">>
<<set $ax = 5>><<set $ay = 3>><<display "runAction">>
<<set $ax = 5>><<set $ay = 0>><<display "runAction">>
<<set $ax = 5>><<set $ay = 1>><<display "runAction">>
<<set $ax = 13>><<set $ay = 6>><<display "runAction">>
<<set $ax = 13>><<set $ay = 7>><<display "runAction">>
<<set $ax = 13>><<set $ay = 4>><<display "runAction">>
<<set $ax = 13>><<set $ay = 5>><<display "runAction">>
<<set $ax = 13>><<set $ay = 2>><<display "runAction">>
<<set $ax = 13>><<set $ay = 3>><<display "runAction">>
<<set $ax = 13>><<set $ay = 0>><<display "runAction">>
<<set $ax = 13>><<set $ay = 1>><<display "runAction">>
<<set $ax = 13>><<set $ay = 8>><<display "runAction">>
<<set $ax = 13>><<set $ay = 9>><<display "runAction">>
<<set $ax = 0>><<set $ay = 11>><<display "runAction">>
<<set $ax = 0>><<set $ay = 10>><<display "runAction">>
<<set $ax = 6>><<set $ay = 11>><<display "runAction">>
<<set $ax = 9>><<set $ay = 11>><<display "runAction">>
<<set $ax = 15>><<set $ay = 10>><<display "runAction">>
<<set $ax = 15>><<set $ay = 11>><<display "runAction">>
<<set $ax = 9>><<set $ay = 8>><<display "runAction">>
<<set $ax = 9>><<set $ay = 9>><<display "runAction">>
* You eat one of the crops.<<set $stamina = $stamina + 2>><<set $crops = $crops - 1>>\n<<display "farm">>
<<set $ax = 9>><<set $ay = 2>><<display "runAction">>
<<set $ax = 9>><<set $ay = 3>><<display "runAction">>
<<set $ax = 9>><<set $ay = 0>><<display "runAction">>
<<set $ax = 9>><<set $ay = 1>><<display "runAction">>
<<set $ax = 9>><<set $ay = 6>><<display "runAction">>
<<set $ax = 9>><<set $ay = 7>><<display "runAction">>
<<set $ax = 9>><<set $ay = 4>><<display "runAction">>
<<set $ax = 9>><<set $ay = 5>><<display "runAction">>
<<set $ax = 8>><<set $ay = 7>><<display "runAction">>
<<set $ax = 8>><<set $ay = 6>><<display "runAction">>
<<set $ax = 10>><<set $ay = 7>><<display "runAction">>
<<set $ax = 10>><<set $ay = 6>><<display "runAction">>
<<set $ax = 4>><<set $ay = 11>><<display "runAction">>
<<set $ax = 8>><<set $ay = 3>><<display "runAction">>
<<set $ax = 4>><<set $ay = 10>><<display "runAction">>
* You prepare the hoof polish and give it to the nightmare horseman. He thanks you profusely and leaves.<<set $blackHerbs = $blackHerbs - 1>><<set $whiteHerbs = $whiteHerbs - 1>><<set $visitor = "">><<set $dream = "good">>\n* He also gives you a cake (hay flavored).<<set $cakes = $cakes + 1>>\n<<display "farm">>
<<set $ax = 10>><<set $ay = 0>><<display "runAction">>
<<set $ax = 10>><<set $ay = 3>><<display "runAction">>
<<set $ax = 8>><<set $ay = 0>><<display "runAction">>
<<set $ax = 0>><<set $ay = 7>><<display "runAction">>
<<set $ax = 0>><<set $ay = 6>><<display "runAction">>
<<set $ax = 0>><<set $ay = 5>><<display "runAction">>
* <<set $tool = 0>>You pick up your hoe.\n<<display "farm">>
<<set $ax = 0>><<set $ay = 3>><<display "runAction">>
<<set $ax = 0>><<set $ay = 2>><<display "runAction">>
<<set $ax = 0>><<set $ay = 1>><<display "runAction">>
<<set $ax = 0>><<set $ay = 0>><<display "runAction">>
<<silently>>\n<<set $_i = 0>>\n<<display "growTrees'">>\n<<endsilently>>
<<set $ax = 0>><<set $ay = 9>><<display "runAction">>
<<set $ax = 0>><<set $ay = 8>><<display "runAction">>
<<set $ax = 4>><<set $ay = 3>><<display "runAction">>
<<set $ax = 4>><<set $ay = 2>><<display "runAction">>
<<set $ax = 4>><<set $ay = 1>><<display "runAction">>
<<set $ax = 4>><<set $ay = 0>><<display "runAction">>
<<set $ax = 4>><<set $ay = 7>><<display "runAction">>
<<set $ax = 4>><<set $ay = 6>><<display "runAction">>
<<set $ax = 4>><<set $ay = 5>><<display "runAction">>
<<set $ax = 4>><<set $ay = 4>><<display "runAction">>
<<set $ax = 4>><<set $ay = 9>><<display "runAction">>
<<set $ax = 4>><<set $ay = 8>><<display "runAction">>
<<set $ax = 12>><<set $ay = 3>><<display "runAction">>
<<set $ax = 12>><<set $ay = 2>><<display "runAction">>
<<set $ax = 12>><<set $ay = 1>><<display "runAction">>
<<set $ax = 12>><<set $ay = 0>><<display "runAction">>
<<set $ax = 12>><<set $ay = 7>><<display "runAction">>
<<set $ax = 12>><<set $ay = 6>><<display "runAction">>
<<set $ax = 12>><<set $ay = 5>><<display "runAction">>
<<set $ax = 12>><<set $ay = 4>><<display "runAction">>
DAY <<print $day>>:\n<<if $visitor != "">>* There's a <<print $visitor>> waiting at your door.\n<<endif>><<display "printLandscape">>\n----\n<<if $rocks gt 0>>* You have <<print $rocks>> rock(s).\n<<endif>><<if $wood gt 0>>* You have <<print $wood>> wood piece(s).\n<<endif>><<if $wood gt 0 and $rocks gt 0>>* You can build a [[wall]] or [[floor]] with your materials.\n<<endif>><<if $crops gt 0>>* You have <<print $crops>> crop(s). You can [[eat one]].\n<<endif>><<if $whiteHerbs gt 0>>* You have <<print $whiteHerbs>> white herb(s).\n<<endif>><<if $greenHerbs gt 0>>* You have <<print $greenHerbs>> green herb(s).\n<<endif>><<if $blackHerbs gt 0>>* You have <<print $blackHerbs>> black herb(s).\n<<endif>><<if $berries gt 0>>* You have <<print $berries>> berr(y/ies).\n<<endif>><<if $cakes gt 0>>* You have <<print $cakes>> cake(s).\n<<endif>><<if $visitor == "dryad">>* There's a dryad here for <<if $wood gte 1 && $whiteHerbs gte 2>>[[leaf ointment]]<<else>>''leaf ointment''<<endif>>. (Req: 1 wood, 2 white herbs)\n<<endif>><<if $visitor == "mountain golem">>* There's a mountain golem here for <<if $rocks gte 1 && $blackHerbs gte 1>>[[rock digestives]]<<else>>''rock digestives''<<endif>>. (Req: 1 rock, 1 black herb)\n<<endif>><<if $visitor == "nightmare centaur">>* There's a nightmare centaur here for <<if $blackHerbs gte 1 && $whiteHerbs gte 1>>[[hoof polish]]<<else>>''hoof polish''<<endif>>. (Req: 1 black herb, 1 white herb)\n<<endif>><<if $visitor == "friendly townsperson">>* There's a friendly townsperson here. They just dropped by to chat, but it'd be polite to <<if $crops gte 1 && $greenHerbs gte 1>>[[bake a pie]]<<else>>''bake a pie''<<endif>>. (Req: 1 crop, 1 berry)\n<<endif>><<if $visitor == "wailing ghost">>* There's a wailing ghost here for <<if $greenHerbs gte 2>>[[transmigration tea]]<<else>>''transmigration tea''<<endif>>. (Req: 2 green herbs)\n<<endif>>\n* You're using a <<print $tools[$tool][0]>> (switch to: [[hoe]], [[hammer]], [[axe]], [[seeds]], [[herb seeds]], [[scythe]])\n<<if $stamina lte 0>>* You're too tired to work. You should [[sleep]].<<endif>>\n\n[[LEGEND|legend]]
<<set $ax = 3>><<set $ay = 5>><<display "runAction">>
<<set $ax = 3>><<set $ay = 6>><<display "runAction">>
<<set $ax = 3>><<set $ay = 7>><<display "runAction">>
<<set $ax = 3>><<set $ay = 0>><<display "runAction">>
<<set $ax = 3>><<set $ay = 1>><<display "runAction">>
<<set $ax = 3>><<set $ay = 2>><<display "runAction">>
<<set $ax = 3>><<set $ay = 3>><<display "runAction">>
<<set $ax = 7>><<set $ay = 8>><<display "runAction">>
<<set $ax = 7>><<set $ay = 9>><<display "runAction">>
<<set $ax = 0>><<set $ay = 4>><<display "runAction">>
<<set $ax = 7>><<set $ay = 0>><<display "runAction">>
<<set $ax = 7>><<set $ay = 1>><<display "runAction">>
<<set $ax = 7>><<set $ay = 2>><<display "runAction">>
<<set $ax = 7>><<set $ay = 3>><<display "runAction">>
<<set $ax = 7>><<set $ay = 4>><<display "runAction">>
<<set $ax = 7>><<set $ay = 5>><<display "runAction">>
<<set $ax = 7>><<set $ay = 6>><<display "runAction">>
<<set $ax = 7>><<set $ay = 7>><<display "runAction">>
<<set $ax = 1>><<set $ay = 5>><<display "runAction">>
<<set $_y = 0>><<display "printLandscape'">>
* <<set $tool = 7>>You prepare floor tiles.\n<<display "farm">>
* You bake a pie and split it. It's delicious.<<set $crops = $crops - 1>><<set $berries = $berries - 1>><<set $visitor = "">><<set $stamina = $stamina + 4>>\n<<display "farm">>
<<set $_x = 0>><<set $_y = 0>><<display "growCrops'">>
* <<set $tool = 5>>You pick up your axe.\n<<display "farm">>