Debian Codegraph @

dat/missions/soromid/comingout/srm_comingout4.lua

raw
1 --[[
2 <?xml version='1.0' encoding='utf8'?>
3 <mission name="Visiting Family">
4 <flags>
5 <unique />
6 </flags>
7 <avail>
8 <priority>2</priority>
9 <done>A Friend's Aid</done>
10 <chance>10</chance>
11 <location>Bar</location>
12 <faction>Soromid</faction>
13 </avail>
14 <notes>
15 <campaign>Coming Out</campaign>
16 </notes>
17 </mission>
18 --]]
19 --[[
20
21 Visiting Family
22
23 This program is free software: you can redistribute it and/or modify
24 it under the terms of the GNU General Public License as published by
25 the Free Software Foundation, either version 3 of the License, or
26 (at your option) any later version.
27
28 This program is distributed in the hope that it will be useful,
29 but WITHOUT ANY WARRANTY; without even the implied warranty of
30 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 GNU General Public License for more details.
32
33 You should have received a copy of the GNU General Public License
34 along with this program. If not, see <http://www.gnu.org/licenses/>.
35
36 --]]
37
38 require "numstring.lua"
39 require "missions/soromid/common.lua"
40
41
42 title = {}
43 text = {}
44
45 title[1] = _("Visiting Family")
46 text[1] = _([[Chelsea greets you as before. "Hi, %s! It's so nice to see you again!" The two of you talk about your travels once again. "So, I've got a bit of a request. Could you use they/them pronouns with me again?" You agree to the request. "Thank you," they say. "I've done some more soul-searching lately and I've found that I identify more as nonbinary than as a woman. I really appreciate it!
47 "Actually, come to think of it, this would be a great excuse to go see my parents again! It's been so long since I've seen them. Say, could you take me to them in %s?"]])
48
49 text[2] = _([["Awesome! Thank you so much! So just take me to %s in the %s system, and then take me to %s in the %s system. As usual, no rush. Just as long as I get to see my parents, I'm happy!"]])
50
51 text[3] = _([["Ah, busy, eh? That's OK. Let me know later if you can do it!"]])
52
53 text[4] = _([["Oh, %s! Have you changed your mind? Can you take me to %s?"]])
54
55 text[5] = _([[You land and dock on %s, then meet up with both of Chelsea's parents. They welcome Chelsea and their mother gives them a warm hug, then releases them. Chelsea's father slightly waves, and the three of them start chatting.
56 Eventually, the topic of Chelsea's gender comes up. Chelsea explains that they are nonbinary and prefer they/them pronouns similarly to when they explained it to you. Their mother says that she is proud of them and hugs them.]])
57
58 text[6] = _([[Chelsea's father shakes his head. "Look, bud, you will always be my son no matter what." You and Chelsea's mother both frown slightly. Chelsea's dad continues. "But don't you think enough is enough? You are a man. It's about time you stop pretending and start-"
59 Chelsea's mother cuts him off. "That's enough of that garbage from you! Chelsea is our child, and I love them as they are, not as some fantasy of what you think they should be!"
60 "He's our son!" Chelsea's father snaps back. "You're feeding into his wild imagination! He's already admitted that he's not a woman. But now he's just moving on to another fantasy! What's next? Identifying as a Soromid? Good lord!"]])
61
62 text[7] = _([[Everything goes silent for what must be mere seconds, but seems to last a period. Finally, Chelsea speaks up. "Dad... I've made good friends with some Soromid in my travels." Their father's face seems to turn red with fury, but Chelsea continues. "The Soromid are not these horrible people you've made them out to be all my life. And dad, I am not your son. I never really was your son. I will never be your son. I am a transfemme enby. End of discussion.
63 "%s here has really taught me a lot about asserting myself and not letting others dictate who I am, probably without realizing it. So I'm no longer going to allow your bigoted ideas about gender define me." Chelsea pauses. "And with the help of the Soromid, I'll be getting some procedures done to help affirm who I am."]])
64
65 text[8] = _([[Chelsea's mother smiles. "I'm proud of you, sweetie," she says. "No matter what happens, always be true to yourself. You are my child, and I will always love you."
66 Chelsea's father frowns. "Is this really how you want it to be?" Chelsea nods. Their father continues. "Very well, then. You're right. You are not my son." He reaches into his pocket as Chelsea's mother looks in his direction.
67 Suddenly, Chelsea's mother yells out. "NO!" she shouts as she tackles her husband. That's when you see what he was reaching for: a laser gun. The two start to wrestle for control as Chelsea's mother shouts. "Run! Both of you! Get out of here!" Not needing to be told twice, you grab Chelsea's arm and run as fast as you can. Just as you make it out of view, you hear the laser gun fire.]])
68
69 text[9] = _([[With no time to lose, you dash into your ship and immediately start launch procedures just in time to see Chelsea's father appear and attempt to fire his weapon at you. As Chelsea sits next to you, shaking uncontrollably from the the stress, you make a mental note to do whatever you can to comfort them once you make it out of this situation.]])
70
71 text[10] = _([[Having spent a large portion of the trip trying to console Chelsea, you honestly feel bad about dropping them off now. Nonetheless, Chelsea insists. "Thank you for your help," they say. "I never expected it to come to this, you know? I just... I hope my mom is OK. I just hope, you know?" They start to cry and you give them a friendly hug. As you release them, they wipe the tears away from their eyes. "Well, then, I've got some work to do I take it... it looks like I'm going to have a major fight on my hands, whatever form that takes. For now I'll keep doing missions as before. You know, save up money, build up my ship... that sort of thing. I'll find you if I need you, eh?" Chelsea forces a smile, as do you, and the two of you part ways for the time being. You hope they'll be OK.]])
72
73 misn_title = _("Visiting Family")
74 misn_desc = _("Chelsea wants to revisit their family in %s.")
75 misn_reward = _("None")
76
77 npc_name = _("Chelsea")
78 npc_desc = _("You see Chelsea in the bar and feel an urge to say hello.")
79
80 osd_desc = {}
81 osd_desc[1] = _("Fly to %s in the %s system.")
82 osd_desc[2] = _("Fly to %s in the %s system.")
83 osd_desc["__save"] = true
84
85 ambush_msg = _("Don't think you'll get away that easily! Get them!")
86 noland_msg = _("It's too dangerous to land here right now.")
87
88 log_text = _([[You transported Chelsea, who requests they/them pronouns now, to Durea so that they could see their parents. However, Chelsea's father turned on them because of their gender identity and acceptance of the Soromid, aiming a laser gun at Chelsea before he was tackled and held back by Chelsea's mother. You didn't see what happened, but as you and Chelsea ran away, you heard a gunshot. Chelsea's father then caught up with you as you began launch procedures, attempted to fire his laser gun at your ship, and then sent a group of thugs after you as you transported Chelsea to safety.
89 Traumatized, Chelsea has set off to continue doing what they were doing, but this time, they are partly doing so to prepare for the worst. They said that they will find you if they need your help again.]])
90
91
92 function create ()
93 misplanet, missys = planet.get( "Durea" )
94 misplanet2, missys2 = planet.get( "Crow" )
95 if not misn.claim( missys ) then misn.finish( false ) end
96
97 started = false
98
99 misn.setNPC( npc_name, "soromid/unique/chelsea" )
100 misn.setDesc( npc_desc )
101 end
102
103
104 function accept ()
105 local txt
106 if started then
107 txt = text[4]:format( player.name(), misplanet:name() )
108 else
109 txt = text[1]:format( player.name(), misplanet:name() )
110 end
111 started = true
112
113 if tk.yesno( title[1], txt ) then
114 tk.msg( title[1], text[2]:format( misplanet:name(), missys:name(), misplanet2:name(), missys2:name() ) )
115
116 misn.accept()
117
118 misn.setTitle( misn_title )
119 misn.setDesc( misn_desc:format( misplanet:name() ) )
120 misn.setReward( misn_reward )
121 marker = misn.markerAdd( missys, "low" )
122
123 osd_desc[1] = osd_desc[1]:format( misplanet:name(), missys:name() )
124 osd_desc[2] = osd_desc[2]:format( misplanet2:name(), missys2:name() )
125 misn.osdCreate( misn_title, osd_desc )
126
127 stage = 1
128
129 hook.enter( "enter" )
130 hook.land( "land" )
131 else
132 tk.msg( title[1], text[3] )
133 misn.finish()
134 end
135 end
136
137
138 function enter ()
139 player.allowSave( true )
140 if stage >= 2 and system.cur() == missys then
141 player.allowLand( false, noland_msg )
142 hook.timer( 1000, "ambush_timer" )
143 end
144 end
145
146
147 function land ()
148 if stage == 1 and planet.cur() == misplanet then
149 player.allowSave( false )
150
151 tk.msg( "", text[5]:format( misplanet:name() ) )
152 tk.msg( "", text[6] )
153 tk.msg( "", text[7]:format( player.name() ) )
154 tk.msg( "", text[8] )
155 tk.msg( "", text[9] )
156
157 stage = 2
158 misn.osdActive( 2 )
159 if marker ~= nil then misn.markerRm( marker ) end
160 marker = misn.markerAdd( missys2, "low" )
161
162 player.takeoff()
163 elseif stage >= 2 and planet.cur() == misplanet2 then
164 tk.msg( "", text[10] )
165 srm_addComingOutLog( log_text )
166 misn.finish( true )
167 end
168 end
169
170
171 function ambush_timer ()
172 local thugships = {
173 "Admonisher", "Lancelot", "Lancelot", "Shark", "Shark", "Shark", "Shark",
174 "Hyena", "Hyena"
175 }
176 local leaderthug
177 for i, j in ipairs( thugships ) do
178 local p = pilot.addRaw( j, "baddie", misplanet, "Comingout_thugs" )
179 p:rename( "Thug " .. j )
180 p:setHostile()
181 p:setLeader( leaderthug )
182
183 if i == 1 then
184 leaderthug = p
185 end
186 end
187
188 if stage == 2 then
189 leaderthug:msg( player.pilot(), ambush_msg )
190 stage = 3
191 end
192 end