1 |
var _temp_local_var_5, _temp_local_var_6; |
2 |
if (autowalk_direction_no_loop == false) |
3 |
{ |
4 |
switch global.flag[28 Spoken to Dalv in his house] |
5 |
{ |
6 |
case 1: |
7 |
switch room |
8 |
{ |
9 |
case rm_dalvshouse: |
10 |
switch global.lastroom |
11 |
{ |
12 |
case "rm_dalvroomhall": |
13 |
with (obj_dalv2) |
14 |
instance_destroy() |
15 |
autowalk_direction = "left" |
16 |
state = gml_Script_scr_autowalk_state |
17 |
alarm[1] = 30alarm[1]if (instance_exists(obj_postgame_walk_blocker) || instance_exists(obj_steam_walk_blocker) || instance_exists(obj_dunes_29_geno_blocker))
{
autowalk_direction = "nothing"
state = gml_Script_scr_normal_state
return;
}
switch global.flag[28 Spoken to Dalv in his house]
{
case 1:
if instance_exists(obj_dalv2)
{
if (obj_dalv2.dalv_talk_waiter > 0)
{
clover_walk_backwards = false
autowalk_direction = "nothing"
state = gml_Script_scr_frozen_state
direction = 90
return;
}
}
if instance_exists(obj_doorway_blocker_dalvshouse)
{
if (obj_doorway_blocker_dalvshouse.waiter > 0)
{
clover_walk_backwards = false
autowalk_direction = "nothing"
state = gml_Script_scr_frozen_state
direction = 90
return;
}
}
if instance_exists(obj_doorway_blocker_dalvsroom)
{
if (obj_doorway_blocker_dalvsroom.waiter > 0)
{
clover_walk_backwards = false
autowalk_direction = "nothing"
state = gml_Script_scr_frozen_state
direction = 90
return;
}
}
switch room
{
case rm_dalvshouse:
switch global.lastroom
{
case "rm_dalvroomhall":
instance_create(335, 110, obj_dalv2)
with (obj_dalv2)
{
image_alpha = 1
direction = 180
path_speed = 3
}
autowalk_direction = "nothing"
state = gml_Script_scr_frozen_state
obj_dalv2.alarm[0] = 30
break
case "rm_dalvhallway":
autowalk_direction = "nothing"
state = gml_Script_scr_normal_state
break
default:
autowalk_direction = "nothing"
}
break
case 39:
switch global.lastroom
{
case "rm_dalvshouse":
instance_create(-20, 140, obj_dalv2)
with (obj_dalv2)
{
image_alpha = 1
direction = 0
path_speed = 3
}
autowalk_direction = "nothing"
state = gml_Script_scr_frozen_state
obj_dalv2.alarm[0] = 30
break
case "rm_dalvsroom":
autowalk_direction = "nothing"
state = gml_Script_scr_normal_state
break
}
break
case 41:
if (autowalk_direction == "left")
{
clover_walk_backwards = false
direction = 0
}
else if (autowalk_direction == "right")
direction = 90
autowalk_direction = "nothing"
state = gml_Script_scr_normal_state
break
... |
18 |
break |
19 |
default: |
20 |
autowalk_direction = "nothing" |
21 |
} |
22 |
|
23 |
break |
24 |
case 39: |
25 |
switch global.lastroom |
26 |
{ |
27 |
case "rm_dalvshouse": |
28 |
autowalk_direction = "right" |
29 |
state = gml_Script_scr_autowalk_state |
30 |
alarm[1] = 15alarm[1]if (instance_exists(obj_postgame_walk_blocker) || instance_exists(obj_steam_walk_blocker) || instance_exists(obj_dunes_29_geno_blocker))
{
autowalk_direction = "nothing"
state = gml_Script_scr_normal_state
return;
}
switch global.flag[28 Spoken to Dalv in his house]
{
case 1:
if instance_exists(obj_dalv2)
{
if (obj_dalv2.dalv_talk_waiter > 0)
{
clover_walk_backwards = false
autowalk_direction = "nothing"
state = gml_Script_scr_frozen_state
direction = 90
return;
}
}
if instance_exists(obj_doorway_blocker_dalvshouse)
{
if (obj_doorway_blocker_dalvshouse.waiter > 0)
{
clover_walk_backwards = false
autowalk_direction = "nothing"
state = gml_Script_scr_frozen_state
direction = 90
return;
}
}
if instance_exists(obj_doorway_blocker_dalvsroom)
{
if (obj_doorway_blocker_dalvsroom.waiter > 0)
{
clover_walk_backwards = false
autowalk_direction = "nothing"
state = gml_Script_scr_frozen_state
direction = 90
return;
}
}
switch room
{
case rm_dalvshouse:
switch global.lastroom
{
case "rm_dalvroomhall":
instance_create(335, 110, obj_dalv2)
with (obj_dalv2)
{
image_alpha = 1
direction = 180
path_speed = 3
}
autowalk_direction = "nothing"
state = gml_Script_scr_frozen_state
obj_dalv2.alarm[0] = 30
break
case "rm_dalvhallway":
autowalk_direction = "nothing"
state = gml_Script_scr_normal_state
break
default:
autowalk_direction = "nothing"
}
break
case 39:
switch global.lastroom
{
case "rm_dalvshouse":
instance_create(-20, 140, obj_dalv2)
with (obj_dalv2)
{
image_alpha = 1
direction = 0
path_speed = 3
}
autowalk_direction = "nothing"
state = gml_Script_scr_frozen_state
obj_dalv2.alarm[0] = 30
break
case "rm_dalvsroom":
autowalk_direction = "nothing"
state = gml_Script_scr_normal_state
break
}
break
case 41:
if (autowalk_direction == "left")
{
clover_walk_backwards = false
direction = 0
}
else if (autowalk_direction == "right")
direction = 90
autowalk_direction = "nothing"
state = gml_Script_scr_normal_state
break
... |
31 |
break |
32 |
default: |
33 |
autowalk_direction = "nothing" |
34 |
} |
35 |
|
36 |
break |
37 |
case 36: |
38 |
var _temp_local_var_5 = global.lastroom |
39 |
autowalk_direction = "nothing" |
40 |
break |
41 |
case 40: |
42 |
var _temp_local_var_6 = global.lastroom |
43 |
autowalk_direction = "nothing" |
44 |
break |
45 |
default: |
46 |
autowalk_direction = "nothing" |
47 |
} |
48 |
|
49 |
break |
50 |
default: |
51 |
autowalk_direction = "nothing" |
52 |
} |
53 |
|
54 |
autowalk_direction_no_loop = true |
55 |
get_last_room_no_loop = false |
56 |
} |