|
1
|
if (con == 1)
|
|
2
|
{
|
|
3
|
if (obj_mainchara.x >= x && global.interact == 0)
|
|
4
|
{
|
|
5
|
global.interact = 1;
|
|
6
|
con = 2;
|
|
7
|
global.facing = 1;
|
|
8
|
with (obj_caterpillarchara)
|
|
9
|
{
|
|
10
|
sprite_index = rsprite;
|
|
11
|
fun = 1;
|
|
12
|
}
|
|
13
|
}
|
|
14
|
}
|
|
15
|
if (con == 2)
|
|
16
|
{
|
|
17
|
darkfade = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (-10, -10, spr_pixel_white);
|
|
18
|
darkfade.image_xscale = 700;
|
|
19
|
darkfade.image_yscale = 400;
|
|
20
|
darkfade.image_alpha = 0;
|
|
21
|
darkfade.depth = 800000;
|
|
22
|
darkfade.image_blend = c_black;
|
|
23
|
fade = 0;
|
|
24
|
con = 3;
|
|
25
|
}
|
|
26
|
if (con == 3)
|
|
27
|
{
|
|
28
|
snd_free_all();
|
|
29
|
with (obj_caterpillarchara)
|
|
30
|
image_index = 0;
|
|
31
|
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;
} (4, 0, 40);
|
|
32
|
fade += 0.02;
|
|
33
|
darkfade.image_alpha = fade;
|
|
34
|
if (fade >= 0.6)
|
|
35
|
{
|
|
36
|
con = 4;
|
|
37
|
alarm[4] = 11; gml_Object_obj_rurus_checker_event_Alarm_4.gml
con += 1;
|
|
38
|
}
|
|
39
|
}
|
|
40
|
if (con == 5)
|
|
41
|
{
|
|
42
|
global.msg[0] = Enough,Delay 11 Worms...!Wait for inputClose Message ;
|
|
43
|
global.typer = 42;
|
|
44
|
instance_create(__view_get(e__VW.XView, 0) + 120, 50, obj_writer);
|
|
45
|
con = 6;
|
|
46
|
}
|
|
47
|
if (con == 6 && !instance_exists(obj_writer))
|
|
48
|
{
|
|
49
|
appear = instance_create(__view_get(e__VW.XView, 0) + 420, __view_get(e__VW.YView, 0) + 160, obj_rurus_appear);
|
|
50
|
snd_play(snd_rurus_appear);
|
|
51
|
con = 14;
|
|
52
|
rurus = 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;
} (appear.x, appear.y, spr_rurus_idle);
|
|
53
|
rurus.visible = 0;
|
|
54
|
alarm[4] = 60; gml_Object_obj_rurus_checker_event_Alarm_4.gml
con += 1;
|
|
55
|
}
|
|
56
|
if (con == 15)
|
|
57
|
{
|
|
58
|
with (rurus)
|
|
59
|
visible = 1;
|
|
60
|
with (appear)
|
|
61
|
instance_destroy();
|
|
62
|
con = 16;
|
|
63
|
alarm[4] = 21; gml_Object_obj_rurus_checker_event_Alarm_4.gml
con += 1;
|
|
64
|
}
|
|
65
|
if (con == 16)
|
|
66
|
{
|
|
67
|
with (darkfade)
|
|
68
|
{
|
|
69
|
image_alpha -= 0.05;
|
|
70
|
if (image_alpha <= 0)
|
|
71
|
image_alpha = 0;
|
|
72
|
}
|
|
73
|
}
|
|
74
|
if (con == 17)
|
|
75
|
{
|
|
76
|
global.currentsong[0] = snd_init("ruruskaado.ogg");
|
|
77
|
global.currentsong[1] = mus_loop(global.currentsong[0]);
|
|
78
|
global.fc = 18;
|
|
79
|
global.fe = 0;
|
|
80
|
global.typer = 6;
|
|
81
|
global.msg[0] = * Thou may have CHEATETHED through mine PUZZLES,Delay 11 but...Wait for input ;
|
|
82
|
global.msg[1] = * In COMBAT,Delay 11 thou shalt be scattered about!Wait for input ;
|
|
83
|
global.msg[2] = * Come,Delay 11 knaves...!Delay 11 Prepareth for battle with...!Wait for inputClose Message ;
|
|
84
|
d = instance_create(0, 0, obj_dialoguer);
|
|
85
|
d.side = 1;
|
|
86
|
con = 18;
|
|
87
|
}
|
|
88
|
if (con == 18 && !d_ex())
|
|
89
|
{
|
|
90
|
with (rurus)
|
|
91
|
hspeed = 7;
|
|
92
|
con = 19;
|
|
93
|
alarm[4] = 15; gml_Object_obj_rurus_checker_event_Alarm_4.gml
con += 1;
|
|
94
|
}
|
|
95
|
if (con == 20)
|
|
96
|
{
|
|
97
|
with (rurus)
|
|
98
|
scr_haltscr_halt
function scr_halt()
{
image_index = 0;
image_speed = 0;
speed = 0;
} ();
|
|
99
|
snd_play(snd_rurus_appear);
|
|
100
|
checkerappear = instance_create(__view_get(e__VW.XView, 0) + 380, __view_get(e__VW.YView, 0) + 120, obj_rurus_appear);
|
|
101
|
with (checkerappear)
|
|
102
|
type = 1;
|
|
103
|
checker = 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;
} (checkerappear.x, checkerappear.y, spr_checkers_idle);
|
|
104
|
with (checker)
|
|
105
|
visible = 0;
|
|
106
|
con = 21;
|
|
107
|
alarm[4] = 60; gml_Object_obj_rurus_checker_event_Alarm_4.gml
con += 1;
|
|
108
|
}
|
|
109
|
if (con == 22)
|
|
110
|
{
|
|
111
|
with (checker)
|
|
112
|
visible = 1;
|
|
113
|
with (checkerappear)
|
|
114
|
instance_destroy();
|
|
115
|
global.smalarm[0] = 5;
|
|
116
|
global.smyy[0] = 70;
|
|
117
|
global.smxx[0] = 170;
|
|
118
|
global.smdir[0] = 180;
|
|
119
|
global.smspeed[0] = 10;
|
|
120
|
global.smtype[0] = 3;
|
|
121
|
global.smsprite[0] = spr_face_s6;
|
|
122
|
global.smcolor[0] = c_white;
|
|
123
|
global.smstring[0] = ;
|
|
124
|
global.smalarm[1] = 5;
|
|
125
|
global.smyy[1] = 70;
|
|
126
|
global.smxx[1] = 170;
|
|
127
|
global.smdir[1] = 180;
|
|
128
|
global.smspeed[1] = 10;
|
|
129
|
global.smtype[1] = 3;
|
|
130
|
global.smsprite[1] = spr_face_s7;
|
|
131
|
global.smcolor[1] = c_white;
|
|
132
|
global.smstring[1] = ;
|
|
133
|
global.msg[0] = * Whatever this is!!!Wait for input ;
|
|
134
|
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, 3);
|
|
135
|
global.msg[2] = * Huh...!?Delay 11 * It's the enemy from earlier...!Wait for input ;
|
|
136
|
global.msg[3] = * But its CROWN looks different!Delay 33Mini text 0 Delay 33Wait for inputClose Message ;
|
|
137
|
global.msg[4] = "%%";
|
|
138
|
instance_create(0, 0, obj_dialoguer);
|
|
139
|
con = 23;
|
|
140
|
}
|
|
141
|
if (con == 23 && !d_ex())
|
|
142
|
{
|
|
143
|
global.typer = 6;
|
|
144
|
global.fc = 18;
|
|
145
|
global.fe = 0;
|
|
146
|
global.msg[0] = * Yes! With my Control Crowne...Wait for input ;
|
|
147
|
global.msg[1] = * I mayst control ANY disc-shaped Lifeforme!Wait for inputClose Message ;
|
|
148
|
instance_create(0, 0, obj_dialoguer);
|
|
149
|
con = 24;
|
|
150
|
}
|
|
151
|
if (con == 24 && !d_ex())
|
|
152
|
{
|
|
153
|
snd_play(snd_impact);
|
|
154
|
instance_create(0, 0, obj_shake);
|
|
155
|
with (checker)
|
|
156
|
image_index = 4;
|
|
157
|
con = 25;
|
|
158
|
alarm[4] = 30; gml_Object_obj_rurus_checker_event_Alarm_4.gml
con += 1;
|
|
159
|
}
|
|
160
|
if (con == 26)
|
|
161
|
{
|
|
162
|
global.fc = 2;
|
|
163
|
global.fe = 3;
|
|
164
|
global.typer = 31;
|
|
165
|
global.msg[0] = ;
|
|
166
|
global.msg[1] = * It looks like it's in pain!!Delay 33Mini text 1 Delay 33Wait for inputClose Message ;
|
|
167
|
global.msg[2] = "%%";
|
|
168
|
con = 27;
|
|
169
|
instance_create(0, 0, obj_dialoguer);
|
|
170
|
}
|
|
171
|
if (con == 27 && !d_ex())
|
|
172
|
{
|
|
173
|
global.fc = 18;
|
|
174
|
global.typer = 6;
|
|
175
|
global.fe = 0;
|
|
176
|
global.msg[0] = * Yes...Delay 11 The control crown is painful...Wait for input ;
|
|
177
|
global.msg[1] = * But,Delay 11 I'm certain this Creature will feeleth relief...Wait for input ;
|
|
178
|
global.msg[2] = * When it sees how much MORE pain THOU'LL be in!!!Wait for inputClose Message ;
|
|
179
|
instance_create(0, 0, obj_dialoguer);
|
|
180
|
con = 28;
|
|
181
|
}
|
|
182
|
if (con == 28 && !d_ex())
|
|
183
|
{
|
|
184
|
with (rurus)
|
|
185
|
hspeed = 10;
|
|
186
|
snd_free_all();
|
|
187
|
global.encounterno = 27;
|
|
188
|
scr_encountersetupscr_encountersetup
function scr_encountersetup(arg0)
{
xx = __view_get(e__VW.XView, 0);
yy = __view_get(e__VW.YView, 0);
for (i = 0; i < 3; i += 1)
{
global.heromakex[i] = xx + 80;
global.heromakey[i] = yy + 50 + (80 * i);
global.monsterinstancetype[i] = obj_lancerboss;
global.monstertype[i] = 1Enemy (placeholder/G-BODY);
global.monstermakex[i] = xx + 540;
global.monstermakey[i] = yy + 160 + (80 * i);
}
if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0)
global.heromakey[0] = yy + 140;
if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0)
{
global.heromakey[0] = yy + 100;
global.heromakey[1] = yy + 180;
}
switch (arg0)
{
case 0:
break;
case 1:
global.monsterinstancetype[0] = obj_placeholderenemy;
global.monstertype[0] = 1Enemy (placeholder/G-BODY);
global.monstermakex[0] = xx + 480;
global.monstermakey[0] = yy + 110;
global.monsterinstancetype[1] = obj_placeholderenemy;
global.monstertype[1] = 1Enemy (placeholder/G-BODY);
global.monstermakex[1] = xx + 500;
global.monstermakey[1] = yy + 200;
global.monstertype[2] = 0(None);
break;
case 2:
global.monsterinstancetype[0] = obj_lancerboss;
global.monstertype[0] = 2Lancer;
global.monstermakex[0] = xx + 540;
global.monstermakey[0] = yy + 200;
global.monstertype[1] = 0(None);
global.monstertype[2] = 0(None);
break;
case 3:
global.monsterinstancetype[0] = obj_dummyenemy;
global.monstertype[0] = 3Dummy;
global.monstermakex[0] = xx + 500;
global.monstermakey[0] = yy + 160;
if (instance_exists(obj_npc_room))
{
global.monstermakex[0] = obj_npc_room.xstart;
global.monstermakey[0] = obj_npc_room.ystart;
}
global.monstertype[1] = 0(None);
global.monstertype[2] = 0(None);
break;
case 4:
global.monsterinstancetype[0] = obj_diamondenemy;
global.monstertype[0] = 5Rudinn;
global.monstermakex[0] = xx + 480;
global.monstermakey[0] = yy + 140;
global.monstertype[1] = 0(None);
global.monstertype[2] = 0(None);
global.battlemsg[0] = ;
if (global.flag[500 times_rudinn_fought] >= 1)
global.battlemsg[0] = * A different Rudinn from last time drew near! ;
if (global.flag[500 times_rudinn_fought] == 2)
global.battlemsg[0] = * Assumedly another different Rudinn appeared! ;
break;
case 5:
global.monsterinstancetype[0] = obj_diamondenemy;
global.monstertype[0] = 5Rudinn;
global.monstermakex[0] = xx + 480;
global.monstermakey[0] = yy + 110;
global.monsterinstancetype[1] = obj_diamondenemy;
global.monstertype[1] = 5Rudinn;
global.monstermakex[1] = xx + 500;
global.monstermakey[1] = yy + 200;
global.monstertype[2] = 0(None);
global.battlemsg[0] = * A necklace of Rudinns blocks your path. ;
break;
case 6:
global.monsterinstancetype[0] = obj_diamondenemy;
global.monstertype[0] = 5Rudinn;
global.monstermakex[0] = xx + 480;
global.monstermakey[0] = yy + 110;
global.monsterinstancetype[1] = obj_heartenemy;
global.monstertype[1] = 6Hathy;
global.monstermakex[1] = xx + 500;
global.monstermakey[1] = yy + 200;
global.monstertype[2] = 0(None);
global.battlemsg[0] = * Rudinn and Hathy blocked the way! ;
break;
case 7:
global.monsterinstancetype[0] = obj_smallcheckers_enemy;
global.monstertype[0] = 9C.Round;
global.monstermakex[0] = xx + 440;
global.monstermakey[0] = yy + 150;
global.monstertype[1] = 0(None);
global.monstertype[2] = 0(None);
global.battlemsg[0] = * C. Round attacked violently! * (You recall Ralsei's advice to include Susie in an ACT.) ;
... (global.encounterno);
|
|
189
|
global.flag[9 battle_music] = 1;
|
|
190
|
global.batmusic[0] = snd_init("checkers.ogg");
|
|
191
|
global.specialbattle = 3;
|
|
192
|
instance_create(0, 0, obj_encounterbasic);
|
|
193
|
depth = 4000;
|
|
194
|
with (checker)
|
|
195
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
} (global.monstermakex[0], global.monstermakey[0], 20);
|
|
196
|
con = 29;
|
|
197
|
alarm[4] = 20; gml_Object_obj_rurus_checker_event_Alarm_4.gml
con += 1;
|
|
198
|
}
|
|
199
|
if (con == 30)
|
|
200
|
{
|
|
201
|
with (checker)
|
|
202
|
speed = 0;
|
|
203
|
con = 31;
|
|
204
|
alarm[4] = 5; gml_Object_obj_rurus_checker_event_Alarm_4.gml
con += 1;
|
|
205
|
}
|
|
206
|
if (con == 32)
|
|
207
|
{
|
|
208
|
with (checker)
|
|
209
|
instance_destroy();
|
|
210
|
con = 35;
|
|
211
|
alarm[4] = 30; gml_Object_obj_rurus_checker_event_Alarm_4.gml
con += 1;
|
|
212
|
victimer = 0;
|
|
213
|
}
|
|
214
|
if (con == 36)
|
|
215
|
{
|
|
216
|
if (!instance_exists(obj_battlecontroller))
|
|
217
|
{
|
|
218
|
rurus.x = __view_get(e__VW.XView, 0) + 660;
|
|
219
|
with (rurus)
|
|
220
|
hspeed = -12;
|
|
221
|
con = 37;
|
|
222
|
}
|
|
223
|
}
|
|
224
|
if (con == 37)
|
|
225
|
{
|
|
226
|
if (rurus.x <= (__view_get(e__VW.XView, 0) + 420))
|
|
227
|
{
|
|
228
|
with (rurus)
|
|
229
|
scr_haltscr_halt
function scr_halt()
{
image_index = 0;
image_speed = 0;
speed = 0;
} ();
|
|
230
|
con = 38;
|
|
231
|
alarm[4] = 20; gml_Object_obj_rurus_checker_event_Alarm_4.gml
con += 1;
|
|
232
|
}
|
|
233
|
}
|
|
234
|
if (con == 39)
|
|
235
|
{
|
|
236
|
global.msg[0] = Face 6* ...Wait for input ;
|
|
237
|
global.msg[1] = Face 1* ...Wait for inputClose Message ;
|
|
238
|
global.fc = 18;
|
|
239
|
global.typer = 6;
|
|
240
|
global.fe = 6;
|
|
241
|
instance_create(0, 0, obj_dialoguer);
|
|
242
|
con = 39.1;
|
|
243
|
}
|
|
244
|
if (con == 39.1 && !d_ex())
|
|
245
|
{
|
|
246
|
global.currentsong[0] = snd_init("ruruskaado.ogg");
|
|
247
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.7, 0.9);
|
|
248
|
global.fe = 5;
|
|
249
|
global.msg[0] = Face 5* Why,Delay 11 brilliant!Delay 11 * Just BRILLIANT!Wait for input ;
|
|
250
|
global.msg[1] = Face 3* I knew you couldst do it!Delay 11 Thou great heroes,Delay 11 thou!Wait for input ;
|
|
251
|
global.msg[2] = Face 6* Thou see-eth,Delay 11 that was merely...Wait for input ;
|
|
252
|
global.msg[3] = Face 3* A friendly TEST of thine abilities!Wait for input ;
|
|
253
|
global.msg[4] = Face 2* But thou hast WON!Delay 11 And now,Delay 11 NOTHING blocks thine path!Wait for input ;
|
|
254
|
global.msg[5] = Face 5* I,Delay 11 personally,Delay 11 could NOT be less of an obstruction!Wait for inputClose Message ;
|
|
255
|
instance_create(0, 0, obj_dialoguer);
|
|
256
|
con = 40;
|
|
257
|
}
|
|
258
|
if (con == 40 && !d_ex())
|
|
259
|
{
|
|
260
|
snd_free_all();
|
|
261
|
con = 41;
|
|
262
|
alarm[4] = 30; gml_Object_obj_rurus_checker_event_Alarm_4.gml
con += 1;
|
|
263
|
}
|
|
264
|
if (con == 42)
|
|
265
|
{
|
|
266
|
global.fc = 2;
|
|
267
|
global.fe = 6;
|
|
268
|
global.typer = 31;
|
|
269
|
global.msg[0] = * But you -Close MessageClose Message ;
|
|
270
|
instance_create(0, 0, obj_dialoguer);
|
|
271
|
con = 43;
|
|
272
|
}
|
|
273
|
if (con == 43 && !d_ex())
|
|
274
|
{
|
|
275
|
global.fc = 18;
|
|
276
|
global.fe = 3;
|
|
277
|
global.typer = 6;
|
|
278
|
global.msg[0] = Face 3* Luck be with you.Delay 11 Heroes!Wait for inputClose Message ;
|
|
279
|
instance_create(0, 0, obj_dialoguer);
|
|
280
|
con = 44;
|
|
281
|
with (rurus)
|
|
282
|
hspeed = 24;
|
|
283
|
}
|
|
284
|
if (con == 44 && !d_ex())
|
|
285
|
{
|
|
286
|
with (obj_caterpillarchara)
|
|
287
|
fun = 0;
|
|
288
|
global.facing = 0;
|
|
289
|
global.plot = 175;
|
|
290
|
global.interact = 0;
|
|
291
|
con = 45;
|
|
292
|
instance_destroy();
|
|
293
|
}
|
|
294
|
|
|
295
|
enum e__VW
|
|
296
|
{
|
|
297
|
XView,
|
|
298
|
YView,
|
|
299
|
WView,
|
|
300
|
HView,
|
|
301
|
Angle,
|
|
302
|
HBorder,
|
|
303
|
VBorder,
|
|
304
|
HSpeed,
|
|
305
|
VSpeed,
|
|
306
|
Object,
|
|
307
|
Visible,
|
|
308
|
XPort,
|
|
309
|
YPort,
|
|
310
|
WPort,
|
|
311
|
HPort,
|
|
312
|
Camera,
|
|
313
|
SurfaceID
|
|
314
|
}
|