| 1 |
if (scr_interactscr_interactfunction scr_interact()
{
if (distance_to_object(obj_pl) < 20 && obj_pl.state == scr_normal_state)
{
var pl_dir = obj_pl.direction;
var pl_x = 0;
var pl_y = 0;
var check_distance_x = 0;
var check_distance_y = 0;
switch (pl_dir)
{
case 0:
pl_x = obj_pl.bbox_right;
pl_y = obj_pl.bbox_top + 1;
check_distance_x = 20;
break;
case 180:
pl_x = obj_pl.bbox_left;
pl_y = obj_pl.bbox_top + 1;
check_distance_x = -20;
break;
case 90:
pl_x = obj_pl.x;
pl_y = obj_pl.bbox_top;
check_distance_y = -20;
break;
case 270:
pl_x = obj_pl.x;
pl_y = obj_pl.bbox_bottom;
check_distance_y = 20;
break;
}
if (collision_line_first(pl_x, pl_y, pl_x + check_distance_x, pl_y + check_distance_y, id, false, false))
return true;
}
} () && keyboard_multicheck_pressed(0) && scene == 0) |
| 2 |
{ |
| 3 |
scr_cutscene_start(); |
| 4 |
scene = 1; |
| 5 |
} |
| 6 |
switch (scene) |
| 7 |
{ |
| 8 |
case 1: |
| 9 |
if (global.sworks_flag[23] == 0 && global.party_member != -4) |
| 10 |
{ |
| 11 |
cutscene_advance(); |
| 12 |
} |
| 13 |
else |
| 14 |
{ |
| 15 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 16 |
with (msg) |
| 17 |
message[0] = "* (An empty elevator# shaft lies before you.)"; |
| 18 |
global.cutscene = false; |
| 19 |
scene = 0; |
| 20 |
} |
| 21 |
break; |
| 22 |
case 2: |
| 23 |
if (image_speed == 0) |
| 24 |
{ |
| 25 |
image_speed = 1; |
| 26 |
audio_play_sound(snd_sliding_door_open, 1, 0); |
| 27 |
} |
| 28 |
if (image_index >= (image_number - 1)) |
| 29 |
{ |
| 30 |
image_speed = 0; |
| 31 |
cutscene_advance(); |
| 32 |
} |
| 33 |
break; |
| 34 |
case 3: |
| 35 |
cutscene_dialogue(); |
| 36 |
with (msg) |
| 37 |
{ |
| 38 |
sndfnt_array[0] = 391; |
| 39 |
sndfnt_array[1] = 108; |
| 40 |
message[0] = "* (An empty elevator# shaft lies before you.)"; |
| 41 |
message[1] = "* Well then..."; |
| 42 |
message[2] = "* \"Convenience\" was never# in today's dictionary# anyway."; |
| 43 |
message[3] = "* Gotta be a staircase# closeby."; |
| 44 |
prt[1] = 377; |
| 45 |
prt[2] = 370; |
| 46 |
prt[3] = 370; |
| 47 |
} |
| 48 |
break; |
| 49 |
case 4: |
| 50 |
scr_cutscene_end(); |
| 51 |
global.sworks_flag[23] = 1; |
| 52 |
scene = 0; |
| 53 |
break; |
| 54 |
} |