|
1
|
if (con < 40)
|
|
2
|
{
|
|
3
|
if (con == 2)
|
|
4
|
{
|
|
5
|
xx = __view_get(e__VW.XView, 0);
|
|
6
|
yy = __view_get(e__VW.YView, 0);
|
|
7
|
with (k)
|
|
8
|
scr_haltscr_halt
function scr_halt()
{
image_index = 0;
image_speed = 0;
speed = 0;
} ();
|
|
9
|
with (s)
|
|
10
|
scr_haltscr_halt
function scr_halt()
{
image_index = 0;
image_speed = 0;
speed = 0;
} ();
|
|
11
|
con = 3;
|
|
12
|
alarm[4] = 30; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
13
|
}
|
|
14
|
if (con == 4)
|
|
15
|
{
|
|
16
|
with (obj_mainchara)
|
|
17
|
cutscene = 1;
|
|
18
|
global.fe = 0;
|
|
19
|
global.fc = 1;
|
|
20
|
global.typer = 30;
|
|
21
|
global.msg[0] = * A castle...?Wait for input ;
|
|
22
|
global.msg[1] = * Why the hell is there a castle inside a supply closet...?Wait for inputClose Message ;
|
|
23
|
con = 5;
|
|
24
|
instance_create(0, 0, obj_dialoguer);
|
|
25
|
}
|
|
26
|
if (con == 5 && d_ex() == 0)
|
|
27
|
{
|
|
28
|
con = 6;
|
|
29
|
global.fc = 0;
|
|
30
|
global.typer = 42;
|
|
31
|
global.msg[0] = Welcome,Delay 11 heroes...!Wait for inputClose Message ;
|
|
32
|
wr = instance_create(xx + 200, yy + 100, obj_writer);
|
|
33
|
if (scr_debugscr_debug
function scr_debug()
{
return global.debug;
} () == 0)
|
|
34
|
{
|
|
35
|
with (wr)
|
|
36
|
skippable = 0;
|
|
37
|
}
|
|
38
|
}
|
|
39
|
if (con == 6)
|
|
40
|
{
|
|
41
|
if (instance_exists(wr) == false)
|
|
42
|
{
|
|
43
|
global.fe = 9;
|
|
44
|
global.fc = 1;
|
|
45
|
global.typer = 30;
|
|
46
|
global.msg[0] = * Who's there!?Wait for inputClose Message ;
|
|
47
|
con = 7;
|
|
48
|
instance_create(0, 0, obj_dialoguer);
|
|
49
|
}
|
|
50
|
}
|
|
51
|
if (con == 7 && d_ex() == 0)
|
|
52
|
{
|
|
53
|
global.fc = 0;
|
|
54
|
con = 8;
|
|
55
|
global.typer = 42;
|
|
56
|
global.msg[0] = Do not be alarmed...Delay 11 I am not your enemy.Wait for input ;
|
|
57
|
global.msg[1] = Please come forward,Delay 11 both of you...Wait for inputClose Message ;
|
|
58
|
wr = instance_create(xx + 200, yy + 100, obj_writer);
|
|
59
|
if (scr_debugscr_debug
function scr_debug()
{
return global.debug;
} () == 0)
|
|
60
|
{
|
|
61
|
with (wr)
|
|
62
|
skippable = 0;
|
|
63
|
}
|
|
64
|
}
|
|
65
|
if (con == 8)
|
|
66
|
{
|
|
67
|
if (instance_exists(wr) == false)
|
|
68
|
{
|
|
69
|
r = scr_dark_markerscr_dark_marker
function 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;
} (495, 310, spr_ralsei_hood);
|
|
70
|
with (r)
|
|
71
|
depth = 100;
|
|
72
|
with (s)
|
|
73
|
{
|
|
74
|
vspeed = -4;
|
|
75
|
image_speed = 0.1;
|
|
76
|
}
|
|
77
|
with (k)
|
|
78
|
{
|
|
79
|
vspeed = -4;
|
|
80
|
image_speed = 0.1;
|
|
81
|
}
|
|
82
|
scr_panscr_pan
function scr_pan(arg0, arg1, arg2)
{
panner = instance_create(0, 0, obj_panner);
panner.panmax = arg2;
panner.panx = arg0;
panner.pany = arg1;
} (0, -4, 70);
|
|
83
|
con = 9;
|
|
84
|
alarm[4] = 85; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
85
|
}
|
|
86
|
}
|
|
87
|
if (con == 10)
|
|
88
|
{
|
|
89
|
with (k)
|
|
90
|
scr_haltscr_halt
function scr_halt()
{
image_index = 0;
image_speed = 0;
speed = 0;
} ();
|
|
91
|
with (s)
|
|
92
|
scr_haltscr_halt
function scr_halt()
{
image_index = 0;
image_speed = 0;
speed = 0;
} ();
|
|
93
|
con = 11;
|
|
94
|
alarm[4] = 30; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
95
|
}
|
|
96
|
if (con == 12)
|
|
97
|
{
|
|
98
|
global.typer = 6;
|
|
99
|
global.fc = 2;
|
|
100
|
global.fe = 0;
|
|
101
|
global.flag[30 ralsei_hat_state] = 1;
|
|
102
|
global.msc = 120;
|
|
103
|
scr_textscr_text
function scr_text(arg0)
{
switch (arg0)
{
case 0:
break;
case 10:
global.choicemsg[1] = ;
global.choicemsg[0] = ;
global.choicemsg[2] = " ";
global.choicemsg[3] = " ";
global.msg[0] = * You really didn't want to throw it away.Wait for input ;
global.msg[1] = * Throw it away anyway?Wait for input ;
global.msg[2] = ;
break;
case 11:
if (global.choice == 0)
{
global.msg[0] = * You felt a feeling of relief.Wait for inputClose Message ;
}
else
{
global.msg[0] = * Hand shaking,Delay 11 you dropped the ball of junk on the ground.Wait for input ;
global.msg[1] = * It broke into pieces.Wait for input ;
global.msg[2] = * You felt bitter.Wait for inputClose Message ;
script_execute(scr_litemshift, global.menucoord[1], 0);
for (i = 0; i < 12; i += 1)
{
global.item[i] = 0;
global.weapon[i] = 0;
global.armor[i] = 0;
}
}
break;
case 100:
global.msg[0] = * Hey, Kris!Delay 11 What's up?Delay 11 * Didja lose your pencil again?Wait for input ;
global.msg[1] = Face 4* Here,Delay 11 you want the candy-cane one or the one with lights on it?Wait for input ;
global.msg[2] = Face 1* Huh?Delay 11 * You want to be partners?Wait for input ;
global.msg[3] = Face 4* Ummm...Delay 11 Sorry...Delay 11 * Berdly already asked me...Wait for input ;
global.msg[4] = Face 0* But I could ask Ms. Alphys if we could make a group of 3!Wait for input ;
global.msg[5] = Face 4* I'll ask if you're sure!
Not yet Yes. Ask.Choice type 1 ;
global.msg[6] = " ";
break;
case 101:
if (global.choice == 1)
{
global.msg[0] = Face 0* OK,Delay 11 I'll ask!Wait for input ;
global.msg[1] = * Miss Alphys!Delay 11 * Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message ;
with (obj_classscene)
con = 20;
}
if (global.choice == 0)
global.msg[0] = Face 4* Yeah,Delay 11 I'm sure there's someone else you can ask!Wait for inputClose Message ;
break;
case 102:
global.msg[0] = Face 0* Do you wanna be partners? Not yet YesChoice type 1 ;
global.msg[1] = " ";
break;
case 103:
if (global.choice == 1)
{
global.msg[0] = Face 0* OK,Delay 11 I'll ask!Wait for input ;
global.msg[1] = * Miss Alphys!Delay 11 * Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message ;
with (obj_classscene)
con = 20;
}
if (global.choice == 0)
global.msg[0] = Face 4* Umm,Delay 11 OK.Delay 11 * You just keep doing your thing,Delay 11 Kris.Wait for inputClose Message ;
break;
case 104:
global.msg[0] = Face 0* Alright.Delay 11 * Let's get this over with.Wait for input ;
global.msg[1] = * We'll get more chalk.Delay 11 * Mosey back to class.Delay 11 * And then,Delay 11 Kris...Wait for input ;
global.msg[2] = Face 2* YOU'LL do our project.Wait for input ;
global.msg[3] = * How's that sound?
Good BadChoice type 1 ;
global.msg[4] = " ";
break;
case 105:
global.msg[0] = " %%";
break;
case 110:
global.choicemsg[0] = ;
global.choicemsg[1] = ;
global.choicemsg[2] = " ";
global.choicemsg[3] = " ";
if (global.flag[100 got_glowshard] == 0)
{
global.msg[0] = * (There's something glowing inside.)Wait for input ;
global.msg[1] = * (Take it?)Wait for input ;
global.msg[2] = ;
}
else
{
global.msg[0] = * (It's dark inside.)Wait for inputClose Message ;
}
break;
case 111:
if (global.choice == 0)
{
global.msg[0] = * (You got the Glowshard.)Wait for inputClose Message ;
global.flag[100 got_glowshard] = 1;
scr_itemget(3);
... (global.msc);
|
|
104
|
con = 20;
|
|
105
|
d = instance_create(0, 0, obj_dialoguer);
|
|
106
|
d.side = 1;
|
|
107
|
}
|
|
108
|
if (con == 20 && d_ex() == 0)
|
|
109
|
{
|
|
110
|
fade = instance_create(0, 0, obj_fadeout);
|
|
111
|
with (fade)
|
|
112
|
fadespeed = 0.01;
|
|
113
|
con = 21;
|
|
114
|
alarm[4] = 100; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
115
|
}
|
|
116
|
if (con == 22)
|
|
117
|
{
|
|
118
|
room_persistent = 1;
|
|
119
|
con = 24;
|
|
120
|
alarm[4] = 2; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
121
|
}
|
|
122
|
if (con == 25)
|
|
123
|
{
|
|
124
|
instance_create(0, 0, obj_persistentfadein);
|
|
125
|
room_goto(room_legend );
|
|
126
|
global.plot = 20;
|
|
127
|
con = 26;
|
|
128
|
alarm[4] = 3; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
129
|
}
|
|
130
|
if (con == 27)
|
|
131
|
{
|
|
132
|
global.plot = 21;
|
|
133
|
room_persistent = 0;
|
|
134
|
con = 28;
|
|
135
|
alarm[4] = 60; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
136
|
}
|
|
137
|
if (con == 29)
|
|
138
|
{
|
|
139
|
global.fc = 2;
|
|
140
|
global.fe = 0;
|
|
141
|
global.typer = 6;
|
|
142
|
global.msg[0] = * Kris,Delay 11 Susie...Delay 11 * Thank you for listening to my long tale.Wait for input ;
|
|
143
|
global.msg[1] = * I deeply believe you two are the HEROES of the LEGEND.Wait for input ;
|
|
144
|
global.msg[2] = * That despite whatever enemies you may face...Wait for input ;
|
|
145
|
global.msg[3] = * ... You two have the COURAGE to SAVE THE WORLD.Wait for input ;
|
|
146
|
global.msg[4] = * DELTA WARRIORS! Delay 11 * Please,Delay 11 won't you accept your destiny...?Wait for inputClose Message ;
|
|
147
|
d = instance_create(0, 0, obj_dialoguer);
|
|
148
|
d.side = 1;
|
|
149
|
con = 35;
|
|
150
|
}
|
|
151
|
if (con == 30 && d_ex() == 1)
|
|
152
|
{
|
|
153
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == 17)
|
|
154
|
{
|
|
155
|
with (s)
|
|
156
|
sprite_index = spr_susier_dark;
|
|
157
|
}
|
|
158
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == 18)
|
|
159
|
{
|
|
160
|
with (s)
|
|
161
|
sprite_index = spr_susied_dark;
|
|
162
|
}
|
|
163
|
}
|
|
164
|
if (con == 30 && d_ex() == 0)
|
|
165
|
con = 40;
|
|
166
|
if (con == 35 && d_ex() == 0)
|
|
167
|
{
|
|
168
|
with (s)
|
|
169
|
sprite_index = spr_susier_dark;
|
|
170
|
con = 36;
|
|
171
|
alarm[4] = 50; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
172
|
}
|
|
173
|
if (con == 37)
|
|
174
|
{
|
|
175
|
with (s)
|
|
176
|
sprite_index = spr_susieu_dark;
|
|
177
|
global.typer = 30;
|
|
178
|
global.fe = 0;
|
|
179
|
global.fc = 1;
|
|
180
|
global.msg[0] = * Uhhh...Delay 33 * Nah.Wait for input ;
|
|
181
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (1, 1);
|
|
182
|
global.msg[2] = * W... what?Wait for input ;
|
|
183
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (3, 0);
|
|
184
|
global.msg[4] = * Me?Delay 11 * Some kind of hero or something...?Wait for input ;
|
|
185
|
global.msg[5] = Face 2* You've got the wrong person.Wait for input ;
|
|
186
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (6, 1);
|
|
187
|
global.msg[7] = * B-but Susie,Delay 11 without you,Delay 11 the... * The world will...Wait for input ;
|
|
188
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (8, 0);
|
|
189
|
global.msg[9] = * So what? * If the world gets destroyed...Wait for input ;
|
|
190
|
global.msg[10] = Face 1* It's none of my damn business.Wait for input ;
|
|
191
|
global.msg[11] = Face 2* Might even be kind of fun, honestly.Wait for input ;
|
|
192
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (12, 0);
|
|
193
|
global.msg[13] = ;
|
|
194
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (14, 0);
|
|
195
|
global.msg[15] = * Anyway,Delay 11 Kris...Wait for input ;
|
|
196
|
global.msg[16] = Face 0* If YOU wanna play pretend with this weirdo...Wait for input ;
|
|
197
|
global.msg[17] = Face 1* Stick around.Wait for input ;
|
|
198
|
global.msg[18] = Face 2* I'M going to find a way out of here.Wait for input ;
|
|
199
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (19, 1);
|
|
200
|
global.msg[20] = * Susie...Delay 11 * Wait!Wait for inputClose Message ;
|
|
201
|
d = instance_create(0, 0, obj_dialoguer);
|
|
202
|
d.side = 1;
|
|
203
|
con = 38;
|
|
204
|
}
|
|
205
|
if (con == 38 && d_ex() == 1)
|
|
206
|
{
|
|
207
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == 0)
|
|
208
|
{
|
|
209
|
with (s)
|
|
210
|
sprite_index = spr_susieu_dark;
|
|
211
|
}
|
|
212
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == 9)
|
|
213
|
{
|
|
214
|
with (s)
|
|
215
|
sprite_index = spr_susier_dark;
|
|
216
|
}
|
|
217
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == 13)
|
|
218
|
{
|
|
219
|
with (s)
|
|
220
|
sprite_index = spr_susieu_dark;
|
|
221
|
}
|
|
222
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == 15)
|
|
223
|
{
|
|
224
|
with (s)
|
|
225
|
sprite_index = spr_susiel_dark;
|
|
226
|
}
|
|
227
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == 18)
|
|
228
|
{
|
|
229
|
with (s)
|
|
230
|
sprite_index = spr_susied_dark;
|
|
231
|
}
|
|
232
|
}
|
|
233
|
if (con == 38 && d_ex() == 0)
|
|
234
|
con = 40;
|
|
235
|
}
|
|
236
|
else
|
|
237
|
{
|
|
238
|
if (con == 40 && d_ex() == 0)
|
|
239
|
{
|
|
240
|
with (s)
|
|
241
|
sprite_index = spr_susieu_dark;
|
|
242
|
snd_play(snd_lancerlaugh);
|
|
243
|
con = 44;
|
|
244
|
alarm[4] = 50; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
245
|
}
|
|
246
|
if (con == 45)
|
|
247
|
{
|
|
248
|
snd_play(snd_drive);
|
|
249
|
xx = __view_get(e__VW.XView, 0);
|
|
250
|
yy = __view_get(e__VW.YView, 0);
|
|
251
|
l = scr_dark_markerscr_dark_marker
function 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;
} (xx + 720, (r.y + r.sprite_height) - 10, spr_lancerbike);
|
|
252
|
with (l)
|
|
253
|
hspeed = -32;
|
|
254
|
con = 46;
|
|
255
|
}
|
|
256
|
if (con == 46)
|
|
257
|
{
|
|
258
|
if (l.x <= (xx + 360))
|
|
259
|
{
|
|
260
|
ex = instance_create(r.x + 30, r.y + 30, obj_animation);
|
|
261
|
ex.sprite_index = spr_realisticexplosion;
|
|
262
|
ex.image_xscale = 2;
|
|
263
|
ex.image_yscale = 2;
|
|
264
|
ex.image_speed = 0.5;
|
|
265
|
ex.depth = 10;
|
|
266
|
global.currentsong[0] = snd_init("lancer.ogg");
|
|
267
|
with (l)
|
|
268
|
hspeed = 0;
|
|
269
|
with (r)
|
|
270
|
{
|
|
271
|
hspeed = -32;
|
|
272
|
vspeed = -8;
|
|
273
|
gravity = 0.2;
|
|
274
|
}
|
|
275
|
rflip = 1;
|
|
276
|
snd_play(snd_badexplosion);
|
|
277
|
instance_create(0, 0, obj_shake);
|
|
278
|
con = 47;
|
|
279
|
alarm[4] = 60; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
280
|
}
|
|
281
|
}
|
|
282
|
if (con == 48)
|
|
283
|
{
|
|
284
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.7, 1);
|
|
285
|
con = 49;
|
|
286
|
global.fc = 5;
|
|
287
|
global.fe = 1;
|
|
288
|
global.typer = 32;
|
|
289
|
global.msg[0] = * Ho ho ho!Wait for input ;
|
|
290
|
global.msg[1] = Face 0* The heroes are already running away...Wait for input ;
|
|
291
|
global.msg[2] = Face 1* And they didn't even know I was here.Wait for input ;
|
|
292
|
global.msg[3] = Face 3* My dad's gonna make me Son of the Month!Wait for input ;
|
|
293
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (4, 9);
|
|
294
|
global.msg[5] = * Who the hell are you!?Wait for input ;
|
|
295
|
scr_lanfacescr_lanface
function scr_lanface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char L Sound L Close Message , string(arg1));
} (6, 0);
|
|
296
|
global.msg[7] = * I'm...!Wait for inputClose Message ;
|
|
297
|
if (global.flag[203 skipped_prophecy] == 1)
|
|
298
|
{
|
|
299
|
global.msg[0] = * Ho ho ho!Delay 11 * One nerd down,Delay 11 two to go!Wait for input ;
|
|
300
|
global.msg[1] = Face 3* My dad's gonna make me Son of the Month!Wait for input ;
|
|
301
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (2, 9);
|
|
302
|
global.msg[3] = * Who the hell are you!?Wait for input ;
|
|
303
|
scr_lanfacescr_lanface
function scr_lanface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char L Sound L Close Message , string(arg1));
} (4, 0);
|
|
304
|
global.msg[5] = * I'm...!Wait for inputClose Message ;
|
|
305
|
}
|
|
306
|
d = instance_create(0, 0, obj_dialoguer);
|
|
307
|
d.side = 1;
|
|
308
|
}
|
|
309
|
if (con == 49 && d_ex() == 0)
|
|
310
|
{
|
|
311
|
con = 50;
|
|
312
|
snd_play(snd_lancerwhistle);
|
|
313
|
with (l)
|
|
314
|
sprite_index = spr_lancerbike_l;
|
|
315
|
siner = 0;
|
|
316
|
maxamt = 20;
|
|
317
|
}
|
|
318
|
if (con == 50)
|
|
319
|
{
|
|
320
|
siner += 1;
|
|
321
|
l.image_xscale = 2 * cos((siner * 2 * pi) / maxamt);
|
|
322
|
if (siner >= maxamt)
|
|
323
|
{
|
|
324
|
con = 51;
|
|
325
|
if (global.flag[203 skipped_prophecy] == 1)
|
|
326
|
con = 54;
|
|
327
|
l.image_xscale = 2;
|
|
328
|
alarm[4] = 15; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
329
|
}
|
|
330
|
}
|
|
331
|
if (con == 52)
|
|
332
|
{
|
|
333
|
with (l)
|
|
334
|
sprite_index = spr_lancerbike;
|
|
335
|
global.fe = 1;
|
|
336
|
global.fc = 5;
|
|
337
|
global.typer = 32;
|
|
338
|
global.msg[0] = * The bad guy.Wait for input ;
|
|
339
|
global.msg[1] = Face 0* You CLOWNS want to seal our DARK FOUNTAIN, huh!?Wait for input ;
|
|
340
|
global.msg[2] = Face 2* And -Delay 22 STILL picturing you guys as CLOWNS -Wait for input ;
|
|
341
|
global.msg[3] = Face 0* Save the world from ETERNAL DARKNESS, huh!?Wait for input ;
|
|
342
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (4, 0);
|
|
343
|
global.msg[5] = Face 0* Eh.Wait for input ;
|
|
344
|
scr_lanfacescr_lanface
function scr_lanface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char L Sound L Close Message , string(arg1));
} (6, 1);
|
|
345
|
global.msg[7] = * Don't try to deny it...!Wait for input ;
|
|
346
|
global.msg[8] = Face 0* We both know you'll go EAST!Wait for input ;
|
|
347
|
global.msg[9] = * It's your only way home!Wait for input ;
|
|
348
|
global.msg[10] = Face 2* But,Delay 11 I,Delay 11 LANCER,Delay 11 won't let you go there!Wait for input ;
|
|
349
|
global.msg[11] = Face 0* And I've got a flawless two step plan to ensure it.Wait for input ;
|
|
350
|
global.msg[12] = Face 2* Step one.Delay 33 * I thrash you.Wait for input ;
|
|
351
|
global.msg[13] = Face 1* Step two.Delay 33 * You lose!Wait for input ;
|
|
352
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (14, 1);
|
|
353
|
global.msg[15] = Face 1* Hmm.Delay 22 Nice plan,Delay 11 kid.Wait for input ;
|
|
354
|
scr_lanfacescr_lanface
function scr_lanface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char L Sound L Close Message , string(arg1));
} (16, 6);
|
|
355
|
global.msg[17] = Face 6* R-really...?Wait for input ;
|
|
356
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (18, 2);
|
|
357
|
global.msg[19] = Face 2* Yeah, actually...Wait for input ;
|
|
358
|
global.msg[20] = Face 3* Mind if we use it on you instead?Wait for inputClose Message ;
|
|
359
|
d = instance_create(0, 0, obj_dialoguer);
|
|
360
|
d.side = 1;
|
|
361
|
con = 70;
|
|
362
|
}
|
|
363
|
if (con == 55)
|
|
364
|
{
|
|
365
|
with (l)
|
|
366
|
sprite_index = spr_lancerbike;
|
|
367
|
global.fc = 5;
|
|
368
|
global.fe = 1;
|
|
369
|
global.typer = 32;
|
|
370
|
global.msg[0] = * The bad guy.Wait for input ;
|
|
371
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (1, 0);
|
|
372
|
global.msg[2] = Face 0* "Bad guy?"Wait for input ;
|
|
373
|
scr_lanfacescr_lanface
function scr_lanface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char L Sound L Close Message , string(arg1));
} (3, 0);
|
|
374
|
global.msg[4] = Face 6* You know.Delay 22 * Teardrop-headed kid.Delay 22 * From the legend?Wait for input ;
|
|
375
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (5, 1);
|
|
376
|
global.msg[6] = Face 1* ... No?Wait for input ;
|
|
377
|
scr_lanfacescr_lanface
function scr_lanface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char L Sound L Close Message , string(arg1));
} (7, 4);
|
|
378
|
global.msg[8] = Face 4* Aw boy.Delay 22 * This is gonna be hard to explain.Wait for inputClose Message ;
|
|
379
|
d = instance_create(0, 0, obj_dialoguer);
|
|
380
|
with (d)
|
|
381
|
side = 1;
|
|
382
|
con = 56;
|
|
383
|
}
|
|
384
|
if (con == 56 && d_ex() == 0)
|
|
385
|
{
|
|
386
|
r2 = scr_dark_markerscr_dark_marker
function 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;
} (xx - 60, yy + 80, spr_ralsei_hood);
|
|
387
|
with (r2)
|
|
388
|
hspeed = 16;
|
|
389
|
con = 57;
|
|
390
|
alarm[4] = 15; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
391
|
}
|
|
392
|
if (con == 58)
|
|
393
|
{
|
|
394
|
global.typer = 6;
|
|
395
|
with (r2)
|
|
396
|
hspeed = 0;
|
|
397
|
global.fc = 2;
|
|
398
|
global.fe = 1;
|
|
399
|
global.msg[0] = * Umm...Delay 11 * I could help explain it...!Wait for input ;
|
|
400
|
scr_lanfacescr_lanface
function scr_lanface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char L Sound L Close Message , string(arg1));
} (1, 0);
|
|
401
|
global.msg[2] = Face 0* Stay out of this,Delay 22 kindboy!Wait for input ;
|
|
402
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (3, 0);
|
|
403
|
global.msg[4] = Face 0* No!Delay 11 * I'll protect the heroes with my life!Wait for input ;
|
|
404
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (5, 0);
|
|
405
|
global.msg[6] = Face 0* Actually,Delay 11 can you hold off? * I wanna hear this kid.Wait for inputClose Message ;
|
|
406
|
d = instance_create(0, 0, obj_dialoguer);
|
|
407
|
with (d)
|
|
408
|
side = 1;
|
|
409
|
con = 59;
|
|
410
|
}
|
|
411
|
if (con == 59 && d_ex() == 0)
|
|
412
|
{
|
|
413
|
with (r2)
|
|
414
|
hspeed = -8;
|
|
415
|
con = 60;
|
|
416
|
alarm[4] = 30; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
417
|
}
|
|
418
|
if (con == 61)
|
|
419
|
{
|
|
420
|
global.fc = 5;
|
|
421
|
global.fe = 6;
|
|
422
|
global.typer = 32;
|
|
423
|
global.msg[0] = Face 6* OK,Delay 11 so,Delay 11 long story short.Delay 22 * You guys are heroes.Wait for input ;
|
|
424
|
global.msg[1] = * You wanna go EAST,Delay 22 and seal our DARK FOUNTAIN.Wait for input ;
|
|
425
|
global.msg[2] = Face 6* That'll stop darkness from covering the world.Wait for input ;
|
|
426
|
global.msg[3] = * We,Delay 22 on the other hand,Delay 22 don't want that,Delay 22 because:Wait for input ;
|
|
427
|
global.msg[4] = Face 1* It would rule,Delay 22 and be great.Wait for input ;
|
|
428
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (5, 2);
|
|
429
|
global.msg[6] = Face 2* Wait,Delay 22 why DO we want to stop that?Wait for input ;
|
|
430
|
scr_lanfacescr_lanface
function scr_lanface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char L Sound L Close Message , string(arg1));
} (7, 7);
|
|
431
|
global.msg[8] = Face 7* Uhh,Delay 11 I dunno...Delay 22 * I guess I could go ask my dad?Wait for inputClose Message ;
|
|
432
|
d = instance_create(0, 0, obj_dialoguer);
|
|
433
|
with (d)
|
|
434
|
side = 1;
|
|
435
|
con = 62;
|
|
436
|
}
|
|
437
|
if (con == 62 && d_ex() == 0)
|
|
438
|
{
|
|
439
|
r3 = scr_dark_markerscr_dark_marker
function 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;
} (xx - 60, yy + 80, spr_ralsei_hood);
|
|
440
|
with (r3)
|
|
441
|
hspeed = 16;
|
|
442
|
con = 63;
|
|
443
|
alarm[4] = 15; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
444
|
}
|
|
445
|
if (con == 64)
|
|
446
|
{
|
|
447
|
with (r3)
|
|
448
|
hspeed = 0;
|
|
449
|
global.typer = 6;
|
|
450
|
global.fc = 2;
|
|
451
|
global.fe = 1;
|
|
452
|
global.msg[0] = * I could tell you!Wait for input ;
|
|
453
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (1, 0);
|
|
454
|
global.msg[2] = * We GOT this.Wait for inputClose Message ;
|
|
455
|
d = instance_create(0, 0, obj_dialoguer);
|
|
456
|
with (d)
|
|
457
|
side = 1;
|
|
458
|
con = 65;
|
|
459
|
}
|
|
460
|
if (con == 65 && d_ex() == 0)
|
|
461
|
{
|
|
462
|
with (r3)
|
|
463
|
hspeed = -8;
|
|
464
|
con = 66;
|
|
465
|
alarm[4] = 40; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
466
|
}
|
|
467
|
if (con == 67)
|
|
468
|
{
|
|
469
|
global.typer = 30;
|
|
470
|
global.fc = 1;
|
|
471
|
global.fe = 1;
|
|
472
|
global.msg[0] = Face 1* So the POINT is,Delay 22 you wanna fight us?Wait for input ;
|
|
473
|
scr_lanfacescr_lanface
function scr_lanface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char L Sound L Close Message , string(arg1));
} (1, 1);
|
|
474
|
global.msg[2] = Face 1* Correct-a-mundo!Wait for input ;
|
|
475
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (3, 2);
|
|
476
|
global.msg[4] = Face 2* Arright,Delay 11 kid...Wait for input ;
|
|
477
|
global.msg[5] = Face 3* NOW you're telling me something I understand.Wait for inputClose Message ;
|
|
478
|
d = instance_create(0, 0, obj_dialoguer);
|
|
479
|
with (d)
|
|
480
|
side = 1;
|
|
481
|
con = 70;
|
|
482
|
}
|
|
483
|
if (con == 72)
|
|
484
|
{
|
|
485
|
global.flag[9 battle_music] = 1;
|
|
486
|
global.batmusic[0] = snd_init("battle.ogg");
|
|
487
|
global.encounterno = 2;
|
|
488
|
global.specialbattle = 3;
|
|
489
|
scr_getcharscr_getchar
function scr_getchar(arg0)
{
getchar = 0;
if (global.char[0] == 0)
{
global.char[0] = arg0;
getchar = 1;
}
if (global.char[1] == 0 && getchar == 0)
{
global.char[1] = arg0;
getchar = 1;
}
if (global.char[2] == 0 && getchar == 0)
{
global.char[2] = arg0;
getchar = 1;
}
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
}
}
} (2);
|
|
490
|
obj_mainchara.x = k.x;
|
|
491
|
obj_mainchara.y = k.y;
|
|
492
|
global.cinstance[0] = instance_create(s.x, s.y, obj_caterpillarchara);
|
|
493
|
with (k)
|
|
494
|
instance_destroy();
|
|
495
|
with (s)
|
|
496
|
instance_destroy();
|
|
497
|
instance_create(0, 0, obj_encounterbasic);
|
|
498
|
con = 73;
|
|
499
|
with (l)
|
|
500
|
{
|
|
501
|
direction = point_direction(x, y, global.monstermakex[0], global.monstermakey[0]);
|
|
502
|
speed = point_distance(x, y, global.monstermakex[0], global.monstermakey[0]) / 10;
|
|
503
|
}
|
|
504
|
alarm[4] = 10; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
505
|
}
|
|
506
|
if (con == 70 && d_ex() == 0)
|
|
507
|
{
|
|
508
|
snd_free_all();
|
|
509
|
con = 71;
|
|
510
|
alarm[4] = 2; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
511
|
}
|
|
512
|
if (con == 74)
|
|
513
|
{
|
|
514
|
with (l)
|
|
515
|
speed = 0;
|
|
516
|
if (instance_exists(obj_battlecontroller))
|
|
517
|
{
|
|
518
|
with (l)
|
|
519
|
instance_destroy();
|
|
520
|
con = 75;
|
|
521
|
}
|
|
522
|
}
|
|
523
|
if (con == 75)
|
|
524
|
{
|
|
525
|
if (global.plot == 22)
|
|
526
|
{
|
|
527
|
if (instance_exists(obj_battlecontroller) == false)
|
|
528
|
{
|
|
529
|
if (instance_exists(obj_endbattle) == false)
|
|
530
|
con = 76;
|
|
531
|
}
|
|
532
|
alarm[4] = 5; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
533
|
}
|
|
534
|
}
|
|
535
|
if (con == 77)
|
|
536
|
{
|
|
537
|
rflip = 0;
|
|
538
|
global.interact = 1;
|
|
539
|
k = scr_dark_markerscr_dark_marker
function 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;
} (obj_mainchara.x, obj_mainchara.y, spr_krisu_dark);
|
|
540
|
s = scr_dark_markerscr_dark_marker
function 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;
} (global.cinstance[0].x, global.cinstance[0].y, spr_susieu_dark);
|
|
541
|
k.depth = 6000;
|
|
542
|
s.depth = 6000;
|
|
543
|
with (obj_mainchara)
|
|
544
|
visible = 0;
|
|
545
|
with (global.cinstance[0])
|
|
546
|
instance_destroy();
|
|
547
|
con = 78;
|
|
548
|
alarm[4] = 15; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
549
|
}
|
|
550
|
if (con == 79)
|
|
551
|
{
|
|
552
|
r = scr_dark_markerscr_dark_marker
function 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;
} (95, 310, spr_ralsei_hood);
|
|
553
|
r.hspeed = 16;
|
|
554
|
con = 80;
|
|
555
|
alarm[4] = 25; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
556
|
}
|
|
557
|
if (con == 81)
|
|
558
|
{
|
|
559
|
with (r)
|
|
560
|
speed = 0;
|
|
561
|
global.fc = 2;
|
|
562
|
global.fe = 1;
|
|
563
|
global.typer = 6;
|
|
564
|
global.msg[0] = * Are you two OK...?Wait for inputClose Message ;
|
|
565
|
d = instance_create(0, 0, obj_dialoguer);
|
|
566
|
d.side = 1;
|
|
567
|
con = 82;
|
|
568
|
}
|
|
569
|
if (con == 82 && d_ex() == 0)
|
|
570
|
{
|
|
571
|
with (r)
|
|
572
|
vspeed = 6;
|
|
573
|
with (r)
|
|
574
|
depth = 1000;
|
|
575
|
con = 83;
|
|
576
|
alarm[4] = 10; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
577
|
}
|
|
578
|
if (con == 84)
|
|
579
|
{
|
|
580
|
with (r)
|
|
581
|
vspeed = 0;
|
|
582
|
global.msg[0] = * Um,Delay 11 allow me to introduce myself more properly,Delay 11 I am...Wait for input ;
|
|
583
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (1, 0);
|
|
584
|
global.msg[2] = * Jeez,Delay 11 can you take off that hood?Wait for input ;
|
|
585
|
global.msg[3] = * I can barely hear you under there.Wait for input ;
|
|
586
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (4, 0);
|
|
587
|
global.msg[5] = * U-ummm,Delay 11 alright...Wait for inputClose Message ;
|
|
588
|
d = instance_create(0, 0, obj_dialoguer);
|
|
589
|
d.side = 1;
|
|
590
|
con = 85;
|
|
591
|
}
|
|
592
|
if (con == 85 && d_ex() == 0)
|
|
593
|
{
|
|
594
|
snd_play(snd_noise);
|
|
595
|
with (r)
|
|
596
|
{
|
|
597
|
sprite_index = spr_ralsei_removehood;
|
|
598
|
image_index = 0;
|
|
599
|
image_speed = 0.1;
|
|
600
|
}
|
|
601
|
con = 86;
|
|
602
|
alarm[4] = 60; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
603
|
}
|
|
604
|
if (con == 87)
|
|
605
|
{
|
|
606
|
with (r)
|
|
607
|
{
|
|
608
|
sprite_index = spr_ralseid;
|
|
609
|
image_index = 0;
|
|
610
|
image_speed = 0;
|
|
611
|
}
|
|
612
|
global.flag[30 ralsei_hat_state] = 0;
|
|
613
|
con = 88;
|
|
614
|
alarm[4] = 30; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
615
|
}
|
|
616
|
if (con == 89)
|
|
617
|
{
|
|
618
|
global.typer = 31;
|
|
619
|
global.fc = 2;
|
|
620
|
global.fe = 0;
|
|
621
|
global.msg[0] = * Hello everyone.Delay 11 * I'm Ralsei.Wait for input ;
|
|
622
|
global.msg[1] = Face 0* Kris, Susie...Delay 22 * It's ever so wonderful to meet you!Wait for input ;
|
|
623
|
global.msg[2] = Face 8* I'm certain we're going to become great friends,Delay 22 and,Wait for input ;
|
|
624
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (3, 0);
|
|
625
|
global.msg[4] = Face 0* Best way to leave is East,Delay 22 right?Wait for input ;
|
|
626
|
scr_ralfacescr_ralface
function scr_ralface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char R Sound R Close Message , string(arg1));
} (5, 0);
|
|
627
|
global.msg[6] = Face 0* Yes!Delay 22 * That's where we'll...Wait for input ;
|
|
628
|
scr_susfacescr_susface
function scr_susface(arg0, arg1)
{
global.msg[arg0] = scr_84_get_subst_string(Sound X Char 0 Face ~1 Char S Sound S Close Message , string(arg1));
} (7, 0);
|
|
629
|
global.msg[8] = Face 0* Got it.Wait for inputClose Message ;
|
|
630
|
d = instance_create(0, 0, obj_dialoguer);
|
|
631
|
d.side = 1;
|
|
632
|
con = 90;
|
|
633
|
}
|
|
634
|
if (con == 90 && d_ex() == 0)
|
|
635
|
{
|
|
636
|
with (s)
|
|
637
|
sprite_index = spr_susier_dark;
|
|
638
|
con = 91;
|
|
639
|
alarm[4] = 40; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
640
|
}
|
|
641
|
if (con == 92)
|
|
642
|
{
|
|
643
|
with (k)
|
|
644
|
sprite_index = spr_krisr_dark;
|
|
645
|
global.fc = 1;
|
|
646
|
global.fe = 2;
|
|
647
|
global.msg[0] = * See ya at school,Delay 11 Kris.Wait for inputClose Message ;
|
|
648
|
d = instance_create(0, 0, obj_dialoguer);
|
|
649
|
d.side = 1;
|
|
650
|
con = 93;
|
|
651
|
}
|
|
652
|
if (con == 93 && d_ex() == 0)
|
|
653
|
{
|
|
654
|
with (k)
|
|
655
|
sprite_index = spr_krisd_dark;
|
|
656
|
with (s)
|
|
657
|
{
|
|
658
|
vspeed = 4;
|
|
659
|
image_speed = 0.2;
|
|
660
|
sprite_index = spr_susied_dark;
|
|
661
|
}
|
|
662
|
con = 94;
|
|
663
|
alarm[4] = 70; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
664
|
}
|
|
665
|
if (con == 95)
|
|
666
|
{
|
|
667
|
with (k)
|
|
668
|
sprite_index = spr_krisu_dark;
|
|
669
|
global.typer = 31;
|
|
670
|
global.fc = 2;
|
|
671
|
global.fe = 1;
|
|
672
|
global.msg[0] = ;
|
|
673
|
global.msg[1] = Face 6* I suppose it's just the two of us,Delay 11 then...Wait for inputClose Message ;
|
|
674
|
d = instance_create(0, 0, obj_dialoguer);
|
|
675
|
d.side = 1;
|
|
676
|
con = 96;
|
|
677
|
}
|
|
678
|
if (con == 96 && d_ex() == 0)
|
|
679
|
{
|
|
680
|
with (k)
|
|
681
|
sprite_index = spr_krisr_dark;
|
|
682
|
with (r)
|
|
683
|
{
|
|
684
|
hspeed = 1;
|
|
685
|
vspeed = 2;
|
|
686
|
image_speed = 0.2;
|
|
687
|
}
|
|
688
|
con = 97;
|
|
689
|
}
|
|
690
|
if (con == 97)
|
|
691
|
{
|
|
692
|
if (r.y >= (k.y - 12))
|
|
693
|
{
|
|
694
|
r.y = k.y - 12;
|
|
695
|
r.image_speed = 0;
|
|
696
|
r.image_index = 0;
|
|
697
|
r.sprite_index = spr_ralseil;
|
|
698
|
r.speed = 0;
|
|
699
|
r.vspeed = 0;
|
|
700
|
r.hspeed = 0;
|
|
701
|
con = 98;
|
|
702
|
alarm[4] = 30; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
703
|
}
|
|
704
|
}
|
|
705
|
if (con == 99)
|
|
706
|
{
|
|
707
|
global.fe = 5;
|
|
708
|
global.msg[0] = Face 5* Kris,Delay 11 I'm a PRINCE, but...Wait for input ;
|
|
709
|
global.msg[1] = Face 6* I,Delay 11 um,Delay 11 currently don't have any subjects.Wait for input ;
|
|
710
|
global.msg[2] = Face 5* I've been waiting alone here...Wait for input ;
|
|
711
|
global.msg[3] = Face 6* Um...Delay 11 My whole life for you two to arrive.Wait for input ;
|
|
712
|
global.msg[4] = Face 0* So...Delay 22 * I'm really happy to meet you.Wait for input ;
|
|
713
|
global.msg[5] = Face 8* I hope we can be good friends,Delay 22 Kris.Wait for inputClose Message ;
|
|
714
|
d = instance_create(0, 0, obj_dialoguer);
|
|
715
|
d.side = 1;
|
|
716
|
con = 100;
|
|
717
|
}
|
|
718
|
if (con == 100 && d_ex() == 0)
|
|
719
|
{
|
|
720
|
with (r)
|
|
721
|
sprite_index = spr_ralseid;
|
|
722
|
con = 101;
|
|
723
|
alarm[4] = 40; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
724
|
}
|
|
725
|
if (con == 102)
|
|
726
|
{
|
|
727
|
global.fe = 0;
|
|
728
|
global.msg[0] = * Let's try to find Susie.Delay 11 * She must be to the southeast.Wait for inputClose Message ;
|
|
729
|
d = instance_create(0, 0, obj_dialoguer);
|
|
730
|
d.side = 1;
|
|
731
|
con = 103;
|
|
732
|
}
|
|
733
|
if (con == 103 && d_ex() == 0)
|
|
734
|
{
|
|
735
|
with (r)
|
|
736
|
{
|
|
737
|
hspeed = -4;
|
|
738
|
image_speed = 0.2;
|
|
739
|
sprite_index = spr_ralseil;
|
|
740
|
}
|
|
741
|
con = 104;
|
|
742
|
}
|
|
743
|
if (con == 104)
|
|
744
|
{
|
|
745
|
if (r.x <= (k.x - 70))
|
|
746
|
{
|
|
747
|
with (r)
|
|
748
|
scr_haltscr_halt
function scr_halt()
{
image_index = 0;
image_speed = 0;
speed = 0;
} ();
|
|
749
|
with (r)
|
|
750
|
sprite_index = spr_ralseir;
|
|
751
|
con = 105;
|
|
752
|
global.fe = 8;
|
|
753
|
global.msg[0] = * You can lead the way,Delay 11 Kris!Wait for inputClose Message ;
|
|
754
|
d = instance_create(0, 0, obj_dialoguer);
|
|
755
|
d.side = 1;
|
|
756
|
}
|
|
757
|
}
|
|
758
|
if (con == 105 && d_ex() == 0)
|
|
759
|
{
|
|
760
|
con = 107;
|
|
761
|
global.currentsong[0] = snd_init("castletown_empty.ogg");
|
|
762
|
alarm[4] = 30; gml_Object_obj_darkcastle_event_Alarm_4.gml
con += 1;
|
|
763
|
scr_pan_to_objscr_pan_to_obj
function scr_pan_to_obj(arg0, arg1)
{
_wd = arg0.x - floor((__view_get(e__VW.WView, 0) / 2) - (arg0.sprite_width / 2));
_ht = arg0.y - floor((__view_get(e__VW.HView, 0) / 2) - (arg0.sprite_height / 2));
_vx = _wd;
_vy = _ht;
if (_vx < 0)
_vx = 0;
if (_vx > (room_width - _vx))
_vx = room_width - _vx;
if (_vy < 0)
_vy = 0;
if (_vy > (room_height - __view_get(e__VW.HView, 0)))
_vy = room_height - __view_get(e__VW.HView, 0);
scr_pan((_vx - __view_get(e__VW.XView, 0)) / arg1, (_vy - __view_get(e__VW.YView, 0)) / arg1, arg1);
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} (obj_mainchara, 25);
|
|
764
|
global.facing = 0;
|
|
765
|
with (k)
|
|
766
|
sprite_index = spr_krisd_dark;
|
|
767
|
}
|
|
768
|
if (con == 109)
|
|
769
|
{
|
|
770
|
with (r)
|
|
771
|
instance_destroy();
|
|
772
|
con = 110;
|
|
773
|
instance_destroy();
|
|
774
|
}
|
|
775
|
if (con == 108)
|
|
776
|
{
|
|
777
|
scr_losecharscr_losechar
function scr_losechar()
{
global.char[2] = 0;
global.char[1] = 0;
for (i = 0; i < 36; i += 1)
global.submenucoord[i] = 0;
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
}
}
global.submenu = 0;
global.charselect = -1;
for (i = 0; i < 36; i += 1)
global.submenucoord[i] = 0;
} ();
|
|
778
|
scr_getcharscr_getchar
function scr_getchar(arg0)
{
getchar = 0;
if (global.char[0] == 0)
{
global.char[0] = arg0;
getchar = 1;
}
if (global.char[1] == 0 && getchar == 0)
{
global.char[1] = arg0;
getchar = 1;
}
if (global.char[2] == 0 && getchar == 0)
{
global.char[2] = arg0;
getchar = 1;
}
with (obj_darkcontroller)
{
chartotal = 0;
havechar[0] = 0;
havechar[1] = 0;
havechar[2] = 0;
for (i = 0; i < 3; i += 1)
{
global.faceaction[i] = 0;
if (global.char[i] != 0)
chartotal += 1;
if (global.char[i] == 1)
{
havechar[0] = 1;
charpos[0] = i;
}
if (global.char[i] == 2)
{
havechar[1] = 1;
charpos[1] = i;
}
if (global.char[i] == 3)
{
havechar[2] = 1;
charpos[2] = i;
}
}
}
} (3);
|
|
779
|
global.facing = 0;
|
|
780
|
obj_mainchara.visible = 1;
|
|
781
|
obj_mainchara.cutscene = 0;
|
|
782
|
with (k)
|
|
783
|
instance_destroy();
|
|
784
|
global.cinstance[0] = instance_create(r.x + 4, r.y + 12, obj_caterpillarchara);
|
|
785
|
with (global.cinstance[0])
|
|
786
|
{
|
|
787
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate()
{
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = global.facing;
for (i = target; i > 0; i -= 1)
{
facing[i] = 2;
remx[i] = obj_mainchara.x + ((x - obj_mainchara.x) * (i / target));
remy[i] = obj_mainchara.y + ((y - obj_mainchara.y) * (i / target));
}
} ();
|
|
788
|
usprite = spr_ralseiu;
|
|
789
|
dsprite = spr_ralseid;
|
|
790
|
rsprite = spr_ralseir;
|
|
791
|
lsprite = spr_ralseil;
|
|
792
|
for (i = 0; i < 50; i += 1)
|
|
793
|
facing[i] = 1;
|
|
794
|
x -= 4;
|
|
795
|
y -= 12;
|
|
796
|
}
|
|
797
|
con = 109;
|
|
798
|
global.currentsong[1] = mus_loop(global.currentsong[0]);
|
|
799
|
global.plot = 30;
|
|
800
|
global.interact = 0;
|
|
801
|
scr_tempsavescr_tempsave
function scr_tempsave()
{
filechoicebk2 = global.filechoice;
global.filechoice = 9;
scr_saveprocess(global.filechoice);
global.filechoice = filechoicebk2;
} ();
|
|
802
|
}
|
|
803
|
}
|
|
804
|
if (rflip == 1)
|
|
805
|
{
|
|
806
|
if (instance_exists(r))
|
|
807
|
{
|
|
808
|
with (r)
|
|
809
|
image_angle += 2;
|
|
810
|
}
|
|
811
|
}
|
|
812
|
|
|
813
|
enum e__VW
|
|
814
|
{
|
|
815
|
XView,
|
|
816
|
YView,
|
|
817
|
WView,
|
|
818
|
HView,
|
|
819
|
Angle,
|
|
820
|
HBorder,
|
|
821
|
VBorder,
|
|
822
|
HSpeed,
|
|
823
|
VSpeed,
|
|
824
|
Object,
|
|
825
|
Visible,
|
|
826
|
XPort,
|
|
827
|
YPort,
|
|
828
|
WPort,
|
|
829
|
HPort,
|
|
830
|
Camera,
|
|
831
|
SurfaceID
|
|
832
|
}
|