1 |
event_inherited() |
2 |
if live_call() |
3 |
return global.live_result; |
4 |
if (interact && scene == 0) |
5 |
{ |
6 |
scene = 1 |
7 |
scr_cutscene_startscr_cutscene_startfunction scr_cutscene_start() //gml_Script_scr_cutscene_start
{
global.cutscene = true
obj_pl.state = gml_Script_scr_frozen_state
obj_pl.image_index = 0
obj_pl.image_speed = 0
} () |
8 |
} |
9 |
if (scene == 1) |
10 |
{ |
11 |
is_talking = true |
12 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
13 |
with (msg) |
14 |
{ |
15 |
sndfnt = 102 |
16 |
if (global.snowdin_flag[14] == 2) |
17 |
{ |
18 |
color = true |
19 |
col_modif[0] = 255 |
20 |
ch_msg = 11 |
21 |
ch[1] = "Yes" |
22 |
ch[2] = "No" |
23 |
message[0] = "* If my map and memory# serve, this river should# lead directly to Hotland." |
24 |
message_col[0][0] = " # # Hotland " |
25 |
message[1] = "* From there, it's a hop,# skip, and a leap to# ASGORE's Castle!" |
26 |
message[2] = "* I'm not sure how we're# getting in but..." |
27 |
message[3] = "* We cross that bridge# when we come to it,# right?" |
28 |
message[4] = "* ..." |
29 |
message[5] = "* I also wanted to# apologize about, well,# you know..." |
30 |
message[6] = "* attacking you..." |
31 |
message[7] = "* I meant no harm, honest!# I just have to do my# job, is all!" |
32 |
message[8] = "* And, well..." |
33 |
message[9] = "* Oftentimes I don't know# what the \"right\" action# is until it's too late." |
34 |
message[10] = "* So... I know we just# met and all..." |
35 |
message[11] = "* But will you trust me# on this?" |
36 |
prt[0] = 324 |
37 |
prt[1] = 328 |
38 |
prt[2] = 338 |
39 |
prt[3] = 328 |
40 |
prt[4] = 317 |
41 |
prt[5] = 320 |
42 |
prt[6] = 320 |
43 |
prt[7] = 322 |
44 |
prt[8] = 329 |
45 |
prt[9] = 317 |
46 |
prt[10] = 321 |
47 |
prt[11] = 328 |
48 |
if (outcome == 1) |
49 |
other.scene = 2 |
50 |
if (outcome == 2) |
51 |
other.scene = 3 |
52 |
} |
53 |
else if (global.snowdin_flag[14] == 3) |
54 |
{ |
55 |
ch_msg = 3 |
56 |
ch[1] = "Yes" |
57 |
ch[2] = "No" |
58 |
message[0] = "* I suppose another# \"sorry\" isn't gonna# cut it?" |
59 |
message[1] = "* Can you trust me to get# you to ASGORE safely?" |
60 |
message[2] = "* I swear I can do it!# I swear I can!" |
61 |
message[3] = "* Please?" |
62 |
prt[0] = 317 |
63 |
prt[1] = 321 |
64 |
prt[2] = 313 |
65 |
prt[3] = 320 |
66 |
if (outcome == 1) |
67 |
other.scene = 2 |
68 |
if (outcome == 2) |
69 |
other.scene = 3 |
70 |
} |
71 |
else if (global.snowdin_flag[14] == 4) |
72 |
{ |
73 |
ch_msg = 0 |
74 |
ch[1] = "Yes" |
75 |
ch[2] = "No" |
76 |
message[0] = "* Shall we be off then?" |
77 |
prt[0] = 328 |
78 |
if (outcome == 1) |
79 |
{ |
80 |
global.dialogue_open = false |
81 |
global.snowdin_flag[14] = 5 |
82 |
other.scene = 5 |
83 |
} |
84 |
if (outcome == 2) |
85 |
{ |
86 |
other.scene = 3 |
87 |
ch_msg = -1 |
88 |
} |
89 |
} |
90 |
} |
91 |
} |
92 |
else if (scene == 2) |
93 |
{ |
94 |
is_talking = true |
95 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
96 |
global.snowdin_flag[14] = 4 |
97 |
with (msg) |
98 |
{ |
99 |
ch_msg = 10 |
100 |
ch[1] = "Yes" |
101 |
ch[2] = "No" |
102 |
message[0] = "* Yay! Don't worry, your# trust is in good# hands!" |
103 |
message[1] = "* Or wings, as the case# may be!" |
104 |
message[2] = "* I'll guard it with# my SOUL!" |
105 |
message[3] = "* And this means we get to# have an adventure! This# is so exciting!" |
106 |
message[4] = "* I mean, nothing this# exciting ever happens# around here." |
107 |
message[5] = "* At least, while I've# been here it hasn't." |
108 |
message[6] = "* Think of all the fun# we'll have!" |
109 |
message[7] = "* I mean, there's a chance# I might be fired for# this," |
110 |
message[8] = "* And lose all of my# life's work and# belongings, but hey," |
111 |
message[9] = "* What's life without a# little risk?" |
112 |
message[10] = "* So shall we be off# then?" |
113 |
prt[0] = 312 |
114 |
prt[1] = 311 |
115 |
prt[2] = 328 |
116 |
prt[3] = 318 |
117 |
prt[4] = 328 |
118 |
prt[5] = 324 |
119 |
prt[6] = 312 |
120 |
prt[7] = 333 |
121 |
prt[8] = 323 |
122 |
prt[9] = 328 |
123 |
prt[10] = 312 |
124 |
if (outcome == 1) |
125 |
{ |
126 |
global.snowdin_flag[14] = 5 |
127 |
other.scene = 5 |
128 |
} |
129 |
if (outcome == 2) |
130 |
other.scene = 3 |
131 |
} |
132 |
} |
133 |
else if (scene == 5) |
134 |
{ |
135 |
global.dialogue_open = false |
136 |
if (!instance_exists(obj_npc_clover_snowdin_22)) |
137 |
instance_create(obj_pl.x, obj_pl.y, obj_npc_clover_snowdin_22) |
138 |
with (obj_room_controller_snowdin_22) |
139 |
{ |
140 |
if (scene == 10) |
141 |
scene = 11 |
142 |
} |
143 |
if (npc_arrived == true) |
144 |
{ |
145 |
npc_arrived = false |
146 |
action_sprite = true |
147 |
sprite_index = spr_snowdin_22_martlet_untie_rope_overworld_yellow |
148 |
image_speed = 0.2 |
149 |
scene = 6 |
150 |
} |
151 |
} |
152 |
else if (scene == 6) |
153 |
{ |
154 |
if (floor(image_index) == 4) |
155 |
{ |
156 |
if (!audio_is_playing(snd_raft_untie)) |
157 |
audio_play_sound(snd_raft_untie, 1, 0) |
158 |
} |
159 |
if (action_sprite == true && image_index >= (image_number - 1)) |
160 |
{ |
161 |
obj_raft_snowdin_22.move = true |
162 |
action_sprite = false |
163 |
npc_direction = "right" |
164 |
scene++ |
165 |
timer = 120 |
166 |
} |
167 |
} |
168 |
else if (scene == 7) |
169 |
{ |
170 |
if (timer > 0) |
171 |
timer-- |
172 |
else |
173 |
{ |
174 |
timer = -1 |
175 |
scene++ |
176 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
177 |
with (msg) |
178 |
{ |
179 |
sndfnt = 102 |
180 |
message[0] = "* Wait, hold on!" |
181 |
message[1] = "* I was supposed to be on# Ava with you!" |
182 |
prt[0] = 333 |
183 |
prt[1] = 333 |
184 |
} |
185 |
} |
186 |
} |
187 |
else if (scene == 8) |
188 |
{ |
189 |
if (!instance_exists(obj_dialogue)) |
190 |
{ |
191 |
action_sprite = true |
192 |
sprite_index = spr_martlet_fly_away |
193 |
image_speed = 0.5 |
194 |
timer = 90 |
195 |
scene++ |
196 |
} |
197 |
} |
198 |
else if (scene == 9) |
199 |
{ |
200 |
if (action_sprite == true && image_index >= (image_number - 1)) |
201 |
{ |
202 |
image_speed = 0 |
203 |
image_index = image_number - 1 |
204 |
} |
205 |
if (timer > 0) |
206 |
timer-- |
207 |
else |
208 |
instance_create(0, 0, obj_snowdin_end_transition) |
209 |
} |
210 |
else if (scene == 3) |
211 |
{ |
212 |
scene = -1 |
213 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
214 |
is_talking = true |
215 |
with (msg) |
216 |
{ |
217 |
if (global.snowdin_flag[14] == 2) |
218 |
{ |
219 |
message[0] = "* Yeah, that's fair, I# guess." |
220 |
message[1] = "* Well I'll hang around# a while." |
221 |
message[2] = "* In case you, ya know,# change your mind." |
222 |
message[3] = "* I mean, I put all this# work into finishing the# UG Aviator so." |
223 |
message[4] = "* If she doesn't get to# sail free," |
224 |
message[5] = "* I can at least# give her company a# while." |
225 |
message[6] = "* Until I find a better# place for her, ya know?" |
226 |
prt[0] = 317 |
227 |
prt[1] = 329 |
228 |
prt[2] = 320 |
229 |
prt[3] = 320 |
230 |
prt[4] = 320 |
231 |
prt[5] = 328 |
232 |
prt[6] = 328 |
233 |
global.snowdin_flag[14] = 3 |
234 |
} |
235 |
else if (global.snowdin_flag[14] == 3) |
236 |
{ |
237 |
message[0] = "* Oh... Okay..." |
238 |
prt[0] = 317 |
239 |
} |
240 |
else if (global.snowdin_flag[14] == 4) |
241 |
{ |
242 |
message[0] = "* Oh. You have something# to do?" |
243 |
message[1] = "* I didn't realize you# were so busy and# popular!" |
244 |
message[2] = "* That's fine! I'll be# here." |
245 |
message[3] = "* Take all the time in# the world!" |
246 |
message[4] = "* ...Actually, if you# wouldn't mind,# don't take, like," |
247 |
message[5] = "* all the# time in the world." |
248 |
message[6] = "* We want to have time# left for the journey,# ya know?" |
249 |
prt[0] = 333 |
250 |
prt[1] = 320 |
251 |
prt[2] = 312 |
252 |
prt[3] = 328 |
253 |
prt[4] = 320 |
254 |
prt[5] = 320 |
255 |
prt[6] = 328 |
256 |
} |
257 |
} |
258 |
} |
259 |
if (scene != 0 && instance_exists(obj_dialogue)) |
260 |
{ |
261 |
with (msg) |
262 |
{ |
263 |
if (outcome > 0) |
264 |
{ |
265 |
message = 0 |
266 |
message[0] = "" |
267 |
outcome = 0 |
268 |
cutoff = 0 |
269 |
message_current = 0 |
270 |
} |
271 |
} |
272 |
} |
273 |
if (scene == -1) |
274 |
{ |
275 |
if (!instance_exists(obj_dialogue)) |
276 |
{ |
277 |
scr_cutscene_end() |
278 |
scene = 0 |
279 |
} |
280 |
} |