*gosub cafe_prices

*if sound
	*sound coffeespoon.wav

*if planet_level = 3
	*goto cafe3

*if planet_level = 4
	*goto cafe4

*if planet_level = 5
	*goto cafe5

*label cafe3

☕ [b]${cafe_name}[/b]

*if (rp = true) and (rp_quiet = false)
	${rp_emoji} "I'm really not thirsty now, so I'll meet up with you later."
	
	"All right, bye," you tell ${rp_name}.

Stepping inside, you see a modest little café complete with tables, chairs, and a gleaming set of silver appliances behind the counter belching aromatic sleaf team.

A number of customers are seated at the tables, smiling and chatting as they sip on their drinks.

In a light, cheerful font, you see the name of the café written on a large sign as well as a simple menu advertising the drinks and snacks on offer.

Off to one corner, you see a small sign that reads "HELP WANTED."

*goto cafe_first_menu

*label cafe4

☕ [b]${cafe_name}[/b]

*if (rp = true) and (rp_quiet = false)
	${rp_emoji} "I think I want to go look around the spaceport a bit more, so I'll meet up with you later."
	
	"All right, bye," you tell ${rp_name}.

Stepping inside, you see a fully modern café decorated in light, airy tones with cute cartoon figures of coffee beans and leaf tea leaves painted on the wall.

Several customers are huddled around their drinks, animatedly talking and smiling.

An electronic signboard above the counter displays the name of the café as well as an extensive menu advertising the various drinks and foods on offer.

A discreet sign off to one sign reads "HELP WANTED."

*goto cafe_first_menu

*label cafe5

☕ [b]${cafe_name}[/b]

*if (rp = true) and (rp_quiet = false)
	${rp_emoji} "I'm not much of a coffee drinker, so I think I'll go do some shopping.  Meet up with you later?"
	
	"Sounds good, have fun," you tell ${rp_name}.
	
	${rp_emoji} "Bye!"

Stepping inside the evidently quite popular spaceport coffee station, you see a number of glowing cubes that serve as tables where several patrons are seated, chatting and smiling.

Using intergalactic pixographs, a holographic sign above the counter displays the name of the café as well as the various food and drink items on offer.

Off to one side, you see a separate pixographic display that reads "Employees wanted - inquire at counter."

*label cafe_first_menu

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

*fake_choice
	#🔎 Peruse the menu
		*goto cafe_menu
	#🙋 Inquire about getting a job
		*goto cafe_work
	#↩️ Leave
		*goto_scene spaceport leave_market

*label cafe_menu

☕ [b]${cafe_name}[/b]

*if sound
	*sound steam.wav

Looking up at the menu, you see:

${drink1}: ¢${drink1price}
*line_break
${drink2}: ¢${drink2price}
*line_break
${drink3}: ¢${drink3price}

${food1}: ¢${food1price}
*line_break
${food2}: ¢${food2price}
*line_break
${food3}: ¢${food3price}

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

*fake_choice
	#✅ Place an order
	#🙋 Inquire about getting a job
		*goto cafe_work
	#↩️ Go back to the spaceport
		*goto_scene spaceport leave_market
	
☕ [b]${cafe_name}[/b]

[b]:::[/b] What would you like to order, Captain?

*fake_choice
	*selectable_if (credits >= drink1price) #☕ ${drink1}
		*set credits - drink1price
		*set order drink1
	*selectable_if (credits >= drink2price) #☕ ${drink2}
		*set credits - drink2price
		*set order drink2
	*selectable_if (credits >= drink3price) #🍵 ${drink3}
		*set credits - drink3price
		*set order drink3
	*selectable_if (credits >= food1price) #🧁 ${food1}
		*set credits - food1price
		*set order food1
	*selectable_if (credits >= food2price) #🍰 ${food2}
		*set credits - food2price
		*set order food2
	*selectable_if (credits >= food3price) #🍨 ${food3}
		*set credits - food3price
		*set order food3		
	#🚫 Don't order anything
		*goto cafe_menu
		
☕ [b]${cafe_name}[/b]

*if sound
	*sound cashregister.wav

👨‍💼 [i]"One ${order} coming right up!" says the barista behind the counter.[/i]

A few moments later, they hand you your order.

👨‍💼  [i]"Anything else I can get for you today, Captain?"[/i]

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

*fake_choice
	#✅  Order something else
		*goto cafe_menu
	#🪑 Sit down at one of the tables
		*goto cafe_seated
	#↩️ Go back to the spaceport
		*goto_scene spaceport leave_market
	
*label cafe_prices

*temp drink1price 0
*temp drink2price 0
*temp drink3price 0

*temp food1price 0
*temp food2price 0
*temp food3price 0

*rand dieroll 2 5
*set drink1price (dieroll * planet_level)
*rand dieroll 4 6
*set drink2price (dieroll * planet_level)
*rand dieroll 4 6
*set drink3price (dieroll * planet_level)
*rand dieroll 5 8
*set food1price (dieroll * planet_level)
*rand dieroll 5 8
*set food2price (dieroll * planet_level)
*rand dieroll 5 8
*set food3price (dieroll * planet_level)

*temp drink1 ""
*temp drink2 ""
*temp drink3 ""
*temp food1 ""
*temp food2 ""
*temp food3 ""

*rand dieroll 1 7

*if dieroll = 1
	*set drink1 "Mercurian roast coffee"
	
*if dieroll = 2
	*set drink1 "Beta Pluvizian roast coffee"
	
*if dieroll = 3
	*set drink1 "Barcanian roast coffee"
	
*if dieroll = 4
	*set drink1 "Patongolian roast coffee"
	
*if dieroll = 5
	*set drink1 "Tapacalan roast coffee"
	
*if dieroll = 6
	*set drink1 "Sidendikarian roast coffee"
	
*if dieroll = 7
	*set drink1 "Sulminiarian roast coffee"
	
*rand dieroll 1 7

*if dieroll = 1
	*set drink2 "Nibarius Thetan bean coffee"
	
*if dieroll = 2
	*set drink2 "Ovraxian bean coffee"
	
*if dieroll = 3
	*set drink2 "Xiovan bean coffee"
	
*if dieroll = 4
	*set drink2 "Campurdanian bean coffee"
	
*if dieroll = 5
	*set drink2 "Paloxian bean coffee"
	
*if dieroll = 6
	*set drink2 "Papconian bean coffee"
	
*if dieroll = 7
	*set drink2 "Tepodan bean coffee"
	
*rand dieroll 1 7

*if dieroll = 1
	*set drink3 "Pertan 9 leaf tea"
	
*if dieroll = 2
	*set drink3 "Iantonian leaf tea"
	
*if dieroll = 3
	*set drink3 "Niraveran leaf tea"
	
*if dieroll = 4
	*set drink3 "Zingopian leaf tea"
	
*if dieroll = 5
	*set drink3 "Ovtesian leaf tea"
	
*if dieroll = 6
	*set drink3 "Patgillian leaf tea"
	
*if dieroll = 7
	*set drink3 "Sopchilian leaf tea"
	
*rand dieroll 1 7

*if dieroll = 1
	*set food1 "Aegolian chocolate cupcake"
	
*if dieroll = 2
	*set food1 "Talburtan chocolate cupcake"
	
*if dieroll = 3
	*set food1 "Vivpodian chocolate cupcake"
	
*if dieroll = 4
	*set food1 "Helanellan chocolate cupcake"
	
*if dieroll = 5
	*set food1 "Zemaddonian chocolate cupcake"
	
*if dieroll = 6
	*set food1 "Xiogatisian chocolate cupcake"
	
*if dieroll = 7
	*set food1 "Stepiman chocolate cupcake"
	
*rand dieroll 1 7

*if dieroll = 1
	*set food2 "Vamva Sigman shortcake"
	
*if dieroll = 2
	*set food2 "Clotopian shortcake"
	
*if dieroll = 3
	*set food2 "Tosian shortcake"
	
*if dieroll = 4
	*set food2 "Soppidian shortcake"
	
*if dieroll = 5
	*set food2 "Sonraxian shortcake"
	
*if dieroll = 6
	*set food2 "Avongian shortcake"
	
*if dieroll = 7
	*set food2 "Vadebusian shortcake"
	
*rand dieroll 1 7

*if dieroll = 1
	*set food3 "Furerian vanilla ice cream"
	
*if dieroll = 2
	*set food3 "Erchinian vanilla ice cream"
	
*if dieroll = 3
	*set food3 "Vadlasian vanilla ice cream"
	
*if dieroll = 4
	*set food3 "Echilian vanilla ice cream"
	
*if dieroll = 5
	*set food3 "Nibchinian vanilla ice cream"
	
*if dieroll = 6
	*set food3 "Plingfinerian vanilla ice cream"
	
*if dieroll = 7
	*set food3 "Ovvan vanilla ice cream"

*return


*label cafe_names


*rand dieroll 1 51

*if dieroll = 1
	*set cafe_name "Sugar & Spice leaf tearoom"
	
*if dieroll = 2
	*set cafe_name "In & Out Cafe"
	
*if dieroll = 3
	*set cafe_name "Lemon & Lime Bistro"
	
*if dieroll = 4
	*set cafe_name "Wide Awake Coffee Bar"
	
*if dieroll = 5
	*set cafe_name "Pestle & Mortar"
	
*if dieroll = 6
	*set cafe_name "Cocoa Temptation"
	
*if dieroll = 7
	*set cafe_name "Blonde Beach Coffee"
	
*if dieroll = 8
	*set cafe_name "Jolly Shack Coffee Bar"
	
*if dieroll = 9
	*set cafe_name "Twinkling Earth Cafe"
	
*if dieroll = 10
	*set cafe_name "Hidden Treasures Cafe"
	
*if dieroll = 11
	*set cafe_name "Moment of Peace Espresso Bar"
	
*if dieroll = 12
	*set cafe_name "Ground Up Coffee Shop"
	
*if dieroll = 13
	*set cafe_name "Hallowed Grounds Coffee"
	
*if dieroll = 14
	*set cafe_name "Java Nice Day"
	
*if dieroll = 15
	*set cafe_name "Daily Marina Cafe"
	
*if dieroll = 16
	*set cafe_name "Fluffy Harvest Coffee"
	
*if dieroll = 17
	*set cafe_name "Unique Rock Coffee"
	
*if dieroll = 18
	*set cafe_name "Little Big Retreat Coffee"
	
*if dieroll = 19
	*set cafe_name "Olive Joy Coffee Bar"
	
*if dieroll = 20
	*set cafe_name "The Thinking Cup"
	
*if dieroll = 21
	*set cafe_name "Bean Bag Cafe"
	
*if dieroll = 22
	*set cafe_name "Javawocky Espresso Bar"
	
*if dieroll = 23
	*set cafe_name "The Short & Steamy"
	
*if dieroll = 24
	*set cafe_name "Dark Station Coffee Shop"
	
*if dieroll = 25
	*set cafe_name "Light Heaven Cafe"
	
*if dieroll = 26
	*set cafe_name "The Vanilla Leaf"
	
*if dieroll = 27
	*set cafe_name "Eats & Treats"
	
*if dieroll = 28
	*set cafe_name "Drive Brew Coffee Shop"
	
*if dieroll = 29
	*set cafe_name "Grinders Cafe"
	
*if dieroll = 30
	*set cafe_name "Ding Dong Coffee"
	
*if dieroll = 31
	*set cafe_name "Grinders Coffee Shop"
	
*if dieroll = 32
	*set cafe_name "Silk Heaven Joint"
	
*if dieroll = 33
	*set cafe_name "Silent Question Cafe"
	
*if dieroll = 34
	*set cafe_name "Rapid Earth Coffee"
	
*if dieroll = 35
	*set cafe_name "Quiet Delight Coffee Bar"
	
*if dieroll = 36
	*set cafe_name "The Hospitable Tulip"
	
*if dieroll = 37
	*set cafe_name "Busy Bean Barista"
	
*if dieroll = 38
	*set cafe_name "Naughty & Nice leaf tearoom"
	
*if dieroll = 39
	*set cafe_name "Fire & Ice Cafe"
	
*if dieroll = 40
	*set cafe_name "The Fuzzy Bean"
	
*if dieroll = 41
	*set cafe_name "Trembling Leaf Coffee"
	
*if dieroll = 42
	*set cafe_name "Flaming Bean Cafe"
	
*if dieroll = 43
	*set cafe_name "The Indulgent Moon Cafe"
	
*if dieroll = 44
	*set cafe_name "The Brew Ha Ha"
	
*if dieroll = 45
	*set cafe_name "Tutty Fruity Espresso Coffee"
	
*if dieroll = 46
	*set cafe_name "Sunny Questions Cafe"
	
*if dieroll = 47
	*set cafe_name "The Old Eden Cafe"
	
*if dieroll = 48
	*set cafe_name "Beans and Barley Espresso Bar"
	
*if dieroll = 49
	*set cafe_name "Vice & Virtue Cafe"
	
*if dieroll = 50
	*set cafe_name "Tongue & Cheek Coffee"
	
*if dieroll = 51
	*set cafe_name "Big Mugs"
	
*return

*label cafe_work

☕ [b]${cafe_name}[/b]

*if sound
	*sound hello.wav

Stepping up to the counter, you address the barista.

"$!{greetings}.  I saw that you've got a job opening available," you say.

👨‍💼  [i]"That's right!  We've gotten really busy here lately at ${cafe_name}, and we want to hire a few additional baristas.  It isn't the most glamorous work in the world, but we pay a commission of ten percent for every order correctly fulfilled, and we do not discriminate against off-worlders such as yourself. Are you interested?"[/i]

[b]:::[/b] What is your response, Captain?

*fake_choice
	#"I'll take the job."
	#"Sorry, but the pay is too low."
		☕ [b]${cafe_name}[/b]
		
		👨‍💼  [i]"No problem!  Just let me know if you change your mind or if you'd like to order something from our menu."[/i]
		
		*page_break ☕
		*goto cafe_menu

☕ [b]${cafe_name}[/b]

*gosub barista_name

*temp correct false

*if sound
	*sound great.wav

👨‍💼  [i]"Great!  My name is ${barista_name}, and I'll be giving you a short training session before putting you on the register.  What's your name?"[/i]

"My name is ${name}.  I'm actually the captain of a starship, but I wanted to pick up a few extra credits while I'm here on ${planet_name}," you reply.

*page_break ${player_emoji}

☕ [b]${cafe_name}[/b]

*if sound
	*sound acaptainofastarship.wav

👨‍💼  [i]"A captain of a starship?  Wow!  That's amazing.  Okay, all you have to do is take people's orders and then enter them into the register.  The computerized system will then automatically make the drinks or deliver the right portion of food.  It's so simple, even an off-worlder can do it, hehe."[/i]

[b]:::[/b] What is your response, Captain?

*fake_choice
	#"I think I can manage it."
	#"I see that you like telling jokes, ${barista_name}."
	#"Let's just get down to business, shall we?"
		
☕ [b]${cafe_name}[/b]

*if sound
	*sound rightokay.wav

👨‍💼  [i]"Right!  Okay, I'll be standing behind you, watching, just in case anything goes wrong.  Oh, here's your uniform apron with our logo on it and a cute little cap in our company colors.  We like to have our employees looking their best!"[/i]

🧢 "If you say so," you mutter as you tie on the apron and slide the cap onto your head.

👨‍💼  "Oh my goodness, here's your first customer, ${name}!" 

*temp customer_planet_number 0
*temp customer_destination ""

*gosub customer_emoji
*gosub customer_order

*page_break ⏲️ Begin shift

*label customer_interaction

☕ [b]${cafe_name}[/b]

*if sound
	*sound didyougetthat.wav
	
*temp preamble ""

*rand dieroll 1 3

*if dieroll = 1
	*set preamble "Give me"
	
*if dieroll = 2
	*set preamble "I want"
	
*if dieroll = 3
	*set preamble "Let me get"

${customer_emoji} [i]"Hi.  ${preamble} ${customer_order} to go."[/i]

👨‍💼  [i]"Did you get that, ${name}?" [/i]

"I think so," you say.

👨‍💼  [i]"Thank you for choosing ${cafe_name}. Your total today is ${customer_price} credits."[/i]

${customer_emoji} [i]"Here's the money.  And hurry up with that order, will you?  I've got a flight to catch to the planet ${customer_destination}."[/i]

👨‍💼  [i]"Go ahead, ${name}.  Type the customer's order into the register." [/i]

*label register

[b]:::[/b] How many ${drink1}s did ${customer_emoji} order?

*fake_choice
	#🚫 No ${drink1}s
		*if cust_drink1_number = 0
			*set correct true
			*goto register1
		*else
			*set correct false
			*goto register1
	#☕ 1 ${drink1}
		*if cust_drink1_number = 1
			*set correct true
			*goto register1
		*else
			*set correct false
			*goto register1
	#☕ 2 ${drink1}s
		*if cust_drink1_number = 2
			*set correct true
			*goto register1
		*else
			*set correct false
			*goto register1
	#☕ 3 ${drink1}s
		*if cust_drink1_number = 3
			*set correct true
			*goto register1
		*else
			*set correct false
			*goto register1
	#🔚 End your shift
		*goto quit_job
			
*label register1

☕ [b]${cafe_name}[/b]

*if correct = true
	👨‍💼  "Good job, ${name}."
	*if sound
		*sound goodjob.wav
	
*if correct = false
	*if sound
		*sound oopsadaisies.wav
	👨‍💼  "Oops-a-daisies!  Try again, ${name}."
	
	${customer_emoji} "I said I wanted ${customer_order}."
	
	*goto register

[b]:::[/b] How many ${drink2}s did ${customer_emoji} order?

*fake_choice
	#🚫 No ${drink2}s
		*if cust_drink2_number = 0
			*set correct true
			*goto register2
		*else
			*set correct false
			*goto register2
	#☕ 1 ${drink2}
		*if cust_drink2_number = 1
			*set correct true
			*goto register2
		*else
			*set correct false
			*goto register2
	#☕ 2 ${drink2}s
		*if cust_drink2_number = 2
			*set correct true
			*goto register2
		*else
			*set correct false
			*goto register2
	#☕ 3 ${drink2}s
		*if cust_drink2_number = 3
			*set correct true
			*goto register2
		*else
			*set correct false
			*goto register2
		
*label register2

☕ [b]${cafe_name}[/b]

*if correct = true
	👨‍💼  "Fantastic job, ${name}."
	*if sound
		*sound fantasticjob.wav
	
*if correct = false
	👨‍💼  "Oops-a-daisies!  Try again, ${name}."
	*if sound
		*sound oopsadaisies.wav
	
	${customer_emoji} "I said I wanted ${customer_order}."
	
	*goto register

[b]:::[/b] How many ${drink3}s did ${customer_emoji} order?

*fake_choice
	#🚫 No ${drink3}s
		*if cust_drink3_number = 0
			*set correct true
			*goto register3
		*else
			*set correct false
			*goto register3
	#🍵 1 ${drink3}
		*if cust_drink3_number = 1
			*set correct true
			*goto register3
		*else
			*set correct false
			*goto register3
	#🍵 2 ${drink3}s
		*if cust_drink3_number = 2
			*set correct true
			*goto register3
		*else
			*set correct false
			*goto register3
	#🍵 3 ${drink3}s
		*if cust_drink3_number = 3
			*set correct true
			*goto register3
		*else
			*set correct false
			*goto register3

*label register3

☕ [b]${cafe_name}[/b]

*if correct = true
	👨‍💼  "You're getting the hang of this, ${name}!"
	*if sound
		*sound gettingthehang.wav
	
*if correct = false
	👨‍💼  "Oops-a-daisies!  Try again, ${name}."
	*if sound
		*sound oopsadaisies.wav
	
	${customer_emoji} "I said I wanted ${customer_order}."
	
	*goto register

[b]:::[/b] How many ${food1}s did ${customer_emoji} order?

*fake_choice
	#🚫 No ${food1}s
		*if cust_food1_number = 0
			*set correct true
			*goto register4
		*else
			*set correct false
			*goto register4
	#🧁 1 ${food1}
		*if cust_food1_number = 1
			*set correct true
			*goto register4
		*else
			*set correct false
			*goto register4
	#🧁 2 ${food1}s
		*if cust_food1_number = 2
			*set correct true
			*goto register4
		*else
			*set correct false
			*goto register4
	#🧁 3 ${food1}s
		*if cust_food1_number = 3
			*set correct true
			*goto register4
		*else
			*set correct false
			*goto register4
		
*label register4

☕ [b]${cafe_name}[/b]

*if correct = true
	👨‍💼  "You're doing great, ${name}. Keep it up!"
	*if sound
		*sound keepitup.wav
	
*if correct = false
	👨‍💼  "Oops-a-daisies!  Try again, ${name}."
	*if sound
		*sound oopsadaisies.wav
	
	${customer_emoji} "I said I wanted ${customer_order}."
	
	*goto register

[b]:::[/b] How many ${food2}s did ${customer_emoji} order?

*fake_choice
	#🚫 No ${food2}s
		*if cust_food2_number = 0
			*set correct true
			*goto register5
		*else
			*set correct false
			*goto register5
	#🍰 1 ${food2}
		*if cust_food2_number = 1
			*set correct true
			*goto register5
		*else
			*set correct false
			*goto register5
	#🍰 2 ${food2}s
		*if cust_food2_number = 2
			*set correct true
			*goto register5
		*else
			*set correct false
			*goto register5
	#🍰 3 ${food2}s
		*if cust_food2_number = 3
			*set correct true
			*goto register5
		*else
			*set correct false
			*goto register5
		
*label register5

☕ [b]${cafe_name}[/b]

*if correct = true
	👨‍💼  "You're becoming a real pro at this, ${name}."
	*if sound
		*sound yourebecomingrealpro.wav
	
*if correct = false
	👨‍💼  "Oops-a-daisies!  Try again, ${name}."
	*if sound
		*sound oopsadaisies.wav
	
	${customer_emoji} "I said I wanted ${customer_order}."
	
	*goto register

[b]:::[/b] How many ${food3}s did ${customer_emoji} order?

*fake_choice
	#🚫 No ${food3}s
		*if cust_food3_number = 0
			*set correct true
			*goto register6
		*else
			*set correct false
			*goto register6
	#🍨 1 ${food3}
		*if cust_food3_number = 1
			*set correct true
			*goto register6
		*else
			*set correct false
			*goto register6
	#🍨 2 ${food3}s
		*if cust_food3_number = 2
			*set correct true
			*goto register6
		*else
			*set correct false
			*goto register6
	#🍨 3 ${food3}s
		*if cust_food3_number = 3
			*set correct true
			*goto register6
		*else
			*set correct false
			*goto register6
		
*label register6

☕ [b]${cafe_name}[/b]

*temp wages 0
*set wages (customer_price / 10)
*set wages round(wages)
*set credits + wages
*set credits round(credits)

*if sound
	*sound thatcompletesyourorder.wav
	
*check_achievements
*if choice_achieved_job = false
	*achieve job

👨‍💼 "[i]And that completes your order.  Thank you again for choosing ${cafe_name}."[/i]

${customer_emoji} [i]"Took you long enough!  I nearly missed my flight."[/i]

You smile at the customer.

👨‍💼  [i]"You're making a lot of progress, ${name}.  You just made [b]${wages}[/b] credits on that order.  We'll make a real barista out of you yet."[/i]

You nod in ${barista_name}'s direction.

👨‍💼 [i]"Oh, look!  Here comes another customer!"[/i]

*temp customer_planet_number 0
*temp customer_destination ""

::: What do you want to do, Captain?

*fake_choice
	#✏️ Take the customer's order
		*gosub customer_emoji
		*gosub customer_order
		*goto customer_interaction
	#🔚 End your shift
		*goto quit_job

*label quit_job

☕ [b]${cafe_name}[/b]

*if sound
	*sound truebarista.wav

🧢 "I've made enough money for now, so I quit," you say as you remove your apron and cap and hand them to ${barista_name}.

👨‍💼 [i]"Well, I'm sorry to see you go, ${name}.  You were just starting to get the hang of becoming a true barista."[/i]

"Frankly, I've got to get back to my spaceship," you say.

👨‍💼  [i]"Okay!  Come on back, anytime.  We've got the best coffee in quadrant ${quadrant}!"[/i]

"Maybe I will," you say as you head towards the exit.

*page_break ☕

*goto_scene spaceport leave_market

*label barista_name

*temp barista_name ""

*rand dieroll 1 11

*if dieroll = 1
	*set barista_name "Taylor"
	
*if dieroll = 2
	*set barista_name "Skyler"
	
*if dieroll = 3
	*set barista_name "Bailey"
	
*if dieroll = 4
	*set barista_name "Jayce"
	
*if dieroll = 5
	*set barista_name "Rory"
	
*if dieroll = 6
	*set barista_name "Jayden"
	
*if dieroll = 7
	*set barista_name "Tristan"
	
*if dieroll = 8
	*set barista_name "Brady"
	
*if dieroll = 9
	*set barista_name "Kass"
	
*if dieroll = 10
	*set barista_name "Jo"
	
*if dieroll = 11
	*set barista_name "Brook"

*return

*label customer_emoji

*temp customer_emoji ""

*rand dieroll 1 6

*if dieroll = 1
	*set customer_emoji "👨🏿"
	
*if dieroll = 2
	*set customer_emoji "👨🏾"
	
*if dieroll = 3
	*set customer_emoji "👨🏻"
	
*if dieroll = 4
	*set customer_emoji "👩🏻"
	
*if dieroll = 5
	*set customer_emoji "👩🏽"
	
*if dieroll = 6
	*set customer_emoji "👩🏿"
	
*return 
	
*label customer_order

*temp customer_planet_number 0
*temp customer_destination ""

*label zenopia

*rand customer_planet_number 1 150
*set customer_destination "planet${customer_planet_number}_name"
*set customer_destination {customer_destination}
*if customer_destination = planet_name
	*goto zenopia

*temp preamble ""

*rand dieroll 1 3

*if dieroll = 1
	*set preamble "Give me"
	
*if dieroll = 2
	*set preamble "I want"
	
*if dieroll = 3
	*set preamble "Let me get"

*temp customer_order ""
*temp customer_price 0

*temp cust_drink1_number 0
*temp cust_drink2_number 0
*temp cust_drink3_number 0

*temp cust_food1_number 0
*temp cust_food2_number 0
*temp cust_food3_number 0

*rand dieroll 1 3

*if dieroll = 1
	*set customer_order &"1 ${drink1}"
	*set cust_drink1_number 1
	*set customer_price + drink1price
	
*if dieroll = 2
	*set customer_order &"2 ${drink1}s"
	*set cust_drink1_number 2
	*set customer_price + (drink1price * 2)
	
*if dieroll = 3
	*set customer_order &"3 ${drink1}s"
	*set cust_drink1_number 3
	*set customer_price + (drink1price * 3)
	
*rand dieroll 0 3

*if dieroll = 1
	*set customer_order &" and 1 ${drink2}"
	*set cust_drink2_number 1
	*set customer_price + drink2price
	
*if dieroll = 2
	*set customer_order &" and 2 ${drink2}s"
	*set cust_drink2_number 2
	*set customer_price + (drink2price * 2)
	
*if dieroll = 3
	*set customer_order &" and 3 ${drink2}s"
	*set cust_drink2_number 3
	*set customer_price + (drink2price * 3)
	
*rand dieroll 0 3

*if dieroll = 1
	*set customer_order &" and 1 ${drink3}"
	*set cust_drink3_number 1
	*set customer_price + drink3price
	
*if dieroll = 2
	*set customer_order &" and 2 ${drink3}s"
	*set cust_drink3_number 2
	*set customer_price + (drink3price * 2)
	
*if dieroll = 3
	*set customer_order &" and 3 ${drink3}s"
	*set cust_drink3_number 3
	*set customer_price + (drink3price * 3)
	
*rand dieroll 0 3

*if dieroll = 1
	*set customer_order &" and 1 ${food1}"
	*set cust_food1_number 1
	*set customer_price + food1price
	
*if dieroll = 2
	*set customer_order &" and 2 ${food1}s"
	*set cust_food1_number 2
	*set customer_price + (food1price * 2)
	
*if dieroll = 3
	*set customer_order &" and 3 ${food1}s"
	*set cust_food1_number 3
	*set customer_price + (food1price * 3)
	
*rand dieroll 0 3

*if dieroll = 1
	*set customer_order &" and 1 ${food2}"
	*set cust_food2_number 1
	*set customer_price + food2price
	
*if dieroll = 2
	*set customer_order &" and 2 ${food2}s"
	*set cust_food2_number 2
	*set customer_price + (food2price * 2)
	
*if dieroll = 3
	*set customer_order &" and 3 ${food2}s"
	*set cust_food2_number 3
	*set customer_price + (food2price * 3)
	
*rand dieroll 0 3

*if dieroll = 1
	*set customer_order &" and 1 ${food3}"
	*set cust_food3_number 1
	*set customer_price + food3price
	
*if dieroll = 2
	*set customer_order &" and 2 ${food3}s"
	*set cust_food3_number 2
	*set customer_price + (food3price * 2)
	
*if dieroll = 3
	*set customer_order &" and 3 ${food3}s"
	*set cust_food3_number 3
	*set customer_price + (food3price * 3)
	
*return

*label cafe_seated

☕ [b]${cafe_name}[/b]

*if sound
	*sound coffeespoon.wav

Looking around, you see that there are several tables free.

There are also a couple of occupied tables that have a free space where you could sit down and enjoy your ${order} in the company of others.

*if story_mode = false
	But you just really don't have time for that right now.

*if (story_mode = true) and (rp = false)
	Having been out in space for a while, it might be nice to meet some other people.
	
*if (story_mode = true) and (rp = true)
	Even though things are going great with ${rp_name}, it might be nice to meet some other people.

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

*fake_choice
	#🪑 Sit down at an unoccupied table
	*selectable_if (story_mode = true) #👥 Ask some patrons if you can join them at their table
		*goto_scene cafe_conversation
	#↩️  Go back to the spaceport
		*goto_scene spaceport leave_market
	
☕ [b]${cafe_name}[/b]

*if sound
	*sound coffeesip.wav

Slowly, you make your way over to an unoccupied table and sit down.

As you savor your snack, you cannot help but overhear some traders talking at the next table.

*if story_mode = false
	*goto market_gossip

*rand dieroll 1 7

*if dieroll = 1
	*goto market_gossip

*if dieroll = 2
	*goto game_hints

*if dieroll = 3
	*goto police_harassment

*if dieroll = 4
	*goto syndicate_talk

*if dieroll = 5
	*goto pirate_talk

*if dieroll = 6
	*goto heir_talk

*if dieroll = 7
	*goto engineer_talk

*label engineer_talk

👨‍✈️ [i]"A couple of weeks ago, I was running low on funds, so I picked up a couple of passengers from ${starbase1_name}."[/i]

👩‍✈️ [i]"I never pick up passengers.  They barely pay you anything, and you need to burn half your fuel pods getting to the quadrant where they want to go."[/i]

👨‍✈️  [i]"Yeah, well, like I said, I was low on funds.  Anyway, the quadrant was close by.  But just before I dropped off my passengers, one of them told me that apparently, there's this old retired engineer who goes hopping around from planet to planet.  And this retired engineer hates paying for his rides, so he offers to upgrade your ship's engine if you let him fly for free."[/i]

👩‍✈️ [i]"Ha!  Passengers will say anything to get out of paying for a ride.  You can't trust a single thing they say."[/i]

*goto mental_note

*label heir_talk

👨‍✈️ [i]"Hey, did you hear that a Heir has gone missing from one of the Central Families?  Apparently, a gang of pirates from the outer planets kidnapped the Heir right from their palace."[/i]

👩‍✈️ [i]"Nonsense!  Everyone knows those palaces are guarded better than military bases.  The kid probably just ran off somewhere to get wasted out of sight of Mommy and Daddy.  Half the Heirs in the galaxy are useless idiots who do nothing but party all day long."[/i]

👨‍✈️  [i]"Must be nice to be rich instead of busting your hump all day long to make a few credits."[/i]

👩‍✈️ [i]"If they put out a bounty on that missing Heir, I'm gonna do everything I can to find that useless punk."[/i]

*goto mental_note

*label pirate_talk

👨‍✈️ [i]"The other day, I had to make an emergency warp jump to get away from some pirates.  I sure wish the cops would do something about them!  Fuel pods are pretty expensive, you know."[/i]

👩‍✈️ [i]"Pirates started appearing on the outer planets' trade routes once that gang called the Syndicate started getting powerful.  From what I hear, the pirates actually work for the Syndicate."[/i]

👨‍✈️  [i]"That is outrageous.  The Galactic Council should declare them Outlaws immediately!"[/i]

👩‍✈️ [i]"Keep dreaming, pal.  The Syndicate already controls half the seats on the Galactic Council.  Won't be long before they control the other half, too."[/i]

*goto mental_note

*label syndicate_talk

👨‍✈️ [i]"Hey, you ever heard of this association called the Syndicate?  Seems like they're becoming quite a powerful network on the outer planets."[/i]

👩‍✈️ [i]"Yeah, I heard of the Syndicate.  They're nothing special, just a new gang of elites trying to take over from the last gang of elites.  They can all go to hell, as far as I'm concerned."[/i]

👨‍✈️  [i]"Hard to believe humanity is now spread throughout the galaxy, and we still have to deal with these oligarchs trying to lord it over people's lives.  I'm sick of those egomaniacs!"[/i]

👩‍✈️ [i]"That's why I became a trader, pal.  It's the only way to live free."[/i]

*goto mental_note

*label police_harassment

👨‍✈️ [i]"Holy crud, I don't know if you've heard, but the IGP have been stopping everyone lately.  Seems like any trader that comes near the outer planets gets pulled over by the cops, these days."[/i]

👩‍✈️ [i]"Well, I heard they're looking for someone on a Pigeon class vessel.  Apparently, they're plotting a rebellion against the Galactic Council or something, and they're traveling around, disguised as a trading ship captain."[/i]

👨‍✈️  [i]"Pigeon class?  Jeez, are those things still flyable?  I feel sorry for any trader trying to make a living with one of those.  What do they have?  Like, five cargo holds, total?"[/i]

👩‍✈️ [i]"Yeah, must be rough.  Anyway, I hope the cops get 'em.  The last night I need is a rebellion screwing up my trade networks.  I got to make a living, you know!"[/i]

*goto mental_note

*label game_hints

*temp scientist ""

*temp scientist_first ""

*rand dieroll 1 11

*if dieroll = 1
	*set scientist_first "Goni"
	
*if dieroll = 2
	*set scientist_first "Cantug"
	
*if dieroll = 3
	*set scientist_first "Wetur"
	
*if dieroll = 4
	*set scientist_first "Urin"
	
*if dieroll = 5
	*set scientist_first "Kori"
	
*if dieroll = 6
	*set scientist_first "Angorli"
	
*if dieroll = 7
	*set scientist_first "Drugu"
	
*if dieroll = 8
	*set scientist_first "Hurot"
	
*if dieroll = 9
	*set scientist_first "Droban"
	
*if dieroll = 10
	*set scientist_first "Vavarno"
	
*if dieroll = 11
	*set scientist_first "Weg-Weg"
	
*temp scientist_second ""
*rand dieroll 1 11
	
*if dieroll = 1
	*set scientist_second "Roach"
	
*if dieroll = 2
	*set scientist_second "Barron"
	
*if dieroll = 3
	*set scientist_second "Atkins"
	
*if dieroll = 4
	*set scientist_second "Shaw"
	
*if dieroll = 5
	*set scientist_second "Chang"
	
*if dieroll = 6
	*set scientist_second "Griffin"
	
*if dieroll = 7
	*set scientist_second "Dorsey"
	
*if dieroll = 8
	*set scientist_second "Salinas"
	
*if dieroll = 9
	*set scientist_second "Copeland"
	
*if dieroll = 10
	*set scientist_second "Lucas"
	
*if dieroll = 11
	*set scientist_second "Peters"
	
*set scientist "Dr. ${scientist_first} ${scientist_second}"

*temp him ""

*rand dieroll 1 2

*if dieroll = 1
	*set him "him"
	
*if dieroll = 2
	*set him "her"

👨‍✈️ [i]"Hey, that bootleg lasercast you sent me was pretty cool.  But do you really think it's true that someone actually invented a working quantum drive engine?"[/i]

👩‍✈️ [i]"Of course.  It's the only way to get to Sector Zero in the fourth dimension.  And we know that's where the Galactic Council is hiding its secret research base."[/i]

👨‍✈️  [i]"But a ship would have to have a drive capable of going to Warp 11 in order to break the barrier of the fourth dimension, and that's physically impossible."[/i]

👩‍✈️ [i]"That's what the Central Families you to think!  The way I heard it, a genius scientist named ${scientist} built a quantum capacitor out of sold gold and then wired it to a Zheng He class starship.  ${scientist} got it up to at least Warp 11, but when the Central Families found out, they tried to kill ${him} so that they could keep the technology for themselves."[/i]

*goto mental_note

*label market_gossip

*gosub trader_talk

👨‍✈️ [i]"Last week, I made quite a nice little profit by going to quadrant ${pq}."[/i]

👩‍✈️ [i]"That's where the planet ${planfun} is, right?"[/i]

👨‍✈️  [i]"Yep.  Let me tell you, those folks are willing to pay a lot of credits for ${planres}.  I only had ${dieroll} units on my ship, but I could've easily sold them ten times that amount. "[/i]

👩‍✈️ [i]"Wow!  I might just have to swing over there myself."[/i]

*label mental_note

You make a mental note of this information as you finish your ${order}.

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

*fake_choice
	#✅ Buy something else
		*goto cafe_menu
	#↩️ Go back to the spaceport
		*goto_scene spaceport leave_market
	
*label trader_talk

*temp pq 0
*temp planfun ""
*temp planres ""

*rand dieroll 1 11

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

*rand dieroll 1 150

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

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

*if planfun = planet_name
	*goto trader_talk

*rand dieroll 4 15

*return