1 |
if (waiter == 0 && scr_interactscr_interactfunction scr_interact() //gml_Script_scr_interact
{
if (distance_to_object(obj_pl) < 20 && obj_pl.state == gml_Script_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)) |
2 |
waiter = 1 |
3 |
else if (waiter == 1) |
4 |
{ |
5 |
if (global.sworks_flag[26] >= 2) |
6 |
{ |
7 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
8 |
with (msg) |
9 |
{ |
10 |
if (global.route != 3) |
11 |
{ |
12 |
message[0] = "* (You notice a sign in the# receptionist office.)" |
13 |
message[1] = "* Do not eat the writing# utensils! Not again..." |
14 |
message[2] = "* (You wonder what tragic event# warranted this sign.)" |
15 |
} |
16 |
else |
17 |
message[0] = "* (A familiar display.)" |
18 |
} |
19 |
waiter = 0 |
20 |
return; |
21 |
} |
22 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
23 |
with (msg) |
24 |
{ |
25 |
message[0] = "* (The receptionist is# unreceptive.)" |
26 |
message[1] = "* (They seemed to be in the# middle of creating a new# Steamworks ID.)" |
27 |
message[2] = "* (Finish their work?)" |
28 |
ch_msg = 2 |
29 |
ch[1] = "Yes" |
30 |
ch[2] = "No" |
31 |
if (outcome == 1) |
32 |
{ |
33 |
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
} () |
34 |
instance_create(0, 0, obj_crayon_minigame) |
35 |
other.waiter = 2 |
36 |
} |
37 |
else if (outcome == 2) |
38 |
{ |
39 |
global.dialogue_open = false |
40 |
other.waiter = 0 |
41 |
} |
42 |
} |
43 |
} |
44 |
else if (waiter == 2 && (!instance_exists(obj_crayon_minigame))) |
45 |
{ |
46 |
instance_create(0, 0, obj_chem_01_cutscene_b) |
47 |
waiter = 0 |
48 |
} |