| 1 |
if (global.ruins_flag[0] == 0) |
| 2 |
{ |
| 3 |
if (obj_pl.y <= 300) |
| 4 |
{ |
| 5 |
instance_create(obj_pl.x - 4, obj_pl.y - 26, obj_exclamation_mark); |
| 6 |
global.battle_enemy_name = "froggit intro"; |
| 7 |
global.current_room_overworld = room_get_name(room); |
| 8 |
global.battling_boss = false; |
| 9 |
global.battle_start = true; |
| 10 |
scr_cutscene_start(); |
| 11 |
instance_destroy(); |
| 12 |
} |
| 13 |
} |
| 14 |
if (global.ruins_flag[0] == 1) |
| 15 |
{ |
| 16 |
var actor_toriel = 1159; |
| 17 |
switch (scene) |
| 18 |
{ |
| 19 |
case 0: |
| 20 |
global.cutscene = true; |
| 21 |
if (!audio_is_playing(mus_fallendownyellow)) |
| 22 |
audio_play_sound(mus_fallendownyellow, 1, 1); |
| 23 |
if (instance_exists(obj_overworld_fade_in_screen)) |
| 24 |
exit; |
| 25 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 26 |
with (msg) |
| 27 |
{ |
| 28 |
talker[0] = actor_toriel; |
| 29 |
color = true; |
| 30 |
col_modif[0] = 16711680; |
| 31 |
col_modif[1] = 255; |
| 32 |
message[0] = "* Ah! Hello."; |
| 33 |
message[1] = "* Are you all right?"; |
| 34 |
message[2] = "* You must be wondering# what is going on..."; |
| 35 |
message[3] = "* I am TORIEL, caretaker# of the RUINS."; |
| 36 |
message[4] = "* I pass through here# every day to see if# anyone has fallen down."; |
| 37 |
message[5] = "* It does not happen# often."; |
| 38 |
message[6] = "* You are the first to# come here in a long# time."; |
| 39 |
message[7] = "* Do not be afraid,# little one."; |
| 40 |
message[8] = "* I will do my best to# protect you here."; |
| 41 |
message[9] = "* Come! I shall guide you# through your new home."; |
| 42 |
message_col[3][0] = " TORIEL "; |
| 43 |
message_col[3][1] = " # RUINS "; |
| 44 |
prt[0] = 343; |
| 45 |
prt[1] = 343; |
| 46 |
prt[2] = 343; |
| 47 |
prt[3] = 343; |
| 48 |
prt[4] = 343; |
| 49 |
prt[5] = 343; |
| 50 |
prt[6] = 343; |
| 51 |
prt[7] = 343; |
| 52 |
prt[8] = 343; |
| 53 |
prt[9] = 343; |
| 54 |
position = 0; |
| 55 |
} |
| 56 |
if (!global.dialogue_open) |
| 57 |
{ |
| 58 |
scene++; |
| 59 |
scr_cutscene_end(); |
| 60 |
} |
| 61 |
break; |
| 62 |
case 1: |
| 63 |
cutscene_npc_walk(actor_toriel, actor_toriel.x, 120, 3 + (obj_pl.is_sprinting * 2), "y", "up"); |
| 64 |
break; |
| 65 |
case 2: |
| 66 |
with (actor_toriel) |
| 67 |
{ |
| 68 |
image_alpha -= 0.1; |
| 69 |
if (image_alpha < 0) |
| 70 |
{ |
| 71 |
instance_destroy(); |
| 72 |
global.ruins_flag[0] = 2; |
| 73 |
} |
| 74 |
} |
| 75 |
break; |
| 76 |
} |
| 77 |
if (instance_exists(obj_transition)) |
| 78 |
global.ruins_flag[0] = 2; |
| 79 |
} |