1 |
if live_call() |
2 |
return global.live_result; |
3 |
switch scene |
4 |
{ |
5 |
case -1: |
6 |
if (obj_pl.y < 220) |
7 |
scene++ |
8 |
break |
9 |
case 0: |
10 |
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
} () |
11 |
cutscene_follower_into_actor() |
12 |
obj_martlet_npc.npc_direction = "up" |
13 |
obj_martlet_npc.can_walk = false |
14 |
instance_create(obj_pl.x, obj_pl.y, obj_player_npc) |
15 |
with (obj_shadow_master) |
16 |
event_perform(ev_alarm, 0) |
17 |
obj_player_npc.npc_direction = "up" |
18 |
break |
19 |
case 1: |
20 |
cutscene_wait(0.75) |
21 |
break |
22 |
case 2: |
23 |
cutscene_npc_walk(1168, 135, 180, 2, "y", "up") |
24 |
scene++ |
25 |
break |
26 |
case 3: |
27 |
cutscene_wait(0.4) |
28 |
break |
29 |
case 4: |
30 |
cutscene_npc_walk(1164, 135, 200, 2, "y", "up") |
31 |
break |
32 |
case 5: |
33 |
cutscene_wait(0.5) |
34 |
break |
35 |
case 6: |
36 |
cutscene_npc_walk(1164, (obj_player_npc.x + 20), obj_martlet_npc.y, 3, "y", "up", -4, obj_player_npc.x, (obj_player_npc.y - 20)) |
37 |
break |
38 |
case 7: |
39 |
cutscene_dialogue() |
40 |
with (msg) |
41 |
{ |
42 |
talker[0] = 1164 |
43 |
message[0] = "* Oh my..." |
44 |
message[1] = "* What... What is all of# this?" |
45 |
prt[0] = 333 |
46 |
prt[1] = 321 |
47 |
} |
48 |
break |
49 |
case 8: |
50 |
cutscene_npc_direction(obj_martlet_npc, "right") |
51 |
break |
52 |
case 9: |
53 |
cutscene_wait(0.5) |
54 |
break |
55 |
case 10: |
56 |
cutscene_npc_direction(obj_martlet_npc, "left") |
57 |
break |
58 |
case 11: |
59 |
cutscene_wait(0.5) |
60 |
break |
61 |
case 12: |
62 |
cutscene_npc_walk(1164, 65, 125, 3, "x", "left") |
63 |
break |
64 |
case 13: |
65 |
cutscene_wait(1) |
66 |
break |
67 |
case 14: |
68 |
cutscene_dialogue() |
69 |
with (msg) |
70 |
{ |
71 |
talker[0] = 1164 |
72 |
message[0] = "* Formulas... SOUL# research..." |
73 |
message[1] = "* Hold on, look over# here. " |
74 |
prt[0] = 324 |
75 |
prt[1] = 333 |
76 |
if (message_current == 1) |
77 |
obj_martlet_npc.npc_direction = "up" |
78 |
} |
79 |
break |
80 |
case 15: |
81 |
cutscene_npc_walk(1164, 83, 120, 2, "x", "up") |
82 |
break |
83 |
case 16: |
84 |
cutscene_wait(1) |
85 |
break |
86 |
case 17: |
87 |
cutscene_dialogue() |
88 |
with (msg) |
89 |
{ |
90 |
talker[0] = 1164 |
91 |
message[0] = "* Tapes..." |
92 |
message[1] = "* Each one has a date on# it." |
93 |
prt[0] = 338 |
94 |
prt[1] = 321 |
95 |
} |
96 |
break |
97 |
case 18: |
98 |
cutscene_wait(0.25) |
99 |
break |
100 |
case 19: |
101 |
cutscene_npc_direction(obj_martlet_npc, "right") |
102 |
break |
103 |
case 20: |
104 |
cutscene_wait(1.5) |
105 |
break |
106 |
case 21: |
107 |
cutscene_dialogue() |
108 |
with (msg) |
109 |
{ |
110 |
talker[0] = 1164 |
111 |
message[0] = "* Y-You know..." |
112 |
message[1] = "* Maybe this is all a big# misunderstanding!" |
113 |
message[2] = "* Yeah, that's probably# it!" |
114 |
message[3] = "* We'll just watch these# and clear the air." |
115 |
prt[0] = 317 |
116 |
prt[1] = 320 |
117 |
prt[2] = 328 |
118 |
prt[3] = 312 |
119 |
if (message_current == 2) |
120 |
obj_martlet_npc.npc_direction = "down" |
121 |
} |
122 |
break |
123 |
case 22: |
124 |
cutscene_npc_direction(obj_martlet_npc, "up") |
125 |
break |
126 |
case 23: |
127 |
cutscene_npc_action_sprite(1164, 273, 0.2, false, 0.1) |
128 |
break |
129 |
case 24: |
130 |
cutscene_sfx_play(snd_tarpdrop, 1) |
131 |
break |
132 |
case 25: |
133 |
cutscene_wait(0.25) |
134 |
break |
135 |
case 26: |
136 |
cutscene_npc_walk(1164, 135, 150, 2, "y", "up") |
137 |
break |
138 |
case 27: |
139 |
cutscene_wait(0.5) |
140 |
break |
141 |
case 28: |
142 |
cutscene_npc_action_sprite(1164, 273, 0.2, false, 0.1) |
143 |
break |
144 |
case 29: |
145 |
cutscene_sfx_play(snd_undertale_snap, 1) |
146 |
break |
147 |
case 30: |
148 |
obj_mansion_study_overlay.can_flicker = false |
149 |
scene++ |
150 |
break |
151 |
case 31: |
152 |
cutscene_npc_walk(1164, (obj_player_npc.x + 20), (obj_player_npc.y - 15), 2, "x", "up") |
153 |
break |
154 |
case 32: |
155 |
cutscene_wait(1.5) |
156 |
break |
157 |
case 33: |
158 |
instance_create_depth(126, 91, -1600, obj_mansion_study_tv) |
159 |
scene++ |
160 |
break |
161 |
case 34: |
162 |
depth = -1400 |
163 |
draw_alpha += 0.1 |
164 |
if (draw_alpha >= 1) |
165 |
scene++ |
166 |
break |
167 |
case 35: |
168 |
cutscene_wait(1.5) |
169 |
break |
170 |
case 36: |
171 |
obj_mansion_study_tv.sprite_index = spr_mansion_study_tv_blue_screen |
172 |
scene++ |
173 |
break |
174 |
case 37: |
175 |
if (!instance_exists(obj_mansion_study_tv)) |
176 |
cutscene_advance() |
177 |
break |
178 |
case 38: |
179 |
cutscene_wait(2) |
180 |
break |
181 |
case 39: |
182 |
instance_create_depth(0, 0, -3000, obj_mansion_chujin_tapes) |
183 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out
{
var snd = argument0
var fade_len = argument1
if (!audio_is_playing(snd))
return false;
audio_sound_gain(snd, 0, fade_len)
if instance_exists(obj_audio_fade_helper)
{
with (obj_audio_fade_helper)
{
if (audio_to_fade == snd)
return false;
}
}
with (instance_create(0, 0, obj_audio_fade_helper))
audio_to_fade = snd
} (obj_radio.current_song, 500) |
184 |
scene++ |
185 |
break |
186 |
case 40: |
187 |
if (!instance_exists(obj_mansion_chujin_tapes)) |
188 |
cutscene_wait(2) |
189 |
break |
190 |
case 41: |
191 |
draw_alpha -= 0.03 |
192 |
if (draw_alpha <= 0) |
193 |
{ |
194 |
scr_radio_restart() |
195 |
scene++ |
196 |
} |
197 |
break |
198 |
case 42: |
199 |
cutscene_wait(1) |
200 |
break |
201 |
case 43: |
202 |
cutscene_npc_set_sprites(obj_martlet_npc, 273, 270, 273, 272, 262, 263, 262, 268) |
203 |
break |
204 |
case 44: |
205 |
cutscene_npc_walk(1164, obj_martlet_npc.x, (obj_player_npc.y - 5), 0.25, "y", "up") |
206 |
break |
207 |
case 45: |
208 |
cutscene_npc_set_sprites(obj_martlet_npc, 273, 270, 274, 272, 262, 263, 265, 268) |
209 |
break |
210 |
case 46: |
211 |
cutscene_wait(0.75) |
212 |
break |
213 |
case 47: |
214 |
cutscene_dialogue() |
215 |
with (msg) |
216 |
{ |
217 |
talker[0] = 1164 |
218 |
message[0] = "* ..." |
219 |
message[1] = "* Oh... Oh my gosh... " |
220 |
message[2] = "* I never knew... He# never mentioned... " |
221 |
prt[0] = 332 |
222 |
prt[1] = 332 |
223 |
prt[2] = 322 |
224 |
} |
225 |
break |
226 |
case 48: |
227 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out
{
var snd = argument0
var fade_len = argument1
if (!audio_is_playing(snd))
return false;
audio_sound_gain(snd, 0, fade_len)
if instance_exists(obj_audio_fade_helper)
{
with (obj_audio_fade_helper)
{
if (audio_to_fade == snd)
return false;
}
}
with (instance_create(0, 0, obj_audio_fade_helper))
audio_to_fade = snd
} (obj_radio.current_song, 500) |
228 |
cutscene_music = audio_play_sound(mus_the_trek, 1, 1) |
229 |
cutscene_npc_direction(obj_martlet_npc, "left") |
230 |
break |
231 |
case 49: |
232 |
cutscene_dialogue() |
233 |
with (msg) |
234 |
{ |
235 |
talker[0] = 1164 |
236 |
message[0] = "* Clover, we have to go.# Right now." |
237 |
message[1] = "* Come on." |
238 |
prt[0] = 309 |
239 |
prt[1] = 309 |
240 |
} |
241 |
break |
242 |
case 50: |
243 |
cutscene_camera_freeze(obj_pl.x, obj_pl.y) |
244 |
break |
245 |
case 51: |
246 |
cutscene_npc_set_sprites(obj_martlet_npc, 277, 278, 280, 279, 262, 263, 265, 268) |
247 |
break |
248 |
case 52: |
249 |
cutscene_npc_walk(1164, obj_player_npc.x, (obj_player_npc.y + 30), 4, "y", "down", -4, obj_player_npc.x, (obj_player_npc.y + 220)) |
250 |
scene++ |
251 |
break |
252 |
case 53: |
253 |
if (obj_martlet_npc.y > (obj_player_npc.y + 40)) |
254 |
{ |
255 |
cutscene_npc_set_sprites(obj_player_npc, 15, 16, 18, 17, 24, 21, 23, 22) |
256 |
break |
257 |
} |
258 |
else |
259 |
break |
260 |
case 54: |
261 |
cutscene_npc_walk(1168, obj_player_npc.x, 360, 4, "y", "down") |
262 |
break |
263 |
case 55: |
264 |
global.dunes_flag[41] = 4 |
265 |
cutscene_change_room(251, 485, 420, 0.03) |
266 |
break |
267 |
} |