1 |
event_inherited() |
2 |
if (global.snowdin_flag[13] == 0) |
3 |
{ |
4 |
switch scene |
5 |
{ |
6 |
case 0: |
7 |
if (sprite_index == spr_martlet_wake && floor(image_index) == 3) |
8 |
{ |
9 |
if (!instance_exists(obj_cutscene_ex)) |
10 |
{ |
11 |
instance_create(x, (y - 29), obj_cutscene_ex) |
12 |
audio_play_sound(snd_martlet_wake, 1, 0) |
13 |
} |
14 |
} |
15 |
if (image_index >= (image_number - 1)) |
16 |
{ |
17 |
if (sprite_index == spr_martlet_wake) |
18 |
{ |
19 |
sprite_index = spr_martlet_stand_up |
20 |
image_index = 0 |
21 |
instance_destroy(obj_cutscene_ex) |
22 |
} |
23 |
} |
24 |
if (sprite_index == spr_martlet_stand_up) |
25 |
{ |
26 |
if (image_index >= image_number) |
27 |
{ |
28 |
action_sprite = false |
29 |
image_speed = 0.2 |
30 |
scene++ |
31 |
} |
32 |
} |
33 |
break |
34 |
case 1: |
35 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
36 |
is_talking = true |
37 |
with (msg) |
38 |
{ |
39 |
position = 0 |
40 |
sndfnt = 102 |
41 |
message[0] = "* Hm? Oh, uh, hello!" |
42 |
message[1] = "* Sorry, I don't know# where my head was right# there." |
43 |
message[2] = "* It seems I have# a summer home in lala# land these days!" |
44 |
message[3] = "* You look a bit lost,# are you looking for# directions?" |
45 |
message[4] = "* I'll let you in on a# little secret," |
46 |
message[5] = "* I'm not actually an# information kiosk!" |
47 |
message[6] = "* I know this place like# the back of my wing# though!" |
48 |
message[7] = "* I don't get# lost much at all# anymore!" |
49 |
message[8] = "* I can get you# wherever you want to go!" |
50 |
message[9] = "* Wait..." |
51 |
message[10] = "* I'm gonna take a shot# in the dark here, but..." |
52 |
message[11] = "* You're human! Right?" |
53 |
message[12] = "* I knew it! I knew I'd# find a human! You must# be human! Right? Right? " |
54 |
message[13] = "* You look just like this# guy on this poster I# saw once!" |
55 |
message[14] = "* He had a hat# just like you!" |
56 |
message[15] = "* And he was totally human,# so, like," |
57 |
message[16] = "* transitive property or# something like that?" |
58 |
message[17] = "* Actually, I think he# was from space... are# there space humans?" |
59 |
message[18] = "* You know what, I'll# have plenty of time to# ask you questions later." |
60 |
prt[0] = 333 |
61 |
prt[1] = 323 |
62 |
prt[2] = 318 |
63 |
prt[3] = 331 |
64 |
prt[4] = 313 |
65 |
prt[5] = 313 |
66 |
prt[6] = 331 |
67 |
prt[7] = 312 |
68 |
prt[8] = 312 |
69 |
prt[9] = 334 |
70 |
prt[10] = 335 |
71 |
prt[11] = 313 |
72 |
prt[12] = 313 |
73 |
prt[13] = 318 |
74 |
prt[14] = 318 |
75 |
prt[15] = 312 |
76 |
prt[16] = 312 |
77 |
prt[17] = 324 |
78 |
prt[18] = 313 |
79 |
} |
80 |
scene++ |
81 |
break |
82 |
case 2: |
83 |
if (!instance_exists(obj_dialogue)) |
84 |
{ |
85 |
x_dest[0] = 280 |
86 |
y_dest[0] = y |
87 |
x_dest[1] = 220 |
88 |
y_dest[1] = 200 |
89 |
axis_override = "y" |
90 |
can_walk = true |
91 |
if npc_arrived |
92 |
{ |
93 |
can_walk = false |
94 |
scene++ |
95 |
} |
96 |
} |
97 |
break |
98 |
case 3: |
99 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
100 |
is_talking = true |
101 |
with (msg) |
102 |
{ |
103 |
prt = false |
104 |
sndfnt = 102 |
105 |
message[0] = "* Are you ready for some# Royal Guard protocol?" |
106 |
message[1] = "* I hope you are, 'cause# I memorized it!" |
107 |
prt[0] = 313 |
108 |
prt[1] = 313 |
109 |
} |
110 |
scene++ |
111 |
break |
112 |
case 4: |
113 |
if (!instance_exists(obj_dialogue)) |
114 |
{ |
115 |
action_sprite = true |
116 |
sprite_index = spr_martlet_book |
117 |
image_index = 0 |
118 |
image_speed = 0.2 |
119 |
scene++ |
120 |
} |
121 |
break |
122 |
case 5: |
123 |
if (image_index >= (image_number - 1)) |
124 |
{ |
125 |
image_speed = 0 |
126 |
sprite_index = spr_martlet_book_talk |
127 |
alarm[1] = 30alarm[1]instance_create(obj_pl.x, obj_pl.y, obj_heart_initiate_battle)
global.battle_enemy_name = "martlet pacifist"
global.battling_enemy = false
global.battling_boss = true
global.battle_start = true
global.current_room_overworld = room_get_name(room)
if (global.geno_complete[2] == false && global.route == 3)
global.route = 1 |
128 |
scene++ |
129 |
} |
130 |
break |
131 |
} |
132 |
|
133 |
} |
134 |
if (global.snowdin_flag[13] == 1) |
135 |
{ |
136 |
switch scene |
137 |
{ |
138 |
case 1: |
139 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
140 |
is_talking = true |
141 |
with (msg) |
142 |
{ |
143 |
sndfnt = 102 |
144 |
message[0] = "* If the Royal Guard# doesn't know you're# here..." |
145 |
message[1] = "* ...they won't know I# broke protocol!" |
146 |
message[2] = "* Instead, we'll just get# you home before any of# them see you!" |
147 |
message[3] = "* You'll be home in time# for dinner!" |
148 |
message[4] = "* ..." |
149 |
message[5] = "* I mean... maybe not# TODAY'S dinner, but for# sure A dinner!" |
150 |
message[6] = "* Anyway, we'll bypass the# Royal Guard and plead# your case to ASGORE!" |
151 |
message[7] = "* There's no way he can# say no to a cute little# face like yours!" |
152 |
message[8] = "* Meet me up ahead and# I'll show you my plan# to get you home!" |
153 |
prt[0] = 328 |
154 |
prt[1] = 318 |
155 |
prt[2] = 328 |
156 |
prt[3] = 328 |
157 |
prt[4] = 321 |
158 |
prt[5] = 338 |
159 |
prt[6] = 328 |
160 |
prt[7] = 318 |
161 |
prt[8] = 312 |
162 |
} |
163 |
scene++ |
164 |
break |
165 |
case 2: |
166 |
if (!instance_exists(obj_dialogue)) |
167 |
{ |
168 |
can_walk = true |
169 |
x_dest[0] = 280 |
170 |
y_dest[0] = -30 |
171 |
axis_override = "x" |
172 |
if npc_arrived |
173 |
{ |
174 |
npc_arrived = false |
175 |
scene++ |
176 |
} |
177 |
} |
178 |
break |
179 |
case 3: |
180 |
if (y < 0) |
181 |
{ |
182 |
if scr_camera_movescr_camera_movefunction scr_camera_move(argument0, argument1, argument2) //gml_Script_scr_camera_move
{
if (!instance_exists(obj_camera))
{
instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_camera)
__view_set((9 << 0), 0, 1120)
}
else
{
obj_camera.x = __view_get((9 << 0), 0).x
obj_camera.y = __view_get((9 << 0), 0).y
__view_set((9 << 0), 0, 1120)
}
obj_camera.move = true
obj_camera.xx = argument0
obj_camera.yy = argument1
obj_camera.spd = argument2
if (abs(argument0 - obj_camera.x) <= argument2 && abs(argument1 - obj_camera.y) <= argument2)
return true;
else
return false;
} (obj_pl.x, obj_pl.y, 2) |
183 |
{ |
184 |
global.snowdin_flag[14] = 1 |
185 |
__view_set((9 << 0), 0, 1031) |
186 |
scr_cutscene_end() |
187 |
scr_radio_restart() |
188 |
instance_destroy(obj_camera) |
189 |
instance_destroy() |
190 |
} |
191 |
} |
192 |
break |
193 |
} |
194 |
|
195 |
} |
196 |
if (global.snowdin_flag[13] == 2) |
197 |
{ |
198 |
switch scene |
199 |
{ |
200 |
case 1: |
201 |
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
} () |
202 |
action_sprite = true |
203 |
sprite_index = spr_martlet_fly_away |
204 |
image_speed = 0.4 |
205 |
scene++ |
206 |
break |
207 |
case 2: |
208 |
if (image_index >= (image_number - 1)) |
209 |
{ |
210 |
image_speed = 0 |
211 |
if scr_camera_movescr_camera_movefunction scr_camera_move(argument0, argument1, argument2) //gml_Script_scr_camera_move
{
if (!instance_exists(obj_camera))
{
instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_camera)
__view_set((9 << 0), 0, 1120)
}
else
{
obj_camera.x = __view_get((9 << 0), 0).x
obj_camera.y = __view_get((9 << 0), 0).y
__view_set((9 << 0), 0, 1120)
}
obj_camera.move = true
obj_camera.xx = argument0
obj_camera.yy = argument1
obj_camera.spd = argument2
if (abs(argument0 - obj_camera.x) <= argument2 && abs(argument1 - obj_camera.y) <= argument2)
return true;
else
return false;
} (obj_pl.x, obj_pl.y, 2) |
212 |
{ |
213 |
global.snowdin_flag[14] = 1 |
214 |
__view_set((9 << 0), 0, 1031) |
215 |
scr_cutscene_end() |
216 |
scr_radio_restart() |
217 |
instance_destroy() |
218 |
} |
219 |
} |
220 |
break |
221 |
} |
222 |
|
223 |
} |