| 1 |
if (autowalk_direction_no_loop == false) |
| 2 |
{ |
| 3 |
switch (global.flag[28 Spoken to Dalv in his house]) |
| 4 |
{ |
| 5 |
case 1: |
| 6 |
switch (room) |
| 7 |
{ |
| 8 |
case rm_dalvshouse: |
| 9 |
switch (global.lastroom) |
| 10 |
{ |
| 11 |
case "rm_dalvroomhall": |
| 12 |
with (obj_dalv2) |
| 13 |
instance_destroy(); |
| 14 |
autowalk_direction = "left"; |
| 15 |
state = scr_autowalk_state; |
| 16 |
alarm[1] = 30;gml_Object_obj_pl_Alarm_1.gmlif (instance_exists(obj_postgame_walk_blocker) || instance_exists(obj_steam_walk_blocker) || instance_exists(obj_dunes_29_geno_blocker))
{
autowalk_direction = "nothing";
state = scr_normal_state;
exit;
}
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 = scr_frozen_state;
direction = 90;
exit;
}
}
if (instance_exists(obj_doorway_blocker_dalvshouse))
{
if (obj_doorway_blocker_dalvshouse.waiter > 0)
{
clover_walk_backwards = false;
autowalk_direction = "nothing";
state = scr_frozen_state;
direction = 90;
exit;
}
}
if (instance_exists(obj_doorway_blocker_dalvsroom))
{
if (obj_doorway_blocker_dalvsroom.waiter > 0)
{
clover_walk_backwards = false;
autowalk_direction = "nothing";
state = scr_frozen_state;
direction = 90;
exit;
}
}
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 = scr_frozen_state;
obj_dalv2.alarm[0] = 30;
break;
case "rm_dalvhallway":
autowalk_direction = "nothing";
state = scr_normal_state;
break;
default:
autowalk_direction = "nothing";
}
break;
case rm_dalvroomhall:
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 = scr_frozen_state;
obj_dalv2.alarm[0] = 30;
break;
case "rm_dalvsroom":
autowalk_direction = "nothing";
state = scr_normal_state;
break;
}
break;
case rm_dalvExit_pacifist:
if (autowalk_direction == "left")
{
clover_walk_backwards = false;
direction = 0;
}
else if (autowalk_direction == "right")
{
direction = 90;
}
autowalk_direction = "nothing";
state = scr_normal_state;
break;
... |
| 17 |
break; |
| 18 |
default: |
| 19 |
autowalk_direction = "nothing"; |
| 20 |
} |
| 21 |
break; |
| 22 |
case rm_dalvroomhall: |
| 23 |
switch (global.lastroom) |
| 24 |
{ |
| 25 |
case "rm_dalvshouse": |
| 26 |
autowalk_direction = "right"; |
| 27 |
state = scr_autowalk_state; |
| 28 |
alarm[1] = 15;gml_Object_obj_pl_Alarm_1.gmlif (instance_exists(obj_postgame_walk_blocker) || instance_exists(obj_steam_walk_blocker) || instance_exists(obj_dunes_29_geno_blocker))
{
autowalk_direction = "nothing";
state = scr_normal_state;
exit;
}
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 = scr_frozen_state;
direction = 90;
exit;
}
}
if (instance_exists(obj_doorway_blocker_dalvshouse))
{
if (obj_doorway_blocker_dalvshouse.waiter > 0)
{
clover_walk_backwards = false;
autowalk_direction = "nothing";
state = scr_frozen_state;
direction = 90;
exit;
}
}
if (instance_exists(obj_doorway_blocker_dalvsroom))
{
if (obj_doorway_blocker_dalvsroom.waiter > 0)
{
clover_walk_backwards = false;
autowalk_direction = "nothing";
state = scr_frozen_state;
direction = 90;
exit;
}
}
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 = scr_frozen_state;
obj_dalv2.alarm[0] = 30;
break;
case "rm_dalvhallway":
autowalk_direction = "nothing";
state = scr_normal_state;
break;
default:
autowalk_direction = "nothing";
}
break;
case rm_dalvroomhall:
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 = scr_frozen_state;
obj_dalv2.alarm[0] = 30;
break;
case "rm_dalvsroom":
autowalk_direction = "nothing";
state = scr_normal_state;
break;
}
break;
case rm_dalvExit_pacifist:
if (autowalk_direction == "left")
{
clover_walk_backwards = false;
direction = 0;
}
else if (autowalk_direction == "right")
{
direction = 90;
}
autowalk_direction = "nothing";
state = scr_normal_state;
break;
... |
| 29 |
break; |
| 30 |
default: |
| 31 |
autowalk_direction = "nothing"; |
| 32 |
} |
| 33 |
break; |
| 34 |
case rm_dalvhallway: |
| 35 |
switch (global.lastroom) |
| 36 |
{ |
| 37 |
default: |
| 38 |
autowalk_direction = "nothing"; |
| 39 |
} |
| 40 |
break; |
| 41 |
case rm_dalvExit: |
| 42 |
switch (global.lastroom) |
| 43 |
{ |
| 44 |
default: |
| 45 |
autowalk_direction = "nothing"; |
| 46 |
} |
| 47 |
break; |
| 48 |
default: |
| 49 |
autowalk_direction = "nothing"; |
| 50 |
} |
| 51 |
break; |
| 52 |
default: |
| 53 |
autowalk_direction = "nothing"; |
| 54 |
} |
| 55 |
autowalk_direction_no_loop = true; |
| 56 |
get_last_room_no_loop = false; |
| 57 |
} |