1 |
if (con == 0) |
2 |
{ |
3 |
if (!shortened) |
4 |
{ |
5 |
JA_XOFF = 0; |
6 |
con = 1; |
7 |
alarm[4] = 220; |
8 |
} |
9 |
else |
10 |
{ |
11 |
con = 9; |
12 |
y -= 220; |
13 |
} |
14 |
} |
15 |
if (con == 1) |
16 |
{ |
17 |
y -= 1; |
18 |
image_index = imageanimator; |
19 |
imageanimator += 0.1; |
20 |
global.interact = 1; |
21 |
} |
22 |
if (con == 2) |
23 |
{ |
24 |
image_index = 0; |
25 |
con = 3; |
26 |
alarm[4] = 60; |
27 |
} |
28 |
if (con == 4) |
29 |
{ |
30 |
con = 5; |
31 |
global.typer = 42; |
32 |
global.msg[0] = stringsetloc((It was as if your very SOUL was glowing...)Wait for inputClose Message"(It was as if your very SOUL was glowing...)/%", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_36_0" ); |
33 |
instance_create(80 + JA_XOFF, 80, obj_writer); |
34 |
} |
35 |
if (con == 5 && !instance_exists(obj_writer)) |
36 |
{ |
37 |
con = 7; |
38 |
alarm[4] = 60; |
39 |
} |
40 |
if (con == 8) |
41 |
{ |
42 |
con = 9; |
43 |
scr_speakerscr_speakerfunction 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 == "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;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("sneo"); |
44 |
msgsetloc(0, * NOT!!!Wait for inputClose Message"* NOT!!!/%", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_53_0" ); |
45 |
var d = d_make(); |
46 |
d.side = 0; |
47 |
} |
48 |
if (con == 9 && !d_ex()) |
49 |
{ |
50 |
con = 10; |
51 |
obj_mainchara.x = x; |
52 |
obj_mainchara.y = y; |
53 |
if (sneo == noone) |
54 |
{ |
55 |
sneo = instance_create(255, cameray() - 300, obj_spamton_neo_enemy); |
56 |
sneo.myself = 1; |
57 |
sneo.facing = 1; |
58 |
sneo.gravity = 4; |
59 |
sneo.shadow_amount = 1; |
60 |
sneo.partmode = 30; |
61 |
} |
62 |
} |
63 |
if (con == 10) |
64 |
{ |
65 |
if (sneo.y >= (y - 140)) |
66 |
{ |
67 |
con = 12; |
68 |
alarm[4] = 60; |
69 |
snd_play(snd_hurt1); |
70 |
snd_play(snd_damage); |
71 |
with (sneo) |
72 |
{ |
73 |
gravity = 0; |
74 |
vspeed = 0; |
75 |
} |
76 |
draw_kris = false; |
77 |
with (obj_mainchara) |
78 |
{ |
79 |
visible = 1; |
80 |
fun = 1; |
81 |
sprite_index = spr_kris_dw_landed; |
82 |
image_speed = 0; |
83 |
hspeed = -20; |
84 |
friction = 0.8; |
85 |
} |
86 |
snd_play_x(snd_swing, 1, 0.5); |
87 |
} |
88 |
} |
89 |
if (con == 13) |
90 |
{ |
91 |
if (!shortened) |
92 |
{ |
93 |
if (sneo.gravity == 0) |
94 |
snd_play_x(snd_swing, 1, 0.5); |
95 |
with (sneo) |
96 |
gravity = -2; |
97 |
if (sneo.y <= (cameray() - 200)) |
98 |
{ |
99 |
con = 14; |
100 |
sneo.gravity = 0; |
101 |
sneo.x = 460; |
102 |
sneo.y = cameray() - 200; |
103 |
} |
104 |
} |
105 |
else |
106 |
{ |
107 |
con = 15; |
108 |
alarm[4] = 60; |
109 |
sneo.partmode = 33; |
110 |
scr_lerpvar_instancescr_lerpvar_instancefunction 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;
} (sneo, "x", sneo.x, sneo.x + 200, 15, 1, "out"); |
111 |
} |
112 |
} |
113 |
if (con == 14) |
114 |
{ |
115 |
sneo.gravity = 4; |
116 |
if (!sneo_fall_sfx) |
117 |
{ |
118 |
sneo_fall_timer++; |
119 |
if (sneo_fall_timer == 15) |
120 |
{ |
121 |
sneo_fall_sfx = true; |
122 |
snd_play_x(snd_swing, 1, 0.5); |
123 |
} |
124 |
} |
125 |
if (sneo.y >= (y - 140)) |
126 |
{ |
127 |
con = 15; |
128 |
alarm[4] = 60; |
129 |
snd_play(snd_impact); |
130 |
with (sneo) |
131 |
{ |
132 |
gravity = 0; |
133 |
vspeed = 0; |
134 |
} |
135 |
sneo.partmode = 33; |
136 |
} |
137 |
} |
138 |
if (con == 16) |
139 |
{ |
140 |
con = 17; |
141 |
cutscene_master = scr_cutscene_makescr_cutscene_makefunction scr_cutscene_make()
{
_cutscene_master = instance_create(0, 0, obj_cutscene_master);
_cutscene_master.master_object = id;
return _cutscene_master;
} (); |
142 |
scr_maincharacters_actorsscr_maincharacters_actorsfunction scr_maincharacters_actors()
{
actor_count = 0;
kr = 0;
kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index;
kr_actor.depth = obj_mainchara.depth;
with (obj_mainchara)
visible = 0;
for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++)
{
if (i_ex(global.cinstance[__jj]))
{
if (global.cinstance[__jj].name == "susie")
{
actor_count++;
su = __jj + 1;
su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index;
su_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "ralsei")
{
actor_count++;
ra = __jj + 1;
ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index;
ra_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "noelle")
{
actor_count++;
no = __jj + 1;
no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index;
no_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
}
}
} (); |
143 |
c_mus("free_all"); |
144 |
c_mus2("initloop", "spamton_neo_meeting.ogg", 0); |
145 |
c_sel(kr); |
146 |
c_facing("r"); |
147 |
c_var_lerp_instancec_var_lerp_instancefunction c_var_lerp_instance()
{
if (argument_count < 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], 0);
else if (argument_count == 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
else if (argument_count == 7)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], string(argument[5]) + string(argument[6]));
} (sneo, "shadow_amount", 1, 0, 30); |
148 |
c_var_instance(sneo, "partmode", 1); |
149 |
c_var_instance(sneo, "headforceframe", 1); |
150 |
if (!shortened) |
151 |
{ |
152 |
c_speaker("sneo"); |
153 |
c_msgsetloc(0, * LET ME SAYWait for input"* LET ME SAY/", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_193_0" ); |
154 |
c_msgnextloc(* LET ME SAY [Thanks ]Wait for input"* LET ME SAY [Thanks ]/", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_194_0" ); |
155 |
c_msgnextloc(* THANKS TO YOUR [Total Jackass stunts] I HAVE [Becomed] NEO.Wait for input"* THANKS TO YOUR [Total Jackass stunts] I HAVE [Becomed] NEO./", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_195_0" ); |
156 |
c_msgnextloc(* AND NOW IT'S MY [Mansion]!Delay 11 MY [City]!Delay 11 MY [World]!Wait for inputClose Message"* AND NOW IT'S MY [Mansion]^1! MY [City]^1! MY [World]!/%", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_196_0" ); |
157 |
c_msgside("top"); |
158 |
c_talk_wait(); |
159 |
c_var_instance(sneo, "partmode", 22); |
160 |
c_var_instance(sneo, "headforceframe", 2); |
161 |
c_speaker("sneo"); |
162 |
c_msgsetloc(0, * SO WHY ARE YOU [Stealing] THE [Fountain]!?Wait for input"* SO WHY ARE YOU [Stealing] THE [Fountain]!?/", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_205_0" ); |
163 |
c_msgnextloc(* TO [$!$!] ME OVER RIGHT AT THE [Good part]!? WHAT ARE YOU,Delay 11 A [Gameshow Host]!?Wait for inputClose Message"* TO [$!$!] ME OVER RIGHT AT THE [Good part]!? WHAT ARE YOU^1, A [Gameshow Host]!?/%", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_206_0" ); |
164 |
c_msgside("top"); |
165 |
c_talk_wait(); |
166 |
c_var_instance(sneo, "partmode", 1); |
167 |
c_var_instance(sneo, "headforceframe", 1); |
168 |
c_speaker("sneo"); |
169 |
c_msgsetloc(0, * AH,Delay 11 KID,Delay 11 FORGET IT. I'M AN [HonestMan].Wait for input"* AH^1, KID^1, FORGET IT. I'M AN [HonestMan]./", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_215_0" ); |
170 |
c_msgnextloc(* I'LL LET YOU [Pay] YOUR WAY OUT OF THIS ONE!!Wait for inputClose Message"* I'LL LET YOU [Pay] YOUR WAY OUT OF THIS ONE!!/%", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_216_0" ); |
171 |
c_msgside("top"); |
172 |
c_talk_wait(); |
173 |
c_var_instance(sneo, "partmode", 1); |
174 |
c_var_instance(sneo, "headforceframe", 2); |
175 |
c_speaker("sneo"); |
176 |
c_msgsetloc(0, * [Pay]...Wait for inputClose Message"* [Pay].../%", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_225_0" ); |
177 |
c_msgside("top"); |
178 |
c_talk_wait(); |
179 |
c_wait(15); |
180 |
c_var_instance(sneo, "partmode", 3); |
181 |
c_var_instance(sneo, "headforceframe", 1); |
182 |
c_wait(45); |
183 |
c_speaker("sneo"); |
184 |
c_msgsetloc(0, * WITH YOUR [Rapidly-Shrinking] LIFE!!!Wait for inputClose Message"* WITH YOUR [Rapidly-Shrinking] LIFE!!!/%", "obj_fountainkris_ch2_sideb_slash_Step_0_gml_238_0" ); |
185 |
c_talk_wait(); |
186 |
} |
187 |
if (shortened) |
188 |
{ |
189 |
c_var_instance(sneo, "partmode", 3); |
190 |
c_var_instance(sneo, "headforceframe", 1); |
191 |
} |
192 |
c_wait(15); |
193 |
c_var_instance(sneo, "partmode", 41); |
194 |
c_soundplay(snd_sneo_laugh_long); |
195 |
var _n = 0; |
196 |
repeat (10) |
197 |
{ |
198 |
c_mus2("pitch", 1.3 + (_n / 15), 0); |
199 |
c_wait(12); |
200 |
_n++; |
201 |
} |
202 |
c_mus("free"); |
203 |
c_wait(30); |
204 |
c_actortokris(); |
205 |
c_terminatekillactors(); |
206 |
} |
207 |
if (con == 17 && !i_ex(obj_cutscene_master)) |
208 |
{ |
209 |
con = 19; |
210 |
alarm[0] |
211 |
with (obj_mainchara) |
212 |
visible = 0; |
213 |
savekrisx = obj_mainchara.x; |
214 |
savekrisy = obj_mainchara.y; |
215 |
draw_fountain = false; |
216 |
if (i_ex(obj_darkfountain)) |
217 |
{ |
218 |
with (obj_darkfountain) |
219 |
adjust = 3; |
220 |
} |
221 |
if (scr_debug() && debug_skip_battle == true) |
222 |
{ |
223 |
con = 21; |
224 |
exit; |
225 |
} |
226 |
if (global.tempflag[34] == 0) |
227 |
global.tempflag[34] = 1; |
228 |
global.flag[9 battle_music] = 2; |
229 |
global.batmusic[0] = snd_init("spamton_neo_mix_ex_wip.ogg"); |
230 |
global.flag[54 encounter_pointer] = 571; |
231 |
scr_battlescr_battlefunction scr_battle(arg0, arg1, arg2, arg3, arg4)
{
global.specialbattle = arg1;
global.encounterno = arg0;
if ( global.flag[9 battle_music] != 2)
{
global.flag[9 battle_music] = 1;
global.batmusic[0] = snd_init("battle.ogg");
}
instance_create(0, 0, obj_battleback);
instance_create(0, 0, obj_encounterbasic);
__enemymarker[0] = arg2;
__enemymarker[1] = arg3;
__enemymarker[2] = arg4;
for (__ien = 0; __ien < 3; __ien++)
{
if (global.monstertype[__ien] != 0 (None))
{
if (!i_ex(__enemymarker[__ien]))
{
__enemymarker[__ien] = scr_dark_marker(global.monstermakex[__ien] + 300, global.monstermakey[__ien], object_get_sprite(global.monsterinstancetype[__ien]));
__enemymarker[__ien].depth = -__ien;
}
__enemymarker[__ien].__ien = __ien;
with (__enemymarker[__ien])
{
scr_move_to_point_over_time(global.monstermakex[__ien], global.monstermakey[__ien], 20);
__doom = instance_create(x, y, obj_doom);
__doom.target = id;
__doom.alarm[0] = 25;
}
}
}
} (61, 1, sneo, 0, 0); |
232 |
if (shortened) |
233 |
{ |
234 |
} |
235 |
with (obj_battleback) |
236 |
instance_destroy(); |
237 |
global.flag[9 battle_music] = 1; |
238 |
} |
239 |
if (con == 21 || (con == 21 && forcend == 1)) |
240 |
{ |
241 |
con = 22; |
242 |
alarm[4] = 90; |
243 |
global.flag[309 spamton_plot] = 9; |
244 |
global.flag[456 beat_snowgrave_neo] = 1; |
245 |
with (obj_heroparent) |
246 |
instance_destroy(); |
247 |
instance_deactivate_object(obj_darkfountain); |
248 |
savekrisx = obj_mainchara.x; |
249 |
savekrisy = obj_mainchara.y; |
250 |
with (obj_spamton_neo_enemy) |
251 |
x = 9999; |
252 |
scr_weapongetscr_weapongetfunction scr_weaponget(arg0)
{
noroom = 0;
var legacy = 0;
var __i = 0;
if (legacy == 0)
{
var __itemcount = 0;
__weapon[0] = arg0;
for (__i = 0; __i < 48; __i++)
{
if (global.weapon[__i] != 0)
{
__weapon[__itemcount + 1] = global.weapon[__i];
__itemcount++;
}
}
if (__itemcount >= 48)
{
noroom = 1;
}
else
{
for (__i = 0; __i < 48; __i++)
{
if (__i <= __itemcount)
global.weapon[__i] = __weapon[__i];
else
global.weapon[__i] = 0;
}
}
}
else if (legacy)
{
loop = 1;
global.weapon[48] = 999;
while (loop == 1)
{
if (global.weapon[__i] == 0)
{
global.weapon[__i] = arg0;
break;
}
if (__i == 48)
{
noroom = 1;
break;
}
__i += 1;
}
}
script_execute(scr_weaponinfo_all);
} (21); |
253 |
if (noroom == 1) |
254 |
global.flag[468 spamton_no_room] = 2; |
255 |
if (scr_keyitemcheckscr_keyitemcheckfunction scr_keyitemcheck(arg0)
{
haveit = 0;
itemcount = 0;
for (i = 0; i < 12; i += 1)
{
if (global.keyitem[i] == arg0)
haveit = 1;
if (global.keyitem[i] == arg0)
itemcount += 1;
}
return haveit;
} (13) == 0) |
256 |
scr_keyitemgetscr_keyitemgetfunction scr_keyitemget(arg0)
{
i = 0;
loop = 1;
noroom = 0;
global.item[12] = 999;
while (loop == 1)
{
if (global.keyitem[i] == 0)
{
global.keyitem[i] = arg0;
break;
}
if (i == 12)
{
noroom = 1;
break;
}
i += 1;
}
script_execute(scr_keyiteminfo_all);
} (13); |
257 |
} |
258 |
if (con == 23 && !d_ex()) |
259 |
{ |
260 |
con = 99; |
261 |
snd_free_all(); |
262 |
_event = instance_create(x + (sprite_width / 2), y + (sprite_width / 2) + 20, obj_darkfountain_event); |
263 |
_event.depth = blackall.depth - 1; |
264 |
} |