<<set $hull to setup.initialState.hull>>
<<set $crew to setup.initialState.crew>>
<<set $fuel to setup.initialState.fuel>>
<<set $distance to setup.initialState.distance>>The seas are calm with a slight, salty southerly breeze. Your crew are in good spirits as they unfurl the \
sails and tend to the rigging.
You spot a flying fish leap from the water, but it is too far to catch.<<set $fuel -= 1>>\
Strong winds whip the ocean up into a rage. Tall waves crash over the deck, as your crew hurries to secure \
supplies on the deck and lower the top sails.
Before your crew is finished, a large wave washes a crate of coal overboard.<<set $crew -= 1>>\
A violent sea squall approaches rapidly from the north. Your crew rush to stow the sails and take the heavy \
supplies below deck to ride it out. Rain drenches your face as you try to keep the ship on course.
Above there is a brilliant flash of lightning, followed immediately by a deafening thunderclap. A crewman on \
the rigging loses his footing on the rain-slick beams and falls overboard.
"Man overboard!" shouts the foreman, as several men try to throw him a line. However, he is quickly swept \
under by the rolling waves and disappears from sight.<<set $fuel += 4>>\
The Barrelman in the crow's nest yells that he spotted a small vessel beached on a sandbar off the starboard side. \
You bring your ship around and send out a small rowboat to investigate.
Your men return saying the ship is abandoned and has likely been there for several years. However, they recovered \
several crates of fuel in water-tight barrels so you count your blessings.<<set $crew += 1>>\
The Barrelman in the crow's nest yells that he spotted a small raft on the horizon just ahead. As your ship approaches \
the raft you can make out the body of a man lying motionless across the bamboo raft.
Your crew hoists the man up, and to your surprise he appears to be alive! Badly sunburned and dehydrated, he \
can barely thank you before falling unconscious again.
You send him below decks to recover. A few days and warm meals later his vigor has returned and he pledges \
service to you for saving his life.<<set $hull += 5>>\
<<set $fuel += 5>>\
<<set $crew += 3>>\
"Land Ho!" shouts the Barrelman, pointing to a dark spot on the horizon ahead.
Your crew rejoices as you approach a small port town on this remote island. The port is friendly to the empire and \
your ship is welcomed to the docks. While your crew enjoys some much needed shore leave, you set about requesting \
repairs and resupplies for your vessel.
The workmen work quickly to patch any holes and repair the rigging. Fresh barrels of fuel are brought aboard. Even \
a few young sailors looking for passage off the island sign on to swell your ranks.Flags fly high, husbands and wives wave from the pier, and bells ring as your vessel, H.M.S. Titus, \
leaves Port Royal on its maiden voyage.
Your ship is in tip-top shape and the crew is filled with joy and vigor.
The task ahead of you is a simple but important one: Voyage to Isla De'muerta and deliver much-\
needed supplies and munitions to the colony there.
<<set $event to "Calm Seas">>
[[Embark->Voyage]]You are on your voyage!
<br>
<br>
<<include $event>>
<br>
<br>
<<if $distance === 10>>
<<set $distance -= 10>>
[[Onward!->Island]]
<<elseif $fuel <= 0>>
[[No Fuel]]
<<elseif $crew <= 0>>
[[No Crew]]
<<elseif $hull <= 0>>
[[No Hull]]
<<else>>
/* Update standard variables for each voyage step */
<<set $event to randomEvent()>>
<<set $fuel -= 1>>
<<set $distance -= 10>>
[[Onward!->Voyage]]
<</if>>Your Voyage ends here.
<<link "Try Again?">><<script>>UI.restart()<</script>><</link>>Your engines chug to a stop as the last bits of coal are used up. You and your men look around \
at each other in despair as you realize you will likely starve or freeze before anyone can reach you.
<<script>>pushEvent('Story', 'Lose', 'No Fuel');<</script>>\
<<include "Try Again">>You stand alone, captain of a derelict ship. All of your crew have been swallowed by the Sea \
(or worse) and you are all that is left. It is impossible to run a ship this size alone. You \
keep things running as long as you can, but eventually your stamina gives out.
/* TODO: Add events here. (Hit a sandbar, sunk in a storm, pirates? etc) */\
Drifting aimlessly at the whim of the sea winds, you eventually feel a rough thud as your ship runs aground on \
a long-forgotten sandbar. The ship is beached permanently and it would take ten men to recover it.
You feel so very tired. As you drift off to a final slumber, you wonder if another captain will \
find your ship and make better use of your supplies.
<<script>>pushEvent('Story', 'Lose', 'No Crew');<</script>>\
<<include "Try Again">>Your ship creaks and groans under the strain of holding itself together. Numerous gashes and \
splintered boards dot the lower decks and you have been taking on water for some time.
Finally, the strain is too much and the aft section buckles, pulling the mast down with it.
"Abandon ship!" you shout, though it may be too late. Your crew scrambles to lower the \
dinghy and cram aboard. Some leap into the water to swim for it.
However, they say a captain must go down with his ship. You remain aboard, sipping wine \
as your crew rows into the distance and water slowly fills your cabin.
<<script>>pushEvent('Story', 'Lose', 'No Hull');<</script>>\
<<include "Try Again">>The sea is calm and the skies clear of clouds. It is as if the sea knew how close \
you were to journey's end, it rewarded you with a brisk southerly wind pushing you onward.
The Barrelman is the first to spot land on the horizon.
"Land Ho!" he shouts triumphantly.
Your navigator double-checks his charts and confirms that you have at last arrived at your \
final destination. Your crew rejoices and breaks out into a merry sea shanty. You can finally \
relax and feel flush with relief as you stare at the steadily growing island on the horizon.
[[Dock at Isla De'muerta->Win]]You land at Isla De'muerta and are greeted by the Harbormaster. He shakes your hand with much \
enthusiasm, thanking you for your bravery and service to the Empire.
Porters begin to unload your ship of its precious supplies and cargo.
You are treated to a fine dinner in your honor by the Governor of the island.
You and your crew enjoy yourselves for a time, but soon you feel the sea calling to you again.
Will you set sail on another <<link "Voyage?">><<script>>UI.restart()<</script>><</link>>
<<script>>pushEvent('Story', 'Win', '');<</script>>/* Only send Start event when story is restarted */
<<script>>pushEvent('Story', 'Start', '');<</script>>
<<goto Launch>>Travel the High SeasBrandon RisbergYou are $distance leagues away from your destination.
--------
Ship Hull: $hull/<<print setup.hullMax>>
Crew: $crew/<<print setup.crewMax>> souls
Fuel: $fuel/<<print setup.fuelMax>>