|
1
|
con = -1;
|
|
2
|
customcon = 0;
|
|
3
|
if (global.chapter != 2)
|
|
4
|
{
|
|
5
|
instance_destroy();
|
|
6
|
}
|
|
7
|
else if (global.plot < 150)
|
|
8
|
{
|
|
9
|
layer_set_visible("TILES_Mansion_Hide_1", false);
|
|
10
|
layer_set_visible("TILES_Mansion_Hide_2", false);
|
|
11
|
if (!snd_is_playing(global.currentsong[1]))
|
|
12
|
{
|
|
13
|
global.currentsong[0] = snd_init("acid_tunnel.ogg");
|
|
14
|
global.currentsong[1] = mus_loop(global.currentsong[0]);
|
|
15
|
}
|
|
16
|
instance_deactivate_object(obj_doorB);
|
|
17
|
obj_mainchara.x = -100;
|
|
18
|
scr_losecharscr_losechar
function scr_losechar()
{
global.char[2] = 0;
global.char[1] = 0;
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
global.submenu = 0;
global.charselect = -1;
for (i = 0; i < 36; i += 1)
global.submenucoord[i] = 0;
} ();
|
|
19
|
if (instance_exists(obj_caterpillarchara))
|
|
20
|
instance_destroy(obj_caterpillarchara);
|
|
21
|
scr_getcharscr_getchar
function scr_getchar(arg0)
{
getchar = 0;
if (global.char[0] == 0)
{
global.char[0] = arg0;
getchar = 1;
}
if (global.char[1] == 0 && getchar == 0)
{
global.char[1] = arg0;
getchar = 1;
}
if (global.char[2] == 0 && getchar == 0)
{
global.char[2] = arg0;
getchar = 1;
}
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
havechar[3] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
if (global.char[i] == 4)
{
havechar[3] = 1;
charpos[3] = i;
}
}
}
} (3);
|
|
22
|
scr_makecaterpillarscr_makecaterpillar
function scr_makecaterpillar(arg0, arg1, arg2, arg3)
{
global.cinstance[arg3] = instance_create(arg0, arg1, obj_caterpillarchara);
global.cinstance[arg3].target = 12 + (arg3 * 12);
if (arg2 == 3)
{
with (global.cinstance[arg3])
{
usprite = spr_ralseiu;
dsprite = spr_ralseid;
rsprite = spr_ralseir;
lsprite = spr_ralseil;
if (global.chapter >= 2)
{
name = "ralsei";
usprite = spr_ralsei_walk_up;
dsprite = spr_ralsei_walk_down;
rsprite = spr_ralsei_walk_right;
lsprite = spr_ralsei_walk_left;
}
}
}
if (arg2 == 4)
{
with (global.cinstance[arg3])
{
name = "noelle";
usprite = spr_noelle_walk_up_dw;
dsprite = spr_noelle_walk_down_dw;
rsprite = spr_noelle_walk_right_dw;
lsprite = spr_noelle_walk_left_dw;
if (global.chapter == 2 && global.plot == 95)
{
dsprite = spr_noelle_walk_down_blush_dw;
rsprite = spr_noelle_walk_right_blush_dw;
lsprite = spr_noelle_walk_left_blush_dw;
}
}
}
if (arg2 == 5)
{
with (global.cinstance[arg3])
{
name = "berdly";
usprite = spr_berdly_walk_up_dw;
dsprite = spr_berdly_walk_down_dw;
rsprite = spr_berdly_walk_right_dw;
lsprite = spr_berdly_walk_left_dw;
}
}
if (arg2 == 6)
{
with (global.cinstance[arg3])
{
name = "starwalker";
usprite = spr_npc_originalstarwalker;
dsprite = spr_npc_originalstarwalker;
rsprite = spr_npc_originalstarwalker;
lsprite = spr_npc_originalstarwalker;
}
}
return global.cinstance[arg3];
} (-100, obj_mainchara.y, 3, 0);
|
|
23
|
global.facing = 1;
|
|
24
|
swanboat = instance_create(-200, 140, obj_queencar);
|
|
25
|
with (swanboat)
|
|
26
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
27
|
swanboat.con = 1;
|
|
28
|
swanboat.pause_y_move = true;
|
|
29
|
swanboat.pause_auto_talk = true;
|
|
30
|
actor_shadow = 0;
|
|
31
|
inside_tunnel = true;
|
|
32
|
swan_shadow = 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;
} (-200, swanboat.y, spr_swanboat_shadow);
|
|
33
|
swan_shadow.image_speed = swanboat.image_speed;
|
|
34
|
swan_shadow.image_alpha = 0.5;
|
|
35
|
adjust_actors = true;
|
|
36
|
remove_shadow = false;
|
|
37
|
camera = 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;
} (1794, 60, spr_dw_mansion_camera);
|
|
38
|
with (camera)
|
|
39
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
40
|
ralsei_convo = 0;
|
|
41
|
ralsei_talk_timer = 0;
|
|
42
|
choice_text_timer = 0;
|
|
43
|
loopacid = false;
|
|
44
|
shiftacid = false;
|
|
45
|
shift_islands = false;
|
|
46
|
shift_islands_timer = 0;
|
|
47
|
arrive_timer = 0;
|
|
48
|
remove_island_obj = false;
|
|
49
|
set_flags_complete = false;
|
|
50
|
rouxls_island = false;
|
|
51
|
release_rouxls = false;
|
|
52
|
rouxls_appear = -1;
|
|
53
|
rouxls_appear_timer = 0;
|
|
54
|
rouxls_power_up = false;
|
|
55
|
rouxls_power_up_cancel = false;
|
|
56
|
rouxls_talk_timer = 0;
|
|
57
|
blackall = 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;
} (-10, -10, spr_pixel_white);
|
|
58
|
blackall.image_xscale = 999;
|
|
59
|
blackall.image_yscale = 999;
|
|
60
|
blackall.depth = 700000;
|
|
61
|
blackall.image_blend = c_black;
|
|
62
|
blackall.image_alpha = 0;
|
|
63
|
whiteall = 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;
} (-10, -10, spr_pixel_white);
|
|
64
|
whiteall.image_xscale = 999;
|
|
65
|
whiteall.image_yscale = 999;
|
|
66
|
whiteall.depth = 0;
|
|
67
|
whiteall.image_alpha = 0;
|
|
68
|
duckmode = global.flag[220 thrash_machine_head] == 3 && global.flag[221 thrash_machine_body] == 3 && global.flag[222 thrash_machine_shoe] == 3;
|
|
69
|
take_photo = false;
|
|
70
|
photocon = 0;
|
|
71
|
leave_timer = 0;
|
|
72
|
remove_collider = false;
|
|
73
|
explosion = false;
|
|
74
|
explodetimer = 0;
|
|
75
|
finish_thrash = false;
|
|
76
|
simtown_xpos = 760;
|
|
77
|
swan_swap = 0;
|
|
78
|
swan_depth = 0;
|
|
79
|
tile1 = instance_create(simtown_xpos + 160, cameray() + 80, obj_simtown_landmaker);
|
|
80
|
tile1.image_xscale = 8;
|
|
81
|
tile2 = instance_create(simtown_xpos + 160, cameray() + 120, obj_simtown_landmaker);
|
|
82
|
tile2.image_xscale = 8;
|
|
83
|
tile3 = instance_create(simtown_xpos + 240, cameray() + 160, obj_simtown_landmaker);
|
|
84
|
tile3.image_xscale = 3;
|
|
85
|
tile4 = instance_create(simtown_xpos + 280, cameray() + 200, obj_simtown_landmaker);
|
|
86
|
tile4.image_xscale = 3;
|
|
87
|
tile5 = instance_create(simtown_xpos + 160, cameray() + 240, obj_simtown_landmaker);
|
|
88
|
tile5.image_xscale = 8;
|
|
89
|
tile6 = instance_create(simtown_xpos + 160, cameray() + 280, obj_simtown_landmaker);
|
|
90
|
tile6.image_xscale = 8;
|
|
91
|
with (obj_simtown_landmaker)
|
|
92
|
visible = 0;
|
|
93
|
simcity = instance_create(simtown_xpos, 0, obj_rouxls_simtown);
|
|
94
|
}
|
|
95
|
else
|
|
96
|
{
|
|
97
|
rouxls_talk_timer = 0;
|
|
98
|
swanboat = instance_create(2525, 190, obj_npc_room_animated);
|
|
99
|
swanboat.sprite_index = spr_swanboat;
|
|
100
|
swanboat.image_speed = 0.15;
|
|
101
|
with (swanboat)
|
|
102
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
103
|
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) && global.flag[325 ralsei_photo_choice] != 4)
|
|
104
|
{
|
|
105
|
npc = instance_create(3060, 122, obj_npc_butler);
|
|
106
|
with (npc)
|
|
107
|
{
|
|
108
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
109
|
current_pal = green;
|
|
110
|
}
|
|
111
|
}
|
|
112
|
var collider_right = instance_create(2670, 198, obj_solidblock);
|
|
113
|
collider_right.image_yscale = 10;
|
|
114
|
}
|