1 |
if (instance_exists(obj_postgame_walk_blocker) || instance_exists(obj_steam_walk_blocker) || instance_exists(obj_dunes_29_geno_blocker)) |
2 |
{ |
3 |
autowalk_direction = "nothing" |
4 |
state = gml_Script_scr_normal_state |
5 |
return; |
6 |
} |
7 |
switch global.flag[28 Spoken to Dalv in his house] |
8 |
{ |
9 |
case 1: |
10 |
if instance_exists(obj_dalv2) |
11 |
{ |
12 |
if (obj_dalv2.dalv_talk_waiter > 0) |
13 |
{ |
14 |
clover_walk_backwards = false |
15 |
autowalk_direction = "nothing" |
16 |
state = gml_Script_scr_frozen_state |
17 |
direction = 90 |
18 |
return; |
19 |
} |
20 |
} |
21 |
if instance_exists(obj_doorway_blocker_dalvshouse) |
22 |
{ |
23 |
if (obj_doorway_blocker_dalvshouse.waiter > 0) |
24 |
{ |
25 |
clover_walk_backwards = false |
26 |
autowalk_direction = "nothing" |
27 |
state = gml_Script_scr_frozen_state |
28 |
direction = 90 |
29 |
return; |
30 |
} |
31 |
} |
32 |
if instance_exists(obj_doorway_blocker_dalvsroom) |
33 |
{ |
34 |
if (obj_doorway_blocker_dalvsroom.waiter > 0) |
35 |
{ |
36 |
clover_walk_backwards = false |
37 |
autowalk_direction = "nothing" |
38 |
state = gml_Script_scr_frozen_state |
39 |
direction = 90 |
40 |
return; |
41 |
} |
42 |
} |
43 |
switch room |
44 |
{ |
45 |
case rm_dalvshouse: |
46 |
switch global.lastroom |
47 |
{ |
48 |
case "rm_dalvroomhall": |
49 |
instance_create(335, 110, obj_dalv2) |
50 |
with (obj_dalv2) |
51 |
{ |
52 |
image_alpha = 1 |
53 |
direction = 180 |
54 |
path_speed = 3 |
55 |
} |
56 |
autowalk_direction = "nothing" |
57 |
state = gml_Script_scr_frozen_state |
58 |
obj_dalv2.alarm[0] = 30 |
59 |
break |
60 |
case "rm_dalvhallway": |
61 |
autowalk_direction = "nothing" |
62 |
state = gml_Script_scr_normal_state |
63 |
break |
64 |
default: |
65 |
autowalk_direction = "nothing" |
66 |
} |
67 |
|
68 |
break |
69 |
case 39: |
70 |
switch global.lastroom |
71 |
{ |
72 |
case "rm_dalvshouse": |
73 |
instance_create(-20, 140, obj_dalv2) |
74 |
with (obj_dalv2) |
75 |
{ |
76 |
image_alpha = 1 |
77 |
direction = 0 |
78 |
path_speed = 3 |
79 |
} |
80 |
autowalk_direction = "nothing" |
81 |
state = gml_Script_scr_frozen_state |
82 |
obj_dalv2.alarm[0] = 30 |
83 |
break |
84 |
case "rm_dalvsroom": |
85 |
autowalk_direction = "nothing" |
86 |
state = gml_Script_scr_normal_state |
87 |
break |
88 |
} |
89 |
|
90 |
break |
91 |
case 41: |
92 |
if (autowalk_direction == "left") |
93 |
{ |
94 |
clover_walk_backwards = false |
95 |
direction = 0 |
96 |
} |
97 |
else if (autowalk_direction == "right") |
98 |
direction = 90 |
99 |
autowalk_direction = "nothing" |
100 |
state = gml_Script_scr_normal_state |
101 |
break |
102 |
default: |
103 |
autowalk_direction = "nothing" |
104 |
} |
105 |
|
106 |
break |
107 |
default: |
108 |
autowalk_direction = "nothing" |
109 |
} |