1 |
if (waiter == 0) |
2 |
{ |
3 |
global.cutscene = true |
4 |
if (!instance_exists(obj_player_npc)) |
5 |
instance_create(obj_pl.x, obj_pl.y, obj_player_npc) |
6 |
with (obj_player_npc) |
7 |
{ |
8 |
can_walk = true |
9 |
down_sprite = 24 |
10 |
down_sprite_idle = 24 |
11 |
x_dest[0] = x |
12 |
y_dest[0] = 150 |
13 |
actor_speed = 3 |
14 |
axis_override = "y" |
15 |
end_direction = "up" |
16 |
} |
17 |
if ((!alarm[0]) && obj_player_npc.npc_arrived == true) |
18 |
{ |
19 |
waiter = 1 |
20 |
instance_destroy(obj_player_npc) |
21 |
} |
22 |
} |
23 |
if (waiter == 1) |
24 |
{ |
25 |
obj_dalv2.destination_x_dalv = 170 |
26 |
obj_dalv2.destination_y_dalv = 120 |
27 |
no_loop_autowalk = false |
28 |
waiter++ |
29 |
} |
30 |
if (waiter == 2) |
31 |
{ |
32 |
if (obj_dalv2.x == obj_dalv2.destination_x_dalv && obj_dalv2.y == obj_dalv2.destination_y_dalv) |
33 |
waiter++ |
34 |
} |
35 |
if (waiter == 3) |
36 |
{ |
37 |
obj_dalv2.direction = 270 |
38 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
39 |
with (msg) |
40 |
{ |
41 |
if (global.interaction_count_dalvroomhall_door == 0) |
42 |
{ |
43 |
portrait = true |
44 |
sndfnt = 100 |
45 |
message[0] = "* ..." |
46 |
message[1] = "* Let's look at something# else, okay?" |
47 |
prt[0] = 1763 |
48 |
prt[1] = 1780 |
49 |
} |
50 |
else |
51 |
{ |
52 |
portrait = true |
53 |
sndfnt = 100 |
54 |
message[0] = "* ..." |
55 |
prt[0] = 1780 |
56 |
} |
57 |
} |
58 |
if (!global.dialogue_open) |
59 |
waiter++ |
60 |
} |
61 |
if (waiter == 4) |
62 |
{ |
63 |
if (global.interaction_count_dalvroomhall_door == 0) |
64 |
global.interaction_count_dalvroomhall_door++ |
65 |
waiter++ |
66 |
} |
67 |
if (waiter >= 5 && waiter <= 6 && (!instance_exists(obj_dialogue))) |
68 |
{ |
69 |
obj_dalv2.destination_x_dalv = obj_dalv2.default_x_dalvroomhall |
70 |
obj_dalv2.destination_y_dalv = obj_dalv2.default_y_dalvroomhall |
71 |
if (obj_dalv2.x == obj_dalv2.default_x_dalvroomhall && obj_dalv2.y == obj_dalv2.default_y_dalvroomhall) |
72 |
waiter++ |
73 |
} |
74 |
if (waiter == 7) |
75 |
{ |
76 |
user_event_0_activated = false |
77 |
global.cutscene = false |
78 |
waiter = 0 |
79 |
obj_pl.alarm[0] = 1 |
80 |
} |