| 1 |
event_inherited(); |
| 2 |
if (live_call()) |
| 3 |
return global.live_result; |
| 4 |
if (interact && scene == 0) |
| 5 |
{ |
| 6 |
scene = 1; |
| 7 |
scr_cutscene_start(); |
| 8 |
} |
| 9 |
if (scene == 1) |
| 10 |
{ |
| 11 |
is_talking = true; |
| 12 |
scr_textscr_textfunction 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()
{
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 |
{ |
| 172 |
timer--; |
| 173 |
} |
| 174 |
else |
| 175 |
{ |
| 176 |
timer = -1; |
| 177 |
scene++; |
| 178 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 179 |
with (msg) |
| 180 |
{ |
| 181 |
sndfnt = 102; |
| 182 |
message[0] = "* Wait, hold on!"; |
| 183 |
message[1] = "* I was supposed to be on# Ava with you!"; |
| 184 |
prt[0] = 333; |
| 185 |
prt[1] = 333; |
| 186 |
} |
| 187 |
} |
| 188 |
} |
| 189 |
else if (scene == 8) |
| 190 |
{ |
| 191 |
if (!instance_exists(obj_dialogue)) |
| 192 |
{ |
| 193 |
action_sprite = true; |
| 194 |
sprite_index = spr_martlet_fly_away; |
| 195 |
image_speed = 0.5; |
| 196 |
timer = 90; |
| 197 |
scene++; |
| 198 |
} |
| 199 |
} |
| 200 |
else if (scene == 9) |
| 201 |
{ |
| 202 |
if (action_sprite == true && image_index >= (image_number - 1)) |
| 203 |
{ |
| 204 |
image_speed = 0; |
| 205 |
image_index = image_number - 1; |
| 206 |
} |
| 207 |
if (timer > 0) |
| 208 |
timer--; |
| 209 |
else |
| 210 |
instance_create(0, 0, obj_snowdin_end_transition); |
| 211 |
} |
| 212 |
else if (scene == 3) |
| 213 |
{ |
| 214 |
scene = -1; |
| 215 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 216 |
is_talking = true; |
| 217 |
with (msg) |
| 218 |
{ |
| 219 |
if (global.snowdin_flag[14] == 2) |
| 220 |
{ |
| 221 |
message[0] = "* Yeah, that's fair, I# guess."; |
| 222 |
message[1] = "* Well I'll hang around# a while."; |
| 223 |
message[2] = "* In case you, ya know,# change your mind."; |
| 224 |
message[3] = "* I mean, I put all this# work into finishing the# UG Aviator so."; |
| 225 |
message[4] = "* If she doesn't get to# sail free,"; |
| 226 |
message[5] = "* I can at least# give her company a# while."; |
| 227 |
message[6] = "* Until I find a better# place for her, ya know?"; |
| 228 |
prt[0] = 317; |
| 229 |
prt[1] = 329; |
| 230 |
prt[2] = 320; |
| 231 |
prt[3] = 320; |
| 232 |
prt[4] = 320; |
| 233 |
prt[5] = 328; |
| 234 |
prt[6] = 328; |
| 235 |
global.snowdin_flag[14] = 3; |
| 236 |
} |
| 237 |
else if (global.snowdin_flag[14] == 3) |
| 238 |
{ |
| 239 |
message[0] = "* Oh... Okay..."; |
| 240 |
prt[0] = 317; |
| 241 |
} |
| 242 |
else if (global.snowdin_flag[14] == 4) |
| 243 |
{ |
| 244 |
message[0] = "* Oh. You have something# to do?"; |
| 245 |
message[1] = "* I didn't realize you# were so busy and# popular!"; |
| 246 |
message[2] = "* That's fine! I'll be# here."; |
| 247 |
message[3] = "* Take all the time in# the world!"; |
| 248 |
message[4] = "* ...Actually, if you# wouldn't mind,# don't take, like,"; |
| 249 |
message[5] = "* all the# time in the world."; |
| 250 |
message[6] = "* We want to have time# left for the journey,# ya know?"; |
| 251 |
prt[0] = 333; |
| 252 |
prt[1] = 320; |
| 253 |
prt[2] = 312; |
| 254 |
prt[3] = 328; |
| 255 |
prt[4] = 320; |
| 256 |
prt[5] = 320; |
| 257 |
prt[6] = 328; |
| 258 |
} |
| 259 |
} |
| 260 |
} |
| 261 |
if (scene != 0 && instance_exists(obj_dialogue)) |
| 262 |
{ |
| 263 |
with (msg) |
| 264 |
{ |
| 265 |
if (outcome > 0) |
| 266 |
{ |
| 267 |
message = 0; |
| 268 |
message[0] = ""; |
| 269 |
outcome = 0; |
| 270 |
cutoff = 0; |
| 271 |
message_current = 0; |
| 272 |
} |
| 273 |
} |
| 274 |
} |
| 275 |
if (scene == -1) |
| 276 |
{ |
| 277 |
if (!instance_exists(obj_dialogue)) |
| 278 |
{ |
| 279 |
scr_cutscene_end(); |
| 280 |
scene = 0; |
| 281 |
} |
| 282 |
} |