|
1
|
if (kris == 0)
|
|
2
|
{
|
|
3
|
with (obj_mainchara_board)
|
|
4
|
{
|
|
5
|
if (name == "kris")
|
|
6
|
other.kris = id;
|
|
7
|
}
|
|
8
|
}
|
|
9
|
if (ralsei == 0)
|
|
10
|
{
|
|
11
|
with (obj_mainchara_board)
|
|
12
|
{
|
|
13
|
if (name == "ralsei")
|
|
14
|
other.ralsei = id;
|
|
15
|
}
|
|
16
|
}
|
|
17
|
if (susie == 0)
|
|
18
|
{
|
|
19
|
with (obj_mainchara_board)
|
|
20
|
{
|
|
21
|
if (name == "susie")
|
|
22
|
other.susie = id;
|
|
23
|
}
|
|
24
|
}
|
|
25
|
if (powerup == 0)
|
|
26
|
{
|
|
27
|
with (obj_board_pickup)
|
|
28
|
{
|
|
29
|
if (type == "power")
|
|
30
|
other.powerup = id;
|
|
31
|
}
|
|
32
|
}
|
|
33
|
if (kris_real == 0)
|
|
34
|
kris_real = 1185;
|
|
35
|
if (susie_real == 0)
|
|
36
|
{
|
|
37
|
with (obj_caterpillarchara)
|
|
38
|
{
|
|
39
|
if (name == "susie")
|
|
40
|
other.susie_real = id;
|
|
41
|
}
|
|
42
|
}
|
|
43
|
if (ralsei_real == 0)
|
|
44
|
{
|
|
45
|
with (obj_caterpillarchara)
|
|
46
|
{
|
|
47
|
if (name == "ralsei")
|
|
48
|
other.ralsei_real = id;
|
|
49
|
}
|
|
50
|
}
|
|
51
|
if (tenna == 0)
|
|
52
|
{
|
|
53
|
with (obj_actor_tenna)
|
|
54
|
other.tenna = id;
|
|
55
|
}
|
|
56
|
if (active == 1)
|
|
57
|
{
|
|
58
|
if (firstvisitdialogue == 0 && obj_board_camera.con == 0)
|
|
59
|
{
|
|
60
|
var sutalk = stringsetloc(Woah, what is that?"Woah, what is that?", "obj_b1power_slash_Step_0_gml_18_0" );
|
|
61
|
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);
|
|
62
|
firstvisitdialogue = 1;
|
|
63
|
}
|
|
64
|
if (con == 0 && obj_board_camera.con == 0)
|
|
65
|
{
|
|
66
|
timer++;
|
|
67
|
if (timer == 1)
|
|
68
|
{
|
|
69
|
ralsei.follow = 0;
|
|
70
|
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");
|
|
71
|
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");
|
|
72
|
}
|
|
73
|
if (timer == 5)
|
|
74
|
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", 5, 4, 0);
|
|
75
|
if (timer == 15)
|
|
76
|
{
|
|
77
|
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, 2);
|
|
78
|
con = 1;
|
|
79
|
}
|
|
80
|
}
|
|
81
|
if (con == 1)
|
|
82
|
{
|
|
83
|
if (powerup.con == 22)
|
|
84
|
{
|
|
85
|
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");
|
|
86
|
with (susie)
|
|
87
|
{
|
|
88
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 1, "x", round(x));
|
|
89
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 1, "y", round(y));
|
|
90
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 1, "facing", 0);
|
|
91
|
}
|
|
92
|
con = 10;
|
|
93
|
}
|
|
94
|
if (powerup.con == 32)
|
|
95
|
{
|
|
96
|
timer = 0;
|
|
97
|
con = 14;
|
|
98
|
}
|
|
99
|
}
|
|
100
|
if (con == 10)
|
|
101
|
{
|
|
102
|
kris.facing = 0;
|
|
103
|
kris.canfreemove = 0;
|
|
104
|
ralsei.canfreemove = 0;
|
|
105
|
ralsei.facing = 0;
|
|
106
|
global.interact = 0;
|
|
107
|
con = 11;
|
|
108
|
timer = 0;
|
|
109
|
}
|
|
110
|
if (con == 11)
|
|
111
|
{
|
|
112
|
timer++;
|
|
113
|
if (timer == 3)
|
|
114
|
{
|
|
115
|
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");
|
|
116
|
msgsetloc(0, KRIS GOT THE POWER CROISSANT"KRIS GOT THE \\cYPOWER CROISSANT\\cW", "obj_b1power_slash_Step_0_gml_79_0" );
|
|
117
|
var d = bw_make();
|
|
118
|
d.side = 1;
|
|
119
|
}
|
|
120
|
if (timer == 15)
|
|
121
|
{
|
|
122
|
susie.x = floor(susie.x);
|
|
123
|
susie.y = floor(susie.y);
|
|
124
|
}
|
|
125
|
if (timer == 16)
|
|
126
|
{
|
|
127
|
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", kris.x - 32, kris.y);
|
|
128
|
con++;
|
|
129
|
}
|
|
130
|
}
|
|
131
|
if (con == 12)
|
|
132
|
{
|
|
133
|
if (susie.is_moving == false)
|
|
134
|
susiefail++;
|
|
135
|
susiefail2++;
|
|
136
|
if (susiefail > 3 || (susiefail2 > 30 && susie.is_moving == false))
|
|
137
|
{
|
|
138
|
var targx = kris.x - 32;
|
|
139
|
var targy = kris.y;
|
|
140
|
with (susie)
|
|
141
|
{
|
|
142
|
path_end();
|
|
143
|
susierecordstring = "";
|
|
144
|
susierecordcon = 0;
|
|
145
|
susierecordcount = 0;
|
|
146
|
x = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (lerp(x, targx, 0.16666666666666666));
|
|
147
|
y = scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (lerp(y, targy, 0.16666666666666666));
|
|
148
|
if (point_distance(x, y, xprevious, yprevious) > 4)
|
|
149
|
{
|
|
150
|
var _facing = point_direction(xprevious, yprevious, x, y);
|
|
151
|
_facing += 90;
|
|
152
|
if (_facing > 360)
|
|
153
|
_facing -= 360;
|
|
154
|
_facing = round(_facing / 90);
|
|
155
|
if (_facing == 4)
|
|
156
|
_facing = 0;
|
|
157
|
facing = _facing;
|
|
158
|
}
|
|
159
|
}
|
|
160
|
}
|
|
161
|
if ((abs(kris.x - 32 - susie.x) < 8 && abs(kris.y - susie.y) < 8) || susiefail2 >= 60)
|
|
162
|
{
|
|
163
|
with (susie)
|
|
164
|
{
|
|
165
|
path_end();
|
|
166
|
susierecordstring = "";
|
|
167
|
susierecordcon = 0;
|
|
168
|
susierecordcount = 0;
|
|
169
|
}
|
|
170
|
susie.x = kris.x - 32;
|
|
171
|
susie.y = kris.y;
|
|
172
|
susie.facing = 1;
|
|
173
|
safe_delete(obj_board_writer);
|
|
174
|
safe_delete(obj_writer);
|
|
175
|
kris.fun = 0;
|
|
176
|
kris.facing = 0;
|
|
177
|
with (kris)
|
|
178
|
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);
} ();
|
|
179
|
snd_play(snd_board_playerhurt);
|
|
180
|
con = 13;
|
|
181
|
timer = 0;
|
|
182
|
}
|
|
183
|
}
|
|
184
|
if (con == 13)
|
|
185
|
{
|
|
186
|
timer++;
|
|
187
|
if (timer == 2)
|
|
188
|
{
|
|
189
|
with (powerup)
|
|
190
|
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;
} (other.susie.x, other.susie.y - 32 - 8, 4, 10);
|
|
191
|
timer = 0;
|
|
192
|
con = 14;
|
|
193
|
}
|
|
194
|
}
|
|
195
|
if (con == 14)
|
|
196
|
{
|
|
197
|
timer++;
|
|
198
|
if (timer == 10)
|
|
199
|
{
|
|
200
|
if (!skipredo)
|
|
201
|
{
|
|
202
|
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");
|
|
203
|
with (susie)
|
|
204
|
{
|
|
205
|
var transitiontime = 12;
|
|
206
|
var spintime = 1;
|
|
207
|
var spindelay = 3;
|
|
208
|
fun = 1;
|
|
209
|
sprite_index = dsprite;
|
|
210
|
scr_delay_var("sprite_index", lsprite, spintime * 3);
|
|
211
|
scr_delay_var("sprite_index", usprite, spintime * 4);
|
|
212
|
scr_delay_var("sprite_index", rsprite, spintime * 5);
|
|
213
|
scr_delay_var("sprite_index", dsprite, spintime * 6);
|
|
214
|
scr_delay_var("sprite_index", lsprite, spintime * 7);
|
|
215
|
scr_delay_var("sprite_index", usprite, spintime * 8);
|
|
216
|
scr_delay_var("sprite_index", rsprite, spintime * 9);
|
|
217
|
scr_delay_var("sprite_index", dsprite_item, spintime * 10);
|
|
218
|
}
|
|
219
|
snd_play_delay(snd_link_sfx_itemget, 12);
|
|
220
|
powerup.makestars = false;
|
|
221
|
powerup.makestarstimer = 0;
|
|
222
|
with (powerup)
|
|
223
|
scr_delay_var("makestars", true, 12);
|
|
224
|
}
|
|
225
|
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");
|
|
226
|
msgsetloc(0, SUSIE GOT THE POWER CROISSANTWait for input"SUSIE GOT THE \\cYPOWER CROISSANT\\cW/", "obj_b1power_slash_Step_0_gml_154_0" );
|
|
227
|
msgnextloc(SHE CAN NOW PICK UP POTS AND WEEDS.Wait for inputClose Message"SHE CAN NOW PICK UP POTS AND WEEDS./%", "obj_b1power_slash_Step_0_gml_155_0" );
|
|
228
|
var d = bw_make();
|
|
229
|
d.side = 1;
|
|
230
|
con = 15;
|
|
231
|
}
|
|
232
|
}
|
|
233
|
if (con == 15 && !bw_ex())
|
|
234
|
{
|
|
235
|
powerup.con = 99999;
|
|
236
|
powerup.depth = susie.depth + 1;
|
|
237
|
scr_lerpvar_instancescr_lerpvar_instance
function scr_lerpvar_instance()
{
__lerpvar = instance_create(0, 0, obj_lerpvar);
__lerpvar.target = argument[0];
__lerpvar.varname = argument[1];
__lerpvar.pointa = argument[2];
__lerpvar.pointb = argument[3];
__lerpvar.maxtime = argument[4];
if (argument_count >= 6)
__lerpvar.easetype = argument[5];
if (argument_count >= 7)
__lerpvar.easeinout = argument[6];
return __lerpvar;
}
function scr_lerp_var_instance()
{
if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
}
function scr_lerp_instance_var()
{
if (argument_count >= 6)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
} (powerup, "y", powerup.y, susie.y, 10, 2, "in");
|
|
238
|
snd_play_delay(snd_item, 10);
|
|
239
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (powerup, 10);
|
|
240
|
con = -999;
|
|
241
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
} (scr_var, 10, "con", 16);
|
|
242
|
timer = 0;
|
|
243
|
}
|
|
244
|
if (con == 16)
|
|
245
|
{
|
|
246
|
timer++;
|
|
247
|
if (timer == 1)
|
|
248
|
{
|
|
249
|
susie_real.sprite_index = susie_real.rsprite;
|
|
250
|
with (susie_real)
|
|
251
|
scr_var_delayscr_var_delay
function scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_var_delayed(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_delay_var(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} ("sprite_index", usprite, 40);
|
|
252
|
var susietalk = stringsetloc(Whoa, really?"Whoa, really?", "obj_b1power_slash_Step_0_gml_180_0" );
|
|
253
|
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;
} (susietalk, "susie", 2, 60);
|
|
254
|
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");
|
|
255
|
susie.fun = 0;
|
|
256
|
susie.facing = 0;
|
|
257
|
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");
|
|
258
|
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", 5, 4, 0);
|
|
259
|
global.interact = 0;
|
|
260
|
with (obj_mainchara_board)
|
|
261
|
canfreemove = 1;
|
|
262
|
global.flag[1020 got_power_croissant] = 1;
|
|
263
|
}
|
|
264
|
if (timer == 10)
|
|
265
|
{
|
|
266
|
timer = 0;
|
|
267
|
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", 416, 194, 0);
|
|
268
|
con = 16.5;
|
|
269
|
}
|
|
270
|
}
|
|
271
|
if (con == 16.5)
|
|
272
|
{
|
|
273
|
if (abs(susie.x - 416) < 6 && abs(susie.y - 194) < 6)
|
|
274
|
{
|
|
275
|
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");
|
|
276
|
debug_message("before: susiexy=" + string(susie.x) + "|" + string(susie.y));
|
|
277
|
with (susie)
|
|
278
|
setxy(416, 194);
|
|
279
|
debug_message("after: susiexy=" + string(susie.x) + "|" + string(susie.y));
|
|
280
|
susie.facing = 0;
|
|
281
|
susie.grabbablelist[5] = 0;
|
|
282
|
makesuretoreset = 1;
|
|
283
|
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;
}
}
} ("010W0W0W0W0W0W0W0W0U0U0W0W0W0W0W0W0W010W0W0W0W0W0W0W0W0W0W0W0L0L0L0L0L0L0L0L0L0L0D0D0D0W0W0W010W0W0W0U0U0U0W0L0L0W0W0W0W0W0W010W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0W0U0U0U0U0U0U0U0U0U0U0U0U0LU0LU0LU0LU0LU0LU0LU0LU0LU0LU0LU0LU0LU0LU0L0L0L0L0L0L0L0L010W0W0W0W0W0W0W0W0R0R0R0R0W0W010W0W0W0W0W0W0W0W0W0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L10L0W0W0W0W0W0W0W0D0D0D0W0W010W0W0W0W0W0W0W0W0W");
|
|
284
|
con = 17;
|
|
285
|
}
|
|
286
|
}
|
|
287
|
if (con == 17 && obj_board_camera.shift == "none")
|
|
288
|
{
|
|
289
|
timer++;
|
|
290
|
if (timer == 36)
|
|
291
|
{
|
|
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
|
var sutalk = stringsetloc(Finally, some goddamn GAMEPLAY."Finally, some goddamn GAMEPLAY.", "obj_b1power_slash_Step_0_gml_228_0" );
|
|
294
|
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);
|
|
295
|
}
|
|
296
|
if (timer == 79)
|
|
297
|
{
|
|
298
|
ralsei_real.sprite_index = spr_ralsei_surprise_left;
|
|
299
|
with (ralsei_real)
|
|
300
|
scr_var_delayscr_var_delay
function scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_var_delayed(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_delay_var(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} ("sprite_index", usprite, 90);
|
|
301
|
var ratalk = stringsetloc(Watch what you're throwing!"Watch what you're throwing!", "obj_b1power_slash_Step_0_gml_235_0" );
|
|
302
|
var bub = scr_couchtalkscr_couchtalk
function scr_couchclear(arg0)
{
with (obj_couchwriter)
{
if (speaker == arg0)
instance_destroy();
}
}
function scr_couchtalk(arg0, arg1)
{
var ix = -1;
var iy = -1;
if (argument_count >= 6)
{
ix = argument4;
iy = argument5;
}
var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter);
couchtext.mystring = arg0;
couchtext.speaker = arg1;
if (argument_count >= 3)
couchtext.cleartext = argument2;
if (argument_count >= 4)
couchtext.drawtime = argument3;
if (argument_count >= 7)
couchtext.customsnd = argument6;
if (argument_count >= 8)
couchtext.customcolor = argument7;
if (argument_count >= 9)
couchtext.talkrate = argument8;
if (argument_count >= 10)
couchtext.talklength = argument9;
return couchtext;
} (ratalk, "ralsei", 2, 90);
|
|
303
|
bub.depth -= 10;
|
|
304
|
snd_play(snd_board_damage);
|
|
305
|
with (ralsei)
|
|
306
|
{
|
|
307
|
if (myhealth > 1)
|
|
308
|
myhealth--;
|
|
309
|
iframes = 20;
|
|
310
|
}
|
|
311
|
}
|
|
312
|
if (timer == 105)
|
|
313
|
restrain = true;
|
|
314
|
if (timer == 152)
|
|
315
|
restrain = false;
|
|
316
|
if (timer == 106)
|
|
317
|
{
|
|
318
|
ralsei.fun = 1;
|
|
319
|
ralsei.sprite_index = ralsei.usprite;
|
|
320
|
}
|
|
321
|
if (timer == 189)
|
|
322
|
ralsei.sprite_index = ralsei.lsprite;
|
|
323
|
if (timer == 205)
|
|
324
|
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, 4);
|
|
325
|
if (timer == 230)
|
|
326
|
{
|
|
327
|
debug_print("now kris can't leave");
|
|
328
|
kris.cantleave = true;
|
|
329
|
susie.facing = 1;
|
|
330
|
}
|
|
331
|
if (timer == 233)
|
|
332
|
ralsei.sprite_index = ralsei.dsprite;
|
|
333
|
if (timer == 234 && obj_board_camera.con == 0)
|
|
334
|
{
|
|
335
|
with (susie)
|
|
336
|
{
|
|
337
|
grabbed = other.ralsei;
|
|
338
|
grab = 1;
|
|
339
|
grabmarker = instance_create(x, y, obj_board_grabobject);
|
|
340
|
with (grabmarker)
|
|
341
|
{
|
|
342
|
drawreticle = false;
|
|
343
|
snd_play(snd_board_lift);
|
|
344
|
grabdaddy = other.id;
|
|
345
|
grabbedid = other.grabbed;
|
|
346
|
sprite_index = grabbedid.sprite_index;
|
|
347
|
image_xscale = grabbedid.image_xscale;
|
|
348
|
image_yscale = grabbedid.image_yscale;
|
|
349
|
image_speed = grabbedid.image_speed;
|
|
350
|
sourcex = grabbedid.x;
|
|
351
|
sourcey = grabbedid.y;
|
|
352
|
}
|
|
353
|
with (grabbed)
|
|
354
|
{
|
|
355
|
fun = 0;
|
|
356
|
frozen = true;
|
|
357
|
setxy(board_tilex(-1), board_tiley(-1));
|
|
358
|
if (object_index == obj_mainchara_board)
|
|
359
|
canfreemove = 0;
|
|
360
|
}
|
|
361
|
}
|
|
362
|
}
|
|
363
|
if (timer == 234)
|
|
364
|
ralsei.visible = false;
|
|
365
|
if (timer == 236)
|
|
366
|
{
|
|
367
|
ralsei_real.sprite_index = spr_ralsei_shocked_left;
|
|
368
|
ralsei_real.y -= 14;
|
|
369
|
var ratalk = stringsetloc(H-hey!"H-hey!", "obj_b1power_slash_Step_0_gml_323_0" );
|
|
370
|
var bub = 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, 60);
|
|
371
|
}
|
|
372
|
if (timer == 240)
|
|
373
|
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", 3, 3, 1);
|
|
374
|
if (timer == 275)
|
|
375
|
{
|
|
376
|
var sutalk = stringsetloc(Watch THIS!"Watch THIS!", "obj_b1power_slash_Step_0_gml_332_0" );
|
|
377
|
var bub = 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);
|
|
378
|
bub.depth -= 10;
|
|
379
|
}
|
|
380
|
if (timer == 300)
|
|
381
|
{
|
|
382
|
grabbedralsei = instance_create(obj_board_grabobject.x, obj_board_grabobject.y - 28, obj_board_marker);
|
|
383
|
grabbedralsei.sprite_index = spr_board_ralsei_hurt;
|
|
384
|
grabbedralsei.image_index = 1;
|
|
385
|
grabbedralsei.image_speed = 0;
|
|
386
|
grabbedralsei.depth = susie.depth - 1;
|
|
387
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} (grabbedralsei);
|
|
388
|
with (grabbedralsei)
|
|
389
|
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(5.5), board_tiley(3), 12, 16);
|
|
390
|
obj_board_grabobject.visible = false;
|
|
391
|
snd_play(snd_board_throw);
|
|
392
|
}
|
|
393
|
if (timer == 302)
|
|
394
|
{
|
|
395
|
susie.fun = true;
|
|
396
|
susie.sprite_index = spr_board_susie_walk_right;
|
|
397
|
}
|
|
398
|
if (timer == 316)
|
|
399
|
{
|
|
400
|
with (grabbedralsei)
|
|
401
|
scr_board_depth();
|
|
402
|
grabbedralsei.image_speed = 0.125;
|
|
403
|
snd_play(snd_board_splash);
|
|
404
|
}
|
|
405
|
if (timer == 320)
|
|
406
|
{
|
|
407
|
with (ralsei_real)
|
|
408
|
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);
} ();
|
|
409
|
snd_play(snd_wing);
|
|
410
|
scr_resetgameshowcharacterscr_resetgameshowcharacter
function scr_resetgameshowcharacter(arg0)
{
if (room == room_dw_puzzlecloset_3)
exit;
var _name = arg0;
var _smooth = 0;
var __found = 0;
if (argument_count == 2)
_smooth = argument1;
if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all")
{
var _krx = 248;
var _kry = 400;
if (scr_swordroom())
{
_krx = 300;
_kry = 298;
}
with (obj_mainchara)
{
if (_smooth == 0)
{
setxy(_krx, _kry);
}
else
{
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
}
fun = true;
ignoredepth = true;
depth = 95240;
sprite_index = spr_krisu_dark;
image_speed = 0;
image_index = 0;
if (scr_swordroom())
{
sprite_index = spr_krisu_holdcontroller;
depth = 96260;
}
scr_darksize();
__found = 1;
}
}
if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all")
{
with (obj_caterpillarchara)
{
if (name == "susie")
{
fun = true;
ignoredepth = true;
depth = 95165;
var _sux = 140;
var _suy = 392;
if (_smooth == 0)
{
setxy(_sux, _suy);
}
else
{
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
}
sprite_index = spr_susie_walk_up_dw;
image_speed = 0;
image_index = 0;
scr_darksize();
__found = 1;
}
}
}
if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all")
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
{
fun = true;
ignoredepth = true;
depth = 95145;
var _rax = 342;
var _ray = 396;
if (_smooth == 0)
{
setxy(_rax, _ray);
}
else
{
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
}
sprite_index = spr_ralsei_walk_up;
image_speed = 0;
image_index = 0;
scr_darksize();
__found = 1;
}
}
}
if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all")
... ("ralsei");
|
|
411
|
ralsei_real.sprite_index = spr_ralsei_up;
|
|
412
|
var ratalk = stringsetloc(I... I'm drowning!!"I... I'm drowning!!", "obj_b1power_slash_Step_0_gml_367_0" );
|
|
413
|
if (obj_board_oasis.wither)
|
|
414
|
ratalk = stringsetloc(It... It's quicksand!"It... It's quicksand!", "obj_b1power_slash_Step_0_gml_368_0" );
|
|
415
|
var bub = 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, 60);
|
|
416
|
}
|
|
417
|
if (timer == 324)
|
|
418
|
ad = instance_create(x, y, obj_gameshow_drowningRalsei_ad);
|
|
419
|
if (timer == 370)
|
|
420
|
{
|
|
421
|
with (tenna)
|
|
422
|
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;
} ("image_yscale", 2.4, 2, 8, 2, "in");
|
|
423
|
with (tenna)
|
|
424
|
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;
} ("image_xscale", 1.8, 2, 6, 2, "in");
|
|
425
|
var tetalk = stringsetloc(Ralsei plush! Fill him with liquid, throw him against the wall!"Ralsei plush! Fill him with liquid, throw him against the wall!", "obj_b1power_slash_Step_0_gml_379_0" );
|
|
426
|
if (obj_board_oasis.wither)
|
|
427
|
tetalk = stringsetloc(I hope the class was paying attention to the physics of quicksand!"I hope the class was paying attention to the physics of quicksand!", "obj_b1power_slash_Step_0_gml_380_0" );
|
|
428
|
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, 180);
|
|
429
|
}
|
|
430
|
if (timer == 508)
|
|
431
|
{
|
|
432
|
ralsei_real.sprite_index = spr_ralsei_shocked_right;
|
|
433
|
ralsei_real.y -= 12;
|
|
434
|
var ratalk = stringsetloc(Stop advertising me! I'm dying!"Stop advertising me! I'm dying!", "obj_b1power_slash_Step_0_gml_387_0" );
|
|
435
|
if (obj_board_oasis.wither)
|
|
436
|
ratalk = stringsetloc(Won't someone please help me?"Won't someone please help me?", "obj_b1power_slash_Step_0_gml_388_0" );
|
|
437
|
var bub = 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, 120);
|
|
438
|
}
|
|
439
|
if (timer > 470 && timer < 530)
|
|
440
|
{
|
|
441
|
if ((timer % 2) == 0)
|
|
442
|
grabbedralsei.image_alpha = 1 - grabbedralsei.image_alpha;
|
|
443
|
}
|
|
444
|
if (timer == 530)
|
|
445
|
{
|
|
446
|
safe_delete(grabbedralsei);
|
|
447
|
with (susie)
|
|
448
|
{
|
|
449
|
with (grabmarker)
|
|
450
|
{
|
|
451
|
with (grabbedid)
|
|
452
|
{
|
|
453
|
setxy(other.sourcex, other.sourcey);
|
|
454
|
visible = true;
|
|
455
|
frozen = false;
|
|
456
|
}
|
|
457
|
grabdaddy.grabbed = 0;
|
|
458
|
grabdaddy.grab = 0;
|
|
459
|
grabdaddy.canfreemove = 1;
|
|
460
|
instance_destroy();
|
|
461
|
}
|
|
462
|
}
|
|
463
|
kris.cantleave = false;
|
|
464
|
ralsei.iframes = 20;
|
|
465
|
ralsei.canfreemove = true;
|
|
466
|
ralsei.fun = 0;
|
|
467
|
ralsei.facing = 0;
|
|
468
|
susie.fun = 0;
|
|
469
|
}
|
|
470
|
if (timer == 542)
|
|
471
|
{
|
|
472
|
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, 4);
|
|
473
|
suchase = 0;
|
|
474
|
}
|
|
475
|
if (timer > 550 && suchase == 0)
|
|
476
|
{
|
|
477
|
if (abs(susie.x - board_tilex(4)) < 8 && abs(susie.y - board_tiley(4)) < 8)
|
|
478
|
{
|
|
479
|
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");
|
|
480
|
debug_message("_____chase section");
|
|
481
|
debug_message("before: susiexy=" + string(susie.x) + "|" + string(susie.y));
|
|
482
|
with (susie)
|
|
483
|
setxy(board_tilex(4), board_tiley(4));
|
|
484
|
debug_message("after: susiexy=" + string(susie.x) + "|" + string(susie.y));
|
|
485
|
suchase = 1;
|
|
486
|
ralsei_real.sprite_index = spr_ralsei_walk_up;
|
|
487
|
scr_resetgameshowcharacterscr_resetgameshowcharacter
function scr_resetgameshowcharacter(arg0)
{
if (room == room_dw_puzzlecloset_3)
exit;
var _name = arg0;
var _smooth = 0;
var __found = 0;
if (argument_count == 2)
_smooth = argument1;
if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all")
{
var _krx = 248;
var _kry = 400;
if (scr_swordroom())
{
_krx = 300;
_kry = 298;
}
with (obj_mainchara)
{
if (_smooth == 0)
{
setxy(_krx, _kry);
}
else
{
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
}
fun = true;
ignoredepth = true;
depth = 95240;
sprite_index = spr_krisu_dark;
image_speed = 0;
image_index = 0;
if (scr_swordroom())
{
sprite_index = spr_krisu_holdcontroller;
depth = 96260;
}
scr_darksize();
__found = 1;
}
}
if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all")
{
with (obj_caterpillarchara)
{
if (name == "susie")
{
fun = true;
ignoredepth = true;
depth = 95165;
var _sux = 140;
var _suy = 392;
if (_smooth == 0)
{
setxy(_sux, _suy);
}
else
{
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
}
sprite_index = spr_susie_walk_up_dw;
image_speed = 0;
image_index = 0;
scr_darksize();
__found = 1;
}
}
}
if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all")
{
with (obj_caterpillarchara)
{
if (name == "ralsei")
{
fun = true;
ignoredepth = true;
depth = 95145;
var _rax = 342;
var _ray = 396;
if (_smooth == 0)
{
setxy(_rax, _ray);
}
else
{
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
}
sprite_index = spr_ralsei_walk_up;
image_speed = 0;
image_index = 0;
scr_darksize();
__found = 1;
}
}
}
if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all")
... ("ralsei");
|
|
488
|
susie.sleepy = true;
|
|
489
|
ralsei.sleepy = true;
|
|
490
|
var circlestring = "0R0R0R0R0R0R0R0R0R0R0R0R0R0R0R0RU0RU0U0U0U0U0U0U0U0U0U0U0U0U0U0U0LU0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0L0LD0D0D0D0D0D0D0D0D0D0D0D0D0D0D0RD0RD0R0R0R0R0R0R0R0R";
|
|
491
|
for (var i = 0; i < 10; i++)
|
|
492
|
circlestring += circlestring;
|
|
493
|
var suwalkstring = "0R0R0R0R0R0R0R0R0R0R" + circlestring;
|
|
494
|
scr_play_ralsei_recordingscr_play_ralsei_recording
function scr_play_ralsei_recording(arg0)
{
with (obj_mainchara_board)
{
if (name == "ralsei")
{
susierecordcon = 2;
susierecordcount = 0;
susierecordstring = arg0;
susierecordsave = false;
}
}
} (circlestring);
|
|
495
|
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;
}
}
} (suwalkstring);
|
|
496
|
}
|
|
497
|
}
|
|
498
|
if (timer == 700)
|
|
499
|
{
|
|
500
|
tenna.bounce = 1;
|
|
501
|
var tetalk = stringsetloc(Hey kid, let's keep this show rolling!"Hey kid, let's keep this show rolling!", "obj_b1power_slash_Step_0_gml_461_0" );
|
|
502
|
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");
|
|
503
|
}
|
|
504
|
}
|
|
505
|
if (con == 200 && obj_board_camera.con == 0)
|
|
506
|
{
|
|
507
|
ralsei.follow = 1;
|
|
508
|
susie.graballpots = false;
|
|
509
|
var potcount = 0;
|
|
510
|
with (obj_board_grabbleObject)
|
|
511
|
{
|
|
512
|
if (x >= 128 && x < 512 && y >= 64 && y <= 320)
|
|
513
|
potcount++;
|
|
514
|
}
|
|
515
|
if (potcount > 0)
|
|
516
|
susie.graballpots = true;
|
|
517
|
con = 201;
|
|
518
|
}
|
|
519
|
if (con == 201)
|
|
520
|
{
|
|
521
|
if (susie.graballpots == false)
|
|
522
|
{
|
|
523
|
susie.sleepy = true;
|
|
524
|
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(5, 6), 4, 0);
|
|
525
|
con = 202;
|
|
526
|
}
|
|
527
|
}
|
|
528
|
if (restrain == true && obj_board_camera.con == 0)
|
|
529
|
{
|
|
530
|
if (susie.y < 80)
|
|
531
|
susie.y = 80;
|
|
532
|
}
|
|
533
|
}
|
|
534
|
else
|
|
535
|
{
|
|
536
|
restrain = false;
|
|
537
|
if (makesuretoreset == true)
|
|
538
|
makesuretoreset = false;
|
|
539
|
if (i_ex(powerup))
|
|
540
|
{
|
|
541
|
timer = 0;
|
|
542
|
con = 0;
|
|
543
|
if (powerup.con != 2)
|
|
544
|
powerup.con = 2;
|
|
545
|
if (i_ex(powerup))
|
|
546
|
{
|
|
547
|
powerup.x = x + 192;
|
|
548
|
powerup.y = y + 32;
|
|
549
|
}
|
|
550
|
}
|
|
551
|
else
|
|
552
|
{
|
|
553
|
con = 200;
|
|
554
|
}
|
|
555
|
}
|