|
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 (mypuz == 0)
|
|
4
|
{
|
|
5
|
with (obj_board_event_bridgepuzzle)
|
|
6
|
{
|
|
7
|
if (puzzleid == 21)
|
|
8
|
other.mypuz = id;
|
|
9
|
}
|
|
10
|
}
|
|
11
|
if (active == 1)
|
|
12
|
{
|
|
13
|
if (kris.boat == true && boattalk < 1 && obj_board_camera.con == 0)
|
|
14
|
{
|
|
15
|
boattalktimer++;
|
|
16
|
if (boattalktimer == 30)
|
|
17
|
{
|
|
18
|
tenna.bounce = 1;
|
|
19
|
var tetalk = stringsetloc(Nothing here! Head up to find a DOCK!"Nothing here! Head up to find a DOCK!", "obj_b2bridgeintro_slash_Step_0_gml_21_0" );
|
|
20
|
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, 140);
|
|
21
|
}
|
|
22
|
if (boattalktimer == 200)
|
|
23
|
{
|
|
24
|
tenna.bounce = 1;
|
|
25
|
var tetalk = stringsetloc(Ha ha, what's UP... DOCK!?"Ha ha, what's UP... DOCK!?", "obj_b2bridgeintro_slash_Step_0_gml_27_0" );
|
|
26
|
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, 120);
|
|
27
|
}
|
|
28
|
if (boattalktimer == 340)
|
|
29
|
{
|
|
30
|
tenna.bounce = 1;
|
|
31
|
var tetalk = stringsetloc(Okay, head north or I'll DOCK your points!"Okay, head north or I'll DOCK your points!", "obj_b2bridgeintro_slash_Step_0_gml_33_0" );
|
|
32
|
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, 90);
|
|
33
|
}
|
|
34
|
if (boattalktimer > 500 && ((boattalktimer % 30) * 4) == 0)
|
|
35
|
{
|
|
36
|
boattalk = 0.1;
|
|
37
|
var boat = 0;
|
|
38
|
with (obj_board_boat)
|
|
39
|
{
|
|
40
|
if (engaged)
|
|
41
|
{
|
|
42
|
var pointsDisplay = instance_create(centerx(), centery(), obj_board_pointsGetDisplay);
|
|
43
|
pointsDisplay.amount = -1;
|
|
44
|
if (global.flag[1044 points] == 0)
|
|
45
|
pointsDisplay.onlyvisual = true;
|
|
46
|
}
|
|
47
|
}
|
|
48
|
}
|
|
49
|
}
|
|
50
|
if (obj_board_camera.con != 0 && boattalktimer > 30)
|
|
51
|
{
|
|
52
|
boattalktimer = 9999;
|
|
53
|
boattalk = 9999;
|
|
54
|
}
|
|
55
|
if (con == 0 && solved == true && obj_board_camera.con == 0)
|
|
56
|
{
|
|
57
|
if (suwalk == 0)
|
|
58
|
{
|
|
59
|
if (obj_mainchara_board.x > 320)
|
|
60
|
{
|
|
61
|
ralsei.follow = 1;
|
|
62
|
if (kris.controlled == true)
|
|
63
|
{
|
|
64
|
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", choose(7, 8, 9), choose(4, 5, 6), 0);
|
|
65
|
suwalk = 1;
|
|
66
|
}
|
|
67
|
if (susie.controlled == true)
|
|
68
|
suwalk = 1;
|
|
69
|
if (smells == 0 && obj_b2enemysquabble.battlecon > 10)
|
|
70
|
smells = 1;
|
|
71
|
susie.sleepy = true;
|
|
72
|
}
|
|
73
|
else
|
|
74
|
{
|
|
75
|
debug_print("LEFT SIDE");
|
|
76
|
ralsei.follow = 1;
|
|
77
|
if (kris.controlled == true)
|
|
78
|
{
|
|
79
|
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", choose(1, 2, 3), choose(1, 2), 0);
|
|
80
|
suwalk = 1;
|
|
81
|
}
|
|
82
|
if (susie.controlled == true)
|
|
83
|
suwalk = 1;
|
|
84
|
}
|
|
85
|
}
|
|
86
|
}
|
|
87
|
if (convstart == 0)
|
|
88
|
{
|
|
89
|
if (obj_board_camera.con == 0)
|
|
90
|
{
|
|
91
|
with (obj_board_trigger)
|
|
92
|
{
|
|
93
|
if (extflag == "b2bridgeintro_convstart")
|
|
94
|
{
|
|
95
|
if (place_meeting(x, y, obj_mainchara_board))
|
|
96
|
other.convstart = 1;
|
|
97
|
}
|
|
98
|
}
|
|
99
|
}
|
|
100
|
}
|
|
101
|
else if (convstart < 99)
|
|
102
|
{
|
|
103
|
convstart++;
|
|
104
|
if (convstart == 5)
|
|
105
|
{
|
|
106
|
var ratalk = stringsetloc(Looks like a puzzle."Looks like a puzzle.", "obj_b2bridgeintro_slash_Step_0_gml_109_0" );
|
|
107
|
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, 80);
|
|
108
|
}
|
|
109
|
if (convstart == 80)
|
|
110
|
{
|
|
111
|
var sutalk = stringsetloc(Heh, leave it to me."Heh, leave it to me.", "obj_b2bridgeintro_slash_Step_0_gml_114_0" );
|
|
112
|
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, 80);
|
|
113
|
}
|
|
114
|
}
|
|
115
|
if (con == 0 && solved == false && obj_board_camera.con == 0)
|
|
116
|
{
|
|
117
|
if (suwalk == 0 && kris.boat == false)
|
|
118
|
{
|
|
119
|
pretimer++;
|
|
120
|
if (pretimer >= 10)
|
|
121
|
{
|
|
122
|
pretimer = 0;
|
|
123
|
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", 2, 2, 0);
|
|
124
|
suwalk = 19;
|
|
125
|
}
|
|
126
|
}
|
|
127
|
if (suwalk == 19)
|
|
128
|
{
|
|
129
|
if (scr_board_checklocationscr_board_checklocation
function scr_board_checklocation()
{
var _name = argument0;
var _xloc = argument1;
var _yloc = argument2;
if (_xloc < 12)
_xloc = board_tilex(_xloc);
if (_yloc < 12)
_yloc = board_tiley(_yloc);
var _tol = 4;
if (argument_count == 4)
_tol = argument3;
var targ = 0;
with (obj_mainchara_board)
{
if (name == _name)
targ = id;
}
if (!i_ex(targ))
{
debug_message("target does not exist");
return false;
}
if (abs(targ.x - _xloc) < _tol && abs(targ.y - _yloc) < _tol)
return true;
} ("susie", 2, 2, 1))
|
|
130
|
{
|
|
131
|
if (!instance_place(board_tilex(1), board_tiley(3), obj_board_solid) || !instance_place(board_tilex(2), board_tiley(3), obj_board_solid) || !instance_place(board_tilex(3), board_tiley(3), obj_board_solid))
|
|
132
|
{
|
|
133
|
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", "0D0D0D0D0D0D0D0D0D0D0D0D0D0D");
|
|
134
|
suwalk = 20;
|
|
135
|
suwalktimer = 0;
|
|
136
|
}
|
|
137
|
}
|
|
138
|
}
|
|
139
|
if (suwalk == 20)
|
|
140
|
{
|
|
141
|
if (susie.susierecordcon == 0)
|
|
142
|
{
|
|
143
|
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", 1, 4, 0);
|
|
144
|
suwalk = 21;
|
|
145
|
}
|
|
146
|
}
|
|
147
|
if (abs(susie.x - board_tilex(1)) < 4 && abs(susie.y - board_tiley(4)) < 4)
|
|
148
|
{
|
|
149
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ();
|
|
150
|
with (susie)
|
|
151
|
setxy(board_tilex(1), board_tiley(4));
|
|
152
|
susie.facing = 0;
|
|
153
|
con = 1;
|
|
154
|
}
|
|
155
|
}
|
|
156
|
if (con == 1 && obj_board_camera.con == 0)
|
|
157
|
{
|
|
158
|
pretimer++;
|
|
159
|
if (pretimer == 5)
|
|
160
|
scr_play_susie_recordingscr_play_susie_recording
function scr_play_susie_recording(arg0)
{
with (obj_mainchara_board)
{
if (name == "susie")
{
susierecordcon = 2;
susierecordcount = 0;
susierecordstring = arg0;
susierecordsave = false;
}
}
} ("0101");
|
|
161
|
if (pretimer > 10)
|
|
162
|
{
|
|
163
|
if (i_ex(susie.grabbed))
|
|
164
|
{
|
|
165
|
con = 2;
|
|
166
|
pretimer = 0;
|
|
167
|
kris.cantleave = true;
|
|
168
|
boattalk = 1;
|
|
169
|
}
|
|
170
|
else
|
|
171
|
{
|
|
172
|
pretimer = 4;
|
|
173
|
}
|
|
174
|
}
|
|
175
|
}
|
|
176
|
if (con == 2)
|
|
177
|
{
|
|
178
|
pretimer++;
|
|
179
|
if (pretimer == 5)
|
|
180
|
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", 4, 5);
|
|
181
|
if (pretimer > 5)
|
|
182
|
{
|
|
183
|
if (abs(susie.x - board_tilex(4)) < 4 && abs(susie.y - board_tiley(5)) < 4)
|
|
184
|
{
|
|
185
|
pretimer = 0;
|
|
186
|
with (susie)
|
|
187
|
setxy(board_tilex(4), board_tiley(5));
|
|
188
|
susie.facing = 1;
|
|
189
|
scr_pathfind_endscr_pathfind_end
function scr_pathfind_end(arg0)
{
with (obj_mainchara_board)
{
if (name == arg0)
{
path_end();
path_target_x = -1;
path_target_y = -1;
is_moving_timer = 0;
is_moving = false;
}
}
} ("susie");
|
|
190
|
var deliverlastbridge = "0W0W0W0W0W0W010W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0D0D0D0D0D0D0D0D0D0D0D0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0W0W010W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0U0U0U0U0U0U0U0U0U0U0U0W0R0R0R0R0R0R0R0R0R0R0R0R0R0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W01010101";
|
|
191
|
scr_play_susie_recordingscr_play_susie_recording
function scr_play_susie_recording(arg0)
{
with (obj_mainchara_board)
{
if (name == "susie")
{
susierecordcon = 2;
susierecordcount = 0;
susierecordstring = arg0;
susierecordsave = false;
}
}
} (deliverlastbridge);
|
|
192
|
con = 3;
|
|
193
|
}
|
|
194
|
}
|
|
195
|
}
|
|
196
|
if (con == 3)
|
|
197
|
{
|
|
198
|
if (mypuz.solved == true)
|
|
199
|
{
|
|
200
|
solved = true;
|
|
201
|
kris.cantleave = false;
|
|
202
|
con = 4;
|
|
203
|
timer = 0;
|
|
204
|
}
|
|
205
|
}
|
|
206
|
if (con == 4)
|
|
207
|
{
|
|
208
|
timer++;
|
|
209
|
if (timer == 8)
|
|
210
|
{
|
|
211
|
var subridgefinish = "0W0W0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0D0L0D";
|
|
212
|
scr_play_susie_recordingscr_play_susie_recording
function scr_play_susie_recording(arg0)
{
with (obj_mainchara_board)
{
if (name == "susie")
{
susierecordcon = 2;
susierecordcount = 0;
susierecordstring = arg0;
susierecordsave = false;
}
}
} (subridgefinish);
|
|
213
|
}
|
|
214
|
if (timer == 15)
|
|
215
|
{
|
|
216
|
tenna.bounce = 1;
|
|
217
|
var tetalk = stringsetloc(Well done Susie!!"Well done Susie!!", "obj_b2bridgeintro_slash_Step_0_gml_233_0" );
|
|
218
|
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);
|
|
219
|
}
|
|
220
|
if (timer == 60)
|
|
221
|
{
|
|
222
|
su_real.sprite_index = spr_susie_right_dw;
|
|
223
|
var sutalk = stringsetloc(Heh. Got anything harder?"Heh. Got anything harder?", "obj_b2bridgeintro_slash_Step_0_gml_239_0" );
|
|
224
|
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, 80);
|
|
225
|
}
|
|
226
|
if (timer == 140)
|
|
227
|
{
|
|
228
|
with (obj_couchwriter)
|
|
229
|
instance_destroy();
|
|
230
|
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");
|
|
231
|
timer = 0;
|
|
232
|
con = 5;
|
|
233
|
}
|
|
234
|
}
|
|
235
|
}
|
|
236
|
else
|
|
237
|
{
|
|
238
|
if (boattalk > 0)
|
|
239
|
boattalk = 1;
|
|
240
|
suwalk = 0;
|
|
241
|
pretimer = 0;
|
|
242
|
con = 0;
|
|
243
|
smtimer = 0;
|
|
244
|
}
|
|
245
|
if (solved == true && resetpuzzle == false)
|
|
246
|
{
|
|
247
|
var done = false;
|
|
248
|
with (obj_board_trigger)
|
|
249
|
{
|
|
250
|
if (extflag == "b2bridgepuzzle1resetpuzzle")
|
|
251
|
{
|
|
252
|
if (place_meeting(x, y, obj_mainchara_board))
|
|
253
|
{
|
|
254
|
with (obj_board_bridge_placed)
|
|
255
|
{
|
|
256
|
if (puzzleid == 21)
|
|
257
|
instance_destroy();
|
|
258
|
}
|
|
259
|
done = true;
|
|
260
|
}
|
|
261
|
}
|
|
262
|
}
|
|
263
|
if (done == true)
|
|
264
|
resetpuzzle = true;
|
|
265
|
}
|
|
266
|
if (active)
|
|
267
|
{
|
|
268
|
if (smells == 1 && obj_board_camera.con == 0)
|
|
269
|
{
|
|
270
|
smtimer++;
|
|
271
|
if (smtimer >= 15)
|
|
272
|
{
|
|
273
|
smells = 2;
|
|
274
|
var sutalk = stringsetloc(Cool. Smells like nothing."Cool. Smells like nothing.", "obj_b2bridgeintro_slash_Step_0_gml_304_0" );
|
|
275
|
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, 80);
|
|
276
|
}
|
|
277
|
}
|
|
278
|
}
|
|
279
|
if (dodelete)
|
|
280
|
{
|
|
281
|
dodelete = false;
|
|
282
|
with (obj_board_bridge_placed)
|
|
283
|
{
|
|
284
|
if ((y - other.y) == 128 && ((x - other.x) == 128 || (x - other.x) == 160))
|
|
285
|
instance_destroy();
|
|
286
|
}
|
|
287
|
}
|