Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
/* Set journey tracker variables */
<<set $siteLog to []>>
<<set $landLog to []>>
<<set $isNewDay to false>>
<<set $isNewLand to false>>
<<set $isRaining to false>>
<<set $isNewPlace to false>>
/* Set player variables */
<<set $pcAge to 25>>
<<set $pcEnergy to 48>>
<<set $pcInventory to []>>
<<set $pcMoney to 1994>>
<<set $pcRecord to []>>
<<set $pcSouvenir to []>>
/* Set time variables */
<<set $currentDay to 1>>
<<set $currentHour to 6>>
<<set $currentYear to 994>>
/* Generate the starting land and place*/
<<generate_new_land 'forest'>>
<<generate_new_place 'city'>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
<i>'Tis but a banging of the door behind you, a blithesome step forward, and you are out of the old life and into the new! Then some day, some day long hence, jog home here if you will, when the cup has been drained and the play has been played, and sit down by your quiet river with a store of goodly memories for company.</i>
<div style='text-align:right'>—The Wind in the Willows</div><br>
[[Set out!|Place]]
</div>
</div>/* Pre-display */
<<if $pcInventory.length gt 0>>
<<for _i to 0; _i lt $pcInventory.length; _i++>>
<<set $pcInventory[_i].year to $currentYear>>
<<set $pcSouvenir.push($pcInventory[_i])>>
<</for>>
<</if>>
<<set $siteLog to []>>
<<set $landLog to []>>
<<set $isNewDay to false>>
<<set $isNewLand to false>>
<<set $isRaining to false>>
<<set $isNewPlace to false>>
<<set $pcEnergy to 48>>
<<set $pcInventory to []>>
<<set _moneyIncrease to random(143,1994)>>
<<set $pcMoney += _moneyIncrease>>
/* Set time variables */
<<set $currentDay to 1>>
<<set $currentHour to 6>>
<<set $currentYear++>>
/* Generate the starting land and place*/
<<generate_new_land 'forest'>>
<<generate_new_place 'city'>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
Midsummer has passed, and your holiday is coming to a close.<br>
You visited a lot of places this sunny summer.<br>
You might even have picked up a souvenir!<br>
But now is the time to go home and [[begin the year anew|Records]].
</div>
</div>/* Pre-display */
<<increment_time>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
<<drain_energy>>
<<if $currentHour lt 5 or $currentHour gt 18>>
You take the stairs down into the bar. The sign above the doorway reads, <i>$currentPlace.publican's Bar</i>.
<<if $pcMoney - 10 gt 0>>
At the counter, $currentPlace.publican asks what [[drink|BarDrink][$pcMoney -= 10]] you'll have.
<<else>>
Even the cheapest liquor here you cannot afford.
<</if>>
<<else>>
The bar is closed. A sign at the stop of the stairs reads, <i>6.00 PM to 6.00 AM</i>.
<</if>><br><br>
[[Leave|Place]]
</div>
</div>/* Pre-display */
<<increment_time>>
<<regain_energy>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
You take a seat at the counter and order a <<print either(setup.vocabList.bar)>>. You sip your drink and listen to the hubbub of the patrons around.<br><br>
[[Get up for a stretch|Place]]
</div>
</div>/* Pre-display */
<<set $currentHour to 4>>
<<set $currentDay++>>
<<set $pcEnergy to 48>>
<<set $pcMoney to $pcMoney / 2>>
<<increment_time>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
You blackout from exhaustion and wake the following morning. For some reason your suitcase feels lighter ...<br><br>
[[Get up|$lastPlace]]
</div>
</div>/* Pre-display */
<<increment_time>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
<<drain_energy>>
You step into the blimp station. Out the window, you can see the $currentPlace.blimp.name docked. A single-way ticket is $currentPlace.blimp.price $currentLand.currency.
<<if $pcMoney - $currentPlace.blimp.price gt 0>>
Will you [[board the blimp|BlimpRide][$pcMoney -= $currentPlace.blimp.price]] and travel to places new?
<<else>>
Sadly, you don't have the $currentLand.currency for a magical blimp ride.
<</if>><br><br>
[[Leave|Place]]
</div>
</div>/* Pre-display */
<<set $currentHour++>>
<<increment_time>>
<<regain_energy>>
<<set $currentPlace.next to 'city'>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
You climb up a rickety ladder into the gondola of the blimp. After everyone's on board, it begins to rise ... Wow! You can see $currentPlace.name shrinking into a dot below you, and all the $currentLand.type around it, and looking out toward the horizon, new lands: the <<print either(setup.vocabList.lands)>>, the <<print either(setup.vocabList.lands)>>, the <<print either(setup.vocabList.lands)>> ... The blimp begins its descent to somewhere new.<br><br>
[[Disembark|Place][$isNewPlace to true]]
</div>
</div>/* Pre-display */
<<increment_time>>
<<generate_new_land $currentLand.next>>
<<generate_new_place 'outpost'>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
<<drain_energy>>
You have reached the border. There is a small booth and next to it a painted sign reading, <i>$currentLand.name LAND!</i> Beyond it the landscape shifts further into $currentLand.type. You look into the booth and see it is unstationed. There looks to be an outpost around the next curve of the road.<br><br>
[[Cross the border|Place]]
</div>
</div>/* Pre-display */
<<increment_time>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['cafe_1.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
<<drain_energy>>
<<if $currentHour gt 5 and $currentHour lt 18>>
You weave between the tables to the order window. <i>Café $currentPlace.publican</i>.
<<if $pcMoney - 5 gt 0>>
Behind the counter, $currentPlace.publican asks if you want a [[drink?|CafeDrink][$pcMoney -= 5]]
<<else>>
You look at the menu on the counter ... You can't afford anything.
<</if>>
<<else>>
The café is shuttered. A sign reads, <i>6.00 AM to 6.00 PM</i>.
<</if>><br><br>
[[Leave|Place]]
</div>
</div>/* Pre-display */
<<increment_time>>
<<regain_energy>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['cafe_1.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
You place your order and take a seat at a table under the trees. Shortly, $currentPlace.publican brings out your drink, a
<<print either(setup.vocabList.cafe)>>. You enjoy your drink and gaze into the canopy overhead. Stay here as long as you please.<br><br>
[[Stick around|Wait]] — [[Leave|Place]]
</div>
</div>/* Pre-display */
<<set $currentHour to 4>>
<<set $currentDay++>>
<<set $pcEnergy to 48>>
<<increment_time>>
/* Display */
<div class='container'>
<div class='sigil'>
[img[setup.landList[$currentLand.type].image]]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
You camp out overnight, and wake just before dawn.
<<if $isLost is true>>
<<set $isLost to false>>
While you were resting, you carefully checked your map. You think you know which road to follow, now.
<</if>>
Time to resume your travels.<br><br>
[[Keep going|Travel]]
</div>
</div>/* Pre-display */
<<increment_time>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
<<drain_energy>>
You step into $currentPlace.hotel.name.
<<print $currentPlace.hotel.visitText>>
One night is $currentPlace.hotel.price $currentLand.currency.
<<if $pcMoney-$currentPlace.hotel.price gt 0>>
Will you [[stay the night?|HotelStay][$pcMoney -= $currentPlace.hotel.price]]
<<else>>
Sadly, you don't have enough $currentLand.currency to stay here.
<</if>><br><br>
[[Leave|Place]]
</div>
</div>/* Pre-display */
<<set $currentHour to 4>>
<<set $currentDay++>>
<<set $pcEnergy to 48>>
<<increment_time>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
<<print $currentPlace.hotel.stayText>><br><br>
[[Leave|Place]]
</div>
</div>/* Pre-display */
<<increment_time>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
<<drain_energy>>
You enter the market. The sign overhead reads, <i>$currentPlace.market.name.</i>
<<print $currentPlace.market.text>>
<<if $currentPlace.items.length gt 0>>
<<for _i to 0; _i lt $currentPlace.items.length; _i++>>
You see a $currentPlace.items[_i].name selling for $currentPlace.items[_i].price $currentLand.currency.
<<if $pcMoney - $currentPlace.items[_i].price gt 0>>
<<capture _i>>
[[Buy it?|Market][$pcMoney -= $currentPlace.items[_i].price, $pcInventory.push($currentPlace.items[_i]), $currentPlace.items.splice(_i, 1)]]
<</capture>>
<<else>>
You can't afford it.
<</if>>
<</for>>
<<else>>
There's nothing of interest for sale here.
<</if>><br><br>
<<if $pcInventory.length gt 0>>
<<for _i to 0; _i lt $pcInventory.length; _i++>>
<<set _itemLoss to random(0,9)>>
<<set _itemPrice to $pcInventory[_i].price - _itemLoss>>
The going value for your $pcInventory[_i].name here is around _itemPrice $currentLand.currency.
<<capture _i, _itemPrice>>
[[Sell it?|Market][$pcMoney += _itemPrice, $currentPlace.items.push($pcInventory[_i]), $pcInventory.splice(_i, 1)]]
<</capture>>
<</for>><br><br>
<</if>>
[[Leave|Place]]
</div>
</div>/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
Once again, the weather is warming, the work is ending and it is time for your Summer holiday!<br>
You had a good year and saved up a little money. Maybe not as much as you had hoped.<br>
No matter. it's time to travel this great sunny world!<br><br>
Keep an eye out for souvenirs, for when you are old, to remember your Summer holiday.<br><br>
[[Set out!|Place]] Or, [[remember holidays past?|Records]]
</div>
</div>/* Pre-display */
<<increment_time>>
<<reset_distance>>
<<if $isNewPlace is true>>
<<generate_new_place $currentPlace.next>>
<<set $isNewPlace to false>>
<</if>>
/* Display */
<div class='container'>
<div class='sigil'>
[img[setup.placeList[$currentPlace.type].image]]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
<<drain_energy>>
You are in the $currentPlace.type of $currentPlace.name!
<<print $currentPlace.description>>
There is a hotel here called [[$currentPlace.hotel.name|Hotel]].
In the central square is a [[marketplace|Market]], and a $currentPlace.building.link.
There is a shaded spot under the trees where you can [[wait|Wait]].
<<for _i to 0; _i lt $currentPlace.transport.length; _i++>>
There is a <<print $currentPlace.transport[_i].link>> here.
<</for>>
The [[$currentPlace.road.name|Travel]] leads out of the $currentPlace.type.<br><br>
[[Check your suitcase|Status]]
</div>
</div>/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
My souvenirs:<br>
<<if $pcSouvenir.length gt 0>>
<<for _i to 0; _i lt $pcSouvenir.length; _i++>>
$pcSouvenir[_i].name, Summer Holiday of $pcSouvenir[_i].year<br>
<</for>>
<<else>>
Who needs trinkets, when you have memories?<br>
<</if>><br>
[[Back|NewYear]]
</div>
</div>/* Pre-display */
<<increment_time>>
<<regain_energy>>
/* Display */
<div class='container'>
<div class='sigil'>
[img[setup.landList[$currentLand.type].image]]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
You step off the $currentPlace.road.name for a rest. The $currentLand.type stretches out all around you. Stay here as long as you please, or even [[camp out overnight|CampStay]].<br><br>
[[Check your suitcase|Status]] — [[Keep going|Travel]]
</div>
</div>/* Pre-display */
<<set $currentHour++>>
<<increment_time>>
<<regain_energy>>
<<set $currentPlace.next to either(['city', 'town', 'village'])>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
You remain on board as some passengers disembark. and others step on. Soon, the train resumes its journey. You watch the $currentLand.type pass by.
The train stops somewhere new.<br><br>
[[Stay on board|RidingTheRails]] — [[Disembark|Place][$isNewPlace to true]]
</div>
</div>/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
In my suitcase:<br>
$pcMoney $currentLand.currency<br>
<<if $pcInventory.length gt 0>>
<<for _i to 0; _i lt $pcInventory.length; _i++>>
$pcInventory[_i].name — $pcInventory[_i].text<br>
<</for>>
<<else>>
Your suitcase has a little space for some souvenirs.<br>
<</if>><br>
[[Back|previous()]] — 
<<link [[Clear data forever|Start]]>>
<<script>>Save.autosave.delete()<</script>>
<</link>>
</div>
</div>/* Pre-display */
<<increment_time>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
<<drain_energy>>
You step into the railway station. The $currentPlace.train.name has stopped at the platform, but looks as though it's about to depart! A one-way ticket is $currentPlace.train.price $currentLand.currency.
<<if $pcMoney - $currentPlace.train.price gt 0>>
Will you [[board the train|TrainRide][$pcMoney -= $currentPlace.train.price]] and ride to new vistas?
<<else>>
Sadly, you don't have the $currentLand.currency for a train ticket.
<</if>><br><br>
[[Leave|Place]]
</div>
</div>/* Pre-display */
<<set $currentHour++>>
<<increment_time>>
<<regain_energy>>
<<set $currentPlace.next to either(['city', 'town', 'village'])>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
You step into the passenger carriage and find a seat. Shortly, the train begins to chuff along and pick up speed ... You first see $currentPlace.name whizzing by. Then the train is out into the $currentLand.type! You settle in for the ride.
The train stops for a moment at a new station.<br><br>
[[Stay on board|RidingTheRails]] — [[Disembark|Place][$isNewPlace to true]]
</div>
</div>/* Pre-display */
<<increment_time>>
/* Display */
<div class='container'>
<div class='sigil'>
[img[setup.landList[$currentLand.type].image]]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
<<drain_energy>>
<<if $isLost is true>>
You take the wrong road and become lost in the $currentLand.type! Oh no! It may be worth stopping to [[get your bearings|Rest]].<br><br>
[[Wander about|Travel][$isLost to either([true,false])]]<br>
<<else>>
<<if $distance is 0>>
You strike out from $currentPlace.name and into the $currentLand.type.<br><br>
[[Onward!|Travel][$distance++]] — [[Return|Place]]
<<elseif $distance lt $currentPlace.road.length>>
You follow the road through the $currentLand.type. There are $currentLand.plants in every direction. There are clearings by the road where you can [[rest a while|Rest]]. <br><br>
[[Onward!|Travel][$distance++]] — [[Turn back|Travel][$distance--, $isLost to either([true,false])]]
<<else>>
<<set _bordercrossing to random(0,3)>>
<<if _bordercrossing is 3>>
The landscape begins to shift and shade into $currentLand.next. You are nearing the border.<br><br>
[[Approach the border|Border]] — [[Turn back|Travel][$distance--, $isLost to either([true,false])]]
<<else>>
You have arrived somewhere new!<br><br>
[[Enter|Place][$isNewPlace to true]] — [[Turn back|Travel][$distance--, $isLost to either([true,false])]]
<</if>>
<</if>>
<</if>>
</div>
</div>/* Pre-display */
<<increment_time>>
<<regain_energy>>
/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
DAY $currentDay HOUR $currentHour, YEAR $currentYear<br><br>
<<if $currentHour gt 5 and $currentHour lt 18>>
You watch the $currentPlace.type swirl by.
<<else>>
The $currentPlace.type has wound down for the evening. You listen to the quiet night sounds.
<</if>><br><br>
[[Stick around|Wait]] — [[Leave|Place]]
</div>
</div>/* Display */
<div class='container'>
<div class='sigil'>
[img['sigil.gif']]
</div>
<div class='text'>
Finally the weather is warming and your work has come to an end.<br>
It's time for your Summer holiday!<br><br>
It's time to travel this great sunny world.<br>
Will you make the journey on foot, or go by blimp and rail?
Follow the warm coastlines, or attempt to cross the scorching desert?<br><br>
Keep an eye out for souvenirs, for when you are old, to remember your Summer holiday.<br><br>
[[Begin|GameInit]]
</div>
</div>/* Generate a new land with an optional 'landType' argument*/
<<widget 'generate_new_land'>>
<<set $currentLand to {}>>
<<if setup.landList.hasOwnProperty($args[0])>>
<<set $currentLand.type to $args[0]>>
<<else>>
<<set $currentLand to 'desert'>>
<</if>>
<<set $currentLand.vocab to either(setup.landList[$currentLand.type].vocab)>>
<<set $currentLand.currency to either(setup.landList[$currentLand.type].currency)>>
<<set $currentLand.plants to either(setup.landList[$currentLand.type].plants)>>
<<set $currentLand.next to either(setup.landList[$currentLand.type].next)>>
<<set _wordLength to random(1,3)>>
<<set _wordString to []>>
<<set _namestyle to random(0,1)>>
<<switch _namestyle>>
<<case 1>>
<<for _i to 0; _i lt _wordLength; _i++>>
<<set _wordString.push(either(setup.onsetList))>>
<<set _wordString.push(either(setup.vowelList))>>
<<set _wordString.push(either(setup.codaList))>>
<</for>>
<<case 0>>
<<for _i to 0; _i lt _wordLength; _i++>>
<<set _wordString.push(either(setup.onsetList))>>
<<set _wordString.push(either(setup.vowelList))>>
<</for>>
<<case default>>
<<for _i to 0; _i lt _wordLength; _i++>>
<<set _wordString.push(either(setup.onsetList))>>
<<set _wordString.push(either(setup.vowelList))>>
<</for>>
<</switch>>
<<set $currentLand.name to _wordString.join('').trim()>>
<</widget>><<widget 'generate_place_name'>>
<<set _wordOne to either(setup.vocabList[$currentLand.vocab])>>
<<set _wordTwo to either(setup.vocabList[$currentPlace.vocab])>>
<<set _name to _wordOne + ' ' + _wordTwo>>
<</widget>>
<<widget 'generate_building_name'>>
<<switch $args[0]>>
<<case 'hotel'>>
<<set _wordOne to either(setup.vocabList[$currentLand.vocab])>>
<<set _wordTwo to either(setup.vocabList[$currentLand.vocab])>>
<<set _wordThree to either(setup.vocabList[$currentLand.vocab])>>
<<set _name to _wordOne + ', ' + _wordTwo + ' and ' + _wordThree>>
<<case 'blimp'>>
<<set _wordOne to either(setup.vocabList.colour)>>
<<set _wordTwo to either(setup.vocabList.blimp)>>
<<set _name to _wordOne + ' ' + _wordTwo>>
<<case 'road'>>
<<set _wordOne to either(setup.vocabList.colour)>>
<<set _wordTwo to either(setup.vocabList.road)>>
<<set _name to _wordOne + ' ' + _wordTwo>>
<<case 'market'>>
<<set _wordOne to either(setup.vocabList.quantity)>>
<<set _wordTwo to either(setup.vocabList.goods)>>
<<set _name to _wordOne + ' ' + _wordTwo>>
<<case 'train'>>
<<set _wordOne to either(setup.vocabList.colour)>>
<<set _wordTwo to either(setup.vocabList.train)>>
<<set _name to _wordOne + ' ' + _wordTwo>>
<<default>>
<<set _name to either(setup.vocabList.colour)>>
<</switch>>
<</widget>>/* Reset travel distance */
<<widget 'reset_distance'>>
<<set $distance to 0>>
<</widget>>
/* Generate a new place with an optional 'placeType' argument*/
<<widget 'generate_new_place'>>
/* Reset the current place object */
<<set $currentPlace to {}>>
/* Set the place type */
<<if setup.placeList.hasOwnProperty($args[0])>>
<<set $currentPlace.type to $args[0]>>
<<else>>
<<set $currentPlace to 'village'>>
<</if>>
/* Set the current place vocabulary list to pull from */
<<set $currentPlace.vocab to either(setup.placeList[$currentPlace.type].vocab)>>
/* Set the place description */
<<set $currentPlace.description to either(setup.descriptionList[$currentLand.type])>>
/* Set the place name */
<<generate_place_name>>
<<set $currentPlace.name to _name>>
/* Generate building */
<<set $currentPlace.building to {}>>
<<set $currentPlace.building.type to either(setup.placeList[$currentPlace.type].building)>>
<<set $currentPlace.building.link to setup.buildingList[$currentPlace.building.type].link>>
/* Set the blimp price and name */
<<set $currentPlace.blimp to {}>>
<<set $currentPlace.blimp.price to random(100,250)>>
<<generate_building_name 'blimp'>>
<<set $currentPlace.blimp.name to _name>>
/* Set the hotel type and name */
<<set $currentPlace.hotel to either(setup.hotelList)>>
<<generate_building_name 'hotel'>>
<<set $currentPlace.hotel.name to _name>>
/* Set the market type and name */
<<set $currentPlace.market to {}>>
<<generate_building_name 'market'>>
<<set $currentPlace.market.name to _name>>
<<set $currentPlace.market.visitText to either(setup.marketList)>>
/* Set the items you can buy here */
<<set $currentPlace.items to []>>
<<set $currentPlace.items.push(either(setup.itemList))>>
/* Set the road type and name */
<<set $currentPlace.road to {}>>
<<generate_building_name 'road'>>
<<set $currentPlace.road.name to _name>>
<<set $currentPlace.road.length to random(3,12)>>
/* Set the train price and name */
<<set $currentPlace.train to {}>>
<<set $currentPlace.train.price to random(25,100)>>
<<generate_building_name 'train'>>
<<set $currentPlace.train.name to _name>>
/* Generate the place transport options */
<<set $currentPlace.transport to []>>
<<for _i to 0; _i lt setup.placeList[$currentPlace.type].transport.length; _i++>>
<<set _new_transport to {}>>
<<set _new_transport.type to setup.placeList[$currentPlace.type].transport[_i]>>
<<set _new_transport.link to setup.transportList[_new_transport.type].link>>
<<set $currentPlace.transport.push(_new_transport)>>
<</for>>
/* Generate a publican name */
<<set $currentPlace.publican to either(setup.vocabList.names)>>
/* Set the next place on the tour */
<<set $currentPlace.next to either(setup.placeList[$currentPlace.type].next)>>
<</widget>>/* Increment time period and day */
<<widget 'increment_time'>>
<<set $currentHour++>>
<<if $currentHour gt 23>>
<<set $currentHour to 0>>
<<set $currentDay++>>
<</if>>
<<if $currentDay gt 28>>
<<goto 'Autumn'>>
<</if>>
<</widget>>
/* Drain the player's energy - and pass out if the player is at 0 energy */
<<widget 'drain_energy'>>
<<set $pcEnergy-->>
<<if $pcEnergy lt 1>>
<<set $lastPlace to passage()>>
<<goto 'Blackout'>>
<<elseif $pcEnergy lt 12>>
You are exhausted.
<<elseif $pcEnergy lt 24>>
You are tired.
<</if>>
<</widget>>
/* Increment the player's energy up to a max of 48 */
<<widget 'regain_energy'>>
<<set $pcEnergy++>>
<<if $pcEnergy gt 48>>
<<set $pcEnergy to 48>>
<</if>>
<</widget>>data:image/gif;base64,R0lGODlhIAAgAOMCAAAAAAAQkFA44GBIUHBIILB4gJCA+OCQAPjoePjw+FA44FA44FA44FA44FA44FA44CH+GlN0YXkgYXMgbG9uZyBhcyB5b3UgcGxlYXNlACH5BAEKAA8ALAAAAAAgACAAAAT+EMlJq722IF16N15YgOFmStw2fqJHsqmGqu/a2vVphvUt5jLVLUEsGn1BkTFBaDqfhqiBWBJOE4estkl8eqceVKGYNZbJB29TkOiIiQe4Vgtvzp1st0qetZe5cWkEW3kyH1h9Z0tMiINphSgDV4lxjEWAaX1EAzIDAwICAVd8c3RLUZ4SnqABolGLsERSBqkIq6EBoKCxslK9tbehugKzxcW/A6q3ubrGzle0wMvMxM+zyMm2np+tw9a+CdHS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