*temp guide_price 0

*if planet_level = 5
	*set guide_price 150
	
*if planet_level = 4
	*set guide_price 100

📚 [b]${library_name}[/b]

*if sound
	*sound velcome.wav

You step into a standard spaceport bookstore.

*if (rp = true) and (rp_quiet = false)
	*if planet_level = 5
		${rp_emoji} "Wow, this is an interesting place."

Several brightly-colored paperback novels are arranged on shelves, and along one wall, you see a selection of glossy magazines.

In front of the register, you see several planetary travel guides.

👩‍🎓 [i]"Welcome to ${library_name}, traveler!  Feel free to browse around.  Today, we've got a special on travel guides - only ${guide_price} credits."[/i]

[b]:::[/b] What do you want to do, Captain?

*fake_choice
	#🔎 Look at the planetary guides
	#↩️ Go back to the spaceport
		*goto_scene spaceport leave_market
	
*label browser

*gosub bookstore_setup

*if sound
	*sound theseguidesgreatbargain.mp3

📚 [b]${library_name}[/b]

👩‍🎓 [i]"Not sure if you're a history buff, interested in politics, or are curious about the culture and economy on the planets, but these guides are really a great bargain!"[/i]

Picking one up at random, you see that it contains quite a lot of interesting information.

👩‍🎓 [i]"These planet guides have been selling like hotcakes!  All we have left are guides for ${gplanet1_name}, ${gplanet2_name}, and ${gplanet3_name}."[/i]

[b]:::[/b] What do you want to do, Captain?

*fake_choice
	*disable_reuse #✅ Buy the guide for 🪐 ${gplanet1_name}
		*set guide_name gplanet1_name
		*set guide_level gplanet1_level
		*set guide_quadrant gpq1
	*disable_reuse #✅ Buy the guide for 🪐 ${gplanet2_name}
		*set guide_name gplanet2_name
		*set guide_level gplanet2_level
		*set guide_quadrant gpq2
	*disable_reuse #✅ Buy the guide for 🪐 ${gplanet3_name}
		*set guide_name gplanet3_name
		*set guide_level gplanet3_level
		*set guide_quadrant gpq3
	#↩️ Go back to the spaceport
		*goto_scene spaceport leave_market
	
*if credits < guide_price
	[i]You don't have enough money to buy a planetary guide![/i]
	
	*page_break 😌
	*goto_scene spaceport leave_market
	
*set credits - guide_price
	
📚 [b]${library_name}[/b]

*gosub culture_setup

*if sound
	*sound alwayswantedtovisit.wav

You swipe transfer the credits over to ${library_name}'s account.

👩‍🎓 [i]"Excellent choice!  ${guide_name} is a level ${guide_level} planet.  You know, I've always wanted to visit there."[/i]

Flipping open your planetary guidebook, you see that it is divided into several sections.

*label guide_menu

*if chapters_read > 3
	*check_achievements
	*if choice_achieved_guide = false
		*achieve guide

[b]:::[/b] Which part of the guidebook do you want to read, Captain?

*fake_choice
	#🏛️ The history of ${guide_name}
		*set chapters_read +1
		*goto history
	#🗳️ The political structure of ${guide_name}
		*set chapters_read +1
		*goto politics
	#📈 The economic situation in ${guide_name}
		*set chapters_read +1
		*goto economics
	#🎭The culture of ${guide_name}
		*set chapters_read +1
		*goto culture
	#✅ Buy another planetary guide
		*goto browser
	#↩️ Go back to the spaceport
		*goto_scene spaceport leave_market
	

*label history

📚 [b]${library_name}[/b]

*if sound
	*sound pageturn.wav

Opening your guidebook to the section on history, you read:

[i]"${guide_name} is a planet in quadrant ${guide_quadrant} that was founded ${years} years ago by a ${ragged} band of ${colonists} who were ${fleeing} the ${interstellar_wars}.[/i]

[i]The leader of the first ${colonists} was a ${founder_man} named ${founder}.  Today, the ${central_square} in ${guide_name}'s largest city is named after ${founder_him}.[/i]

[i]$!{unfortunately}, after ${founder} died ${of_leprosy}, ${founder_he} was succeeded by ${second_founder}, who established the ${monarchical} system that still exists today on ${guide_name}.[/i]

[i]The early history of ${guide_name} was marked by ${violent_wars}.  After an initial era of ${clashes} between the ${tribes}, the people of ${guide_name} settled down and started focusing on ${mining}.[/i]

[i]Today, ${guide_name} is a close ally with the planets ${ally_planet1} and ${ally_planet2}, and the three are members of the ${stars_alliance}."[/i]

*goto guide_menu

*label politics

📚 [b]${library_name}[/b]

*if sound
	*sound pageturn.wav

Opening your guidebook to the section on politics, you read:

[i]"${guide_name} has a ${monarchical} form of government.  The current head of state is $!{president} ${president_name}.[/i]

[i]According to the latest polls, $!{president} ${president_name} is ${very_popular} the people of ${guide_name}.[/i]

[i]${guide_name} is divided into ${county_number} ${counties}.  Planetary elections are held every ${few_years} for the main legislative body, which is called the ${parliament_name}.[/i]

[i]Due to the ${strict} cultural standards on ${guide_name}, travelers are ${advised_to_avoid} discuss political issues with the locals, especially the topic of ${political_topic}."[/i]

*goto guide_menu

*label economics

📚 [b]${library_name}[/b]

*if sound
	*sound pageturn.wav

Opening your guidebook to the section on economics, you read:

[i]"The planet ${guide_name} is the quadrant leader in the production of ${main_crop}.  Other economics activities on ${guide_name} include ${crop2} and ${crop3}.[/i]

[i]${guide_name} is a ${large} planet with a ${highly_educated} workforce.  The planet is home to ${headquarters} of ${sponsor}, which is ${guide_name}'s largest employer.[/i]

*if university_number > 0
	[i]Currently, there are ${primary_number} primary schools on ${guide_name} and ${university_number} institutes of higher learning.[/i]
	
*if university_number = 0
	[i]Currently, there are ${primary_number} primary schools on ${guide_name} and no institutes of higher learning.[/i]

[i]The economy on ${guide_name} grew by ${percentagefirst}.${percentagesecond}% last year, and financial ${experts} have declared ${guide_name} to be a ${bull} market.[/i]

[i]Traders from all over the galaxy, especially those selling ${crop4}, are highly encouraged to visit the market on ${guide_name}."[/i]

*goto guide_menu

*label culture

*if sound
	*sound pageturn.wav

📚 [b]${library_name}[/b]

Opening your guidebook to the section on culture, you read:

[i]"${guide_name} is a planet with a ${large} population that enjoys a ${wide} range of different activities in their leisure time.[/i]

[i]The most popular sport on ${guide_name} is ${sport}.  Every year, ${guide_name} holds a $!{sport} Championship in which ${team_number} teams compete, the winner getting a ${golden} trophy.[/i]

*temp mushy "his"

*rand dieroll 1 3

*if dieroll = 2
	*set mushy "her"
	
*if dieroll = 3
	*set mushy "their"

[i]The most famous artist on ${guide_name} is ${artist}, who is renowned for ${mushy} ${painting} skills.  ${artist} regularly holds public performances which draw ${crowd_size} crowds of people.[/i]

[i]The most popular past-time on ${guide_name} is ${bird_watching}.  The people of ${guide_name} also enjoy ${singing}, ${dancing}, and ${making_pottery}.[/i]

[i]If you want to fit in like a local, be sure to give everyone a ${firm_handshake} when you meet them.  The people of ${guide_name} say, "$!{cheers}!" before they drink their ${tea} in the ${morning}.[/i]

[i]Many people on ${guide_name} are members of the ${religion} faith, which is a ${central} part of their culture."[/i]

*goto guide_menu

*label history_setup



*label culture_setup

*temp morning ""

*rand dieroll 1 4

*if dieroll = 1
	*set morning "morning"
	
*if dieroll = 2
	*set morning "afternoon"
	
*if dieroll = 3
	*set morning "evening"
	
*if dieroll = 4
	*set morning "bathtub"

*temp large ""
*temp wide ""
*temp team_number 0
*temp crowd_size ""

*if guide_level = 1
	*set large "tiny"
	*set wide "small"
	*set team_number 2
	*set crowd_size "diverse"
	
*if guide_level = 2
	*set large "small"
	*set wide "diverse"
	*set team_number 6
	*set crowd_size "enthusiastic"
	
*if guide_level = 3
	*set large "growing"
	*set wide "substantial"
	*set team_number 10
	*set crowd_size "large"
	
*if guide_level = 4
	*set large "burgeoning"
	*set wide "large"
	*set team_number 16
	*set crowd_size "huge"
	
*if guide_level = 5
	*set large "very large"
	*set wide "very wide"
	*set team_number 32
	*set crowd_size "enormous"

*temp sport ""

*rand dieroll 1 11

*if dieroll = 1
	*set sport "volleyball"
	
*if dieroll = 2
	*set sport "juggling"
	
*if dieroll = 3
	*set sport "unicycle-riding"
	
*if dieroll = 4
	*set sport "trampoline"
	
*if dieroll = 5
	*set sport "cometball"
	
*if dieroll = 6
	*set sport "jogging"
	
*if dieroll = 7
	*set sport "nomegacross"
	
*if dieroll = 8
	*set sport "paragliding"
	
*if dieroll = 9
	*set sport "surfing"
	
*if dieroll = 10
	*set sport "gymnastics"
	
*if dieroll = 11
	*set sport "bowling"
	
*temp artist ""
	
*rand dieroll 1 11

*if dieroll = 1
	*set artist "Omen"
	
*if dieroll = 2
	*set artist "Jim Bolt"
	
*if dieroll = 3
	*set artist "Night"
	
*if dieroll = 4
	*set artist "Judge"
	
*if dieroll = 5
	*set artist "Berrymore"
	
*if dieroll = 6
	*set artist "Pasquille"
	
*if dieroll = 7
	*set artist "Tikkon"
	
*if dieroll = 8
	*set artist "Whistle"
	
*if dieroll = 9
	*set artist "The Acrobat"
	
*if dieroll = 10
	*set artist "Silver Pyro"
	
*if dieroll = 11
	*set artist "Ghost"
	
*temp headquarters "the galactic headquarters"

*if guide_level = 4
	*set headquarters "a regional headquarters"
	
*if guide_level = 3
	*set headquarters "a regional office"
	
*if guide_level = 2
	*set headquarters "a divisional office"
	
*if guide_level = 1
	*set headquarters "an outlet"
	
*temp sponsor ""

*rand dieroll 1 21

*if dieroll = 1
	*set sponsor "Daisy's Gowns"
	
*if dieroll = 2
	*set sponsor "Kool Shots Ice Cream"
	
*if dieroll = 3
	*set sponsor "Dilworth Cola"
	
*if dieroll = 4
	*set sponsor "Cherry Bomb Juice"
	
*if dieroll = 5
	*set sponsor "Lil' Chocs"
	
*if dieroll = 6
	*set sponsor "Drink-N-Shake"
	
*if dieroll = 7
	*set sponsor "Bricks of Fun"
	
*if dieroll = 8
	*set sponsor "Goddess and Goo"
	
*if dieroll = 9
	*set sponsor "Astro Burgers"
	
*if dieroll = 10
	*set sponsor "Dunny's Delly Stop"
	
*if dieroll = 11
	*set sponsor "Scents of Vegas"
	
*if dieroll = 12
	*set sponsor "One Cash Solution"
	
*if dieroll = 13
	*set sponsor "Red Pepper Debt Solutions"
	
*if dieroll = 14
	*set sponsor "We Buy Gold, Incorporated"
	
*if dieroll = 15
	*set sponsor "Jellybean Joes"
	
*if dieroll = 16
	*set sponsor "Cannellium Motors"
	
*if dieroll = 17
	*set sponsor "Algol Industries"
	
*if dieroll = 18
	*set sponsor "the Galactic Economic Forum"
	
*if dieroll = 19
	*set sponsor "Amalgamated Mining"
	
*if dieroll = 20
	*set sponsor "the Cookie Dough Ranch"
	
*if dieroll = 21
	*set sponsor "Wet Face Bakes"
	
*temp painting ""

*rand dieroll 1 11

*if dieroll = 1
	*set painting "painting"
	
*if dieroll = 2
	*set painting "DJ"
	
*if dieroll = 3
	*set painting "barefoot folk dancing"
	
*if dieroll = 4
	*set painting "traditional face painting"
	
*if dieroll = 5
	*set painting "chicken juggling"
	
*if dieroll = 6
	*set painting "whistling"
	
*if dieroll = 7
	*set painting "guitar playing"
	
*if dieroll = 8
	*set painting "violin playing"
	
*if dieroll = 9
	*set painting "fashion designing"
	
*if dieroll = 10
	*set painting "dream interpreting"
	
*if dieroll = 11
	*set painting "ice carving"

*temp golden ""

*rand dieroll 1 11

*if dieroll = 1
	*set golden "golden"
	
*if dieroll = 2
	*set golden "turquoise"
	
*if dieroll = 3
	*set golden "3D azure"
	
*if dieroll = 4
	*set golden "jade"
	
*if dieroll = 5
	*set golden "mud-brick"
	
*if dieroll = 6
	*set golden "rusty"
	
*if dieroll = 7
	*set golden "sparkling"
	
*if dieroll = 8
	*set golden "holographic"
	
*if dieroll = 9
	*set golden "cosmic"
	
*if dieroll = 10
	*set golden "Galaxy Champions"
	
*if dieroll = 11
	*set golden "rubber"

*temp bird_watching ""

*rand dieroll 1 11

*if dieroll = 1
	*set bird_watching "bird watching"
	
*if dieroll = 2
	*set bird_watching "breeding houseplants"
	
*if dieroll = 3
	*set bird_watching "ostrich riding"
	
*if dieroll = 4
	*set bird_watching "fly fishing"
	
*if dieroll = 5
	*set bird_watching "ballroom dancing"
	
*if dieroll = 6
	*set bird_watching "flute carving"
	
*if dieroll = 7
	*set bird_watching "astrology"
	
*if dieroll = 8
	*set bird_watching "writing poetry"
	
*if dieroll = 9
	*set bird_watching "extreme ironing"
	
*if dieroll = 10
	*set bird_watching "beetle fighting"
	
*if dieroll = 11
	*set bird_watching "cow tipping"

*temp singing ""

*rand dieroll 1 21

*if dieroll = 1
	*set singing "folk singing"
	
*if dieroll = 2
	*set singing "rock rolling"
	
*if dieroll = 3
	*set singing "cheese sniffing"
	
*if dieroll = 4
	*set singing "toy voyaging"
	
*if dieroll = 5
	*set singing "soap carving"
	
*if dieroll = 6
	*set singing "rock collecting"
	
*if dieroll = 7
	*set singing "fork bending"
	
*if dieroll = 8
	*set singing "dancing in the rain"
	
*if dieroll = 9
	*set singing "extreme couponing"
	
*if dieroll = 10
	*set singing "painting rocks"
	
*if dieroll = 11
	*set singing "sand sailing"
	
*if dieroll = 12
	*set singing "cat breeding"
	
*if dieroll = 13
	*set singing "kite flying"
	
*if dieroll = 14
	*set singing "choir dancing"
	
*if dieroll = 15
	*set singing "group drumming"
	
*if dieroll = 16
	*set singing "amateur dentistry"
	
*if dieroll = 17
	*set singing "bog hopping"
	
*if dieroll = 18
	*set singing "papermaking"
	
*if dieroll = 19
	*set singing "playing the lute"
	
*if dieroll = 20
	*set singing "cheese rolling"
	
*if dieroll = 21
	*set singing "yogurt making"

*temp dancing ""

*rand dieroll 1 21

*temp tea "tea"

*if dieroll = 1
	*set dancing "dancing"
	
*if dieroll = 2
	*set dancing "doing jumping jacks"
	
*if dieroll = 3
	*set dancing "yoga"
	
*if dieroll = 4
	*set dancing "pilates"
	
*if dieroll = 5
	*set dancing "tai chi"
	
*if dieroll = 6
	*set dancing "meditating"
	
*if dieroll = 7
	*set dancing "taking long walks along the beach"
	
*if dieroll = 8
	*set dancing "jungle hiking"
	
*if dieroll = 9
	*set dancing "forest bathing"
	
*if dieroll = 10
	*set dancing "painting landscapes"
	
*if dieroll = 11
	*set dancing "whistling hypnotic melodies"
	
*if dieroll = 12
	*set dancing "hand-sewing their own clothes"
	
*if dieroll = 13
	*set dancing "canning and pickling vegetables"
	
*if dieroll = 14
	*set dancing "participating in group dances online"
	
*if dieroll = 15
	*set dancing "cyber texting"
	
*if dieroll = 16
	*set dancing "sword forging"
	
*if dieroll = 17
	*set dancing "blending chocolate"
	
*if dieroll = 18
	*set dancing "holding pie eating contests"
	
*if dieroll = 19
	*set dancing "dressing up like vegetables"
	
*if dieroll = 20
	*set dancing "drinking ${tea}"
	
*if dieroll = 21
	*set dancing "mushroom hunting"

*temp making_pottery ""

*rand dieroll 1 21

*if dieroll = 1
	*set making_pottery "making pottery"
	
*if dieroll = 2
	*set making_pottery "gardening"
	
*if dieroll = 3
	*set making_pottery "grafting fruit trees"
	
*if dieroll = 4
	*set making_pottery "playing the violin"
	
*if dieroll = 5
	*set making_pottery "playing the one-note flute"
	
*if dieroll = 6
	*set making_pottery "caber tossing"
	
*if dieroll = 7
	*set making_pottery "calligraphy"
	
*if dieroll = 8
	*set making_pottery "playing underwater hockey"
	
*if dieroll = 9
	*set making_pottery "practicing endurance kissing"
	
*if dieroll = 10
	*set making_pottery "drinking liquor"
	
*if dieroll = 11
	*set making_pottery "holding zorbing races"
	
*if dieroll = 12
	*set making_pottery "nude sunbathing"
	
*if dieroll = 13
	*set making_pottery "walking on their hands"
	
*if dieroll = 14
	*set making_pottery "pole dancing"
	
*if dieroll = 15
	*set making_pottery "listening to the radio"
	
*if dieroll = 16
	*set making_pottery "mural painting"
	
*if dieroll = 17
	*set making_pottery "pig racing"
	
*if dieroll = 18
	*set making_pottery "competitive dog walking"
	
*if dieroll = 19
	*set making_pottery "glue sniffing"
	
*if dieroll = 20
	*set making_pottery "yodeling"
	
*if dieroll = 21
	*set making_pottery "banjo picking"

*temp firm_handshake ""

*rand dieroll 1 11

*if dieroll = 1
	*set firm_handshake "firm handshake"
	
*if dieroll = 2
	*set firm_handshake "two-fingered salute"
	
*if dieroll = 3
	*set firm_handshake "kiss on both cheeks"
	
*if dieroll = 4
	*set firm_handshake "kiss on the tip of the nose"
	
*if dieroll = 5
	*set firm_handshake "light tug on the ear"
	
*if dieroll = 6
	*set firm_handshake "quick hug"
	
*if dieroll = 7
	*set firm_handshake "small glass of water"
	
*if dieroll = 8
	*set firm_handshake "fist bump"
	
*if dieroll = 9
	*set firm_handshake "tap on the forehead"
	
*if dieroll = 10
	*set firm_handshake "slap on the bottom"
	
*if dieroll = 11
	*set firm_handshake "loud whistle"

*temp cheers ""

*rand dieroll 1 11

*if dieroll = 1
	*set cheers "in thankfulness to the Great Mother"
	
*if dieroll = 2
	*set cheers "here's to world peace"
	
*if dieroll = 3
	*set cheers "may your grandmother live one hundred years"
	
*if dieroll = 4
	*set cheers "to the great spirit"
	
*if dieroll = 5
	*set cheers "to the Intergalactic Ghost"
	
*if dieroll = 6
	*set cheers "may a fertile rain fall upon your fields"
	
*if dieroll = 7
	*set cheers "may the mine produce much ore"
	
*if dieroll = 8
	*set cheers "may you never drift without batteries in a forgotten quadrant"
	
*if dieroll = 9
	*set cheers "may the fleas of a thousand camels find your enemy's tent"
	
*if dieroll = 10
	*set cheers "today we drink, for tomorrow we die"
	
*if dieroll = 11
	*set cheers "in Vultar's name"
	
*temp tea ""

*rand dieroll 1 11

*if dieroll = 1
	*set tea "tea"
	
*if dieroll = 2
	*set tea "coffee"
	
*if dieroll = 3
	*set tea "milk"
	
*if dieroll = 4
	*set tea "fermented yak's milk"
	
*if dieroll = 5
	*set tea "beer"
	
*if dieroll = 6
	*set tea "vodka"
	
*if dieroll = 7
	*set tea "whiskey"
	
*if dieroll = 8
	*set tea "soy milk"
	
*if dieroll = 9
	*set tea "mineral water"
	
*if dieroll = 10
	*set tea "liquid nutrition ration"
	
*if dieroll = 11
	*set tea "liquid meal replacement"

*temp religion ""

*rand dieroll 1 11

*if dieroll = 1
	*set religion "NeoCatholic"
	
*if dieroll = 2
	*set religion "Vultarian"
	
*if dieroll = 3
	*set religion "lavka"
	
*if dieroll = 4
	*set religion "NeoHindu"
	
*if dieroll = 5
	*set religion "Protestant"
	
*if dieroll = 6
	*set religion "neopagan"
	
*if dieroll = 7
	*set religion "galaxy animist"
	
*if dieroll = 8
	*set religion "religious science"
	
*if dieroll = 9
	*set religion "rabbit-worshipping"
	
*if dieroll = 10
	*set religion "neo-Platonist"
	
*if dieroll = 11
	*set religion "agnostic"

*temp central ""

*rand dieroll 1 11

*if dieroll = 1
	*set central "central"
	
*if dieroll = 2
	*set central "minor"
	
*if dieroll = 3
	*set central "critically important"
	
*if dieroll = 4
	*set central "largely unimportant"
	
*if dieroll = 5
	*set central "nearly forgotten"
	
*if dieroll = 6
	*set central "tangential"
	
*if dieroll = 7
	*set central "key"
	
*if dieroll = 8
	*set central "essential"
	
*if dieroll = 9
	*set central "fundamentally important"
	
*if dieroll = 10
	*set central "defining"
	
*if dieroll = 11
	*set central "secret"
	
*temp years 0
*temp mining ""
*temp tribes ""
*temp stars_alliance ""
	
*if guide_level = 1
	*rand years 11 21
	*set mining "tin mining"
	*set tribes "clans"
	*set stars_alliance "Rockhoppers Guild"
	
*if guide_level = 2
	*rand years 15 30
	*set mining "dry cereal farming"
	*set tribes "tribes"
	*set stars_alliance "Farm & Country Stars Alliance"

*if guide_level = 3
	*rand years 35 75
	*set mining "black truffle farming"
	*set tribes "political parties"
	*set stars_alliance "Strong Worlds Alliance"

*if guide_level = 4
	*rand years 101 224
	*set mining "minicomputer fabrication"
	*set tribes "factions"
	*set stars_alliance "Federation of Planets"
	
*if guide_level = 5
	*rand years 350 841
	*set mining "culturing jade cubes"
	*set tribes "various stakeholders"
	*set stars_alliance "Club of 50"

*temp ragged ""

*rand dieroll 1 11

*if dieroll = 1
	*set ragged "ragged"
	
*if dieroll = 2
	*set ragged "courageous"
	
*if dieroll = 3
	*set ragged "very intrepid"
	
*if dieroll = 4
	*set ragged "malnourished"
	
*if dieroll = 5
	*set ragged "fiercely independent"
	
*if dieroll = 6
	*set ragged "noble"
	
*if dieroll = 7
	*set ragged "determined"
	
*if dieroll = 8
	*set ragged "fearless"
	
*if dieroll = 9
	*set ragged "mighty"
	
*if dieroll = 10
	*set ragged "desperate"
	
*if dieroll = 11
	*set ragged "devastated"
	
*temp colonists ""

*rand dieroll 1 11

*if dieroll = 1
	*set colonists "colonists"
	
*if dieroll = 2
	*set colonists "pioneers"
	
*if dieroll = 3
	*set colonists "explorers"
	
*if dieroll = 4
	*set colonists "refugees"
	
*if dieroll = 5
	*set colonists "space gypsies"
	
*if dieroll = 6
	*set colonists "warriors"
	
*if dieroll = 7
	*set colonists "bureaucrats"
	
*if dieroll = 8
	*set colonists "farmers"
	
*if dieroll = 9
	*set colonists "true believers"
	
*if dieroll = 10
	*set colonists "engineers"
	
*if dieroll = 11
	*set colonists "scientists"
	
*temp fleeing ""

*rand dieroll 1 11

*if dieroll = 1
	*set fleeing "fleeing"
	
*if dieroll = 2
	*set fleeing "separating"
	
*if dieroll = 3
	*set fleeing "evading"
	
*if dieroll = 4
	*set fleeing "escaping"
	
*if dieroll = 5
	*set fleeing "running away"
	
*if dieroll = 6
	*set fleeing "bugging out"
	
*if dieroll = 7
	*set fleeing "cast-offs"
	
*if dieroll = 8
	*set fleeing "excommunicating"
	
*if dieroll = 9
	*set fleeing "beating a retreat"
	
*if dieroll = 10
	*set fleeing "wandering away"
	
*if dieroll = 11
	*set fleeing "getting away"
	
*temp interstellar_wars ""

*rand dieroll 1 11

*if dieroll = 1
	*set interstellar_wars "Interstellar War"
	
*if dieroll = 2
	*set interstellar_wars "Great Galactic War"
	
*if dieroll = 3
	*set interstellar_wars "Battle of Hofkin 9"
	
*if dieroll = 4
	*set interstellar_wars "Great Pestilence"
	
*if dieroll = 5
	*set interstellar_wars "Virus Wars"
	
*if dieroll = 6
	*set interstellar_wars "War of Jenkin's Ear"
	
*if dieroll = 7
	*set interstellar_wars "Crash of 2099"
	
*if dieroll = 8
	*set interstellar_wars "Confidence Crisis"
	
*if dieroll = 9
	*set interstellar_wars "Interfaith War"
	
*if dieroll = 10
	*set interstellar_wars "Skynet Rebellion"
	
*if dieroll = 11
	*set interstellar_wars "high taxes and intrusive government on their home world"
	
*temp founder_man ""
*temp founder_him ""
*temp founder_he ""

*rand dieroll 1 2

*if dieroll = 1
	*set founder_man "man"
	*set founder_him "him"
	*set founder_he "he"
	
*if dieroll = 2
	*set founder_man "woman"
	*set founder_him "her"
	*set founder_he "she"
	
*temp founder_first ""

*rand dieroll 1 11

*if dieroll = 1
	*set founder_first "Alarpiod"
	
*if dieroll = 2
	*set founder_first "Bibiit"
	
*if dieroll = 3
	*set founder_first "Datoldals"
	
*if dieroll = 4
	*set founder_first "Desasaun"
	
*if dieroll = 5
	*set founder_first "Enirrihh"
	
*if dieroll = 6
	*set founder_first "Enitisuar"
	
*if dieroll = 7
	*set founder_first "Etinorosn"
	
*if dieroll = 8
	*set founder_first "Hicaol"
	
*if dieroll = 9
	*set founder_first "Olepabiar"
	
*if dieroll = 10
	*set founder_first "Rahiod"
	
*if dieroll = 11
	*set founder_first "Leraar"
	
*temp founder_second ""

*rand dieroll 1 11

*if dieroll = 1
	*set founder_second "Brushfollower"
	
*if dieroll = 2
	*set founder_second "Goldhider"
	
*if dieroll = 3
	*set founder_second "Lutestealer"
	
*if dieroll = 4
	*set founder_second "Happypaw"
	
*if dieroll = 5
	*set founder_second "Cloudfinder"
	
*if dieroll = 6
	*set founder_second "Dashmaker"
	
*if dieroll = 7
	*set founder_second "Dirtbeak"
	
*if dieroll = 8
	*set founder_second "Pearlbreeze"
	
*if dieroll = 9
	*set founder_second "Lightwolf"
	
*if dieroll = 10
	*set founder_second "Skyblow"
	
*if dieroll = 11
	*set founder_second "Jaderain"
	
*temp founder ""
	
*set founder "${founder_first} ${founder_second}"
	
*temp of_leprosy ""

*rand dieroll 1 11

*if dieroll = 1
	*set of_leprosy "of leprosy"
	
*if dieroll = 2
	*set of_leprosy "from eating too many eels"
	
*if dieroll = 3
	*set of_leprosy "in a fit of rage after losing a key battle"
	
*if dieroll = 4
	*set of_leprosy "of the plague"
	
*if dieroll = 5
	*set of_leprosy "just a few hours after being cut down by an assassin's bullet"
	
*if dieroll = 6
	*set of_leprosy "from falling off a cliff"
	
*if dieroll = 7
	*set of_leprosy "from an extended drunken banquet"
	
*if dieroll = 8
	*set of_leprosy "in an apparent act of suicide"
	
*if dieroll = 9
	*set of_leprosy "of loneliness"
	
*if dieroll = 10
	*set of_leprosy "from misadventure in the bed chamber"
	
*if dieroll = 11
	*set of_leprosy "following a short illness"
	
*temp unfortunately ""

*rand dieroll 1 11

*if dieroll = 1
	*set unfortunately "unfortunately"
	
*if dieroll = 2
	*set unfortunately "lamentably"
	
*if dieroll = 3
	*set unfortunately "regrettably"
	
*if dieroll = 4
	*set unfortunately "sad to relate"
	
*if dieroll = 5
	*set unfortunately "unluckily"
	
*if dieroll = 6
	*set unfortunately "fortunately"
	
*if dieroll = 7
	*set unfortunately "providentially"
	
*if dieroll = 8
	*set unfortunately "mercifully"
	
*if dieroll = 9
	*set unfortunately "thankfully"
	
*if dieroll = 10
	*set unfortunately "by happy chance"
	
*if dieroll = 11
	*set unfortunately "as luck would have it"
	
*temp second_founder ""

*rand dieroll 1 11

*if dieroll = 1
	*set second_founder "Bangag"
	
*if dieroll = 2
	*set second_founder "Draher"
	
*if dieroll = 3
	*set second_founder "Eraora"
	
*if dieroll = 4
	*set second_founder "Gerodog"
	
*if dieroll = 5
	*set second_founder "Ghraru"
	
*if dieroll = 6
	*set second_founder "Jiongar"
	
*if dieroll = 7
	*set second_founder "Rarandog"
	
*if dieroll = 8
	*set second_founder "Ytto"
	
*if dieroll = 9
	*set second_founder "Varah"
	
*if dieroll = 10
	*set second_founder "Ziog"
	
*if dieroll = 11
	*set second_founder "Olon the Mighty"
	
*temp monarchical ""

*rand dieroll 1 11

*if dieroll = 1
	*set monarchical "monarchical"
	
*if dieroll = 2
	*set monarchical "democratic"
	
*if dieroll = 3
	*set monarchical "constitutional monarchy"
	
*if dieroll = 4
	*set monarchical "anarcho-capitalist"
	
*if dieroll = 5
	*set monarchical "libertarian"
	
*if dieroll = 6
	*set monarchical "social democratic"
	
*if dieroll = 7
	*set monarchical "communist"
	
*if dieroll = 8
	*set monarchical "totalitarian dictatorship"
	
*if dieroll = 9
	*set monarchical "federated republic"
	
*if dieroll = 10
	*set monarchical "egalitarian"
	
*if dieroll = 11
	*set monarchical "plutocracy"
	
*temp violent_wars ""

*rand dieroll 1 11

*if dieroll = 1
	*set violent_wars "violent wars"
	
*if dieroll = 2
	*set violent_wars "protracted legal disputes"
	
*if dieroll = 3
	*set violent_wars "long periods of little development"
	
*if dieroll = 4
	*set violent_wars "lengthy debates"
	
*if dieroll = 5
	*set violent_wars "small-scale battles"
	
*if dieroll = 6
	*set violent_wars "accusations of blasphemy and heresy"
	
*if dieroll = 7
	*set violent_wars "a witch-burning mania"
	
*if dieroll = 8
	*set violent_wars "the flourishing of the arts and high culture"
	
*if dieroll = 9
	*set violent_wars "an intensification of religious beliefs"
	
*if dieroll = 10
	*set violent_wars "arguments over water rights"
	
*if dieroll = 11
	*set violent_wars "anarchy and bloodshed"
	
*temp clashes ""

*rand dieroll 1 11

*if dieroll = 1
	*set clashes "clashes"
	
*if dieroll = 2
	*set clashes "fighting"
	
*if dieroll = 3
	*set clashes "debates"
	
*if dieroll = 4
	*set clashes "disagreements"
	
*if dieroll = 5
	*set clashes "legal posturing"
	
*if dieroll = 6
	*set clashes "vicious hand-to-hand fighting"
	
*if dieroll = 7
	*set clashes "screaming matches"
	
*if dieroll = 8
	*set clashes "shouting contests"
	
*if dieroll = 9
	*set clashes "spiritual battles"
	
*if dieroll = 10
	*set clashes "heated sports matches"
	
*if dieroll = 11
	*set clashes "wizard battles"

*label ally_setup

*temp ally_planet1 ""

*rand dieroll 1 150

*set ally_planet1 "planet${dieroll}_name"
*set ally_planet1 {ally_planet1}

*if ally_planet1 = guide_name
	*goto ally_setup

*if ally_planet1 = planet_name
	*goto ally_setup

*temp ally_planet2 ""

*rand dieroll 1 150

*set ally_planet2 "planet${dieroll}_name"
*set ally_planet2 {ally_planet2}

*if ally_planet2 = guide_name
	*goto ally_setup

*if ally_planet2 = planet_name
	*goto ally_setup

*if ally_planet2 = ally_planet1
	*goto ally_setup

*temp county_number 0
*temp counties ""
*temp political_topic ""
	
*if guide_level = 1
	*set county_number "two"
	*set counties "camps"
	*set political_topic "miner's rights"
	
*if guide_level = 2
	*rand county_number 2 5
	*set counties "regions"
	*set political_topic "dry cereal farmer's rights"

*if guide_level = 3
	*rand county_number 11 77
	*set counties "counties"
	*set political_topic "religion and the existance of a Supreme Deity"

*if guide_level = 4
	*rand county_number 11 17
	*set counties "republics"
	*set political_topic "redistricting political zones on a weighted algorithmic basis"
	
*if guide_level = 5
	*rand county_number 501 671
	*set counties "member states"
	*set political_topic "making changes to the Intergalactic pixograph system"

*temp president ""

*rand dieroll 1 11

*if dieroll = 1
	*set president "president"
	
*if dieroll = 2
	*set president "king"
	
*if dieroll = 3
	*set president "Prime Minister"
	
*if dieroll = 4
	*set president "Supreme Leader"
	
*if dieroll = 5
	*set president "President-for-Life"
	
*if dieroll = 6
	*set president "Emperor"
	
*if dieroll = 7
	*set president "Council President"
	
*if dieroll = 8
	*set president "Chief Political Officer"
	
*if dieroll = 9
	*set president "Citizen Nr. 1"
	
*if dieroll = 10
	*set president "Benevolent Leader"
	
*if dieroll = 11
	*set president "Pope"
	
*temp president_name ""

*rand dieroll 1 11

*if dieroll = 1
	*set president_name "Caooua"
	
*if dieroll = 2
	*set president_name "Cheomig"
	
*if dieroll = 3
	*set president_name "Fele"
	
*if dieroll = 4
	*set president_name "Hianissh"
	
*if dieroll = 5
	*set president_name "Miabeo"
	
*if dieroll = 6
	*set president_name "Puthuca"
	
*if dieroll = 7
	*set president_name "Qatatzh"
	
*if dieroll = 8
	*set president_name "Jonni"
	
*if dieroll = 9
	*set president_name "Beka"
	
*if dieroll = 10
	*set president_name "Gumata"
	
*if dieroll = 11
	*set president_name "Singletary"
	
*temp very_popular ""

*rand dieroll 1 11

*if dieroll = 1
	*set very_popular "very popular with"
	
*if dieroll = 2
	*set very_popular "somewhat popular with"
	
*if dieroll = 3
	*set very_popular "somewhat unpopular with"
	
*if dieroll = 4
	*set very_popular "deeply unpopular with"
	
*if dieroll = 5
	*set very_popular "an addict for the adulation of"
	
*if dieroll = 6
	*set very_popular "out of touch with"
	
*if dieroll = 7
	*set very_popular "the eternally beloved leader of"
	
*if dieroll = 8
	*set very_popular "seen as an excellent role model for"
	
*if dieroll = 9
	*set very_popular "a deranged monster who hides from"
	
*if dieroll = 10
	*set very_popular "well-loved by"
	
*if dieroll = 11
	*set very_popular "seen as a regular kind of person who could easily enjoy a drink with"
	
*temp few_years ""

*rand dieroll 1 11

*if dieroll = 1
	*set few_years "few weeks"
	
*if dieroll = 2
	*set few_years "few months"
	
*if dieroll = 3
	*set few_years "few years"
	
*if dieroll = 4
	*set few_years "eleven years"
	
*if dieroll = 5
	*set few_years "generation"
	
*if dieroll = 6
	*set few_years "full moon"
	
*if dieroll = 7
	*set few_years "century"
	
*if dieroll = 8
	*set few_years "two years"
	
*if dieroll = 9
	*set few_years "few days"
	
*if dieroll = 10
	*set few_years "full lunar and solar cycle"
	
*if dieroll = 11
	*set few_years "blue moon"
	
*temp parliament_name ""

*rand dieroll 1 11

*if dieroll = 1
	*set parliament_name "Parliament of Sages"
	
*if dieroll = 2
	*set parliament_name "Congress of Wisdom"
	
*if dieroll = 3
	*set parliament_name "Mighty Senate"
	
*if dieroll = 4
	*set parliament_name "Great Assemblage"
	
*if dieroll = 5
	*set parliament_name "Circle of Sitting"
	
*if dieroll = 6
	*set parliament_name "Upper Chamber"
	
*if dieroll = 7
	*set parliament_name "House of the People"
	
*if dieroll = 8
	*set parliament_name "Chamber of Revered Deputies"
	
*if dieroll = 9
	*set parliament_name "Assembly of Free Lords"
	
*if dieroll = 10
	*set parliament_name "House of Laws"
	
*if dieroll = 11
	*set parliament_name "Committee of Public Safety"
	
*temp strict ""

*rand dieroll 1 11

*if dieroll = 1
	*set strict "strict"
	
*if dieroll = 2
	*set strict "liberal"
	
*if dieroll = 3
	*set strict "highly unconventional"
	
*if dieroll = 4
	*set strict "rather unusual"
	
*if dieroll = 5
	*set strict "strictly disciplinarian"
	
*if dieroll = 6
	*set strict "repressive"
	
*if dieroll = 7
	*set strict "loose"
	
*if dieroll = 8
	*set strict "relative lack of"
	
*if dieroll = 9
	*set strict "confusing and often Byzantine"
	
*if dieroll = 10
	*set strict "somewhat strange"
	
*if dieroll = 11
	*set strict "militarized"

*temp advised_to_avoid ""

*rand dieroll 1 11

*if dieroll = 1
	*set advised_to_avoid "advised to not"
	
*if dieroll = 2
	*set advised_to_avoid "highly encouraged not to"
	
*if dieroll = 3
	*set advised_to_avoid "recommended to"
	
*if dieroll = 4
	*set advised_to_avoid "not recommended to"
	
*if dieroll = 5
	*set advised_to_avoid "urged to"
	
*if dieroll = 6
	*set advised_to_avoid "strongly urged not to"
	
*if dieroll = 7
	*set advised_to_avoid "permitted to"
	
*if dieroll = 8
	*set advised_to_avoid "not permitted to"
	
*if dieroll = 9
	*set advised_to_avoid "not authorized to"
	
*if dieroll = 10
	*set advised_to_avoid "authorized to"
	
*if dieroll = 11
	*set advised_to_avoid "not allowed to"
	
*temp main_crop ""
*temp crop2 ""
*temp crop3 ""
*temp crop4 ""
*temp highly_educated ""
*temp primary_number 0
*temp university_number 0
*temp percentagefirst 0
*temp percentagesecond 0

*temp bull ""

*rand dieroll 1 2

*if dieroll = 1
	*set bull "bull"
	
*if dieroll = 2
	*set bull "bear"
	
*if guide_level = 1
	*set main_crop resource1
	*set crop2 resource2
	*set crop3 resource3
	*set crop4 resource10
	*set highly_educated "primarily uneducated"
	*set primary_number 3
	*set university_number 0
	*rand percentagefirst 1 5
	*rand percentagesecond 0 9

	
*if guide_level = 2
	*set main_crop resource4
	*set crop2 resource3
	*set crop3 resource5
	*set crop4 resource11
	*set highly_educated "partially educated"
	*rand primary_number 2 15
	*rand university_number 2 3
	*rand percentagefirst 1 5
	*rand percentagesecond 0 9

*if guide_level = 3
	*set main_crop resource5
	*set crop2 resource7
	*set crop3 resource6
	*set crop4 resource3
	*set highly_educated "fully educated"
	*rand primary_number 21 47
	*rand university_number 2 5
	*rand percentagefirst 1 5
	*rand percentagesecond 0 9


*if guide_level = 4
	*set main_crop resource8
	*set crop2 resource9
	*set crop3 resource10
	*set crop4 resource2
	*set highly_educated "highly educated"
	*rand primary_number 48 79
	*rand university_number 5 11
	*rand percentagefirst 1 5
	*rand percentagesecond 0 9

	
*if guide_level = 5
	*set main_crop resource11
	*set crop2 resource10
	*set crop3 resource9
	*set crop4 resource1
	*set highly_educated "superbly educated and well-trained"
	*rand primary_number 150 387
	*rand university_number 14 47
	*rand percentagefirst 3 7
	*rand percentagesecond 0 9

*temp experts ""

*rand dieroll 1 11

*if dieroll = 1
	*set experts "experts"
	
*if dieroll = 2
	*set experts "wizards"
	
*if dieroll = 3
	*set experts "leaders"
	
*if dieroll = 4
	*set experts "seers"
	
*if dieroll = 5
	*set experts "shamans"
	
*if dieroll = 6
	*set experts "government advisors"
	
*if dieroll = 7
	*set experts "commentators"
	
*if dieroll = 8
	*set experts "experts who appear on television"
	
*if dieroll = 9
	*set experts "prognosticators"
	
*if dieroll = 10
	*set experts "nerds"
	
*if dieroll = 11
	*set experts "bureaucrats"

*temp central_square ""

*rand dieroll 1 11

*if dieroll = 1
	*set central_square "central square"
	
*if dieroll = 2
	*set central_square "spaceport"
	
*if dieroll = 3
	*set central_square "seat of government"
	
*if dieroll = 4
	*set central_square "central park"
	
*if dieroll = 5
	*set central_square "biggest library"
	
*if dieroll = 6
	*set central_square "trading market"
	
*if dieroll = 7
	*set central_square "main street"
	
*if dieroll = 8
	*set central_square "museum"
	
*if dieroll = 9
	*set central_square "convention center"
	
*if dieroll = 10
	*set central_square "dance hall"
	
*if dieroll = 11
	*set central_square "prison"
	

	
*return

*label bookstore_setup

*temp gpq1 0
*temp gplanet1_name ""
*temp gplanres1 ""
*temp gplanet1_level 0

*rand dieroll 1 11

*if dieroll = 1
	*set gplanres1 resource1
	
*if dieroll = 2
	*set gplanres1 resource2
	
*if dieroll = 3
	*set gplanres1 resource3
	
*if dieroll = 4
	*set gplanres1 resource4
	
*if dieroll = 5
	*set gplanres1 resource5
	
*if dieroll = 6
	*set gplanres1 resource6
	
*if dieroll = 7
	*set gplanres1 resource7
	
*if dieroll = 8
	*set gplanres1 resource8
	
*if dieroll = 9
	*set gplanres1 resource9
	
*if dieroll = 10
	*set gplanres1 resource10
	
*if dieroll = 11
	*set gplanres1 resource11

*rand dieroll 1 150

*set gplanet1_name "planet${dieroll}_name"
*set gplanet1_name {gplanet1_name}

*set gpq1 "planet${dieroll}_quadrant"
*set gpq1 {gpq1}

*set gplanet1_level "planet${dieroll}_level"
*set gplanet1_level {gplanet1_level}

*if gplanet1_name = planet_name
	*goto bookstore_setup

*temp gpq2 0
*temp gplanet2_name "two"
*temp gplanres2 ""
*temp gplanet2_level 0

*rand dieroll 1 11

*if dieroll = 1
	*set gplanres2 resource1
	
*if dieroll = 2
	*set gplanres2 resource2
	
*if dieroll = 3
	*set gplanres2 resource3
	
*if dieroll = 4
	*set gplanres2 resource4
	
*if dieroll = 5
	*set gplanres2 resource5
	
*if dieroll = 6
	*set gplanres2 resource6
	
*if dieroll = 7
	*set gplanres2 resource7
	
*if dieroll = 8
	*set gplanres2 resource8
	
*if dieroll = 9
	*set gplanres2 resource9
	
*if dieroll = 10
	*set gplanres2 resource10
	
*if dieroll = 11
	*set gplanres2 resource11

*rand dieroll 1 150

*set gplanet2_name "planet${dieroll}_name"
*set gplanet2_name {gplanet2_name}

*set gpq2 "planet${dieroll}_quadrant"
*set gpq2 {gpq2}

*set gplanet2_level "planet${dieroll}_level"
*set gplanet2_level {gplanet2_level}

*if gplanet2_name = gplanet1_name
	*goto bookstore_setup

*if gplanet2_name = planet_name
	*goto bookstore_setup

*temp gpq3 0
*temp gplanet3_name ""
*temp gplanres3 ""
*temp gplanet3_level 0

*rand dieroll 1 11

*if dieroll = 1
	*set gplanres3 resource1
	
*if dieroll = 2
	*set gplanres3 resource2
	
*if dieroll = 3
	*set gplanres3 resource3
	
*if dieroll = 4
	*set gplanres3 resource4
	
*if dieroll = 5
	*set gplanres3 resource5
	
*if dieroll = 6
	*set gplanres3 resource6
	
*if dieroll = 7
	*set gplanres3 resource7
	
*if dieroll = 8
	*set gplanres3 resource8
	
*if dieroll = 9
	*set gplanres3 resource9
	
*if dieroll = 10
	*set gplanres3 resource10
	
*if dieroll = 11
	*set gplanres3 resource11

*rand dieroll 1 150

*set gplanet3_name "planet${dieroll}_name"
*set gplanet3_name {gplanet3_name}

*set gpq3 "planet${dieroll}_quadrant"
*set gpq3 {gpq3}

*set gplanet3_level "planet${dieroll}_level"
*set gplanet3_level {gplanet3_level}

*if gplanet3_name = gplanet2_name
	*goto bookstore_setup

*if gplanet3_name = gplanet1_name
	*goto bookstore_setup

*if gplanet3_name = planet_name
	*goto bookstore_setup

*return

*label library_namer

*rand dieroll 1 51

*if dieroll = 1
	*set library_name "Storybound"
	
*if dieroll = 2
	*set library_name "The Lore Store"
	
*if dieroll = 3
	*set library_name "A Likely Story"
	
*if dieroll = 4
	*set library_name "Plotbound"
	
*if dieroll = 5
	*set library_name "All Eyes and Earmarks"
	
*if dieroll = 6
	*set library_name "Cover Stories"
	
*if dieroll = 7
	*set library_name "Between the Lines"
	
*if dieroll = 8
	*set library_name "The Reader's Emporium"
	
*if dieroll = 9
	*set library_name "A New Chapter"
	
*if dieroll = 10
	*set library_name "First Story"
	
*if dieroll = 11
	*set library_name "Periodic Fables"
	
*if dieroll = 12
	*set library_name "The Tell-Tale"
	
*if dieroll = 13
	*set library_name "Hooked on Books"
	
*if dieroll = 14
	*set library_name "Tells Its Own Tale"
	
*if dieroll = 15
	*set library_name "Judgement Day"
	
*if dieroll = 16
	*set library_name "Words to Go"
	
*if dieroll = 17
	*set library_name "Sentenced to Reading"
	
*if dieroll = 18
	*set library_name "About Tome"
	
*if dieroll = 19
	*set library_name "The Tale Whale"
	
*if dieroll = 20
	*set library_name "Four Words"
	
*if dieroll = 21
	*set library_name "All Bases Covered"
	
*if dieroll = 22
	*set library_name "A Different Tale"
	
*if dieroll = 23
	*set library_name "Figments of Imagination"
	
*if dieroll = 24
	*set library_name "Tell Another Tale"
	
*if dieroll = 25
	*set library_name "Another Story"
	
*if dieroll = 26
	*set library_name "Under Covers"
	
*if dieroll = 27
	*set library_name "Imagine Nation"
	
*if dieroll = 28
	*set library_name "Book Worms United"
	
*if dieroll = 29
	*set library_name "Story Lore"
	
*if dieroll = 30
	*set library_name "The Fable Stable"
	
*if dieroll = 31
	*set library_name "Bookmark My Word"
	
*if dieroll = 32
	*set library_name "Little Reads"
	
*if dieroll = 33
	*set library_name "Intergalactic Reads"
	
*if dieroll = 34
	*set library_name "Firestone"
	
*if dieroll = 35
	*set library_name "Turn the Page"
	
*if dieroll = 36
	*set library_name "The Plot Plot"
	
*if dieroll = 37
	*set library_name "Got You Covered"
	
*if dieroll = 38
	*set library_name "Reader's Creed"
	
*if dieroll = 39
	*set library_name "Captured Imagination"
	
*if dieroll = 40
	*set library_name "A Dark and Stormy Night"
	
*if dieroll = 41
	*set library_name "Periodic Fables"
	
*if dieroll = 42
	*set library_name "Bound to Please"
	
*if dieroll = 43
	*set library_name "Deliberate Liberate"
	
*if dieroll = 44
	*set library_name "A Way With Words"
	
*if dieroll = 45
	*set library_name "Mark of the Word"
	
*if dieroll = 46
	*set library_name "On the Same Page"
	
*if dieroll = 47
	*set library_name "Bookmarked for Life"
	
*if dieroll = 48
	*set library_name "Tome Time"
	
*if dieroll = 49
	*set library_name "Pages for the Ages"
	
*if dieroll = 50
	*set library_name "A Good Word"
	
*if dieroll = 51
	*set library_name "The Cover Cove"

*return