|
1
|
var xmove = 280;
|
|
2
|
con = 0;
|
|
3
|
timer = 0;
|
|
4
|
camcontrol = false;
|
|
5
|
camx = camerax();
|
|
6
|
camy = cameray();
|
|
7
|
crblock = 0;
|
|
8
|
console = instance_find(obj_b3bs_console, 0);
|
|
9
|
lawnmower = instance_create(1248 + xmove, 224, obj_board_lawnmower);
|
|
10
|
lawnmower.depth = 99900;
|
|
11
|
pynpc = 0;
|
|
12
|
scr_setpartyscr_setparty
function scr_setparty(arg0, arg1, arg2)
{
var kris = obj_mainchara;
var slot = 0;
var __make = true;
if (!i_ex(kris))
__make = false;
scr_losechar();
safe_delete(obj_caterpillarchara);
if (arg0 == true)
{
scr_getchar(2);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 2, slot))
{
halign = (global.darkzone == 0) ? 3 : 6;
valign = (global.darkzone == 0) ? 6 : 16;
x -= halign;
y -= valign;
}
}
slot++;
}
if (arg1 == true)
{
scr_getchar(3);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 3, slot))
{
halign = 2;
valign = 12;
x -= halign;
y -= valign;
}
}
slot++;
}
if (arg2 == true)
{
scr_getchar(4);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 4, slot))
{
halign = (global.darkzone == 0) ? 2 : 4;
valign = (global.darkzone == 0) ? 9 : 18;
x -= halign;
y -= valign;
}
}
slot++;
}
} (1, 1, 0);
|
|
13
|
var populate = true;
|
|
14
|
if (populate)
|
|
15
|
{
|
|
16
|
var xoffset = -64;
|
|
17
|
for (var i = 0; i < 15; i++)
|
|
18
|
{
|
|
19
|
if (i != 13)
|
|
20
|
{
|
|
21
|
consolemarker[i] = 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;
} (xoffset + xmove + 250 + (78 * i), 268, spr_ch3_dw_b3bs_console);
|
|
22
|
consolemarker[i].image_index = 1;
|
|
23
|
consolemarker[i].image_speed = 0;
|
|
24
|
consolemarker[i].depth = 97000;
|
|
25
|
if (i != 7 && i != 8)
|
|
26
|
{
|
|
27
|
sadshad[i] = instance_create(xoffset + xmove + 252 + (78 * i), 242, obj_npc_room);
|
|
28
|
sadshad[i].sprite_index = spr_shadowman_playgamesad;
|
|
29
|
sadshad[i].extflag = "sadshad";
|
|
30
|
}
|
|
31
|
boardshad[i] = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (xoffset + xmove + 264 + (78 * i), 164, spr_dw_b3bs_sadshadowguys, 0.05);
|
|
32
|
with (boardshad[i])
|
|
33
|
{
|
|
34
|
image_index = i * pi * 4;
|
|
35
|
image_speed += (((i % 2) == 0) * 0.01);
|
|
36
|
}
|
|
37
|
}
|
|
38
|
}
|
|
39
|
pip = instance_create(1446 + xmove, 238, obj_npc_room);
|
|
40
|
with (pip)
|
|
41
|
{
|
|
42
|
extflag = "pip";
|
|
43
|
sprite_index = spr_npc_pippins;
|
|
44
|
}
|
|
45
|
var xx = 750 + xmove;
|
|
46
|
var yy = 98;
|
|
47
|
var xspace = 32;
|
|
48
|
var yspace = 72;
|
|
49
|
xoffset = 0;
|
|
50
|
pyramid[9] = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} ((xx + (xspace * 0)) - xoffset, yy + (yspace * -1), spr_shadowman_playgamesad, 2, 2, 0, 0, c_white, 96986);
|
|
51
|
xoffset = 4;
|
|
52
|
pyramid[0] = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} ((xx + (xspace * 0)) - xoffset, yy + (yspace * 0), spr_shadowman_playgamesad, 2, 2, 0, 0, c_white, 96985);
|
|
53
|
pyramid[8] = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} ((xx + (xspace * 1)) - xoffset, yy + (yspace * 0), spr_shadowman_playgamesad, 2, 2, 0, 0, c_white, 96985);
|
|
54
|
xoffset = 16;
|
|
55
|
pyramid[1] = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} ((xx + (xspace * 0)) - xoffset, yy + (yspace * 1), spr_shadowman_playgamesad, 2, 2, 0, 0, c_white, 96984);
|
|
56
|
pyramid[2] = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} ((xx + (xspace * 1)) - xoffset, yy + (yspace * 1), spr_shadowman_playgamesad, 2, 2, 0, 0, c_white, 96984);
|
|
57
|
pyramid[7] = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} ((xx + (xspace * 2)) - xoffset, yy + (yspace * 1), spr_shadowman_playgamesad, 2, 2, 0, 0, c_white, 96984);
|
|
58
|
xoffset = 26;
|
|
59
|
pyramid[3] = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} ((xx + (xspace * 0)) - xoffset, yy + (yspace * 2), spr_shadowman_playgamesad, 2, 2, 0, 0, c_white, 96980);
|
|
60
|
pyramid[4] = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} ((xx + (xspace * 1)) - xoffset, yy + (yspace * 2), spr_shadowman_playgamesad, 2, 2, 0, 0, c_white, 96980);
|
|
61
|
pyramid[5] = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} ((xx + (xspace * 2)) - xoffset, yy + (yspace * 2), spr_shadowman_playgamesad, 2, 2, 0, 0, c_white, 96980);
|
|
62
|
pyramid[6] = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} ((xx + (xspace * 3)) - xoffset, yy + (yspace * 2), spr_shadowman_playgamesad, 2, 2, 0, 0, c_white, 96980);
|
|
63
|
pynpc = instance_create(pyramid[3].x + 12, pyramid[3].y + 66, obj_trigger_interact);
|
|
64
|
with (pynpc)
|
|
65
|
{
|
|
66
|
sprite_index = spr_solidblock;
|
|
67
|
issolid = true;
|
|
68
|
scr_sizeexactscr_sizeexact
function scr_sizeexact(arg0, arg1)
{
if (!sprite_exists(sprite_index))
{
debug_message("Can't size, no sprite");
exit;
}
var _w = sprite_get_width(sprite_index);
var _h = sprite_get_width(sprite_index);
image_xscale = arg0 / _w;
image_yscale = arg1 / _h;
} (154, 36);
|
|
69
|
strict = true;
|
|
70
|
}
|
|
71
|
}
|
|
72
|
pyjump = 0;
|
|
73
|
pytimer = 0;
|
|
74
|
px = pyramid[0].x;
|
|
75
|
py = pyramid[0].y;
|
|
76
|
py_lockpos = false;
|
|
77
|
happyshad = [];
|
|
78
|
killhappyshads = false;
|
|
79
|
killcount = 0;
|
|
80
|
pyupdate = 0;
|
|
81
|
loner = 0;
|
|
82
|
shine = 0;
|
|
83
|
endshine = 0;
|
|
84
|
siner = 0;
|
|
85
|
if (global.flag[1147 lawnmower_beat_paper] != 0)
|
|
86
|
{
|
|
87
|
crblock = 1;
|
|
88
|
with (obj_dw_ch3_b3bs_office_paperstack)
|
|
89
|
{
|
|
90
|
if (x < (1242 + xmove))
|
|
91
|
instance_destroy();
|
|
92
|
}
|
|
93
|
safe_delete(lawnmower);
|
|
94
|
with (obj_npc_room)
|
|
95
|
{
|
|
96
|
if (extflag == "sadshad")
|
|
97
|
instance_destroy();
|
|
98
|
}
|
|
99
|
with (obj_board_marker)
|
|
100
|
instance_destroy();
|
|
101
|
with (obj_marker)
|
|
102
|
{
|
|
103
|
if (sprite_index == spr_shadowman_playgamesad)
|
|
104
|
instance_destroy();
|
|
105
|
}
|
|
106
|
}
|
|
107
|
else if (global.flag[1055 sword_route_progress] < 6)
|
|
108
|
{
|
|
109
|
shine = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} (1494, 290, spr_shine, 2, 2);
|
|
110
|
with (shine)
|
|
111
|
scr_depthscr_depth
function scr_depth()
{
if (argument_count > 0)
{
with (argument0)
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
else
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
} ();
|
|
112
|
}
|
|
113
|
pydepth = -1;
|
|
114
|
if (scr_enemylostcheck("shadowguy") && global.flag[1147 lawnmower_beat_paper] == 0)
|
|
115
|
{
|
|
116
|
con = 30;
|
|
117
|
with (obj_npc_room)
|
|
118
|
{
|
|
119
|
if (extflag == "sadshad")
|
|
120
|
instance_destroy();
|
|
121
|
}
|
|
122
|
with (obj_board_marker)
|
|
123
|
instance_destroy();
|
|
124
|
with (obj_marker)
|
|
125
|
{
|
|
126
|
if (sprite_index == spr_shadowman_playgamesad)
|
|
127
|
instance_destroy();
|
|
128
|
}
|
|
129
|
}
|
|
130
|
dooffset = 0;
|
|
131
|
shadhere = true;
|
|
132
|
if (scr_enemylostcheck("shadowguy") || global.flag[1147 lawnmower_beat_paper] > 1)
|
|
133
|
shadhere = false;
|
|
134
|
if (global.flag[1055 sword_route_progress] >= 6)
|
|
135
|
{
|
|
136
|
dooffset = true;
|
|
137
|
if (global.flag[1147 lawnmower_beat_paper] != 0)
|
|
138
|
con = -20;
|
|
139
|
tvBlackOverlay = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} (408, 96, spr_pxwhite, 1280, 160, undefined, undefined, c_black, 99801);
|
|
140
|
}
|
|
141
|
if (global.flag[1147 lawnmower_beat_paper] != 0 || global.flag[654 recruit_shadowguy] == -1)
|
|
142
|
safe_delete(pynpc);
|