|
1
|
var view = stringsetloc(VIEW"VIEW", "obj_b2_bino_v2_slash_Step_0_gml_5_0" );
|
|
2
|
var donot = stringsetloc(DO#NOT"DO#NOT", "obj_b2_bino_v2_slash_Step_0_gml_6_0" );
|
|
3
|
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;
}
}
} ();
|
|
4
|
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;
}
} ();
|
|
5
|
if (active)
|
|
6
|
{
|
|
7
|
if (con == 0)
|
|
8
|
{
|
|
9
|
if (buffer > 0)
|
|
10
|
buffer--;
|
|
11
|
scr_depth_boardscr_depth_board
function scr_depth_board()
{
depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10));
}
function scr_board_depth()
{
scr_depth_board();
} ();
|
|
12
|
}
|
|
13
|
if (con == 1)
|
|
14
|
{
|
|
15
|
timer = 0;
|
|
16
|
if (kris.boat == true)
|
|
17
|
{
|
|
18
|
if (sunk == 0)
|
|
19
|
con = 72;
|
|
20
|
else
|
|
21
|
con = 50;
|
|
22
|
}
|
|
23
|
else
|
|
24
|
{
|
|
25
|
con = 2;
|
|
26
|
}
|
|
27
|
buffer = 3;
|
|
28
|
}
|
|
29
|
if (con == 2)
|
|
30
|
{
|
|
31
|
global.interact = 1;
|
|
32
|
global.msc = -99;
|
|
33
|
global.choice = -1;
|
|
34
|
global.choicemsg[0] = view;
|
|
35
|
global.choicemsg[1] = donot;
|
|
36
|
global.choicemsg[2] = stringset("");
|
|
37
|
global.choicemsg[3] = stringset("");
|
|
38
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
... ("no_name");
|
|
39
|
var viewprompt = stringsetloc(BINOCULARS. 10 POINTS TO TAKE A VIEW OF ATLANTIS STADIUM!"BINOCULARS. 10 POINTS TO TAKE A VIEW OF ATLANTIS STADIUM!", "obj_b2_bino_v2_slash_Step_0_gml_45_0" );
|
|
40
|
if (wondertalk == 1)
|
|
41
|
viewprompt += "/";
|
|
42
|
msgset(0, viewprompt);
|
|
43
|
msgnext("\\C2 ");
|
|
44
|
with (bw_make())
|
|
45
|
stay = 10;
|
|
46
|
if (wondertalk == 0)
|
|
47
|
con = 2.1;
|
|
48
|
else
|
|
49
|
con = 3;
|
|
50
|
}
|
|
51
|
if (con == 2.1)
|
|
52
|
{
|
|
53
|
wondertalk = 1;
|
|
54
|
if (instance_exists(obj_writer))
|
|
55
|
{
|
|
56
|
if (scr_msgno_endscr_msgno_end
function scr_msgno_end(arg0 = 0)
{
if (i_ex(obj_writer))
{
with (obj_writer)
{
if (msgno == arg0)
{
if (reachedend)
return true;
else
return false;
}
}
}
else
{
return true;
}
} (0))
|
|
57
|
{
|
|
58
|
con = 2.2;
|
|
59
|
timer = 0;
|
|
60
|
}
|
|
61
|
}
|
|
62
|
else
|
|
63
|
{
|
|
64
|
wondertalkfailsafe++;
|
|
65
|
if (wondertalkfailsafe >= 15)
|
|
66
|
{
|
|
67
|
con = 2.2;
|
|
68
|
timer = 0;
|
|
69
|
}
|
|
70
|
}
|
|
71
|
}
|
|
72
|
if (con == 2.2)
|
|
73
|
{
|
|
74
|
timer++;
|
|
75
|
var starttime = 15;
|
|
76
|
if (timer < starttime)
|
|
77
|
{
|
|
78
|
if ((timer > 5 && button1_p()) || button3_h())
|
|
79
|
timer = starttime;
|
|
80
|
}
|
|
81
|
if (timer == starttime)
|
|
82
|
{
|
|
83
|
var ratalk = stringsetloc(It must be beautiful..."It must be beautiful...", "obj_b2_bino_v2_slash_Step_0_gml_82_0" );
|
|
84
|
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);
|
|
85
|
}
|
|
86
|
var endcon = 0;
|
|
87
|
if (timer > (starttime + 5) && (button3_h() || button1_p()))
|
|
88
|
endcon = 1;
|
|
89
|
if (timer >= (starttime + 80 + 11) || endcon == 1)
|
|
90
|
{
|
|
91
|
safe_delete(obj_couchwriter);
|
|
92
|
con = 2.3;
|
|
93
|
timer = 0;
|
|
94
|
}
|
|
95
|
}
|
|
96
|
if (con == 2.3)
|
|
97
|
{
|
|
98
|
if (tennahere())
|
|
99
|
{
|
|
100
|
timer++;
|
|
101
|
if (timer == 1)
|
|
102
|
{
|
|
103
|
var tetalk = stringsetloc(Trust me, it's a sight to behold!!!"Trust me, it's a sight to behold!!!", "obj_b2_bino_v2_slash_Step_0_gml_106_0" );
|
|
104
|
tenna.bounce = true;
|
|
105
|
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, 80);
|
|
106
|
}
|
|
107
|
var endcon = 0;
|
|
108
|
if (timer > 5 && (button3_h() || button1_p() || !instance_exists(obj_couchwriter)))
|
|
109
|
endcon = 1;
|
|
110
|
if (timer >= 92 || endcon == 1)
|
|
111
|
{
|
|
112
|
safe_delete(obj_couchwriter);
|
|
113
|
timer = 0;
|
|
114
|
con = 2.4;
|
|
115
|
}
|
|
116
|
}
|
|
117
|
else
|
|
118
|
{
|
|
119
|
timer = 0;
|
|
120
|
con = 2.4;
|
|
121
|
}
|
|
122
|
}
|
|
123
|
if (con == 2.4)
|
|
124
|
{
|
|
125
|
with (obj_writer)
|
|
126
|
instance_destroy();
|
|
127
|
msgset(0, "\\C2 ");
|
|
128
|
with (bw_make())
|
|
129
|
{
|
|
130
|
skip = true;
|
|
131
|
stay = 1;
|
|
132
|
}
|
|
133
|
con = 3;
|
|
134
|
}
|
|
135
|
if (con == 3 && global.choice != -1)
|
|
136
|
{
|
|
137
|
if (global.choice == 0)
|
|
138
|
{
|
|
139
|
if (global.flag[1044 points] >= 10)
|
|
140
|
{
|
|
141
|
scorer = scr_board_scorescr_board_score
function scr_board_score(arg0)
{
var scoreadder = instance_create(x, y, obj_board_scoreAdder);
scoreadder.scoreamount = arg0;
if (argument_count == 2)
scoreadder.mysnd = argument1;
}
function scr_board_score_set(arg0)
{
global.flag[1044 points] = arg0;
} (-10);
|
|
142
|
con = 4;
|
|
143
|
}
|
|
144
|
else
|
|
145
|
{
|
|
146
|
snd_play(snd_error);
|
|
147
|
msgsetloc(0, YOU DON'T EVEN HAVE 10 POINTS!Wait for inputClose Message"YOU DON'T EVEN HAVE 10 POINTS!/%", "obj_b2_bino_v2_slash_Step_0_gml_150_0" );
|
|
148
|
with (bw_make())
|
|
149
|
skip = true;
|
|
150
|
con = 99;
|
|
151
|
}
|
|
152
|
}
|
|
153
|
else
|
|
154
|
{
|
|
155
|
con = 99;
|
|
156
|
}
|
|
157
|
}
|
|
158
|
if (con == 4 && !i_ex(obj_board_scoreAdder))
|
|
159
|
{
|
|
160
|
timer = 0;
|
|
161
|
snd_play_pitch(snd_item, 1.2);
|
|
162
|
binoimage = instance_create_depth(x, y, 100000, obj_b2_binoimage);
|
|
163
|
con = 5;
|
|
164
|
}
|
|
165
|
if (con == 5)
|
|
166
|
{
|
|
167
|
timer++;
|
|
168
|
susie.sleepy = false;
|
|
169
|
var starttime = 30;
|
|
170
|
if ((timer < starttime && button3_h()) || (timer > 5 && timer < starttime && button1_p()))
|
|
171
|
timer = starttime;
|
|
172
|
if (timer == starttime)
|
|
173
|
{
|
|
174
|
var sutalk = stringsetloc(ANOTHER pyramid!?"ANOTHER pyramid!?", "obj_b2_bino_v2_slash_Step_0_gml_182_0" );
|
|
175
|
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);
|
|
176
|
}
|
|
177
|
var endcon = 0;
|
|
178
|
if (timer > (starttime + 5) && (button3_h() || button1_p()))
|
|
179
|
endcon = 1;
|
|
180
|
if (timer >= (starttime + 90 + 11) || endcon == 1)
|
|
181
|
{
|
|
182
|
safe_delete(obj_couchwriter);
|
|
183
|
con = 5.1;
|
|
184
|
timer = 0;
|
|
185
|
}
|
|
186
|
}
|
|
187
|
if (con == 5.1)
|
|
188
|
{
|
|
189
|
timer++;
|
|
190
|
var starttime = 1;
|
|
191
|
var bublength = 110;
|
|
192
|
if (timer == starttime && tennahere())
|
|
193
|
{
|
|
194
|
var tetalk = stringsetloc(What? What? We have a budget to keep in mind you know!!!"What? What? We have a budget to keep in mind you know!!!", "obj_b2_bino_v2_slash_Step_0_gml_207_0" );
|
|
195
|
tenna.bounce = true;
|
|
196
|
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, bublength);
|
|
197
|
}
|
|
198
|
var endcon = 0;
|
|
199
|
if (timer > (starttime + 5) && (button3_h() || button1_p()))
|
|
200
|
endcon = 1;
|
|
201
|
if (!tennahere())
|
|
202
|
endcon = 1;
|
|
203
|
if (timer >= (starttime + bublength + 11) || endcon == 1)
|
|
204
|
{
|
|
205
|
safe_delete(obj_couchwriter);
|
|
206
|
con = 5.2;
|
|
207
|
timer = 0;
|
|
208
|
}
|
|
209
|
}
|
|
210
|
if (con == 5.2)
|
|
211
|
{
|
|
212
|
timer++;
|
|
213
|
var endcon = 0;
|
|
214
|
if (timer > 3 && (button1_p() || button2_p()))
|
|
215
|
endcon = 1;
|
|
216
|
if (timer > 5 && button3_h())
|
|
217
|
endcon = 1;
|
|
218
|
if (endcon == 1)
|
|
219
|
{
|
|
220
|
timer = 0;
|
|
221
|
safe_delete(binoimage);
|
|
222
|
snd_play_pitch(snd_equip, 1.4);
|
|
223
|
con = 6;
|
|
224
|
global.interact = 0;
|
|
225
|
kris.cantleave = true;
|
|
226
|
with (obj_board_boat)
|
|
227
|
disembark = -48;
|
|
228
|
}
|
|
229
|
}
|
|
230
|
if (con == 6)
|
|
231
|
{
|
|
232
|
timer++;
|
|
233
|
if (timer == 1)
|
|
234
|
{
|
|
235
|
}
|
|
236
|
if (timer == 5)
|
|
237
|
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", x, y + 32, 2);
|
|
238
|
if (timer == 15)
|
|
239
|
{
|
|
240
|
var sutalk = stringsetloc(What a rip-off."What a rip-off.", "obj_b2_bino_v2_slash_Step_0_gml_263_0" );
|
|
241
|
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, 91);
|
|
242
|
con = 7;
|
|
243
|
timer = 0;
|
|
244
|
}
|
|
245
|
}
|
|
246
|
if (con == 7 && 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", x, y + 32, 4))
|
|
247
|
con = 7.1;
|
|
248
|
if (con == 7.1)
|
|
249
|
{
|
|
250
|
timer++;
|
|
251
|
if (timer == 5)
|
|
252
|
{
|
|
253
|
snd_play(snd_board_lift);
|
|
254
|
susie.fun = 1;
|
|
255
|
susie.sprite_index = susie.usprite_carry;
|
|
256
|
y = susie.y + 8;
|
|
257
|
image_yscale = -2;
|
|
258
|
depth = susie.depth - 1;
|
|
259
|
updatedepth = false;
|
|
260
|
if (!tennahere())
|
|
261
|
{
|
|
262
|
timer = 0;
|
|
263
|
con = 8;
|
|
264
|
}
|
|
265
|
}
|
|
266
|
if (timer == 20)
|
|
267
|
{
|
|
268
|
tenna.bounce = 1;
|
|
269
|
var tetalk = stringsetloc(H-HEY!!"H-HEY!!", "obj_b2_bino_v2_slash_Step_0_gml_302_0" );
|
|
270
|
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);
|
|
271
|
con = 8;
|
|
272
|
timer = 0;
|
|
273
|
}
|
|
274
|
}
|
|
275
|
if (con == 8)
|
|
276
|
{
|
|
277
|
timer++;
|
|
278
|
if (timer == 5)
|
|
279
|
susie.sprite_index = susie.lsprite_carry;
|
|
280
|
var throwtime = 16;
|
|
281
|
if (timer == 10)
|
|
282
|
{
|
|
283
|
snd_play(snd_board_throw);
|
|
284
|
scr_jump_to_point_boardscr_jump_to_point_board
function scr_jump_to_point_board(arg0, arg1, arg2, arg3, arg4 = 0)
{
var ___jump = scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
with (___jump)
{
trackalpha = arg4;
trackblend = arg4;
trackindex = arg4;
tracksprite = arg4;
board = true;
}
return ___jump;
} (board_tilex(4), susie.y + 32, 12, throwtime, 1);
|
|
285
|
snd_play_delay(snd_board_splash, throwtime);
|
|
286
|
}
|
|
287
|
if (timer == 11)
|
|
288
|
{
|
|
289
|
susie.facing = 3;
|
|
290
|
susie.fun = 0;
|
|
291
|
}
|
|
292
|
if (timer == (11 + throwtime))
|
|
293
|
{
|
|
294
|
sunk = 1;
|
|
295
|
updatedepth = true;
|
|
296
|
kris.cantleave = false;
|
|
297
|
with (obj_board_boat)
|
|
298
|
disembark = 0;
|
|
299
|
con = 0;
|
|
300
|
timer = 0;
|
|
301
|
}
|
|
302
|
}
|
|
303
|
if (con == 50)
|
|
304
|
{
|
|
305
|
global.interact = 1;
|
|
306
|
global.msc = -99;
|
|
307
|
global.choice = -1;
|
|
308
|
global.choicemsg[0] = view;
|
|
309
|
global.choicemsg[1] = donot;
|
|
310
|
global.choicemsg[2] = stringset("");
|
|
311
|
global.choicemsg[3] = stringset("");
|
|
312
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
... ("no_name");
|
|
313
|
msgsetloc(0, BINOCULARS. LOOK INSIDE?Wait for input"BINOCULARS. LOOK INSIDE?/", "obj_b2_bino_v2_slash_Step_0_gml_355_0" );
|
|
314
|
msgnext(" \\C2");
|
|
315
|
bw_make();
|
|
316
|
con = 51;
|
|
317
|
}
|
|
318
|
if (con == 51 && global.choice != -1)
|
|
319
|
{
|
|
320
|
if (global.choice == 0)
|
|
321
|
{
|
|
322
|
binoimage = instance_create_depth(x, y, 100000, obj_b2_binoimage);
|
|
323
|
binoimage.ver = 1;
|
|
324
|
con = 52;
|
|
325
|
timer = 0;
|
|
326
|
}
|
|
327
|
if (global.choice == 1)
|
|
328
|
{
|
|
329
|
with (obj_board_writer)
|
|
330
|
instance_destroy();
|
|
331
|
con = 99;
|
|
332
|
}
|
|
333
|
}
|
|
334
|
if (con == 52)
|
|
335
|
{
|
|
336
|
if (sunktalk == 0)
|
|
337
|
{
|
|
338
|
timer++;
|
|
339
|
if (timer == 30)
|
|
340
|
{
|
|
341
|
var sutalk = stringsetloc(...dunno what I expected."...dunno what I expected.", "obj_b2_bino_v2_slash_Step_0_gml_384_0" );
|
|
342
|
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);
|
|
343
|
con = 59;
|
|
344
|
timer = 0;
|
|
345
|
sunktalk = 1;
|
|
346
|
}
|
|
347
|
}
|
|
348
|
else
|
|
349
|
{
|
|
350
|
con = 59;
|
|
351
|
timer = 0;
|
|
352
|
}
|
|
353
|
}
|
|
354
|
if (con == 59)
|
|
355
|
{
|
|
356
|
timer++;
|
|
357
|
if (timer > 3)
|
|
358
|
{
|
|
359
|
if (button1_p() || button2_p() || button3_h())
|
|
360
|
{
|
|
361
|
safe_delete(binoimage);
|
|
362
|
timer = 0;
|
|
363
|
con = 99;
|
|
364
|
}
|
|
365
|
}
|
|
366
|
}
|
|
367
|
if (con == 72)
|
|
368
|
{
|
|
369
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
... ("no_name");
|
|
370
|
msgsetloc(0, BINOCULARS. THEY CANNOT BE VIEWED FROM THIS SIDE.Wait for inputClose Message"BINOCULARS. THEY CANNOT BE VIEWED FROM THIS SIDE./%", "obj_b2_bino_v2_slash_Step_0_gml_414_0" );
|
|
371
|
bw_make();
|
|
372
|
con = 73;
|
|
373
|
}
|
|
374
|
if (con == 73 && !bw_ex())
|
|
375
|
{
|
|
376
|
timer++;
|
|
377
|
with (obj_board_boat)
|
|
378
|
{
|
|
379
|
if (engaged)
|
|
380
|
{
|
|
381
|
canfreemove = false;
|
|
382
|
updateplayerdepth = false;
|
|
383
|
}
|
|
384
|
}
|
|
385
|
susie.depth -= 500;
|
|
386
|
kris.depth = susie.depth + 10;
|
|
387
|
if (timer == 1)
|
|
388
|
{
|
|
389
|
var sutalk = stringsetloc(How about THIS side?"How about THIS side?", "obj_b2_bino_v2_slash_Step_0_gml_437_0" );
|
|
390
|
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);
|
|
391
|
susie.fun = true;
|
|
392
|
}
|
|
393
|
if (timer == 10)
|
|
394
|
{
|
|
395
|
snd_play(snd_board_lift);
|
|
396
|
susie.fun = 1;
|
|
397
|
if (susie.facing == 0)
|
|
398
|
susie.sprite_index = susie.dsprite_carry;
|
|
399
|
else
|
|
400
|
susie.sprite_index = susie.rsprite_carry;
|
|
401
|
y = susie.y + 8;
|
|
402
|
x = susie.x;
|
|
403
|
image_yscale = -2;
|
|
404
|
depth = susie.depth - 1;
|
|
405
|
updatedepth = false;
|
|
406
|
if (tennahere())
|
|
407
|
{
|
|
408
|
var tetalk = stringsetloc(HEY!!"HEY!!", "obj_b2_bino_v2_slash_Step_0_gml_457_0" );
|
|
409
|
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);
|
|
410
|
}
|
|
411
|
}
|
|
412
|
if (timer == 25)
|
|
413
|
susie.sprite_index = susie.lsprite_carry;
|
|
414
|
var throwtime = 16;
|
|
415
|
if (timer == 30)
|
|
416
|
{
|
|
417
|
snd_play(snd_board_throw);
|
|
418
|
var yloc = round((susie.y + 32) / 32) * 32;
|
|
419
|
scr_jump_to_point_boardscr_jump_to_point_board
function scr_jump_to_point_board(arg0, arg1, arg2, arg3, arg4 = 0)
{
var ___jump = scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
with (___jump)
{
trackalpha = arg4;
trackblend = arg4;
trackindex = arg4;
tracksprite = arg4;
board = true;
}
return ___jump;
} (board_tilex(4), yloc, 12, throwtime, 1);
|
|
420
|
snd_play_delay(snd_board_splash, throwtime);
|
|
421
|
susie.sprite_index = susie.lsprite;
|
|
422
|
}
|
|
423
|
if (timer == (30 + throwtime))
|
|
424
|
{
|
|
425
|
susie.fun = 0;
|
|
426
|
sunk = 1;
|
|
427
|
updatedepth = true;
|
|
428
|
with (obj_board_boat)
|
|
429
|
{
|
|
430
|
if (engaged)
|
|
431
|
{
|
|
432
|
canfreemove = true;
|
|
433
|
updateplayerdepth = true;
|
|
434
|
}
|
|
435
|
}
|
|
436
|
con = 99;
|
|
437
|
}
|
|
438
|
}
|
|
439
|
if (con == 99 && !bw_ex())
|
|
440
|
{
|
|
441
|
with (obj_board_writer_stay)
|
|
442
|
instance_destroy();
|
|
443
|
global.interact = 0;
|
|
444
|
con = 0;
|
|
445
|
buffer = 3;
|
|
446
|
timer = 0;
|
|
447
|
}
|
|
448
|
}
|
|
449
|
else
|
|
450
|
{
|
|
451
|
con = 0;
|
|
452
|
timer = 0;
|
|
453
|
}
|