| 1 |
switch (scene) |
| 2 |
{ |
| 3 |
case 0: |
| 4 |
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)) |
| 5 |
{ |
| 6 |
scr_cutscene_start(); |
| 7 |
cutscene_advance(); |
| 8 |
} |
| 9 |
break; |
| 10 |
case 1: |
| 11 |
cutscene_dialogue(); |
| 12 |
with (msg) |
| 13 |
message[0] = "* You Tried in Engineering# Award: Mr. Chujin Ketsukane"; |
| 14 |
break; |
| 15 |
case 2: |
| 16 |
if (global.party_member == -4 || global.sworks_flag[17] == 1) |
| 17 |
{ |
| 18 |
scene = 0; |
| 19 |
scr_cutscene_end(); |
| 20 |
} |
| 21 |
else |
| 22 |
{ |
| 23 |
cutscene_wait(1); |
| 24 |
} |
| 25 |
break; |
| 26 |
case 3: |
| 27 |
if (!instance_exists(obj_ceroba_npc)) |
| 28 |
scr_follower_into_actorscr_follower_into_actorfunction scr_follower_into_actor()
{
if (global.party_member == -4)
return false;
actor_follower = instance_create(global.party_member.x, global.party_member.y, global.party_member.npc_actor);
with (global.party_member)
{
switch (sprite_index)
{
case up_sprite:
case up_sprite_idle:
case up_sprite_run:
other.actor_follower.npc_direction = "up";
other.actor_follower.sprite_index = other.actor_follower.up_sprite;
break;
case down_sprite:
case down_sprite_idle:
case down_sprite_run:
other.actor_follower.npc_direction = "down";
other.actor_follower.sprite_index = other.actor_follower.down_sprite;
break;
case left_sprite:
case left_sprite_idle:
case left_sprite_run:
other.actor_follower.npc_direction = "left";
other.actor_follower.sprite_index = other.actor_follower.left_sprite;
break;
case right_sprite:
case right_sprite_idle:
case right_sprite_run:
other.actor_follower.sprite_index = other.actor_follower.right_sprite;
break;
}
instance_destroy();
}
return true;
} (); |
| 29 |
obj_ceroba_npc.npc_direction = "up"; |
| 30 |
cutscene_dialogue(); |
| 31 |
with (msg) |
| 32 |
{ |
| 33 |
sndfnt = 108; |
| 34 |
message[0] = "* He never told me# he won an award..."; |
| 35 |
message[1] = "* I'm proud of him."; |
| 36 |
prt[0] = 370; |
| 37 |
prt[1] = 370; |
| 38 |
} |
| 39 |
break; |
| 40 |
case 4: |
| 41 |
global.sworks_flag[17] = 1; |
| 42 |
scene = 0; |
| 43 |
scr_actor_into_followerscr_actor_into_followerfunction scr_actor_into_follower(arg0, arg1)
{
if (!instance_exists(arg0))
return false;
if (arg1 == -4)
return false;
instance_create(arg0.x, arg0.y, arg1);
arg1.x = arg0.x;
arg1.y = arg0.y;
with (arg0)
{
switch (npc_direction)
{
case "up":
arg1.sprite_index = arg1.up_sprite_idle;
break;
case "down":
arg1.sprite_index = arg1.down_sprite_idle;
break;
case "left":
arg1.sprite_index = arg1.left_sprite_idle;
break;
case "right":
arg1.sprite_index = arg1.right_sprite_idle;
break;
}
}
instance_destroy(arg0);
} (1161, 1171); |
| 44 |
scr_cutscene_end(); |
| 45 |
break; |
| 46 |
} |