1 |
if (con == 0) |
2 |
{ |
3 |
global.interact = 1; |
4 |
con = 1; |
5 |
} |
6 |
if (con == 1) |
7 |
{ |
8 |
con = 1.5; |
9 |
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;
} (); |
10 |
cutscene_master.save_object[0] = id; |
11 |
with (obj_mainchara) |
12 |
visible = 0; |
13 |
with (obj_caterpillarchara) |
14 |
visible = 0; |
15 |
kr = 0; |
16 |
kr_actor = instance_create(243, 225, obj_actor); |
17 |
scr_actor_setupscr_actor_setupfunction scr_actor_setup(arg0, arg1, arg2)
{
_actorid = arg0;
_actorinstance = arg1;
_actorname = arg2;
obj_cutscene_master.actor_id[_actorid] = _actorinstance;
obj_cutscene_master.actor_name[_actorid] = _actorname;
with (_actorinstance)
{
number = arg0;
scr_set_facing_sprites(arg2);
}
} (kr, kr_actor, "kris"); |
18 |
kr_actor.sprite_index = spr_krisd_dark; |
19 |
su = 2; |
20 |
su_actor = instance_create(440, 266, obj_actor); |
21 |
scr_actor_setupscr_actor_setupfunction scr_actor_setup(arg0, arg1, arg2)
{
_actorid = arg0;
_actorinstance = arg1;
_actorname = arg2;
obj_cutscene_master.actor_id[_actorid] = _actorinstance;
obj_cutscene_master.actor_name[_actorid] = _actorname;
with (_actorinstance)
{
number = arg0;
scr_set_facing_sprites(arg2);
}
} (su, su_actor, "susie"); |
22 |
su_actor.sprite_index = spr_susie_walk_left_dw; |
23 |
la = 3; |
24 |
la_actor = instance_create(350, 288, obj_actor); |
25 |
scr_actor_setupscr_actor_setupfunction scr_actor_setup(arg0, arg1, arg2)
{
_actorid = arg0;
_actorinstance = arg1;
_actorname = arg2;
obj_cutscene_master.actor_id[_actorid] = _actorinstance;
obj_cutscene_master.actor_name[_actorid] = _actorname;
with (_actorinstance)
{
number = arg0;
scr_set_facing_sprites(arg2);
}
} (la, la_actor, "lancer"); |
26 |
la_actor.sprite_index = spr_lancer_rt; |
27 |
la_actor.sprite_palette = spr_lancer_palette; |
28 |
be = 4; |
29 |
be_actor = instance_create(804, 200, obj_actor); |
30 |
scr_actor_setupscr_actor_setupfunction scr_actor_setup(arg0, arg1, arg2)
{
_actorid = arg0;
_actorinstance = arg1;
_actorname = arg2;
obj_cutscene_master.actor_id[_actorid] = _actorinstance;
obj_cutscene_master.actor_name[_actorid] = _actorname;
with (_actorinstance)
{
number = arg0;
scr_set_facing_sprites(arg2);
}
} (be, be_actor, "berdly"); |
31 |
be_actor.sprite_index = spr_berdly_walk_down_dw_unhappy; |
32 |
be_actor.rsprite = spr_berdly_walk_right_dw_unhappy; |
33 |
be_actor.lsprite = spr_berdly_walk_left_dw_unhappy; |
34 |
be_actor.dsprite = spr_berdly_walk_down_dw_unhappy; |
35 |
} |
36 |
if (con == 1.5) |
37 |
{ |
38 |
con = 2; |
39 |
c_sel(be); |
40 |
c_visible(0); |
41 |
c_pannable(1); |
42 |
c_panspeed(2, 0, 35); |
43 |
c_sel(kr); |
44 |
c_walk_wait("d", 1, 60); |
45 |
c_delayfacing(31, "r"); |
46 |
c_msgside("top"); |
47 |
c_speaker("susie"); |
48 |
c_msgsetloc(0, Face 7* Kris,Delay 11 hey!!!Wait for input"\\E7* Kris^1, hey!!!/", "obj_ch2_scene18_slash_Step_0_gml_57_0" ); |
49 |
c_msgnextloc(Face 9* Man...Delay 11 Lancer...!Delay 11 You're the best,Delay 11 dude!!Wait for inputClose Message"\\E9* Man..^1. Lancer...^1! You're the best^1, dude!!/%", "obj_ch2_scene18_slash_Step_0_gml_58_0" ); |
50 |
c_talk_wait(); |
51 |
c_sel(la); |
52 |
c_visible(0); |
53 |
c_sel(su); |
54 |
c_autowalk(0); |
55 |
c_sprite(spr_cutscene_18_susie_lancer_high_five); |
56 |
c_addxy(-4, 2); |
57 |
c_imagespeed(0.25); |
58 |
c_soundplay(snd_jump); |
59 |
c_wait(16); |
60 |
c_soundplay(snd_whip_crack_only); |
61 |
c_wait(32); |
62 |
c_sel(la); |
63 |
c_visible(1); |
64 |
c_sel(su); |
65 |
c_autowalk(1); |
66 |
c_facing("r"); |
67 |
c_speaker("susie"); |
68 |
c_msgsetloc(0, Face 2* C'mon,Delay 11 Noelle and Ralsei are waiting!!Wait for inputClose Message"\\E2* C'mon^1, Noelle and Ralsei are waiting!!/%", "obj_ch2_scene18_slash_Step_0_gml_83_0" ); |
69 |
c_talk_wait(); |
70 |
c_walk_wait("r", 8, 15); |
71 |
c_speaker("lancer"); |
72 |
c_msgsetloc(0, Face 2* Yes...!Delay 11 Let's put the pedal on the medal!!Wait for inputClose Message"\\E2* Yes...^1! Let's put the pedal on the medal!!/%", "obj_ch2_scene18_slash_Step_0_gml_89_0" ); |
73 |
c_talk_wait(); |
74 |
c_sel(la); |
75 |
c_sprite(spr_lancer_rt_unhappy); |
76 |
c_shakeobj(); |
77 |
c_speaker("lancer"); |
78 |
c_msgsetloc(0, Face C* Cough...Delay 11 cough*Wait for inputClose Message"\\EC* Cough..^1. cough*/%", "obj_ch2_scene18_slash_Step_0_gml_97_0" ); |
79 |
c_talk_wait(); |
80 |
c_waitcustom(); |
81 |
} |
82 |
if (con == 2 && customcon == 1) |
83 |
{ |
84 |
fadetimer++; |
85 |
if (fadetimer < 60) |
86 |
{ |
87 |
lancerfade += 0.1; |
88 |
la_actor.current_pal = (sin((((2 * lancerfade) + 3) * pi) / 2) + 1) / 2; |
89 |
} |
90 |
else if (la_actor.current_pal != 1) |
91 |
{ |
92 |
la_actor.current_pal = clamp(la_actor.current_pal + 0.1, 0, 1); |
93 |
} |
94 |
else |
95 |
{ |
96 |
con = 4; |
97 |
} |
98 |
} |
99 |
if (con == 4) |
100 |
{ |
101 |
con = 5; |
102 |
customcon = 0; |
103 |
c_waitcustom_end(); |
104 |
} |
105 |
if (con == 5 && customcon == 0) |
106 |
{ |
107 |
con = 6; |
108 |
c_sel(su); |
109 |
c_facing("l"); |
110 |
c_facing("susieunhappy"); |
111 |
c_speaker("susie"); |
112 |
c_msgsetloc(0, Face 6* ...?Wait for input"\\E6* ...?/", "obj_ch2_scene18_slash_Step_0_gml_140_0" ); |
113 |
c_msgnextloc(Face K* Hey,Delay 11 Lancer,Delay 11 you ok,Delay 11 dude?Wait for input"\\EK* Hey^1, Lancer^1, you ok^1, dude?/", "obj_ch2_scene18_slash_Step_0_gml_141_0" ); |
114 |
c_facenext("lancer", "3"); |
115 |
c_msgnextloc(Face 3* I...Delay 11 I'm fine!Delay 11 Just...Delay 11 very...Wait for input"\\E3* I..^1. I'm fine^1! Just..^1. very.../", "obj_ch2_scene18_slash_Step_0_gml_143_0" ); |
116 |
c_msgnextloc(Face 7* Cold...Wait for inputClose Message"\\E7* Cold.../%", "obj_ch2_scene18_slash_Step_0_gml_144_0" ); |
117 |
c_talk_wait(); |
118 |
c_sel(la); |
119 |
c_autowalk(0); |
120 |
c_sprite(spr_cutscene_18_lancer_fall); |
121 |
c_imagespeed(0); |
122 |
c_arg_objectxy(la_actor, -5, 34); |
123 |
c_setxy(x, y); |
124 |
c_shakeobj(); |
125 |
c_soundplay(snd_noise); |
126 |
c_sel(su); |
127 |
c_autowalk(0); |
128 |
c_sprite(spr_susie_shock); |
129 |
c_emotec_emotefunction c_emote()
{
if (argument_count == 0)
c_cmd("emote", "!", 30, 0, 0);
else if (argument_count == 1)
c_cmd("emote", argument[0], 30, 0, 0);
else if (argument_count == 2)
c_cmd("emote", argument[0], argument[1], 0, 0);
else if (argument_count == 3)
c_cmd("emote", argument[0], argument[1], argument[2], 0);
} ("!", 30); |
130 |
c_wait(30); |
131 |
c_speaker("susie"); |
132 |
c_msgsetloc(0, Face Z* H...Delay 11 hey,Delay 11 what the hell!?Wait for input"\\EZ* H..^1. hey^1, what the hell!?/", "obj_ch2_scene18_slash_Step_0_gml_166_0" ); |
133 |
c_facenext("lancer", 11); |
134 |
c_msgnextloc(Face B* ...Wait for input"\\EB* .../", "obj_ch2_scene18_slash_Step_0_gml_168_0" ); |
135 |
c_facenext("susie", "Z"); |
136 |
c_msgnextloc(Face Z* Hey,Delay 11 are you OK,Delay 11 dude...? Here,Delay 11 lemme heal you...!Wait for inputClose Message"\\EZ* Hey^1, are you OK^1, dude...? Here^1, lemme heal you...!/%", "obj_ch2_scene18_slash_Step_0_gml_170_0" ); |
137 |
c_talk_wait(); |
138 |
c_autowalk(1); |
139 |
c_facing("susieunhappy"); |
140 |
c_facing("l"); |
141 |
c_wait(10); |
142 |
c_autowalk(0); |
143 |
c_sprite(spr_cutscene_18_susie_heal); |
144 |
c_addxy(0, 12); |
145 |
c_imagespeed(0.25); |
146 |
c_wait(50); |
147 |
c_var_instance(id, "susie_heal", true); |
148 |
c_imagespeed(0); |
149 |
c_wait(15); |
150 |
c_waitcustom(); |
151 |
} |
152 |
if (con == 6 && customcon == 1) |
153 |
{ |
154 |
healanim = instance_create(la_actor.x, la_actor.y, obj_healanim); |
155 |
healanim.target = la_actor.id; |
156 |
con = 7; |
157 |
customcon = 0; |
158 |
c_waitcustom_end(); |
159 |
} |
160 |
if (con == 7) |
161 |
{ |
162 |
con = 8; |
163 |
c_wait(30); |
164 |
c_sel(su); |
165 |
c_autowalk(1); |
166 |
c_addxy(0, -12); |
167 |
c_walk_wait("l", 8, 14); |
168 |
c_speaker("lancer"); |
169 |
c_msgsetloc(0, Face 7* ...Delay 11 th-thanks,Delay 11 Susie...Delay 11 but...Wait for inputClose Message"\\E7* ..^1. th-thanks^1, Susie..^1. but.../%", "obj_ch2_scene18_slash_Step_0_gml_213_0" ); |
170 |
c_talk_wait(); |
171 |
c_facing("d"); |
172 |
c_speaker("susie"); |
173 |
c_msgsetloc(0, Face C* D...Delay 11 darn,Delay 11 it's not strong enough,Delay 11 huh...Wait for inputClose Message"\\EC* D..^1. darn^1, it's not strong enough^1, huh.../%", "obj_ch2_scene18_slash_Step_0_gml_219_0" ); |
174 |
c_talk_wait(); |
175 |
c_facing("l"); |
176 |
c_facing("susieunhappy"); |
177 |
c_speaker("susie"); |
178 |
c_msgsetloc(0, Face N* Quick,Delay 11 Kris,Delay 11 let's find Ralsei!Delay 11 Maybe he can heal him!Wait for inputClose Message"\\EN* Quick^1, Kris^1, let's find Ralsei^1! Maybe he can heal him!/%", "obj_ch2_scene18_slash_Step_0_gml_226_0" ); |
179 |
c_talk_wait(); |
180 |
c_autowalk(0); |
181 |
c_sprite(spr_cutscene_18_susie_lancer_carry_walk_right); |
182 |
c_arg_objectxy(su_actor, -5, -10); |
183 |
c_setxy(x, y); |
184 |
c_sel(la); |
185 |
c_visible(0); |
186 |
c_pannable(1); |
187 |
c_sel(su); |
188 |
c_imagespeed(0.25); |
189 |
c_walk("r", 8, 70); |
190 |
c_sel(kr); |
191 |
c_walk("r", 8, 80); |
192 |
c_delayfacing(81, "l"); |
193 |
c_panspeed(8, 0, 80); |
194 |
c_wait(80); |
195 |
c_sel(su); |
196 |
c_sprite(spr_cutscene_18_susie_lancer_carry_walk_left); |
197 |
c_imagespeed(0); |
198 |
c_waitcustom(); |
199 |
} |
200 |
if (con == 8 && customcon == 1) |
201 |
{ |
202 |
con = 9; |
203 |
customcon = 0; |
204 |
c_var_instance(id, "berdly_door_open", true); |
205 |
c_soundplay(snd_dooropen); |
206 |
c_sel(be); |
207 |
c_visible(1); |
208 |
c_waitcustom_end(); |
209 |
} |
210 |
if (con == 9) |
211 |
{ |
212 |
con = 50; |
213 |
c_sel(be); |
214 |
c_walk_wait("d", 8, 10); |
215 |
c_facing("r"); |
216 |
c_var_instance(id, "berdly_door_close", true); |
217 |
c_soundplay(snd_doorclose); |
218 |
c_sel(be); |
219 |
c_speaker("berdly"); |
220 |
c_msgsetloc(0, Face 3* Wait!!!Delay 11 WAIT!!!Wait for input"\\E3* Wait!!^1! WAIT!!!/", "obj_ch2_scene18_slash_Step_0_gml_289_0" ); |
221 |
c_msgnextloc(Face 5* Y-you two aren't going to leave without ME,Delay 11 are you!?Wait for input"\\E5* Y-you two aren't going to leave without ME^1, are you!?/", "obj_ch2_scene18_slash_Step_0_gml_290_0" ); |
222 |
c_facenext("susie", 1); |
223 |
c_msgnextloc(Face 1* Uhhh...Delay 11 yeah we are.Wait for input"\\E1* Uhhh..^1. yeah we are./", "obj_ch2_scene18_slash_Step_0_gml_292_0" ); |
224 |
c_facenext("berdly", 3); |
225 |
c_msgnextloc(Face 3* But Noelle - my damsel in distress - she must be...Wait for inputClose Message"\\E3* But Noelle - my damsel in distress - she must be.../%", "obj_ch2_scene18_slash_Step_0_gml_294_0" ); |
226 |
c_talk_wait(); |
227 |
c_sprite(spr_berdly_depressed_dw_right); |
228 |
c_msgsetloc(0, Face H* ...Delay 11 in distress!Delay 11 And if I cannot help her,Delay 11 then...!Wait for input"\\EH* ..^1. in distress^1! And if I cannot help her^1, then...!/", "obj_ch2_scene18_slash_Step_0_gml_295_0" ); |
229 |
c_facenext("susie", 17); |
230 |
c_msgnextloc(Face H* Okay FINE you can come if you shut up.Wait for inputClose Message"\\EH* Okay FINE you can come if you shut up./%", "obj_ch2_scene18_slash_Step_0_gml_297_0" ); |
231 |
c_talk_wait(); |
232 |
c_sel(su); |
233 |
c_sprite(spr_cutscene_18_susie_lancer_carry_walk_right); |
234 |
c_imagespeed(0.25); |
235 |
c_walk("r", 8, 70); |
236 |
c_sel(be); |
237 |
c_walk("r", 8, 70); |
238 |
c_sel(kr); |
239 |
c_facing("r"); |
240 |
c_panobj(kr_actor, 30); |
241 |
c_wait(70); |
242 |
c_pannable(0); |
243 |
c_actortokris(); |
244 |
c_terminatekillactors(); |
245 |
} |
246 |
if (con == 50) |
247 |
{ |
248 |
if (!instance_exists(obj_cutscene_master)) |
249 |
{ |
250 |
global.interact = 0; |
251 |
global.facing = 0; |
252 |
global.plot = 101; |
253 |
instance_destroy(berdlydoor); |
254 |
con = -1; |
255 |
} |
256 |
} |
257 |
if (susie_heal) |
258 |
{ |
259 |
heal_timer++; |
260 |
if (heal_beam == -1) |
261 |
{ |
262 |
snd_play(snd_spell_cure_slight_smaller); |
263 |
heal_beam = scr_dark_markerscr_dark_markerfunction scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (su_actor.x - 20, su_actor.y + 30, spr_cutscene_18_susie_heal_small); |
264 |
heal_beam.image_speed = 0.25; |
265 |
heal_beam.image_xscale = -2; |
266 |
} |
267 |
heal_beam.x -= 8; |
268 |
heal_beam.y += 1; |
269 |
if (heal_beam.x <= (la_actor.x + 80)) |
270 |
{ |
271 |
heal_beam.image_alpha -= 0.25; |
272 |
if (heal_beam.image_alpha <= 0) |
273 |
{ |
274 |
susie_heal = false; |
275 |
instance_destroy(heal_beam); |
276 |
} |
277 |
} |
278 |
} |
279 |
if (berdly_door_open) |
280 |
{ |
281 |
berdly_door_open = false; |
282 |
with (obj_mansion_door) |
283 |
{ |
284 |
if (x > 770 && x < 800 && y > 150) |
285 |
door_type = 1; |
286 |
} |
287 |
} |
288 |
if (berdly_door_close) |
289 |
{ |
290 |
berdly_door_close = false; |
291 |
with (obj_mansion_door) |
292 |
{ |
293 |
if (x > 770 && x < 800 && y > 150) |
294 |
door_type = 0; |
295 |
} |
296 |
} |