|
1
|
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();
} ();
|
|
2
|
if (init == 0)
|
|
3
|
init = 1;
|
|
4
|
if (kr == 0)
|
|
5
|
{
|
|
6
|
with (obj_mainchara_board)
|
|
7
|
{
|
|
8
|
if (name == "kris")
|
|
9
|
other.kr = id;
|
|
10
|
}
|
|
11
|
}
|
|
12
|
if (su == 0)
|
|
13
|
{
|
|
14
|
with (obj_mainchara_board)
|
|
15
|
{
|
|
16
|
if (name == "susie")
|
|
17
|
other.su = id;
|
|
18
|
}
|
|
19
|
}
|
|
20
|
if (ra == 0)
|
|
21
|
{
|
|
22
|
with (obj_mainchara_board)
|
|
23
|
{
|
|
24
|
if (name == "ralsei")
|
|
25
|
other.ra = id;
|
|
26
|
}
|
|
27
|
}
|
|
28
|
if (susie == 0)
|
|
29
|
{
|
|
30
|
with (obj_caterpillarchara)
|
|
31
|
{
|
|
32
|
if (name == "susie")
|
|
33
|
other.susie = id;
|
|
34
|
}
|
|
35
|
}
|
|
36
|
if (ralsei == 0)
|
|
37
|
{
|
|
38
|
with (obj_caterpillarchara)
|
|
39
|
{
|
|
40
|
if (name == "ralsei")
|
|
41
|
other.ralsei = id;
|
|
42
|
}
|
|
43
|
}
|
|
44
|
if (tenna == 0)
|
|
45
|
{
|
|
46
|
with (obj_actor_tenna)
|
|
47
|
other.tenna = id;
|
|
48
|
}
|
|
49
|
var mytrigger = "sphinx";
|
|
50
|
if (active == 1 && obj_board_camera.con == 0)
|
|
51
|
{
|
|
52
|
if (suwalk == 0 && obj_board_camera.con == 0)
|
|
53
|
{
|
|
54
|
suwalktimer++;
|
|
55
|
if (suwalktimer == 1)
|
|
56
|
ra.follow = true;
|
|
57
|
if (suwalktimer == 15)
|
|
58
|
{
|
|
59
|
with (obj_mainchara_board)
|
|
60
|
{
|
|
61
|
if (name == "susie")
|
|
62
|
sleepy = 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", 8, 5, 3);
|
|
65
|
suwalk = 1;
|
|
66
|
}
|
|
67
|
}
|
|
68
|
var _qcount = 0;
|
|
69
|
with (obj_board_inventory)
|
|
70
|
_qcount = qcount;
|
|
71
|
if (doseq == 1 && obj_board_inventory.qcount < 2)
|
|
72
|
{
|
|
73
|
if ((potevent == 0 && global.flag[1020 got_power_croissant] == 1) && obj_board_camera.shift == "none")
|
|
74
|
{
|
|
75
|
kr.cantleave = true;
|
|
76
|
nointeract = 1;
|
|
77
|
visitcon = 99.9;
|
|
78
|
timer2 = 12;
|
|
79
|
bosstalk = 2;
|
|
80
|
}
|
|
81
|
else if (bosstalk == 0)
|
|
82
|
{
|
|
83
|
bosstalk = 1;
|
|
84
|
timer2 = 0;
|
|
85
|
}
|
|
86
|
doseq = 0;
|
|
87
|
}
|
|
88
|
if (visitcon == 99.9)
|
|
89
|
{
|
|
90
|
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", board_tilex(8), board_tiley(5), 4))
|
|
91
|
visitcon = 100;
|
|
92
|
}
|
|
93
|
if (bosstalk == 1)
|
|
94
|
{
|
|
95
|
timer2++;
|
|
96
|
if (timer2 == 15)
|
|
97
|
{
|
|
98
|
with (obj_mainchara_board)
|
|
99
|
{
|
|
100
|
if (name == "susie")
|
|
101
|
sleepy = false;
|
|
102
|
}
|
|
103
|
var sutalk = stringsetloc(So it's not a boss?"So it's not a boss?", "obj_board_event_sphinx_tenna_slash_Step_0_gml_74_0_b" );
|
|
104
|
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);
|
|
105
|
}
|
|
106
|
if (timer2 == 95)
|
|
107
|
{
|
|
108
|
var tetalk = stringsetloc(A BOSS!? ME!? I'm offended!!!"A BOSS!? ME!? I'm offended!!!", "obj_board_event_sphinx_tenna_slash_Step_0_gml_79_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;
} (tetalk, "tenna", 2, 80);
|
|
110
|
with (obj_actor_tenna)
|
|
111
|
bounce = 1;
|
|
112
|
bosstalk = 2;
|
|
113
|
}
|
|
114
|
}
|
|
115
|
if (visitcon == 100 && potevent == 0)
|
|
116
|
{
|
|
117
|
timer2++;
|
|
118
|
if (timer2 == 15)
|
|
119
|
{
|
|
120
|
with (obj_mainchara_board)
|
|
121
|
{
|
|
122
|
if (name == "susie")
|
|
123
|
sleepy = false;
|
|
124
|
}
|
|
125
|
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", 9, 3, 1);
|
|
126
|
var sutalk = stringsetloc(Know what else you're missing?"Know what else you're missing?", "obj_board_event_sphinx_tenna_slash_Step_0_gml_105_0" );
|
|
127
|
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, 60);
|
|
128
|
}
|
|
129
|
if (timer2 == 75)
|
|
130
|
{
|
|
131
|
var tetalk = stringsetloc(Watch."Watch.", "obj_board_event_sphinx_tenna_slash_Step_0_gml_110_0" );
|
|
132
|
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, "susie", 2, 60);
|
|
133
|
var potnearest = instance_nearest(su.x, su.y, obj_board_grabbleObject);
|
|
134
|
if (i_ex(potnearest))
|
|
135
|
{
|
|
136
|
snd_play(snd_board_lift);
|
|
137
|
safe_delete(potnearest);
|
|
138
|
con = -1;
|
|
139
|
su.visible = false;
|
|
140
|
fakesu = instance_create(su.x, su.y, obj_board_marker);
|
|
141
|
fakepot = instance_create(su.x, su.y - 28, obj_board_marker);
|
|
142
|
fakepot.sprite_index = spr_board_jar;
|
|
143
|
fakesu.sprite_index = su.rsprite_carry;
|
|
144
|
fakesu.image_speed = 0;
|
|
145
|
with (fakesu)
|
|
146
|
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();
} ();
|
|
147
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} (fakepot);
|
|
148
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} (fakesu);
|
|
149
|
fakepot.depth = 100000;
|
|
150
|
}
|
|
151
|
}
|
|
152
|
if (timer2 == 85)
|
|
153
|
{
|
|
154
|
fakesu.image_index = su.image_index;
|
|
155
|
fakesu.sprite_index = su.lsprite_carry;
|
|
156
|
}
|
|
157
|
if (timer2 == 135)
|
|
158
|
{
|
|
159
|
snd_play(snd_board_throw);
|
|
160
|
fakepot.vspeed = -10;
|
|
161
|
fakepot.hspeed = -10;
|
|
162
|
fakepot.gravity = 1;
|
|
163
|
}
|
|
164
|
if (timer2 == 137)
|
|
165
|
fakesu.sprite_index = su.lsprite;
|
|
166
|
if (timer2 == 144)
|
|
167
|
{
|
|
168
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} (id);
|
|
169
|
var poof = instance_create_depth(fakepot.x, fakepot.y, 10000, obj_board_breakpoof);
|
|
170
|
poof.ignoredepth = 1;
|
|
171
|
safe_delete(fakepot);
|
|
172
|
snd_play(snd_board_damage);
|
|
173
|
hurt = 1;
|
|
174
|
}
|
|
175
|
if (timer2 == 154)
|
|
176
|
{
|
|
177
|
tenna.bounce = 1;
|
|
178
|
var tetalk = stringsetloc(HEY!!! THAT'S CROISSANT MISUSE!!!"HEY!!! THAT'S CROISSANT MISUSE!!!", "obj_board_event_sphinx_tenna_slash_Step_0_gml_205_0" );
|
|
179
|
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);
|
|
180
|
con = 0;
|
|
181
|
su.facing = 3;
|
|
182
|
su.visible = true;
|
|
183
|
safe_delete(fakesu);
|
|
184
|
potevent = 1;
|
|
185
|
nointeract = 0;
|
|
186
|
kr.cantleave = false;
|
|
187
|
}
|
|
188
|
}
|
|
189
|
if (con == 0 && obj_board_camera.con == 0)
|
|
190
|
{
|
|
191
|
var triggered = 0;
|
|
192
|
if (myinteract == 3)
|
|
193
|
triggered = 1;
|
|
194
|
if (triggered == 1)
|
|
195
|
{
|
|
196
|
global.interact = 1;
|
|
197
|
con = 1;
|
|
198
|
}
|
|
199
|
}
|
|
200
|
if (con == 1)
|
|
201
|
{
|
|
202
|
var _skip = 0;
|
|
203
|
if (!solved)
|
|
204
|
{
|
|
205
|
if (read == 0)
|
|
206
|
{
|
|
207
|
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");
|
|
208
|
msgsetloc(0, HEY FOLKS!Delay 11 IT'S SPHINX-TENNA!Delay 11Wait for input"HEY FOLKS^1! IT'S SPHINX-TENNA^1!/", "obj_board_event_sphinx_tenna_slash_Step_0_gml_239_0" );
|
|
209
|
msgnextloc(ANSWER MY RIDDLE AND I'LL GIVE YOU ONE KEY!Wait for input"ANSWER MY RIDDLE AND I'LL GIVE YOU ONE KEY!/", "obj_board_event_sphinx_tenna_slash_Step_0_gml_240_0" );
|
|
210
|
msgnextloc(...Delay 11 IS WHAT I WOULD SAY,Delay 11 BUT,Delay 11 YA SEE,Delay 11 IT'S A BIT EMBARRASSING...Wait for input"..^1. IS WHAT I WOULD SAY^1, BUT^1, YA SEE^1, IT'S A BIT EMBARRASSING.../", "obj_board_event_sphinx_tenna_slash_Step_0_gml_241_0" );
|
|
211
|
msgnextloc(SEE,Delay 11 I'M MISSING MY Q'S!Delay 11 BRING TWO OF 'EM HERE AND I'LL QUIZ YA!Wait for inputClose Message"SEE^1, I'M MISSING MY Q'S^1! BRING TWO OF 'EM HERE AND I'LL QUIZ YA!/%", "obj_board_event_sphinx_tenna_slash_Step_0_gml_242_0" );
|
|
212
|
read++;
|
|
213
|
}
|
|
214
|
else
|
|
215
|
{
|
|
216
|
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");
|
|
217
|
msgsetloc(0, I'M MISSING MY Q'S!Delay 11 BRING TWO OF 'EM HERE AND I'LL QUIZ YA!Wait for inputClose Message"I'M MISSING MY Q'S^1! BRING TWO OF 'EM HERE AND I'LL QUIZ YA!/%", "obj_board_event_sphinx_tenna_slash_Step_0_gml_247_0" );
|
|
218
|
}
|
|
219
|
}
|
|
220
|
if (_qcount >= 2)
|
|
221
|
{
|
|
222
|
_skip = true;
|
|
223
|
con = 32;
|
|
224
|
}
|
|
225
|
if (solved == 1)
|
|
226
|
{
|
|
227
|
if (read == 0)
|
|
228
|
{
|
|
229
|
msgsetloc(0, MY NOSE IS THE ONLY NOSE THAT KNOWS.Wait for input"MY NOSE IS THE ONLY NOSE THAT KNOWS./", "obj_board_event_sphinx_tenna_slash_Step_0_gml_262_0" );
|
|
230
|
msgnextloc(DON'T TRY TO USE THE LONG NOSE OF ANY OTHER SUSPICIOUS CHARACTER!Wait for inputClose Message"DON'T TRY TO USE THE LONG NOSE OF ANY OTHER SUSPICIOUS CHARACTER!/%", "obj_board_event_sphinx_tenna_slash_Step_0_gml_263_0" );
|
|
231
|
read++;
|
|
232
|
}
|
|
233
|
else
|
|
234
|
{
|
|
235
|
msgsetloc(0, NOSE-PICKING,Delay 11 ER,Delay 11 LOCK-PICKING IS NOT ALLOWED!Wait for inputClose Message"NOSE-PICKING^1, ER^1, LOCK-PICKING IS NOT ALLOWED!/%", "obj_board_event_sphinx_tenna_slash_Step_0_gml_268_0" );
|
|
236
|
}
|
|
237
|
}
|
|
238
|
if (!_skip)
|
|
239
|
{
|
|
240
|
var d = bw_make();
|
|
241
|
d.side = 1;
|
|
242
|
if (_qcount < 2 || solved == 1)
|
|
243
|
con = 2;
|
|
244
|
else
|
|
245
|
con = 10;
|
|
246
|
}
|
|
247
|
}
|
|
248
|
if (con == 32)
|
|
249
|
{
|
|
250
|
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;
}
}
} ("kris");
|
|
251
|
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;
}
}
} ("ralsei");
|
|
252
|
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");
|
|
253
|
ralsei.follow = 0;
|
|
254
|
global.interact = 0;
|
|
255
|
kr.controlled = false;
|
|
256
|
with (obj_mainchara_board)
|
|
257
|
{
|
|
258
|
if (!controlled)
|
|
259
|
{
|
|
260
|
if (x > 224 && x < 384)
|
|
261
|
{
|
|
262
|
if (y < 178)
|
|
263
|
y = 178;
|
|
264
|
}
|
|
265
|
}
|
|
266
|
}
|
|
267
|
kr.controlled = 0;
|
|
268
|
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", 4.5, 4.25, 2);
|
|
269
|
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", 6.5, 4.25, 2);
|
|
270
|
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;
}
}
}
} ("kris", 5.5, 4, 2);
|
|
271
|
failsafetimer = 0;
|
|
272
|
con = 33;
|
|
273
|
}
|
|
274
|
if (con == 33)
|
|
275
|
{
|
|
276
|
failsafetimer++;
|
|
277
|
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;
} ("kris", 5.5, 4, 4) && 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;
} ("ralsei", 4.5, 4.25, 12) && 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", 6.5, 4.25, 12)) || failsafetimer >= 60)
|
|
278
|
{
|
|
279
|
kr.controlled = false;
|
|
280
|
with (obj_mainchara_board)
|
|
281
|
facing = 2;
|
|
282
|
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");
|
|
283
|
msgsetloc(0, WOW,Delay 11 YOU GOT TWO Q'S JUST FOR ME!?Wait for inputClose Message"WOW^1, YOU GOT TWO Q'S JUST FOR ME!?/%", "obj_board_event_sphinx_tenna_slash_Step_0_gml_316_0" );
|
|
284
|
var d = bw_make();
|
|
285
|
face = 1;
|
|
286
|
d.side = 1;
|
|
287
|
con++;
|
|
288
|
timer = 0;
|
|
289
|
if (failsafetimer >= 60)
|
|
290
|
{
|
|
291
|
debug_print("failsafe initiated");
|
|
292
|
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;
}
}
} ("ralsei");
|
|
293
|
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");
|
|
294
|
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;
}
}
} ("kris");
|
|
295
|
with (obj_mainchara_board)
|
|
296
|
{
|
|
297
|
facing = 2;
|
|
298
|
image_speed = 0;
|
|
299
|
}
|
|
300
|
}
|
|
301
|
failsafetimer = 0;
|
|
302
|
}
|
|
303
|
}
|
|
304
|
if (con == 34 && !bw_ex())
|
|
305
|
{
|
|
306
|
timer++;
|
|
307
|
if (timer == 5)
|
|
308
|
{
|
|
309
|
obj_board_inventory.qcount = 1;
|
|
310
|
snd_play_x(snd_item, 1, 1);
|
|
311
|
q2 = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (obj_board_inventory.x + 8 + 32, obj_board_inventory.y + 10 + 48, spr_board_inventory_q);
|
|
312
|
with (q2)
|
|
313
|
{
|
|
314
|
image_xscale = -2;
|
|
315
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, board_tilex(8), 20, 3, "out");
|
|
316
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, board_tiley(5), 20, -1, "out");
|
|
317
|
}
|
|
318
|
}
|
|
319
|
if (timer == 20)
|
|
320
|
{
|
|
321
|
obj_board_inventory.qcount = 0;
|
|
322
|
snd_play_x(snd_item, 1, 1.2);
|
|
323
|
q1 = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (obj_board_inventory.x + 8, obj_board_inventory.y + 10 + 48, spr_board_inventory_q);
|
|
324
|
with (q1)
|
|
325
|
{
|
|
326
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, board_tilex(4), 20, 3, "out");
|
|
327
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, board_tiley(5), 20, -1, "out");
|
|
328
|
}
|
|
329
|
}
|
|
330
|
if (timer == 40)
|
|
331
|
{
|
|
332
|
snd_play(snd_board_shine_get);
|
|
333
|
with (q1)
|
|
334
|
{
|
|
335
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, x + 37, 8, 2, "in");
|
|
336
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, y - 87, 8, 2, "in");
|
|
337
|
}
|
|
338
|
}
|
|
339
|
if (timer == 49)
|
|
340
|
{
|
|
341
|
image_index = 1;
|
|
342
|
with (q1)
|
|
343
|
{
|
|
344
|
with (instance_create(x, y, obj_board_smokepuff))
|
|
345
|
image_blend = #7DC3C0;
|
|
346
|
instance_destroy();
|
|
347
|
}
|
|
348
|
}
|
|
349
|
if (timer == 70)
|
|
350
|
{
|
|
351
|
snd_play(snd_board_shine_get);
|
|
352
|
with (q2)
|
|
353
|
{
|
|
354
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, x - 37, 8, 2, "in");
|
|
355
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, (y - 87) + 1, 8, 2, "in");
|
|
356
|
}
|
|
357
|
}
|
|
358
|
if (timer == 79)
|
|
359
|
{
|
|
360
|
image_index = 2;
|
|
361
|
with (q2)
|
|
362
|
{
|
|
363
|
with (instance_create(x - 32, y, obj_board_smokepuff))
|
|
364
|
image_blend = #7DC3C0;
|
|
365
|
instance_destroy();
|
|
366
|
}
|
|
367
|
}
|
|
368
|
if (timer == 120)
|
|
369
|
{
|
|
370
|
face = 0;
|
|
371
|
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");
|
|
372
|
msgsetloc(0, OH,Delay 11 OH,Delay 11 THAT'S MUCH BETTER!Wait for input"OH^1, OH^1, THAT'S MUCH BETTER!/", "obj_board_event_sphinx_tenna_slash_Step_0_gml_407_0" );
|
|
373
|
msgnextloc(NOW THAT I'M DRESSED...Wait for input"NOW THAT I'M DRESSED.../", "obj_board_event_sphinx_tenna_slash_Step_0_gml_408_0" );
|
|
374
|
msgnextloc(IT'S A QUIZ TO THE DEATH!Wait for inputClose Message"IT'S A QUIZ TO THE DEATH!/%", "obj_board_event_sphinx_tenna_slash_Step_0_gml_409_0" );
|
|
375
|
var d = bw_make();
|
|
376
|
d.side = 1;
|
|
377
|
timer = 0;
|
|
378
|
con = 10.1;
|
|
379
|
}
|
|
380
|
}
|
|
381
|
if (con == 10.1 && !bw_ex())
|
|
382
|
{
|
|
383
|
timer++;
|
|
384
|
if (timer == 5)
|
|
385
|
con = 10;
|
|
386
|
}
|
|
387
|
if (con == 2 && !bw_ex())
|
|
388
|
{
|
|
389
|
if (!solved)
|
|
390
|
doseq = true;
|
|
391
|
global.interact = 0;
|
|
392
|
con = 0;
|
|
393
|
myinteract = 0;
|
|
394
|
}
|
|
395
|
if (con == 10 && !bw_ex())
|
|
396
|
{
|
|
397
|
quiz = instance_create(0, 0, obj_quizsequence);
|
|
398
|
quiz.depth = 900000;
|
|
399
|
quiz.extflag = "sphinx";
|
|
400
|
scr_quizsetupscr_quizsetup
function scr_quizsetup_full(arg0 = 3, arg1 = 0, arg2 = false, arg3 = 900000)
{
var __quiz = instance_create(0, 0, obj_quizsequence);
if (scr_debug())
arg1 = scr_quizdebug(arg1, arg2);
__quiz.depth = arg3;
__quiz.board4 = arg2;
if (arg2)
__quiz.newdepth = 100000;
scr_quizsetup(arg0, arg1);
return __quiz;
}
function scr_quizsetup(arg0 = 3, arg1 = 0, arg2 = 27, arg3 = false)
{
with (obj_quizsequence)
{
if (arg3)
{
if (((arg2 - arg1) + 1) < arg0)
arg0 = (arg2 - arg1) + 1;
var _quizlist = ds_list_create();
randomize();
for (var i = arg1; i <= arg2; i++)
ds_list_add(_quizlist, i);
ds_list_shuffle(_quizlist);
for (var i = 0; i < arg0; i++)
quizQs[i] = ds_list_find_index(_quizlist, i);
quiz_length = arg0;
ds_list_clear(_quizlist);
}
else
{
if (scr_debug())
arg1 = scr_quizdebug(arg1, false);
for (var i = 0; i < arg0; i++)
quizQs[i] = i + arg1;
quiz_length = arg0;
}
}
}
function scr_quizadd(arg0)
{
with (obj_quizsequence)
{
quizQs[quiz_length] = arg0;
quiz_length++;
}
}
function scr_quizreplace(arg0, arg1)
{
with (obj_quizsequence)
quizQs[arg0] = arg1;
}
function scr_quizdebug(arg0, arg1)
{
if (scr_debug())
{
if (keyboard_check(ord("4")) || keyboard_check(vk_numpad1))
arg0 = 0;
else if (keyboard_check(ord("5")) || keyboard_check(vk_numpad2))
arg0 = 3;
else if (keyboard_check(ord("6")) || keyboard_check(vk_numpad3))
arg0 = 6;
else if (keyboard_check(ord("7")) || keyboard_check(vk_numpad4))
arg0 = 9;
else if (keyboard_check(ord("8")) || keyboard_check(vk_numpad5))
arg0 = 12;
else
return arg0;
if (arg1)
arg0 = (arg0 / 3) + 15;
debug_print("Starting question overriden (" + string(arg0) + ")");
}
return arg0;
} (3, 6);
|
|
401
|
global.interact = 1;
|
|
402
|
kr.quizmode = true;
|
|
403
|
var __myid = id;
|
|
404
|
with (obj_board_parent)
|
|
405
|
{
|
|
406
|
if (id != __myid)
|
|
407
|
active = false;
|
|
408
|
}
|
|
409
|
timer = 0;
|
|
410
|
con = 11;
|
|
411
|
}
|
|
412
|
if (con == 11 && !i_ex(obj_quizsequence))
|
|
413
|
{
|
|
414
|
global.interact = 1;
|
|
415
|
timer++;
|
|
416
|
if (timer == 30)
|
|
417
|
{
|
|
418
|
if (global.flag[1019 quiz_right_answers] > 3)
|
|
419
|
{
|
|
420
|
msgsetloc(0, WELL DONE. FOR YOU THAT KNOWS,Delay 11 A NOSE!Wait for inputClose Message"WELL DONE. FOR YOU THAT KNOWS^1, A NOSE!/%", "obj_board_event_sphinx_tenna_slash_Step_0_gml_556_0" );
|
|
421
|
con = 12;
|
|
422
|
}
|
|
423
|
else
|
|
424
|
{
|
|
425
|
msgsetloc(0, YOU DIDN'T EVEN KNOW THAT!?Wait for input"YOU DIDN'T EVEN KNOW THAT!?/", "obj_board_event_sphinx_tenna_slash_Step_0_gml_562_0" );
|
|
426
|
msgnextloc(HA HA HA HA -- OH NO,Delay 11 MY NOSE FELL ASLEEP!Wait for inputClose Message"HA HA HA HA -- OH NO^1, MY NOSE FELL ASLEEP!/%", "obj_board_event_sphinx_tenna_slash_Step_0_gml_563_0" );
|
|
427
|
attempt++;
|
|
428
|
con = 12;
|
|
429
|
}
|
|
430
|
var d = bw_make();
|
|
431
|
d.side = 1;
|
|
432
|
timer = 0;
|
|
433
|
}
|
|
434
|
}
|
|
435
|
if (con == 12 && !bw_ex())
|
|
436
|
{
|
|
437
|
global.interact = 0;
|
|
438
|
with (nose)
|
|
439
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|
|
440
|
with (obj_mainchara_board)
|
|
441
|
{
|
|
442
|
if (y < 208)
|
|
443
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, 208, 8);
|
|
444
|
facing = 2;
|
|
445
|
}
|
|
446
|
timer = 0;
|
|
447
|
con = 13;
|
|
448
|
}
|
|
449
|
if (con == 13)
|
|
450
|
{
|
|
451
|
timer++;
|
|
452
|
if (timer == 8)
|
|
453
|
{
|
|
454
|
with (nose)
|
|
455
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, 174, 12, 2, "in");
|
|
456
|
}
|
|
457
|
if (timer == 20)
|
|
458
|
snd_play(snd_impact);
|
|
459
|
if (timer == 24)
|
|
460
|
{
|
|
461
|
with (nose)
|
|
462
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, 75, 45, -1, "in");
|
|
463
|
}
|
|
464
|
if (timer == 66)
|
|
465
|
{
|
|
466
|
var puff = instance_create_board(0, 3, obj_board_smokepuff);
|
|
467
|
with (puff)
|
|
468
|
scr_board_depth();
|
|
469
|
puff = instance_create_board(0, 4, obj_board_smokepuff);
|
|
470
|
with (puff)
|
|
471
|
scr_board_depth();
|
|
472
|
snd_play(snd_board_splash);
|
|
473
|
}
|
|
474
|
if (i_ex(nose))
|
|
475
|
{
|
|
476
|
with (nose)
|
|
477
|
{
|
|
478
|
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();
} ();
|
|
479
|
if (depth > (other.depth - 5))
|
|
480
|
depth = other.depth - 5;
|
|
481
|
if (place_meeting(x, y, obj_board_tree_static))
|
|
482
|
{
|
|
483
|
var _deadtree = instance_place(x, y, obj_board_tree_static);
|
|
484
|
with (_deadtree)
|
|
485
|
instance_destroy();
|
|
486
|
}
|
|
487
|
}
|
|
488
|
}
|
|
489
|
if (timer == 80)
|
|
490
|
{
|
|
491
|
safe_delete(nose);
|
|
492
|
solved = 1;
|
|
493
|
read = 0;
|
|
494
|
con++;
|
|
495
|
}
|
|
496
|
}
|
|
497
|
if (con == 14)
|
|
498
|
{
|
|
499
|
con = 0;
|
|
500
|
kr.facing = 0;
|
|
501
|
kr.controlled = true;
|
|
502
|
myinteract = 0;
|
|
503
|
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", 2, 4.5, 3);
|
|
504
|
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.5, 3, 3);
|
|
505
|
}
|
|
506
|
}
|
|
507
|
if (!active)
|
|
508
|
{
|
|
509
|
if (bosstalk == 1)
|
|
510
|
bosstalk = 2;
|
|
511
|
visitinit = 0;
|
|
512
|
if (visitcon > 1 && visitcon < 100)
|
|
513
|
visitcon = 15;
|
|
514
|
if (visitcon == 100)
|
|
515
|
visitcon = -1;
|
|
516
|
nointeract = 0;
|
|
517
|
suwalk = 0;
|
|
518
|
suwalktimer = 0;
|
|
519
|
}
|