1 |
havenoelle = 0; |
2 |
if (instance_exists(obj_caterpillarchara)) |
3 |
{ |
4 |
with (obj_caterpillarchara) |
5 |
{ |
6 |
if (name == "noelle") |
7 |
other.havenoelle = true; |
8 |
} |
9 |
} |
10 |
phase = scr_sideb_get_phasescr_sideb_get_phasefunction 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;
} (); |
11 |
trashcon = 0; |
12 |
if (global.flag[915 snowgrave_plot] > 0 && global.flag[916 snowgrave_fail] == 0) |
13 |
{ |
14 |
if (room == room_dw_city_spamton_house) |
15 |
{ |
16 |
viro = instance_create(960, 224, obj_chaseenemy); |
17 |
werewire = instance_create(416, 224, obj_chaseenemy); |
18 |
} |
19 |
} |
20 |
if (global.flag[915 snowgrave_plot] >= 1.5 && global.flag[916 snowgrave_fail] == 0) |
21 |
{ |
22 |
if (room == room_dw_city_intro) |
23 |
{ |
24 |
safe_delete(obj_npc_room); |
25 |
safe_delete(obj_npc_room_animated); |
26 |
} |
27 |
if (instance_exists(obj_city_parallaxStreet)) |
28 |
{ |
29 |
with (obj_city_parallaxStreet) |
30 |
nocars = true; |
31 |
} |
32 |
if (room == room_dw_city_traffic_1) |
33 |
{ |
34 |
safe_delete(obj_traffic_car_generator); |
35 |
safe_delete(obj_traffic_switch); |
36 |
safe_delete(obj_traffic_road_trigger); |
37 |
safe_delete(obj_npc_room); |
38 |
safe_delete(obj_npc_room_animated); |
39 |
omawaroid = instance_create(880, 160, obj_chaseenemy); |
40 |
tasque = instance_create(1680, 220, obj_chaseenemy); |
41 |
} |
42 |
} |
43 |
if (global.flag[915 snowgrave_plot] >= 1.75 && global.flag[916 snowgrave_fail] == 0) |
44 |
{ |
45 |
if (instance_exists(obj_city_parallaxStreet)) |
46 |
{ |
47 |
with (obj_city_parallaxStreet) |
48 |
nocars = true; |
49 |
} |
50 |
if (room == room_dw_city_traffic_2) |
51 |
{ |
52 |
safe_delete(obj_traffic_car_generator); |
53 |
safe_delete(obj_traffic_switch); |
54 |
safe_delete(obj_traffic_road_trigger); |
55 |
safe_delete(obj_npc_room); |
56 |
safe_delete(obj_npc_sign); |
57 |
safe_delete(obj_npc_room_animated); |
58 |
virokun = instance_create(840, 120, obj_chaseenemy); |
59 |
werewire = instance_create(1504, 80, obj_chaseenemy); |
60 |
} |
61 |
if (room == room_dw_city_mirrorfriend) |
62 |
{ |
63 |
safe_delete(obj_npc_room); |
64 |
safe_delete(obj_ch2_room_city_susie_ralsei_fun_2); |
65 |
} |
66 |
if (room == room_dw_city_roadblock) |
67 |
safe_delete(obj_npc_room_animated); |
68 |
if (room == room_dw_city_big_1) |
69 |
safe_delete(obj_npc_room); |
70 |
if (room == room_dw_city_susie_ralsei_fun_1) |
71 |
{ |
72 |
with (obj_cybercity_balloon) |
73 |
instance_destroy(); |
74 |
with (obj_ch2_susie_ralsei_fun) |
75 |
instance_destroy(); |
76 |
with (obj_readable_room1) |
77 |
instance_destroy(); |
78 |
if (instance_exists(obj_marker)) |
79 |
{ |
80 |
with (obj_marker) |
81 |
instance_destroy(); |
82 |
} |
83 |
with (obj_sprite_part_parallax_inverted) |
84 |
dontdraw = true; |
85 |
with (obj_sprite_part_parallax_example) |
86 |
dontdraw = true; |
87 |
var lay_id = layer_get_id("CarnivalSprites"); |
88 |
var spr_id = layer_sprite_get_id(lay_id, "graphic_58FD8107"); |
89 |
layer_sprite_change(spr_id, spr_carnival_tent_1); |
90 |
layer_sprite_x(spr_id, 216); |
91 |
layer_sprite_y(spr_id, -120); |
92 |
} |
93 |
} |
94 |
if (phase == 2) |
95 |
{ |
96 |
if (room == room_dw_city_traffic_1 || room == room_dw_city_traffic_2 || room == room_dw_city_traffic_3 || room == room_dw_city_roadblock || room == room_dw_city_big_1 || room == room_dw_city_big_2 || room == room_dw_city_big_3 || room == room_dw_city_mirrorfriend || room == room_dw_city_entrance) |
97 |
{ |
98 |
safe_delete(obj_traffic_car_generator); |
99 |
safe_delete(obj_traffic_road_trigger); |
100 |
safe_delete(obj_npc_sign); |
101 |
safe_delete(obj_npc_room); |
102 |
safe_delete(obj_npc_room_animated); |
103 |
safe_delete(obj_cybercity_bg_sign); |
104 |
safe_delete(obj_cybercity_bg_lightset); |
105 |
safe_delete(obj_cybercity_bg_screen); |
106 |
safe_delete(obj_ch2_room_city_susie_ralsei_fun_2); |
107 |
safe_delete(obj_welcometothecity_backinglights); |
108 |
if (instance_exists(obj_traffic_switch)) |
109 |
{ |
110 |
with (obj_traffic_switch) |
111 |
scr_createFrozenscr_createFrozenfunction scr_createFrozen(arg0)
{
frozenbody = instance_create(x, y, obj_frozennpc);
frozenbody.sprite_index = sprite_index;
frozenbody.image_index = image_index;
frozenbody.image_xscale = image_xscale;
frozenbody.image_yscale = image_yscale;
frozenbody.fresh = 1;
if (arg0 == 0)
frozenbody.skipsolid = 1;
else
frozenbody.skipsolid = 0;
frozenbody.timer = 1;
frozenbody.depth = depth;
instance_destroy();
} (1); |
112 |
} |
113 |
if (instance_exists(obj_cybercity_bg_trafficlight_shine)) |
114 |
{ |
115 |
with (obj_cybercity_bg_trafficlight_shine) |
116 |
mode = 0; |
117 |
} |
118 |
if (instance_exists(obj_sprite_part_parallax_inverted)) |
119 |
{ |
120 |
with (obj_sprite_part_parallax_inverted) |
121 |
dontdraw = true; |
122 |
} |
123 |
if (instance_exists(obj_sprite_part_parallax_example)) |
124 |
{ |
125 |
with (obj_sprite_part_parallax_example) |
126 |
dontdraw = true; |
127 |
} |
128 |
if (instance_exists(obj_cybercity_bg_carbridge)) |
129 |
{ |
130 |
with (obj_cybercity_bg_carbridge) |
131 |
dontdraw = true; |
132 |
} |
133 |
lid = layer_get_id("TILES_Sidewalk_Animated"); |
134 |
layer_set_visible(lid, 0); |
135 |
} |
136 |
if (room == room_dw_city_mice2) |
137 |
{ |
138 |
lid = layer_get_id("TILES_Sidewalk_Animated"); |
139 |
layer_set_visible(lid, 0); |
140 |
} |
141 |
if (room == room_dw_city_intro) |
142 |
{ |
143 |
if (instance_exists(obj_npc_room)) |
144 |
{ |
145 |
with (obj_npc_room) |
146 |
instance_destroy(); |
147 |
} |
148 |
if (instance_exists(obj_npc_room_animated)) |
149 |
{ |
150 |
with (obj_npc_room_animated) |
151 |
instance_destroy(); |
152 |
} |
153 |
lid = layer_get_id("TILES_Sidewalk_Animated"); |
154 |
layer_set_visible(lid, 0); |
155 |
} |
156 |
if (room == room_dw_city_traffic_3) |
157 |
{ |
158 |
instance_create(504, 386, obj_chaseenemy); |
159 |
instance_create(1314, 244, obj_chaseenemy); |
160 |
} |
161 |
if (room == room_dw_city_queen_drunk) |
162 |
{ |
163 |
with (obj_ch2_scene13) |
164 |
instance_destroy(); |
165 |
with (obj_npc_sign) |
166 |
instance_destroy(); |
167 |
instance_create(1238, 238, obj_chaseenemy); |
168 |
} |
169 |
if (room == room_dw_city_cheesemaze) |
170 |
{ |
171 |
with (obj_controller_city_cheesemaze) |
172 |
instance_destroy(); |
173 |
with (obj_mazecheese) |
174 |
instance_destroy(); |
175 |
with (obj_cybercity_bg_sign) |
176 |
instance_destroy(); |
177 |
instance_create(1480, 480, obj_chaseenemy); |
178 |
instance_create(960, 640, obj_chaseenemy); |
179 |
lid = layer_get_id("TILES_Sidewalk_Animated"); |
180 |
layer_set_visible(lid, 0); |
181 |
} |
182 |
if (room == room_dw_city_entrance) |
183 |
{ |
184 |
var lay_id = layer_get_id("Assets_WelcomeSign"); |
185 |
var spr_id = layer_sprite_get_id(lay_id, "graphic_66ADFD1"); |
186 |
layer_sprite_speed(spr_id, 0); |
187 |
lid = layer_get_id("TILES_Sidewalk_Animated"); |
188 |
layer_set_visible(lid, 0); |
189 |
} |
190 |
if (room == room_dw_city_savepoint) |
191 |
{ |
192 |
lid = layer_get_id("TILES_Sidewalk_Animated"); |
193 |
layer_set_visible(lid, 0); |
194 |
with (obj_cybercity_bg_lightset) |
195 |
instance_destroy(); |
196 |
with (obj_ch2_room_city_savepoint) |
197 |
instance_destroy(); |
198 |
with (obj_npc_room_animated) |
199 |
instance_destroy(); |
200 |
box1 = instance_create(226, 152, obj_npc_room); |
201 |
box2 = instance_create(380, 152, obj_npc_room); |
202 |
box3 = instance_create(302, 176, obj_npc_room); |
203 |
with (obj_npc_room) |
204 |
{ |
205 |
sprite_index = spr_cardboardbox; |
206 |
image_xscale = 2; |
207 |
image_yscale = 2; |
208 |
} |
209 |
box1.extflag = "left"; |
210 |
box3.extflag = "mid"; |
211 |
box2.extflag = "right"; |
212 |
} |
213 |
if (room == room_dw_city_poppup) |
214 |
{ |
215 |
with (obj_cybercity_bg_trafficlight_shine) |
216 |
mode = 0; |
217 |
with (obj_cybercity_bg_screen_dolphin) |
218 |
instance_destroy(); |
219 |
lid = layer_get_id("TILES_Sidewalk_Animated"); |
220 |
layer_set_visible(lid, 0); |
221 |
} |
222 |
if (room == room_dw_city_moss) |
223 |
{ |
224 |
lid = layer_get_id("TILES_Sidewalk_Animated"); |
225 |
layer_set_visible(lid, 0); |
226 |
} |
227 |
if (room == room_dw_city_queen_drunk) |
228 |
{ |
229 |
with (obj_doorA_musfade) |
230 |
{ |
231 |
door = instance_create(x, y, obj_doorA); |
232 |
door.image_yscale = image_xscale; |
233 |
door.image_yscale = image_yscale; |
234 |
instance_destroy(); |
235 |
} |
236 |
} |
237 |
if (room == room_dw_city_savepoint) |
238 |
{ |
239 |
with (obj_doorA_musfade) |
240 |
{ |
241 |
door = instance_create(x, y, obj_doorA); |
242 |
door.image_yscale = image_xscale; |
243 |
door.image_yscale = image_yscale; |
244 |
instance_destroy(); |
245 |
} |
246 |
with (obj_doorB_musfade) |
247 |
{ |
248 |
door = instance_create(x, y, obj_doorB); |
249 |
door.image_yscale = image_xscale; |
250 |
door.image_yscale = image_yscale; |
251 |
instance_destroy(); |
252 |
} |
253 |
} |
254 |
if (room == room_dw_city_big_3) |
255 |
{ |
256 |
with (obj_doorB_musfade) |
257 |
{ |
258 |
door = instance_create(x, y, obj_doorB); |
259 |
door.image_yscale = image_xscale; |
260 |
door.image_yscale = image_yscale; |
261 |
instance_destroy(); |
262 |
} |
263 |
} |
264 |
} |
265 |
if (phase == 3) |
266 |
{ |
267 |
if (room == room_dw_mansion_entrance) |
268 |
{ |
269 |
wigman = instance_create(600, 460, obj_npc_room); |
270 |
wigman.sprite_index = spr_npc_wig_robot; |
271 |
wigman.image_xscale = -2; |
272 |
wigman.image_yscale = 2; |
273 |
} |
274 |
if (room == room_dw_mansion_east_1f_secret) |
275 |
{ |
276 |
spamtondoor = instance_create(960, 120, obj_npc_sign); |
277 |
spamtondoor.sprite_index = spr_dw_mansion_door_spamton; |
278 |
spamtondoor.image_xscale = 1; |
279 |
spamtondoor.image_yscale = 1; |
280 |
secretdoorlocked = instance_create(240, 120, obj_npc_sign); |
281 |
secretdoorlocked.sprite_index = spr_dw_mansion_door_closed; |
282 |
secretdoorlocked.image_xscale = 1; |
283 |
secretdoorlocked.image_yscale = 1; |
284 |
safe_delete(obj_doorB); |
285 |
safe_delete(obj_doorw_musfade); |
286 |
safe_delete(obj_mansion_keygen_lock); |
287 |
safe_delete(obj_mansion_switch); |
288 |
with (obj_readable_room1) |
289 |
{ |
290 |
if (x < 220) |
291 |
instance_destroy(); |
292 |
} |
293 |
} |
294 |
if (room == room_dw_mansion_entrance || room == room_dw_mansion_east_3f || room == room_dw_mansion_east_2f_shortcut) |
295 |
{ |
296 |
with (obj_doorAny) |
297 |
doorFadeMusic = -1; |
298 |
} |
299 |
if (room == room_dw_mansion_east_2f_transformed_new) |
300 |
{ |
301 |
scr_forcefieldscr_forcefieldfunction scr_forcefield(arg0, arg1, arg2, arg3, arg4, arg5)
{
field = instance_create(arg0, arg1, obj_forcefield);
field.image_xscale = arg2;
field.image_yscale = arg3;
field.skip = arg4;
field.stayVisible = arg5;
with (field)
scr_depth();
return field;
} (760, 1000, 10, 2, 1, 0); |
302 |
with (obj_overworld_bulletarea) |
303 |
instance_destroy(); |
304 |
instance_create(860, 760, obj_queenart_red); |
305 |
with (obj_queenart_red) |
306 |
{ |
307 |
spam = instance_create(x - (sprite_width / 2), y, obj_spamtonpainting); |
308 |
spam.depth = depth; |
309 |
scr_darksize(spam); |
310 |
instance_destroy(); |
311 |
} |
312 |
with (obj_queenart_mona) |
313 |
{ |
314 |
spam = instance_create(x, y, obj_spamtonpainting); |
315 |
spam.depth = depth; |
316 |
scr_darksize(spam); |
317 |
instance_destroy(); |
318 |
} |
319 |
with (obj_npc_sign) |
320 |
instance_destroy(); |
321 |
global.flag[362 mauswheel_defeated] = 1 && global.flag[382 dining_hall_complete] == 0; |
322 |
layer_set_visible("TILES_LOCKED_DOOR", 0); |
323 |
if (instance_exists(obj_lockedDoor_mansion_east_2f_transformed_new)) |
324 |
{ |
325 |
with (obj_lockedDoor_mansion_east_2f_transformed_new) |
326 |
instance_destroy(); |
327 |
} |
328 |
kitchendoor = instance_create(640, 80, obj_npc_sign); |
329 |
kitchendoor.visible = true; |
330 |
kitchendoor.sprite_index = spr_mansiondoor; |
331 |
kitchendoor.image_xscale = 2; |
332 |
kitchendoor.image_yscale = 2; |
333 |
kitchendoor.depth = 999980; |
334 |
global.flag[395 opened_sidea_painting] = 1; |
335 |
global.flag[396 opened_sideb_painting] = 1; |
336 |
instance_create(x, y, obj_chaseenemy); |
337 |
} |
338 |
if (room == room_dw_mansion_dining3) |
339 |
{ |
340 |
with (obj_doorW) |
341 |
{ |
342 |
if (extflag == "top") |
343 |
{ |
344 |
x = 560; |
345 |
y = 120; |
346 |
} |
347 |
} |
348 |
obj_controller_dining3.weird = true; |
349 |
with (obj_readable_room1) |
350 |
instance_destroy(); |
351 |
} |
352 |
if (room == room_dw_mansion_dininghall) |
353 |
{ |
354 |
safe_delete(obj_saucer); |
355 |
safe_delete(obj_controller_dininghall); |
356 |
safe_delete(obj_scarableSwatch); |
357 |
layer_set_visible("TILES_Pathway_NoCorridors_Weird", 1); |
358 |
block = scr_forcefieldscr_forcefieldfunction scr_forcefield(arg0, arg1, arg2, arg3, arg4, arg5)
{
field = instance_create(arg0, arg1, obj_forcefield);
field.image_xscale = arg2;
field.image_yscale = arg3;
field.skip = arg4;
field.stayVisible = arg5;
with (field)
scr_depth();
return field;
} (520, 160, 2, 10, 1, 0); |
359 |
with (block) |
360 |
scr_depth(); |
361 |
} |
362 |
if (room == room_dw_mansion_east_2f_c) |
363 |
{ |
364 |
door1 = instance_create(1580, 80, obj_solidblock); |
365 |
door1.visible = true; |
366 |
door1.sprite_index = spr_dw_mansion_door_closed; |
367 |
door1.depth = 999960; |
368 |
door2 = instance_create(380, 80, obj_solidblock); |
369 |
door2.visible = true; |
370 |
door2.sprite_index = spr_dw_mansion_door_closed; |
371 |
door2.depth = 999960; |
372 |
} |
373 |
if (room == room_dw_mansion_east_2f_c_a) |
374 |
{ |
375 |
bulletarea = instance_create(120, 320, obj_overworld_bulletarea); |
376 |
bulletarea.image_xscale = 42; |
377 |
bulletarea.image_yscale = 2; |
378 |
field = scr_forcefieldscr_forcefieldfunction scr_forcefield(arg0, arg1, arg2, arg3, arg4, arg5)
{
field = instance_create(arg0, arg1, obj_forcefield);
field.image_xscale = arg2;
field.image_yscale = arg3;
field.skip = arg4;
field.stayVisible = arg5;
with (field)
scr_depth();
return field;
} (80, 280, 88, 2, 1, 1); |
379 |
field.depth = 800000; |
380 |
with (obj_mansion_vase) |
381 |
instance_destroy(); |
382 |
with (obj_ch2_room_mansion_east_2f_c_a) |
383 |
instance_destroy(); |
384 |
with (obj_saucer) |
385 |
instance_destroy(); |
386 |
} |
387 |
if (room == room_dw_mansion_east_2f_d) |
388 |
{ |
389 |
with (obj_overworld_bulletarea) |
390 |
instance_destroy(); |
391 |
with (obj_queenart_mona) |
392 |
instance_destroy(); |
393 |
obj_queenstatue_parallax.image_alpha = 0.15; |
394 |
if (global.flag[542 encount_task_manager] == 0) |
395 |
instance_create(560, 160, obj_chaseenemy); |
396 |
} |
397 |
if (room == room_dw_mansion_east_3f) |
398 |
{ |
399 |
with (obj_ch2_room_mansion_3f) |
400 |
instance_destroy(); |
401 |
global.plot = 160; |
402 |
global.flag[392 3f_bookcase_override] = 1; |
403 |
bathroomdoor = instance_create(960, 80, obj_solidblock); |
404 |
bathroomdoor.visible = true; |
405 |
bathroomdoor.sprite_index = spr_mansiondoor; |
406 |
bathroomdoor.image_xscale = 2; |
407 |
bathroomdoor.image_yscale = 2; |
408 |
bathroomdoor.depth = 899980; |
409 |
door = scr_dark_markerscr_dark_markerfunction 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); |
410 |
door.depth = 899980; |
411 |
door_left = scr_dark_markerscr_dark_markerfunction 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); |
412 |
door_left.depth = 899980; |
413 |
} |
414 |
if (room == room_dw_mansion_acid_tunnel) |
415 |
{ |
416 |
with (obj_npc_sign) |
417 |
instance_destroy(); |
418 |
} |
419 |
if (room == room_dw_mansion_east_3f_projection) |
420 |
{ |
421 |
with (obj_npc_butler) |
422 |
instance_destroy(); |
423 |
with (obj_shadowMaker) |
424 |
instance_destroy(); |
425 |
with (obj_projector_footage) |
426 |
instance_destroy(); |
427 |
with (obj_readable_room1) |
428 |
instance_destroy(); |
429 |
instance_create(255, 287, obj_chaseenemy); |
430 |
} |
431 |
if (room == room_dw_mansion_east_4f_b) |
432 |
field = scr_forcefieldscr_forcefieldfunction scr_forcefield(arg0, arg1, arg2, arg3, arg4, arg5)
{
field = instance_create(arg0, arg1, obj_forcefield);
field.image_xscale = arg2;
field.image_yscale = arg3;
field.skip = arg4;
field.stayVisible = arg5;
with (field)
scr_depth();
return field;
} (40, 280, 2, 8, 1, 0); |
433 |
if (room == room_dw_mansion_east_teacup_4) |
434 |
{ |
435 |
with (obj_teacup) |
436 |
uniqueRideExperience = 0; |
437 |
} |
438 |
} |
439 |
if (phase != 3) |
440 |
{ |
441 |
if (room == room_dw_mansion_east_2f_c || room == room_dw_mansion_east_2f_c_a) |
442 |
{ |
443 |
with (obj_hangplug) |
444 |
instance_destroy(); |
445 |
} |
446 |
if (room == room_dw_mansion_entrance) |
447 |
{ |
448 |
with (obj_cybercity_bg_screen) |
449 |
instance_destroy(); |
450 |
with (obj_queenscreen) |
451 |
instance_destroy(); |
452 |
} |
453 |
if (room == room_dw_mansion_dining3) |
454 |
{ |
455 |
with (obj_mazepipis) |
456 |
instance_destroy(); |
457 |
} |
458 |
if (room == room_dw_mansion_dininghall) |
459 |
{ |
460 |
safe_delete(obj_overworld_bulletarea); |
461 |
safe_delete(obj_pipisFireworkGenerator); |
462 |
} |
463 |
} |
464 |
encountercheck = 0; |
465 |
lastphase = global.flag[915 snowgrave_plot]; |
466 |
phasechange = false; |
467 |
init = 0; |
468 |
failstate = global.flag[916 snowgrave_fail]; |
469 |
if (global.flag[916 snowgrave_fail] == 1 && global.flag[915 snowgrave_plot] >= 5 && global.plot >= 72 && room == room_dw_city_cheesemaze) |
470 |
{ |
471 |
global.flag[360 did_cheese_fight] = 1; |
472 |
with (obj_mazecheese) |
473 |
instance_destroy(); |
474 |
} |
475 |
image_alpha = 0; |