|
1
|
scr_board_populatevarsscr_board_populatevars
function scr_board_populatevars()
{
if (!variable_instance_exists(id, "kris"))
kris = 0;
if (!variable_instance_exists(id, "susie"))
susie = 0;
if (!variable_instance_exists(id, "ralsei"))
ralsei = 0;
if (kris == 0)
{
with (obj_mainchara_board)
{
if (name == "kris")
other.kris = id;
}
}
if (ralsei == 0)
{
with (obj_mainchara_board)
{
if (name == "ralsei")
other.ralsei = id;
}
}
if (susie == 0)
{
with (obj_mainchara_board)
{
if (name == "susie")
other.susie = id;
}
}
} ();
|
|
2
|
scr_gameshow_populatevarsscr_gameshow_populatevars
function scr_gameshow_populatevars()
{
if (!variable_instance_exists(id, "kr_real"))
kr_real = 0;
if (!variable_instance_exists(id, "su_real"))
su_real = 0;
if (!variable_instance_exists(id, "ra_real"))
ra_real = 0;
if (!variable_instance_exists(id, "tenna"))
tenna = 0;
if (kr_real == 0)
{
with (obj_mainchara)
other.kr_real = id;
}
if (su_real == 0)
{
with (obj_caterpillarchara)
{
if (name == "susie")
other.su_real = id;
}
}
if (ra_real == 0)
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
other.ra_real = id;
}
}
if (tenna == 0)
{
with (obj_actor_tenna)
other.tenna = id;
}
} ();
|
|
3
|
if (active)
|
|
4
|
{
|
|
5
|
if (con == 0 && obj_board_camera.con == 0)
|
|
6
|
{
|
|
7
|
var roomdelay = 0;
|
|
8
|
var adddelay = 30;
|
|
9
|
timer++;
|
|
10
|
var doanyways = false;
|
|
11
|
checkskip(0, 15 + roomdelay);
|
|
12
|
if (timer == (1 + roomdelay) || doanyways)
|
|
13
|
ralsei.follow = false;
|
|
14
|
if (timer == (8 + roomdelay) || doanyways)
|
|
15
|
{
|
|
16
|
scr_pathfind_to_pointscr_pathfind_to_point
function scr_pathfind_to_point(arg0, arg1, arg2)
{
var __destx = arg1 + 16;
var __desty = arg2 + 16;
if (arg1 < 12 && arg2 < 8)
{
__destx = 128 + (32 * arg1) + 16;
__desty = 64 + (32 * arg2) + 16;
}
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
is_moving_timer = 0;
is_moving = true;
path_target_x = __destx;
path_target_y = __desty;
follow = false;
if (argument_count == 4)
{
if (argument3 != -1)
path_end_facing = argument3;
}
if (argument_count == 5)
{
if (argument4 != -1)
allow_diagonals = argument4;
}
}
}
} ("susie", 5, 1.5, 2);
|
|
17
|
with (obj_mainchara_board)
|
|
18
|
{
|
|
19
|
if (name == "susie")
|
|
20
|
sleepy = true;
|
|
21
|
}
|
|
22
|
}
|
|
23
|
if (timer == (14 + roomdelay) || doanyways)
|
|
24
|
scr_pathfind_to_pointscr_pathfind_to_point
function scr_pathfind_to_point(arg0, arg1, arg2)
{
var __destx = arg1 + 16;
var __desty = arg2 + 16;
if (arg1 < 12 && arg2 < 8)
{
__destx = 128 + (32 * arg1) + 16;
__desty = 64 + (32 * arg2) + 16;
}
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
is_moving_timer = 0;
is_moving = true;
path_target_x = __destx;
path_target_y = __desty;
follow = false;
if (argument_count == 4)
{
if (argument3 != -1)
path_end_facing = argument3;
}
if (argument_count == 5)
{
if (argument4 != -1)
allow_diagonals = argument4;
}
}
}
} ("ralsei", 6, 1.5, 2);
|
|
25
|
if (timer == (15 + roomdelay))
|
|
26
|
{
|
|
27
|
tenna.bounce = 1;
|
|
28
|
var tetalk = stringsetloc(10 years of fan mail are past this door!"10 years of fan mail are past this door!", "obj_b1mailroom_intro_slash_Step_0_gml_32_0" );
|
|
29
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (tetalk, "tenna", 2, 91 + adddelay);
|
|
30
|
}
|
|
31
|
checkskip(15 + roomdelay + adddelay, 105 + roomdelay + adddelay);
|
|
32
|
if (timer == (105 + roomdelay + adddelay))
|
|
33
|
{
|
|
34
|
tenna.bounce = 1;
|
|
35
|
var tetalk = stringsetloc(Ready!? Mike, open up that door!!!"Ready!? Mike, open up that door!!!", "obj_b1mailroom_intro_slash_Step_0_gml_38_0" );
|
|
36
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (tetalk, "tenna", 2, 60);
|
|
37
|
}
|
|
38
|
checkskip(105 + roomdelay + adddelay, 135 + roomdelay + adddelay);
|
|
39
|
if (timer == (135 + roomdelay + adddelay))
|
|
40
|
{
|
|
41
|
with (obj_board_maildoor)
|
|
42
|
con = 1;
|
|
43
|
}
|
|
44
|
if (camwatch == 0)
|
|
45
|
{
|
|
46
|
if (obj_board_camera.con == 0)
|
|
47
|
camwatch = 1;
|
|
48
|
}
|
|
49
|
if (camwatch == 1)
|
|
50
|
{
|
|
51
|
if (obj_board_camera.shift == "up")
|
|
52
|
{
|
|
53
|
global.flag[1115 mailroom_status] = 3;
|
|
54
|
con = 2;
|
|
55
|
camwatch = 2;
|
|
56
|
timer = 0;
|
|
57
|
}
|
|
58
|
if (obj_board_camera.shift == "warp")
|
|
59
|
{
|
|
60
|
global.flag[1115 mailroom_status] = 2;
|
|
61
|
obj_b1pushpyramid.abandoncon = 1;
|
|
62
|
with (obj_b1pushpyramid)
|
|
63
|
safe_delete(maildoor);
|
|
64
|
con = 99;
|
|
65
|
camwatch = 3;
|
|
66
|
timer = 0;
|
|
67
|
}
|
|
68
|
}
|
|
69
|
}
|
|
70
|
if (con == 2 && obj_board_camera.shift == "none")
|
|
71
|
con = 3;
|
|
72
|
if (con == 3 && obj_board_camera.con == 0)
|
|
73
|
{
|
|
74
|
timer++;
|
|
75
|
if (timer == 1)
|
|
76
|
{
|
|
77
|
ralsei.follow = true;
|
|
78
|
leavecon = 1;
|
|
79
|
}
|
|
80
|
if (timer == 15)
|
|
81
|
{
|
|
82
|
scr_play_recordingscr_play_recording
function scr_play_recording(arg0, arg1)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
susierecordcon = 2;
susierecordcount = 0;
susierecordstring = arg1;
susierecordsave = false;
}
}
} ("susie", "0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D0D");
|
|
83
|
with (obj_mainchara_board)
|
|
84
|
{
|
|
85
|
if (name == "susie")
|
|
86
|
sleepy = true;
|
|
87
|
}
|
|
88
|
}
|
|
89
|
if (obj_board_camera.shift == "warp")
|
|
90
|
{
|
|
91
|
con = 99;
|
|
92
|
timer = 0;
|
|
93
|
with (obj_b1pushpyramid)
|
|
94
|
safe_delete(maildoor);
|
|
95
|
}
|
|
96
|
}
|
|
97
|
}
|
|
98
|
else
|
|
99
|
{
|
|
100
|
timer = 0;
|
|
101
|
}
|
|
102
|
if (leavecon == 1)
|
|
103
|
{
|
|
104
|
leavetimer++;
|
|
105
|
if (leavetimer == 15)
|
|
106
|
{
|
|
107
|
global.flag[1024 board_transitioning?] = 1;
|
|
108
|
var sutalk = stringsetloc(Damn dude. I never got fanmail either."Damn dude. I never got fanmail either.", "obj_b1mailroom_intro_slash_Step_0_gml_96_0" );
|
|
109
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (sutalk, "susie", 2, 90);
|
|
110
|
with (su_real)
|
|
111
|
{
|
|
112
|
fun = 1;
|
|
113
|
sprite_index = rsprite;
|
|
114
|
}
|
|
115
|
}
|
|
116
|
if (leavetimer == 105)
|
|
117
|
{
|
|
118
|
var ratalk = stringsetloc(Huh? I'll write you some, Susie!"Huh? I'll write you some, Susie!", "obj_b1mailroom_intro_slash_Step_0_gml_99_0" );
|
|
119
|
scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 90);
|
|
120
|
with (ra_real)
|
|
121
|
{
|
|
122
|
fun = 1;
|
|
123
|
sprite_index = lsprite;
|
|
124
|
}
|
|
125
|
}
|
|
126
|
if (leavetimer == 195)
|
|
127
|
{
|
|
128
|
leavecon = 0;
|
|
129
|
global.flag[1024 board_transitioning?] = 0;
|
|
130
|
scr_resetgameshowcharacterscr_resetgameshowcharacter
function scr_resetgameshowcharacter(arg0)
{
if (room == room_dw_puzzlecloset_3)
exit;
var _name = arg0;
var _smooth = 0;
var __found = 0;
if (argument_count == 2)
_smooth = argument1;
if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all")
{
var _krx = 248;
var _kry = 400;
if (scr_swordroom())
{
_krx = 300;
_kry = 298;
}
with (obj_mainchara)
{
if (_smooth == 0)
{
setxy(_krx, _kry);
}
else
{
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
}
fun = true;
ignoredepth = true;
depth = 95240;
sprite_index = spr_krisu_dark;
image_speed = 0;
image_index = 0;
if (scr_swordroom())
{
sprite_index = spr_krisu_holdcontroller;
depth = 96260;
}
scr_darksize();
__found = 1;
}
}
if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all")
{
with (obj_caterpillarchara)
{
if (name == "susie")
{
fun = true;
ignoredepth = true;
depth = 95165;
var _sux = 140;
var _suy = 392;
if (_smooth == 0)
{
setxy(_sux, _suy);
}
else
{
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
}
sprite_index = spr_susie_walk_up_dw;
image_speed = 0;
image_index = 0;
scr_darksize();
__found = 1;
}
}
}
if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all")
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
{
fun = true;
ignoredepth = true;
depth = 95145;
var _rax = 342;
var _ray = 396;
if (_smooth == 0)
{
setxy(_rax, _ray);
}
else
{
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
}
sprite_index = spr_ralsei_walk_up;
image_speed = 0;
image_index = 0;
scr_darksize();
__found = 1;
}
}
}
if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all")
... ("susie");
|
|
131
|
scr_resetgameshowcharacterscr_resetgameshowcharacter
function scr_resetgameshowcharacter(arg0)
{
if (room == room_dw_puzzlecloset_3)
exit;
var _name = arg0;
var _smooth = 0;
var __found = 0;
if (argument_count == 2)
_smooth = argument1;
if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all")
{
var _krx = 248;
var _kry = 400;
if (scr_swordroom())
{
_krx = 300;
_kry = 298;
}
with (obj_mainchara)
{
if (_smooth == 0)
{
setxy(_krx, _kry);
}
else
{
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
}
fun = true;
ignoredepth = true;
depth = 95240;
sprite_index = spr_krisu_dark;
image_speed = 0;
image_index = 0;
if (scr_swordroom())
{
sprite_index = spr_krisu_holdcontroller;
depth = 96260;
}
scr_darksize();
__found = 1;
}
}
if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all")
{
with (obj_caterpillarchara)
{
if (name == "susie")
{
fun = true;
ignoredepth = true;
depth = 95165;
var _sux = 140;
var _suy = 392;
if (_smooth == 0)
{
setxy(_sux, _suy);
}
else
{
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
}
sprite_index = spr_susie_walk_up_dw;
image_speed = 0;
image_index = 0;
scr_darksize();
__found = 1;
}
}
}
if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all")
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
{
fun = true;
ignoredepth = true;
depth = 95145;
var _rax = 342;
var _ray = 396;
if (_smooth == 0)
{
setxy(_rax, _ray);
}
else
{
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
}
sprite_index = spr_ralsei_walk_up;
image_speed = 0;
image_index = 0;
scr_darksize();
__found = 1;
}
}
}
if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all")
... ("ralsei");
|
|
132
|
}
|
|
133
|
}
|