Skip to content

Instantly share code, notes, and snippets.

@claytonflesher
Created October 8, 2014 20:54
Show Gist options
  • Save claytonflesher/dfa606bd0a7b36b34208 to your computer and use it in GitHub Desktop.
Save claytonflesher/dfa606bd0a7b36b34208 to your computer and use it in GitHub Desktop.
# Fiasco setup
# Six tables
# Six choices
a = [ ]
x = 1
while x <= 16
v = rand(1..6)
a << v
x = x+1
end
a.each do |a|
end
categ = ["Relationships", "Needs", "Locations", "Objects"]
relat = ["Chain of Command", "Crew", "RE: Objective ZEBRA", "Old Bonds", "Criminal Past", "Family"]
chain = ["Friendly enemies", "Officer and the crewman who seduced his love", "Inspiring leader of men and his simpering toady", "Fought side by side in the last war", "Lazy fool and tough old veteran", "Hard-case and the one who demoted him"]
crew = ["Ignorant farm boys", "Gung-ho lunatics", "Up for the same promotion", "'You were both specially selected based on unique talents'", "Odd-men-out on a tight-knit boat", "Lovers"]
zebra = ["Secret agent and Navy intelligence operative", "Occultist and Navy cameraman", "'Doctor' and Navy handler", "Secret agent and double agent", "Cultists", "Physicist and Navy liaison"]
bonds = ["Shipboard enemies, shore leave friends", "Rivals in love", "We killed a man and he haunts us", "We saved a life and lived to regret it", "Through 'coincidence' always paired", "One shot the other, over something silly"]
crime = ["Bad boys, roughnecks, and roustabouts", "His criminal past would get him booted from the navy; only I know", "Bully and weak sister", "Leaders of rival shipboard gangs", "Murderer and the guy he thought he killed", "Victims of the boat's master grifter"]
family = ["Brothers", "Competitive cousins", "Father and son, depsite regulations", "Blood brothers", "Brothers-in-law", "Mutual orphans who volunteered together"]
puts "Players 1-2 > #{categ[0]} type is #{relat[a[0]-1]} (#{a[0]})"
if a[0] == 1
puts "Players 1-2 > Subcategory type is #{chain[a[1]-1]} (#{a[1]})"
end
if a[0] == 2
puts "Players 1-2 > Subcategory type is #{crew[a[1]-1]} (#{a[1]})"
end
if a[0] == 3
puts "Players 1-2 > Subcategory type is #{zebra[a[1]-1]} (#{a[1]})"
end
if a[0] == 4
puts "Players 1-2 > Subcategory type is #{bonds[a[1]-1]} (#{a[1]})"
end
if a[0] == 5
puts "Players 1-2 > Subcategory type is #{crime[a[1]-1]} (#{a[1]})"
end
if a[0] == 6
puts "Players 1-2 > Subcategory type is #{family[a[1]-1]} (#{a[1]})"
end
puts "Players 2-3 > #{categ[0]} type is #{relat[a[2]-1]} (#{a[2]})"
if a[2] == 1
puts "Players 2-3 > Subcategory type is #{chain[a[3]-1]} (#{a[3]})"
end
if a[2] == 2
puts "Players 2-3 > Subcategory type is #{crew[a[3]-1]} (#{a[3]})"
end
if a[2] == 3
puts "Players 2-3 > Subcategory type is #{zebra[a[3]-1]} (#{a[3]})"
end
if a[2] == 4
puts "Players 2-3 > Subcategory type is #{bonds[a[3]-1]} (#{a[3]})"
end
if a[2] == 5
puts "Players 2-3 > Subcategory type is #{crime[a[3]-1]} (#{a[3]})"
end
if a[2] == 6
puts "Players 2-3 > Subcategory #{family[a[3]-1]} (#{a[3]})"
end
puts "Players 3-4 > #{categ[0]} type is #{relat[a[4]-1]} (#{a[4]})"
if a[4] == 1
puts "Players 3-4 > Subcategory type is #{chain[a[5]-1]} (#{a[5]})"
end
if a[4] == 2
puts "Players 3-4 > Subcategory type is #{crew[a[5]-1]} (#{a[5]})"
end
if a[4] == 3
puts "Players 3-4 > Subcategory type is #{zebra[a[5]-1]} (#{a[5]})"
end
if a[4] == 4
puts "Players 3-4 > Subcategory type is #{bonds[a[5]-1]} (#{a[5]})"
end
if a[4] == 5
puts "Players 3-4 > Subcategory type is #{crime[a[5]-1]} (#{a[5]})"
end
if a[4] == 6
puts "Players 3-4 > Subcategory type is #{family[a[5]-1]} (#{a[5]})"
end
puts "Players 4-1 > #{categ[0]} type is #{relat[a[6]-1]} (#{a[6]})"
if a[6] == 1
puts "Players 4-1 > Subcategory type is #{chain[a[7]-1]} (#{a[7]})"
end
if a[6] == 2
puts "Players 4-1 > Subcategory type is #{crew[a[7]-1]} (#{a[7]})"
end
if a[6] == 3
puts "Players 4-1 > Subcategory type is #{zebra[a[7]-1]} (#{a[7]})"
end
if a[6] == 4
puts "Players 4-1 > Subcategory type is #{bonds[a[7]-1]} (#{a[7]})"
end
if a[6] == 5
puts "Players 4-1 > Subcategory type is #{crime[a[7]-1]} (#{a[7]})"
end
if a[6] == 6
puts "Players 4-1 > Subcategory type is #{family[a[7]-1]} (#{a[7]})"
end
needs = ["To get the truth about...", "To get respect from...", "To hide that...", "To finally take care of...", "To get away...", "To tell..."]
truth = ["...what happened to the Captain's quarters that night", "...the scratching on the hull", "Objective ZEBRA's real objective", "...the sudden illness sweeping the crew", "...the thing that happened on the island", "...what's in the fucking box"]
respect = ["...the Captain of the USS Saddleback", "...the crew", "...your dark master", "...your overbearing father, may he rest in peace", "...yourself", "...your secret ex-lover aboard the Saddleback"]
hide = ["...you didn't exactly follow orders regarding Operation ZEBRA", "...there is a German agent aboard", "...you just killed a fellow sailor", "...drunk men sometimes don't do all the safety checks", "...you are responsible for this mess - all of it", "...you know far more about the mission than anyone guesses"]
care = ["...those lousy Kraut bastards waiting for us up there", "...your stupid brother, the family golden boy", "...yourself for a change", "...Lieutenant Joshua Sheppard", "...George, who else?", "...your own terror and loneliness"]
away = ["...to Cuxhaven, Lower Saxony, your ancestral home", "...to your family farm, to marry your pregnant girlfriend", "...from this steam pipe you're unfortunately handcuffed to", "...from this stinking air and these stinking people", "...from whatever is out there lurking in the depths", "...with the ritual"]
tell = ["...the Captain what he did to your dad, right before you kill him", "...the Navy what happened with Objective ZEBRA", "...everybody about the ghosts, and what they want", "...the Chosen One he must prepare", "...your superior officer to fuck off", "...the scientist what you added to his bag back on the island"]
puts "Someone #{categ[1]} #{needs[a[8]-1]} (#{a[8]})"
if a[8] == 1
puts "#{truth[a[9]-1]} (#{a[9]})"
end
if a[8] == 2
puts "#{respect[a[9]-1]} (#{a[9]})"
end
if a[8] == 3
puts "#{hide[a[9]-1]} (#{a[9]})"
end
if a[8] == 4
puts "#{care[a[9]-1]} (#{a[9]})"
end
if a[8] == 5
puts "#{away[a[9]-1]} (#{a[9]})"
end
if a[8] == 6
puts "#{tell[a[9]-1]} (#{a[9]})"
end
locat = ["The Mission - Flashback", "Groton Naval Base - Flashback", "The Island - Flashback", "Where we do things", "Where we keep things", "Where we currently avoid"]
mission = ["The chart table of USS Saddleback, an unusual chart on display", "The deck of Cannon-class Destroyer Escrot USS Eldridge", "Hunted, depth-charged, leaking, sinking", "On the surface, an island on the horizon, dinghies on deck", "Hell itself, or a reasonable facsimile", "The sunken wreck of a German E-Boat"]
base = ["Franklin Delano Roosevelt's motorcade", "The Five Fathom Club, a Groton dive bar", "A heavily guarded concrete bunker labeled ZEBRA PRIME", "Research pressure chamber 1", "In an alley, with an Admiral", "Temporary duty barracks, heavy with dread"]
island = ["Ruins of an ancient temple", "Underground, with guns blazing", "German facility", "Strange pinnacle", "Driftwood shelter awash in blood", "Above a mass grave"]
doing = ["The surreal, silent engine room", "Crammed inside a blood-stained torpedo tube", "Partially-flooded pump room", "Officers' mess, now living up to its name", "Radio operator's station, from which creepy noises emanate", "The should-be-empty-now conning tower"]
keep = ["Torpedo room, with a primed 'fish' rolling on the deck", "Under a filthy rack", "Fresh water tank, where this thing should not be floating", "Ship's pantry, curiously empty", "Improvised sick bay in officer's country", "Inside the leaking oil sump"]
avoid = ["The now burnt-out Captain's quarters", "Outside, in crushing deep water", "In the black water tank", "In the Number 3 forward torpedo tube, forcibly jammed shut", "Ancient-looking steamer trunk with all the padlocks", "Battery room crawlspace"]
puts "The location of a an important event is #{locat[a[10]-1]} (#{a[10]})"
if a[10] == 1
puts "#{mission[a[11]-1]} (#{a[11]})"
end
if a[10] == 2
puts "#{base[a[11]-1]} (#{a[11]})"
end
if a[10] == 3
puts "#{island[a[11]-1]} (#{a[11]})"
end
if a[10] == 4
puts "#{doing[a[11]-1]} (#{a[11]})"
end
if a[10] == 5
puts "#{keep[a[11]-1]} (#{a[11]})"
end
if a[10] == 6
puts "#{avoid[a[11]-1]} (#{a[11]})"
end
dice = rand(1..2)
if dice == 2
puts "The location of a an important event is #{locat[a[12]-1]} (#{a[12]})"
if a[12] == 1
puts "#{mission[a[13]-1]} (#{a[13]})"
end
if a[12] == 2
puts "#{base[a[13]-1]} (#{a[13]})"
end
if a[12] == 3
puts "#{island[a[13]-1]} (#{a[13]})"
end
if a[12] == 4
puts "#{doing[a[13]-1]} (#{a[13]})"
end
if a[12] == 5
puts "#{keep[a[13]-1]} (#{a[13]})"
end
if a[12] == 6
puts "#{avoid[a[13]-1]} (#{a[13]})"
end
end
objects = ["Weapons", "Tools", "Missing and unaccounted for", "Strange Comfort", "Memories", "Disturbing"]
weap = ["Colt M1911 pistol", "M3A1 'grease gun'", "Big old galley knife", "Signal flare", "Marlin spike", "Aluminum pan of battery acid"]
tools = ["Over-used and damaged electrical saw", "A weirdly clean hammer", "Gigantic pipefitter's wrench", "'Momsen lung' submarine escape system", "Depth gage", "Unusual surgical instruments"]
missing = ["Cockwheel for torpedo tube 3", "Radio's microphone", "Captain's uniform", "Pills, lots of pills", "Half the boat's food supply", "Keys to the weapon locker"]
comfort = ["Unreliable compass with shattered glass", "Oil-stained and generally dog-eared bible", "Signed Art Tatum record with personal note", "Straight razor, flecks of dried blood on the blade", "Diary written in a dead language", "Carefully concealed bottle of whiskey"]
memories = ["Photo of a woman and two kids, 'Munchen, 1932' handwritten", "Photograph of a ghost aboard a submarine, marked SECRET", "Oil painting of the Saddlebacks' previous officers", "Erotic magazine, annotated in code", "Set of instructions for demon summoning", "Navy Cross in a velvet-lined box"]
disturb = ["Strange idol, bathed in deep sea muck", "List of 13 names, including the recently killed, some crossed off", "Broken hatch door with marks of fists in the metal", "Sealed orders", "The Shroud of Turin", "Diary of the cook, explaining that he poisoned everybody on board"]
if dice == 2
puts "The important object is in the category #{objects[a[14]-1]} (#{a[14]})"
if a[14] == 1
puts "It is a(n) #{weap[a[15]-1]} (#{a[15]})"
end
if a[14] == 2
puts "It is a(n) #{tools[a[15]-1]} (#{a[15]})"
end
if a[14] == 3
puts "It is a(n) #{missing[a[15]-1]} (#{a[15]})"
end
if a[14] == 4
puts "It is a(n) #{comfort[a[15]-1]} (#{a[15]})"
end
if a[14] == 5
puts "It is a(n) #{memories[a[15]-1]} (#{a[15]})"
end
if a[14] == 6
puts "It is a(n) #{disturb[a[15]-1]} (#{a[15]})"
end
end
if dice == 1
puts "An important object is in the category #{objects[a[12]-1]} (#{a[12]})"
if a[12] == 1
puts "It is a(n) #{weap[a[13]-1]} (#{a[13]})"
end
if a[12] == 2
puts "It is a(n) #{tools[a[13]-1]} (#{a[13]})"
end
if a[12] == 3
puts "It is a(n) #{missing[a[13]-1]} (#{a[13]})"
end
if a[12] == 4
puts "It is a(n) #{comfort[a[13]-1]} (#{a[13]})"
end
if a[12] == 5
puts "It is a(n) #{memories[a[13]-1]} (#{a[13]})"
end
if a[12] == 6
puts "It is a(n) #{disturb[a[13]-1]} (#{a[13]})"
end
puts "An important object is in the category #{objects[a[14]-1]} (#{a[14]})"
if a[14] == 1
puts "It is a(n) #{weap[a[15]-1]} (#{a[15]})"
end
if a[14] == 2
puts "It is a(n) #{tools[a[15]-1]} (#{a[15]})"
end
if a[14] == 3
puts "It is a(n) #{missing[a[15]-1]} (#{a[15]})"
end
if a[14] == 4
puts "It is a(n) #{comfort[a[15]-1]} (#{a[15]})"
end
if a[14] == 5
puts "It is a(n) #{memories[a[15]-1]} (#{a[15]})"
end
if a[14] == 6
puts "It is a(n) #{disturb[a[15]-1]} (#{a[15]})"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment