1 |
if active |
2 |
{ |
3 |
sprite_index = spr_stresswalk |
4 |
image_speed = 0.4 |
5 |
if (path_position == 0) |
6 |
path_start(pt_elevator_guy, 3, path_action_stop, false) |
7 |
else if (path_position == 1) |
8 |
fade_out = true |
9 |
if (fade_out == true) |
10 |
{ |
11 |
image_speed = 0 |
12 |
if (image_alpha > 0) |
13 |
image_alpha -= 0.2 |
14 |
else if (!alarm[0]) |
15 |
alarm[0] = 15alarm[0]trs = instance_create(0, 0, obj_transition)
with (trs)
{
xx = 100
yy = 185
newRoom = 93
}
instance_create(0, 0, obj_elevator_controller)
instance_destroy() |
16 |
} |
17 |
return; |
18 |
} |
19 |
event_inherited() |
20 |
if interact |
21 |
{ |
22 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
23 |
is_talking = 1 |
24 |
switch npc_flag |
25 |
{ |
26 |
case 0: |
27 |
with (msg) |
28 |
{ |
29 |
portrait = false |
30 |
sndfnt = 99 |
31 |
if (global.geno_complete[2] == false) |
32 |
{ |
33 |
message[0] = "* How-How-How am I gonna get to# my station now?" |
34 |
message[1] = "* The elevator door is jammed,# man! JAMMED!!!" |
35 |
} |
36 |
else |
37 |
{ |
38 |
message[0] = "* Do you know where everyone# went???" |
39 |
message[1] = "* Feeling mad anxious right now." |
40 |
} |
41 |
} |
42 |
npc_flag = 1 |
43 |
break |
44 |
case 1: |
45 |
with (msg) |
46 |
{ |
47 |
portrait = false |
48 |
sndfnt = 99 |
49 |
if (global.geno_complete[2] == false) |
50 |
{ |
51 |
message[0] = "* I'm calm!" |
52 |
message[1] = "* I'm calm, okay??" |
53 |
message[2] = "* ..." |
54 |
message[3] = "* That was a LIE I am FREAKING# OUT!!!" |
55 |
} |
56 |
else |
57 |
{ |
58 |
message[0] = "* Either my co-workers are# planning a surprise b-day party# for me or..." |
59 |
message[1] = "* ..." |
60 |
message[2] = "* No, it's fine. I'm fine!" |
61 |
message[3] = "* That would be silly! Heh..." |
62 |
} |
63 |
} |
64 |
npc_flag = 2 |
65 |
break |
66 |
case 2: |
67 |
with (msg) |
68 |
{ |
69 |
portrait = false |
70 |
sndfnt = 99 |
71 |
if (global.geno_complete[2] == false) |
72 |
message[0] = "* You gotta help me!!" |
73 |
else |
74 |
{ |
75 |
message[0] = "* Wait, who are you?" |
76 |
message[1] = "* Please leave me to my corner# of worry." |
77 |
} |
78 |
} |
79 |
break |
80 |
} |
81 |
|
82 |
} |