1 |
event_inherited() |
2 |
if (global.snowdin_flag[13] == 0) |
3 |
{ |
4 |
switch scene |
5 |
{ |
6 |
case 1: |
7 |
if (!instance_exists(obj_dialogue)) |
8 |
{ |
9 |
x_dest[0] = x |
10 |
y_dest[0] = 320 |
11 |
axis_override = "y" |
12 |
can_walk = true |
13 |
if npc_arrived |
14 |
{ |
15 |
can_walk = false |
16 |
scene++ |
17 |
} |
18 |
} |
19 |
break |
20 |
case 2: |
21 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
22 |
is_talking = true |
23 |
with (msg) |
24 |
{ |
25 |
prt = false |
26 |
sndfnt = 102 |
27 |
message[0] = "* Oh my goodness! Did you# get left behind?" |
28 |
prt[0] = 333 |
29 |
} |
30 |
scene++ |
31 |
break |
32 |
case 3: |
33 |
if (!instance_exists(obj_dialogue)) |
34 |
{ |
35 |
action_sprite = true |
36 |
sprite_index = spr_martlet_book |
37 |
image_index = 0 |
38 |
image_speed = 0.2 |
39 |
scene++ |
40 |
} |
41 |
break |
42 |
case 4: |
43 |
if (image_index >= (image_number - 1)) |
44 |
{ |
45 |
image_speed = 0 |
46 |
action_sprite = false |
47 |
down_sprite_idle = 875 |
48 |
scene++ |
49 |
} |
50 |
break |
51 |
case 5: |
52 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
53 |
is_talking = true |
54 |
timer = 30 |
55 |
with (msg) |
56 |
{ |
57 |
prt = false |
58 |
sndfnt = 102 |
59 |
message[0] = "* Might I ask your name?" |
60 |
ch_msg = 0 |
61 |
ch[1] = "Clover" |
62 |
message[1] = "* Hmm... not on the# resident list..." |
63 |
message[2] = "* Ummm... see, this is# tough. I can't leave my# post." |
64 |
message[3] = "* I'm supposed to wait# here until this bad# person comes." |
65 |
message[4] = "* The troublemaker who# caused all this, ya# know?" |
66 |
message[5] = "* But I can't just leave# you to find the others# alone!" |
67 |
message[6] = "* You're a child! I could# never do that!" |
68 |
prt[0] = 321 |
69 |
prt[1] = 338 |
70 |
prt[2] = 311 |
71 |
prt[3] = 317 |
72 |
prt[4] = 317 |
73 |
prt[5] = 338 |
74 |
prt[6] = 313 |
75 |
} |
76 |
scene++ |
77 |
break |
78 |
case 6: |
79 |
if (global.dialogue_open || (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ())) |
80 |
return; |
81 |
scene++ |
82 |
break |
83 |
case 7: |
84 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
85 |
is_talking = true |
86 |
with (msg) |
87 |
{ |
88 |
sndfnt = 102 |
89 |
message[0] = "* Okay, how 'bout we# hurry and catch up# with the others..." |
90 |
message[1] = "* Then I come back and# no one will ever# know!" |
91 |
message[2] = "* Ready?" |
92 |
prt[0] = 320 |
93 |
prt[1] = 321 |
94 |
prt[2] = 321 |
95 |
} |
96 |
if (!global.dialogue_open) |
97 |
scene++ |
98 |
break |
99 |
case 8: |
100 |
if (!alarm[0]) |
101 |
alarm[0] = 20alarm[0]instance_create(obj_pl.x, obj_pl.y, obj_heart_initiate_battle)
global.battle_enemy_name = "martlet genocide"
global.battling_enemy = false
global.battling_boss = true
global.battle_start = true
global.current_room_overworld = room_get_name(room) |
102 |
scene++ |
103 |
break |
104 |
} |
105 |
|
106 |
} |
107 |
if (global.snowdin_flag[13] == 3 && global.snowdin_flag[21] == 0) |
108 |
{ |
109 |
switch scene |
110 |
{ |
111 |
case 1: |
112 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
113 |
is_talking = true |
114 |
with (msg) |
115 |
{ |
116 |
sndfnt = 102 |
117 |
message[0] = "* I... I have no idea how# to handle this." |
118 |
message[1] = "* ..." |
119 |
message[2] = "* ASGORE would know what# to do." |
120 |
message[3] = "* You should go talk to# him." |
121 |
message[4] = "* There's a river up# ahead. A raft is docked# there." |
122 |
message[5] = "* The current should lead# to Hotland." |
123 |
message[6] = "* I'll meet up with you# once you get there." |
124 |
message[7] = "* In the meantime...# I have work to# attend to." |
125 |
message[8] = "* See you later." |
126 |
prt[0] = 317 |
127 |
prt[1] = 317 |
128 |
prt[2] = 329 |
129 |
prt[3] = 321 |
130 |
prt[4] = 321 |
131 |
prt[5] = 338 |
132 |
prt[6] = 321 |
133 |
prt[7] = 321 |
134 |
prt[8] = 321 |
135 |
} |
136 |
if (!global.dialogue_open) |
137 |
scene++ |
138 |
break |
139 |
case 2: |
140 |
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
} () |
141 |
action_sprite = true |
142 |
sprite_index = spr_martlet_fly_away |
143 |
image_speed = 0.4 |
144 |
scene++ |
145 |
break |
146 |
case 3: |
147 |
if (image_index >= (image_number - 1)) |
148 |
{ |
149 |
image_speed = 0 |
150 |
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) |
151 |
{ |
152 |
global.route = 1 |
153 |
global.snowdin_flag[14] = 1 |
154 |
scr_cutscene_end() |
155 |
scr_radio_restart() |
156 |
__view_set((9 << 0), 0, 1031) |
157 |
instance_destroy() |
158 |
} |
159 |
} |
160 |
break |
161 |
} |
162 |
|
163 |
} |
164 |
else if (global.snowdin_flag[13] == 3 && global.snowdin_flag[21] == 1) |
165 |
{ |
166 |
switch scene |
167 |
{ |
168 |
case 1: |
169 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
170 |
is_talking = true |
171 |
with (msg) |
172 |
{ |
173 |
sndfnt = 102 |
174 |
message[0] = "* You're not off the# hook, Clover." |
175 |
message[1] = "* Unless you decide right# now to change your# ways..." |
176 |
message[2] = "* The Royal Guard will# find you. " |
177 |
message[3] = "* It could be me or# someone much, much# worse." |
178 |
message[4] = "* How your life plays out# from this moment is up# to you." |
179 |
message[5] = "* I don't know what the# humans taught you but..." |
180 |
message[6] = "* A child your age# shouldn't be corrupted# by violence." |
181 |
message[7] = "* Please... Please choose# wisely..." |
182 |
prt[0] = 321 |
183 |
prt[1] = 338 |
184 |
prt[2] = 321 |
185 |
prt[3] = 317 |
186 |
prt[4] = 338 |
187 |
prt[5] = 338 |
188 |
prt[6] = 321 |
189 |
prt[7] = 317 |
190 |
} |
191 |
if (!global.dialogue_open) |
192 |
scene++ |
193 |
break |
194 |
case 2: |
195 |
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
} () |
196 |
action_sprite = true |
197 |
sprite_index = spr_martlet_fly_away |
198 |
image_speed = 0.4 |
199 |
scene++ |
200 |
break |
201 |
case 3: |
202 |
if (image_index >= (image_number - 1)) |
203 |
{ |
204 |
image_speed = 0 |
205 |
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) |
206 |
{ |
207 |
global.snowdin_flag[14] = 1 |
208 |
scr_cutscene_end() |
209 |
scr_radio_restart() |
210 |
__view_set((9 << 0), 0, 1031) |
211 |
instance_destroy() |
212 |
} |
213 |
} |
214 |
break |
215 |
} |
216 |
|
217 |
} |