Debian Codegraph @

dat/missions/soromid/comingout/srm_comingout.lua

raw
1 --[[
2 <?xml version='1.0' encoding='utf8'?>
3 <mission name="Coming Out">
4 <flags>
5 <unique />
6 </flags>
7 <avail>
8 <priority>2</priority>
9 <chance>20</chance>
10 <location>Bar</location>
11 <faction>Soromid</faction>
12 </avail>
13 <notes>
14 <campaign>Coming Out</campaign>
15 </notes>
16 </mission>
17 --]]
18 --[[
19
20 Coming Out
21
22 This program is free software: you can redistribute it and/or modify
23 it under the terms of the GNU General Public License as published by
24 the Free Software Foundation, either version 3 of the License, or
25 (at your option) any later version.
26
27 This program is distributed in the hope that it will be useful,
28 but WITHOUT ANY WARRANTY; without even the implied warranty of
29 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 GNU General Public License for more details.
31
32 You should have received a copy of the GNU General Public License
33 along with this program. If not, see <http://www.gnu.org/licenses/>.
34
35 --]]
36
37 require "numstring.lua"
38 require "missions/soromid/common.lua"
39
40
41 title = {}
42 text = {}
43
44 title[1] = _("Just Some Transportation")
45 text[1] = _([[The stranger seems rather nervous as you approach, but speaks up. The stranger's voice is deeper than you expected from their appearance, but you pay it no mind.
46 "H-hi! N-nice to meet you. I'm... um, you know what, you can just call me 'C' for now. I'm not sure about the name yet. They/them pronouns if that's okay." You agree to the request, introduce yourself, and chat with them a bit. They seem like a nice person.
47 After a while, C crosses their arms in thought. "So... um, you're a pilot, you say, right? Thing is, I'm in need of some transportation, but I don't really have much money on me so no one's willing to take me. It's a bit far and there's a lot of pirates in the area, so I get why no one wants to do it, but you know... I just... I need to see my parents. Just something I need to tell them. I'm not picky about how long it takes, and I promise I won't cause any trouble.... Could you do this for me?"]])
48
49 text[2] = _([[C seems relieved at your answer. "Thank you so much," they say. "I really appreciate it. I'll make it up to you somehow. My parents live in %s in the %s system. Like I said, no rush. Just as long as I get there, that's what matters."]])
50
51 text[3] = _([["Okay. I understand. Thanks anyway."]])
52
53 text[4] = _([["Oh, hi again. I'm still having trouble finding someone. Can you help me? It would mean so much if you could."]])
54
55 chatter = {}
56
57 chatter[1] = _([["I just want to say again, thank you so much for helping me," C says. "It's a bit nerve-wracking, coming out to my parents, and I've met so many people who... anyway, it's nice to meet someone who understands and respects my wishes and doesn't react with sarcasm. I hope my parents understand...."
58 After confirming that it's about the pronouns you use to refer to them, you simply say that it should be common decency to respect people's wishes regarding how they wish to be referred to. This leads to a conversation about common decency and people who do rude things for no good reason.]])
59
60 chatter[2] = _([[C perks up. "Can I tell you something?" You respond affirmatively. "Thank you," they say. "I was going to come out to my parents first, but I'm so nervous and... I feel safe coming out to you, you know? Since you've been so nice to me this entire time.
61 "I was assigned male at birth, and society tends to see me as a man. But I've come to the conclusion that... I'm transgender. I feel like I should be... a woman, I think? I'm not sure. Does... does that make sense? I'm not being ridiculous, am I?" You respond that, no, they're not ridiculous; everyone is different and no one can know C better than they can. C seems relieved to hear this.]])
62
63 chatter[3] = _([["Hey... is there any chance, um... I know I asked you to use they/them pronouns for me before, but could you use she/her pronouns instead, please? I hope that's not too much trouble...." You assure her that it's no trouble at all and the two of you have a rather long and interesting conversation about the place of pronouns in society. You can tell that she's a lot happier and more comfortable than she was before.]])
64
65 chatter[4] = _([["I've given it some thought," C says. "I think... my new name, I like the sound of 'Chelsea'." You respond that it sounds like a nice name, plastering a smile on Chelsea's face.]])
66
67 chatter[5] = _([[You and Chelsea have a long conversation about ships and piloting. It turns out that she's quite interested in the subject and has aspirations of being a mercenary some day. You talk about your adventures with passion and share some tips on how to get started with being a freelance pilot.]])
68
69 reminders = {}
70 reminders[1] = _("You idly talk some more with Chelsea about the joys of being a pilot.")
71 reminders[2] = _("You hear a small noise and nearly jump in your seat, but you look over your shoulder and see it's just Chelsea reading something.")
72 reminders[3] = _("Chelsea watches in awe as you work the ship. You can't help but smile a little.")
73 reminders[4] = _("Chelsea remarks that she likes a song you're listening to, which gets you into a conversation about music you and Chelsea like to listen to.")
74 reminders[5] = _("Somehow, you and Chelsea get into a discussion about drinks that each of you likes and dislikes, and stories of bars you've been to throughout the galaxy.")
75 reminders[6] = _("Chelsea dozes off in a chair for a few hectoseconds before waking up with a yawn, prompting you to yawn as well.")
76 reminders[7] = _("You start to forget for a while that you have a passenger until Chelsea asks you a question about something you're doing.")
77 reminders[8] = _("You talk to Chelsea a little about some interesting experiences you've had as a pilot.")
78 reminders[9] = _("You have a brief conversation with Chelsea about interesting sights you both have seen in your travels.")
79
80 landtext = {}
81
82 landtext[1] = _([[As you step off the ship with Chelsea in tow, you can tell that she's nervous about the whole thing. She asks you one more favor. "Can you come with me, as a friend?" You smile and say that you can.
83 As it turns out, Chelsea has arranged to see her parents at the bar. When you arrive, Chelsea's parents immediately recognize and greet her, calling her by a different name. A look of sadness appears on Chelsea's face as she hears this, but she quickly hides it and her parents don't seem to notice. Chelsea greets her parents, introduces you as her friend, then sits down. You sit down next to her.]])
84
85 landtext[2] = _([["It's been so long!" Chelsea's mother says. "Your hair's getting long! I'm so glad you were able to make it over."
86 Chelsea laughs nervously. "There's something I have to tell you," she says. "I, um... I'm transgender. I would like for you to call me Chelsea and refer to me with she/her pronouns from now on... if that's okay."
87 Chelsea's father responds immediately and briefly. "Sure," he says. "I don't have any problem with that. However you dress or whatever name you use, that's fine by me."
88 Her mother is silent for a moment, then gets up out of her chair. Chelsea gets up as well, a look of fear in her eyes, then a look of surprise as her mother locks her in an embrace. She hugs her mother back and starts to sob. "I'm proud of you, Chelsea," her mother says. Out of Chelsea's view, her father shrugs and finishes his drink.]])
89
90 landtext[3] = _([[After Chelsea's mother releases her, she wipes a few tears from her eyes and gives you a friendly hug. "Thank you," she says. "You've been a great friend and joining me here has been a great help." She lets go of you. "I'm sure you must be busy! But hey, do come back once in a while, OK? I'm going to stick around on this planet for the time being. It'll be nice to see you again!"
91 Taking your cue, you say goodbye for now, excuse yourself from the table, and make your way back to your ship. As you enter your cockpit you find a credit chip worth %s! It's not much, but it's something.]])
92
93 misn_title = _("Coming Out")
94 misn_desc = _("Your new friend needs you to take them to their parents in %s.")
95 misn_reward = _("The satisfaction of helping out a new friend")
96
97 npc_name = _("Quiet stranger")
98 npc_desc = _("A stranger is sitting quietly at a table, alone, glancing around the bar. In need of a suitable pilot, perhaps?")
99
100 osd_desc = {}
101 osd_desc[1] = _("Go to the %s system and land on the planet %s.")
102
103 log_text = _([[You have made a new friend, Chelsea. You helped escort her to her parents and helped her feel secure coming out as transgender to her parents. Chelsea has asked you to return to Durea to visit once in a while.]])
104
105
106 function create ()
107 misplanet, missys = planet.get( "Durea" )
108 -- Note: This mission does not make system claims
109 if system.cur():jumpDist( missys, true ) < #chatter * 3 / 2 then
110 misn.finish( false )
111 end
112
113 credits = 50000
114 started = false
115 chatter_index = 0
116
117 misn.setNPC( npc_name, "soromid/unique/chelsea" )
118 misn.setDesc( npc_desc )
119 end
120
121
122 function accept ()
123 local txt = started and text[4] or text[1]
124 started = true
125
126 if tk.yesno( title[1], txt ) then
127 tk.msg( title[1], text[2]:format( misplanet:name(), missys:name() ) )
128
129 misn.accept()
130
131 misn.setTitle( misn_title )
132 misn.setDesc( misn_desc:format( missys:name() ) )
133 misn.setReward( misn_reward )
134 marker = misn.markerAdd( missys, "low" )
135
136 osd_desc[1] = osd_desc[1]:format( missys:name(), misplanet:name() )
137 misn.osdCreate( misn_title, osd_desc )
138
139 hook.land( "land" )
140
141 chatter_freq = time.create( 0, 10, 0 )
142 chatter_freq_mod = 8000
143 reminder_freq = time.create( 0, 20, 0 )
144 date_hook = hook.date( chatter_freq, "init_chatter" )
145 else
146 tk.msg( title[1], text[3] )
147 misn.finish()
148 end
149 end
150
151
152 -- Using a timer to make sure the messages don't show up immediately
153 -- as you jump in (at least, not most of the time; it's technically
154 -- still possible and that's fine).
155 function init_chatter ()
156 if timer_hook ~= nil then hook.rm( timer_hook ) end
157 timer_hook = hook.timer( 10000, "do_chatter" )
158 end
159
160
161 function do_chatter ()
162 local freq = reminder_freq
163
164 if chatter_index < #chatter then
165 chatter_index = chatter_index + 1
166 tk.msg( "", chatter[ chatter_index ] )
167 if chatter_index < #chatter then freq = chatter_freq end
168 else
169 local i = rnd.rnd( 1, #reminders )
170 tk.msg( "", reminders[ i ] )
171 end
172
173 local this_mod = rnd.rnd(-chatter_freq_mod, chatter_freq_mod)
174 if date_hook ~= nil then hook.rm( date_hook ) end
175 date_hook = hook.date( freq + time.create( 0, 0, this_mod ), "init_chatter" )
176 end
177
178
179 function land ()
180 if planet.cur() == misplanet then
181 -- Use any remaining chatter boxes (make sure the player gets the
182 -- whole story)
183 while chatter_index < #chatter do
184 chatter_index = chatter_index + 1
185 tk.msg( "", chatter[ chatter_index ] )
186 end
187
188 tk.msg( "", landtext[1] )
189 tk.msg( "", landtext[2] )
190 tk.msg( "", landtext[3]:format( creditstring( credits ) ) )
191 player.pay(credits)
192
193 local t = time.get():tonumber()
194 var.push( "comingout_time", t )
195
196 srm_addComingOutLog( log_text )
197
198 misn.finish(true)
199 end
200 end
201