|
1
|
if (scr_sideb_get_phasescr_sideb_get_phase
function scr_sideb_get_phase()
{
var phase = 0;
if (global.flag[916 snowgrave_fail] == 0)
{
if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4)
phase = 1;
if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7)
phase = 2;
if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20)
phase = 3;
if (global.flag[915 snowgrave_plot] >= 20)
phase = 4;
}
return phase;
} () != 3)
|
|
2
|
{
|
|
3
|
con = -1;
|
|
4
|
customcon = 0;
|
|
5
|
if (global.chapter != 2 || global.plot >= 125)
|
|
6
|
{
|
|
7
|
instance_destroy();
|
|
8
|
}
|
|
9
|
else
|
|
10
|
{
|
|
11
|
berdly_marker = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (680, 165, spr_berdly_walk_left_dw);
|
|
12
|
with (berdly_marker)
|
|
13
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
14
|
berdly_exit = false;
|
|
15
|
berdly_shadow = 0;
|
|
16
|
susie_exit = false;
|
|
17
|
susie_shadow = 0;
|
|
18
|
}
|
|
19
|
door = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (590, 80, spr_dw_mansion_door_open);
|
|
20
|
door.depth = 999999;
|
|
21
|
bookcase_x = (global.flag[392 3f_bookcase_override] == 0 && global.plot < 150) ? 590 : 520;
|
|
22
|
bookcase = instance_create(bookcase_x, 80, obj_npc_sign);
|
|
23
|
bookcase.sprite_index = spr_dw_mansion_bookcase;
|
|
24
|
bookcase.depth = 899999;
|
|
25
|
door_left = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (250, 80, spr_dw_mansion_door_open);
|
|
26
|
door_left.depth = 999999;
|
|
27
|
bookcase_x_left = (global.plot >= 150) ? 180 : 250;
|
|
28
|
bookcase_left = instance_create(bookcase_x_left, 80, obj_npc_sign);
|
|
29
|
bookcase_left.sprite_index = spr_dw_mansion_bookcase;
|
|
30
|
bookcase_left.depth = 899999;
|
|
31
|
if (global.plot >= 150)
|
|
32
|
{
|
|
33
|
var sign_1f = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (250, 40, spr_mansion_floor_sign);
|
|
34
|
sign_1f.image_speed = 0;
|
|
35
|
with (sign_1f)
|
|
36
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
37
|
var floor_dir_1f = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (250, 0, bg_dw_mansion_floor_direction);
|
|
38
|
floor_dir_1f.image_speed = 0;
|
|
39
|
floor_dir_1f.image_index = 1;
|
|
40
|
with (floor_dir_1f)
|
|
41
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
42
|
var sign_4f = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (590, 40, spr_mansion_floor_sign);
|
|
43
|
sign_4f.image_speed = 0;
|
|
44
|
sign_4f.image_index = 3;
|
|
45
|
with (sign_4f)
|
|
46
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
47
|
var floor_dir_4f = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (590, 0, bg_dw_mansion_floor_direction);
|
|
48
|
floor_dir_4f.image_speed = 0;
|
|
49
|
with (floor_dir_4f)
|
|
50
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
51
|
}
|
|
52
|
hide_entrance = false;
|
|
53
|
if (!scr_havecharscr_havechar
function scr_havechar(arg0)
{
var checker = arg0;
if (checker == "susie" || checker == "su" || checker == "s")
checker = 2;
if (checker == "ralsei" || checker == "ra" || checker == "r")
checker = 3;
if (checker == "noelle" || checker == "no" || checker == "n")
checker = 4;
_rreturn = 0;
if (global.char[0] == checker)
_rreturn = 1;
if (global.char[1] == checker)
_rreturn = 1;
if (global.char[2] == checker)
_rreturn = 1;
return _rreturn;
} (2))
|
|
54
|
{
|
|
55
|
layer_set_visible("Tiles_ExitBlock", 1);
|
|
56
|
var exit_collider = instance_create(240, 360, obj_soliddark);
|
|
57
|
exit_collider.image_xscale = 2;
|
|
58
|
}
|
|
59
|
if (global.flag[345 seen_toilet_statue] == 1)
|
|
60
|
{
|
|
61
|
var icon_npc = instance_create(1047, 150, obj_npc_room);
|
|
62
|
icon_npc.sprite_index = spr_npc_iconman;
|
|
63
|
}
|
|
64
|
}
|