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