|
1
|
con = -1;
|
|
2
|
customcon = 0;
|
|
3
|
scr_setpartyscr_setparty
function scr_setparty(arg0 = false, arg1 = false, arg2 = false)
{
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++;
}
}
function setparty(arg0 = false, arg1 = false, arg2 = false)
{
var kris = 1198;
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))
... (1, 0, 0);
|
|
4
|
con = 0;
|
|
5
|
blackall = 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;
} (-10, -10, spr_pixel_white);
|
|
6
|
blackall.image_xscale = 999;
|
|
7
|
blackall.image_yscale = 999;
|
|
8
|
blackall.depth = -110;
|
|
9
|
blackall.image_blend = c_black;
|
|
10
|
blackall.sunshadows_exclude = true;
|
|
11
|
with (obj_npc_sign)
|
|
12
|
instance_destroy();
|
|
13
|
_table_marker_left = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (80, 135, spr_lw_beach_bg_table);
|
|
14
|
with (_table_marker_left)
|
|
15
|
depth = 960000;
|
|
16
|
_table_marker_right = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (160, 166, spr_lw_beach_bg_table);
|
|
17
|
with (_table_marker_right)
|
|
18
|
depth = 960000;
|
|
19
|
_table_collision = false;
|
|
20
|
_table_cover = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (80, 175, spr_beach_table_cover);
|
|
21
|
with (_table_cover)
|
|
22
|
{
|
|
23
|
visible = 0;
|
|
24
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
25
|
}
|
|
26
|
phone_throw = false;
|
|
27
|
phone_throw_timer = 0;
|
|
28
|
phone_thrown = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (360, 130, spr_cellphone_ground);
|
|
29
|
with (phone_thrown)
|
|
30
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
31
|
phone_thrown.sunshadows_exclude = true;
|
|
32
|
susie_ice = false;
|
|
33
|
susie_ice_flip = 0;
|
|
34
|
susie_ice_timer = 0;
|
|
35
|
susie_target_x = 0;
|
|
36
|
susie_flip = false;
|
|
37
|
ocean_sound_start = false;
|
|
38
|
ocean_sound_stop = false;
|
|
39
|
oceansong[0] = -4;
|
|
40
|
oceansong[1] = -4;
|
|
41
|
face_extended = 0;
|
|
42
|
failed_w = scr_flag_getscr_flag_get
function scr_flag_get(arg0)
{
return global.flag[arg0];
}
function scr_flag_name_get(arg0)
{
var v = global.flagname[arg0];
return is_undefined(v) ? "*unknown flag*" : v;
}
function scr_flag_get_ext(arg0, arg1, arg2 = 1)
{
if (arg1 < 0)
scr_flag_get(arg0);
else
return scr_get_bitmask_value(global.flag[arg0], arg1, arg2);
} (1743) > 0;
|
|
43
|
snd_free_all();
|
|
44
|
scene_mode = 0;
|
|
45
|
if (!scr_debugscr_debug
function scr_debug()
{
return global.debug == 1;
} ())
|
|
46
|
{
|
|
47
|
scene_mode = 0;
|
|
48
|
}
|
|
49
|
else if (scene_mode >= 1)
|
|
50
|
{
|
|
51
|
blackall.visible = 0;
|
|
52
|
if (scene_mode > 1)
|
|
53
|
phone_thrown.visible = 0;
|
|
54
|
}
|
|
55
|
w_nothing = -4;
|
|
56
|
w_nothing_active = false;
|
|
57
|
exit_attempt = false;
|
|
58
|
exit_con = 0;
|
|
59
|
exit_fall_sprite = 6845;
|
|
60
|
kris_move_timer = 0;
|
|
61
|
zorgon_mode = false;
|
|
62
|
zorgon_mode_fullspeed = false;
|
|
63
|
zorgon_controller = -4;
|
|
64
|
zorgon_exit_trigger = -4;
|
|
65
|
zorgon_beach_trigger = -4;
|
|
66
|
zorgon_exit_active = false;
|
|
67
|
if (failed_w)
|
|
68
|
{
|
|
69
|
w_nothing = instance_create(0, 0, obj_ch5_LW20W_nothing);
|
|
70
|
w_nothing.init(id);
|
|
71
|
}
|
|
72
|
|
|
73
|
create_table_colliders = function()
|
|
74
|
{
|
|
75
|
if (_table_collision)
|
|
76
|
exit;
|
|
77
|
with (_table_marker_left)
|
|
78
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
79
|
with (_table_marker_right)
|
|
80
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
81
|
var table_collider_left = instance_create(_table_marker_left.x, _table_marker_left.y + 10, obj_solidblockLight);
|
|
82
|
with (table_collider_left)
|
|
83
|
{
|
|
84
|
image_xscale = 3.3;
|
|
85
|
image_yscale = 4;
|
|
86
|
}
|
|
87
|
var table_readable_left = instance_create(_table_marker_left.x, _table_marker_left.y + 10, obj_readable_room1);
|
|
88
|
with (table_readable_left)
|
|
89
|
{
|
|
90
|
extflag = "beach_table";
|
|
91
|
image_xscale = 3.3;
|
|
92
|
image_yscale = 4;
|
|
93
|
}
|
|
94
|
var table_collider_right = instance_create(_table_marker_right.x, _table_marker_right.y + 10, obj_solidblockLight);
|
|
95
|
with (table_collider_right)
|
|
96
|
{
|
|
97
|
image_xscale = 3.3;
|
|
98
|
image_yscale = 4;
|
|
99
|
}
|
|
100
|
var table_readable_right = instance_create(_table_marker_right.x, _table_marker_right.y + 10, obj_readable_room1);
|
|
101
|
with (table_readable_right)
|
|
102
|
{
|
|
103
|
extflag = "beach_table";
|
|
104
|
image_xscale = 3.3;
|
|
105
|
image_yscale = 4;
|
|
106
|
}
|
|
107
|
};
|
|
108
|
|
|
109
|
clean_up = function()
|
|
110
|
{
|
|
111
|
face_extended = 0;
|
|
112
|
with (w_nothing)
|
|
113
|
instance_destroy();
|
|
114
|
create_table_colliders();
|
|
115
|
};
|
|
116
|
|
|
117
|
enter_zorgon = function()
|
|
118
|
{
|
|
119
|
zorgon_mode = true;
|
|
120
|
zorgon_controller = instance_create(su_actor.x, su_actor.y, obj_ch5_LW20_zorgon);
|
|
121
|
zorgon_controller.init(id);
|
|
122
|
zorgon_exit_trigger = instance_create(0, 80, obj_trigger);
|
|
123
|
with (zorgon_exit_trigger)
|
|
124
|
{
|
|
125
|
extflag = "zorgon_exit";
|
|
126
|
image_xscale = 2;
|
|
127
|
image_yscale = 12;
|
|
128
|
}
|
|
129
|
global.interact = 1;
|
|
130
|
with (obj_mainchara)
|
|
131
|
cutscene = 0;
|
|
132
|
obj_mainchara.x = kr_actor.x;
|
|
133
|
obj_mainchara.y = kr_actor.y;
|
|
134
|
with (obj_actor)
|
|
135
|
visible = 0;
|
|
136
|
zorgon_controller.enable_input();
|
|
137
|
};
|
|
138
|
|
|
139
|
disable_menu = function()
|
|
140
|
{
|
|
141
|
if (global.flag[7 disable_menu?] == 1)
|
|
142
|
exit;
|
|
143
|
global.flag[7 disable_menu?] = 1;
|
|
144
|
};
|
|
145
|
|
|
146
|
enable_menu = function()
|
|
147
|
{
|
|
148
|
if (global.flag[7 disable_menu?] == 0)
|
|
149
|
exit;
|
|
150
|
global.flag[7 disable_menu?] = 0;
|
|
151
|
};
|
|
152
|
|
|
153
|
show_nothing_overlay = function()
|
|
154
|
{
|
|
155
|
w_nothing_active = true;
|
|
156
|
audio_pause_sound(oceansong[1]);
|
|
157
|
with (w_nothing)
|
|
158
|
show_overlay();
|
|
159
|
};
|
|
160
|
|
|
161
|
show_nothing_text = function()
|
|
162
|
{
|
|
163
|
w_nothing_active = true;
|
|
164
|
with (w_nothing)
|
|
165
|
show_text();
|
|
166
|
};
|
|
167
|
|
|
168
|
trigger_event = function(arg0)
|
|
169
|
{
|
|
170
|
switch (arg0)
|
|
171
|
{
|
|
172
|
case "nothing_finished":
|
|
173
|
w_nothing_active = false;
|
|
174
|
audio_resume_sound(oceansong[1]);
|
|
175
|
break;
|
|
176
|
case "zorgon_fullspeed":
|
|
177
|
zorgon_mode_fullspeed = true;
|
|
178
|
zorgon_beach_trigger = instance_create(280, 80, obj_trigger);
|
|
179
|
with (zorgon_beach_trigger)
|
|
180
|
{
|
|
181
|
extflag = "zorgon_beach";
|
|
182
|
image_xscale = 2;
|
|
183
|
image_yscale = 12;
|
|
184
|
}
|
|
185
|
break;
|
|
186
|
}
|
|
187
|
};
|