|
1
|
if (con == 1)
|
|
2
|
{
|
|
3
|
if (obj_mainchara.x >= tx && global.interact == 0)
|
|
4
|
{
|
|
5
|
global.interact = 1;
|
|
6
|
global.facing = 1;
|
|
7
|
with (obj_caterpillarchara)
|
|
8
|
visible = 0;
|
|
9
|
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[1].x, global.cinstance[1].y, spr_susier_dark);
|
|
10
|
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;
} (global.cinstance[0].x, global.cinstance[0].y, spr_ralseir);
|
|
11
|
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_krisr_dark);
|
|
12
|
with (obj_mainchara)
|
|
13
|
visible = 0;
|
|
14
|
with (s)
|
|
15
|
{
|
|
16
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
17
|
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;
} (obj_mainchara.x - 120, (obj_mainchara.y + obj_mainchara.sprite_height) - sprite_height, 15);
|
|
18
|
}
|
|
19
|
with (r)
|
|
20
|
{
|
|
21
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
22
|
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;
} (obj_mainchara.x - 60, (obj_mainchara.y + obj_mainchara.sprite_height) - sprite_height, 15);
|
|
23
|
}
|
|
24
|
with (k)
|
|
25
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
26
|
con = 2;
|
|
27
|
alarm[4] = 30; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
28
|
instance_create(x + 20, y - 10, obj_excblcon);
|
|
29
|
sprite_index = spr_lancer_lt;
|
|
30
|
snd_free_all();
|
|
31
|
}
|
|
32
|
}
|
|
33
|
if (con == 3)
|
|
34
|
{
|
|
35
|
con = 4;
|
|
36
|
global.currentsong[0] = snd_init("lancer.ogg");
|
|
37
|
alarm[4] = 15; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
38
|
}
|
|
39
|
if (con == 5)
|
|
40
|
{
|
|
41
|
global.currentsong[1] = mus_loop(global.currentsong[0]);
|
|
42
|
global.fe = 3;
|
|
43
|
global.fc = 5;
|
|
44
|
global.typer = 32;
|
|
45
|
global.msg[0] = * Well,Delay 11 flip my flapjacks!Wait for input ;
|
|
46
|
global.msg[1] = Face 2* The CLOWNS are back in TOWN!Wait for input ;
|
|
47
|
global.msg[2] = Face 3* Well,Delay 11 bad news!Delay 11 * Since you last saw me several minutes ago...Wait for input ;
|
|
48
|
global.msg[3] = Face 2* I've created a brand new fighting team ready to stop you!Wait for input ;
|
|
49
|
global.msg[4] = Face 3* Not even the purple girl can stop me now!!Wait for input ;
|
|
50
|
global.msg[5] = Face 1* Ho ho ho!!!Delay 11 * Are you ready to be...Wait for inputClose Message ;
|
|
51
|
d = instance_create(0, 0, obj_dialoguer);
|
|
52
|
d.side = 0;
|
|
53
|
con = 6;
|
|
54
|
}
|
|
55
|
if (con == 6 && d_ex() == 0)
|
|
56
|
{
|
|
57
|
snd_free_all();
|
|
58
|
global.fc = 1;
|
|
59
|
global.fe = 0;
|
|
60
|
global.typer = 30;
|
|
61
|
global.msg[0] = * Stop.Delay 11 * Stop talking.Wait for input ;
|
|
62
|
global.msg[1] = "Ho ho ho?"Wait for input ;
|
|
63
|
global.msg[2] = * What is that.Delay 11 * Why are you saying that.Wait for input ;
|
|
64
|
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, 6);
|
|
65
|
global.msg[4] = "Ho ho ho?"Wait for input ;
|
|
66
|
global.msg[5] = Face 3* It's my evil laugh!Delay 11 * Scary, right!?Wait for input ;
|
|
67
|
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));
} (6, 1);
|
|
68
|
global.msg[7] = Face 1* You sound like baby Santa Claus.Wait for input ;
|
|
69
|
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));
} (8, 7);
|
|
70
|
global.msg[9] = * ...Delay 11 * Uh,Delay 11 you mean,Delay 11 like,Delay 11 in a badass way...?Wait for input ;
|
|
71
|
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));
} (10, 2);
|
|
72
|
global.msg[11] = Face 2* Shut up.Wait for inputClose Message ;
|
|
73
|
con = 7;
|
|
74
|
d = instance_create(0, 0, obj_dialoguer);
|
|
75
|
d.side = 0;
|
|
76
|
}
|
|
77
|
if (con == 7 && d_ex() == 0)
|
|
78
|
{
|
|
79
|
oy = obj_mainchara.y;
|
|
80
|
obj_mainchara.cutscene = 1;
|
|
81
|
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;
} (2, 0, 60);
|
|
82
|
global.currentsong[0] = snd_init("s_neo.ogg");
|
|
83
|
with (s)
|
|
84
|
{
|
|
85
|
depth = 100;
|
|
86
|
image_speed = 0.2;
|
|
87
|
hspeed = 2;
|
|
88
|
}
|
|
89
|
con = 8;
|
|
90
|
}
|
|
91
|
if (con == 8)
|
|
92
|
{
|
|
93
|
if (abs(s.x - (r.x - 20)) < 6)
|
|
94
|
{
|
|
95
|
with (r)
|
|
96
|
{
|
|
97
|
sprite_index = spr_ralseid;
|
|
98
|
y -= 1;
|
|
99
|
}
|
|
100
|
}
|
|
101
|
if (abs(s.x - (obj_mainchara.x - 20)) < 6)
|
|
102
|
{
|
|
103
|
with (k)
|
|
104
|
{
|
|
105
|
sprite_index = spr_krisd_dark;
|
|
106
|
y -= 1;
|
|
107
|
}
|
|
108
|
}
|
|
109
|
if (s.x > (obj_mainchara.x + 60))
|
|
110
|
{
|
|
111
|
with (s)
|
|
112
|
scr_haltscr_halt
function scr_halt()
{
image_index = 0;
image_speed = 0;
speed = 0;
} ();
|
|
113
|
con = 9;
|
|
114
|
global.currentsong[1] = mus_loop(global.currentsong[0]);
|
|
115
|
}
|
|
116
|
}
|
|
117
|
if (con == 9)
|
|
118
|
{
|
|
119
|
global.facing = 1;
|
|
120
|
with (r)
|
|
121
|
sprite_index = spr_ralseir;
|
|
122
|
with (k)
|
|
123
|
sprite_index = spr_krisr_dark;
|
|
124
|
global.fe = 2;
|
|
125
|
global.msg[0] = * You REALLY think you know how to be SCARY?Wait for input ;
|
|
126
|
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, 4);
|
|
127
|
global.msg[2] = * W...Delay 11 well...Delay 11 * I...Wait for input ;
|
|
128
|
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);
|
|
129
|
global.msg[4] = ;
|
|
130
|
global.msg[5] = Face 2* Man, wannabe tough guys like you REALLY piss me off.Wait for input ;
|
|
131
|
global.msg[6] = Face 1* Face it.Delay 11 * You wouldn't know SCARY...Wait for inputClose Message ;
|
|
132
|
con = 10;
|
|
133
|
d = instance_create(0, 0, obj_dialoguer);
|
|
134
|
d.side = 0;
|
|
135
|
}
|
|
136
|
if (con == 10 && d_ex() == 0)
|
|
137
|
{
|
|
138
|
with (s)
|
|
139
|
{
|
|
140
|
hspeed = 1;
|
|
141
|
image_speed = 0.1;
|
|
142
|
}
|
|
143
|
con = 11;
|
|
144
|
alarm[4] = 20; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
145
|
}
|
|
146
|
if (con == 12)
|
|
147
|
{
|
|
148
|
with (s)
|
|
149
|
scr_haltscr_halt
function scr_halt()
{
image_index = 0;
image_speed = 0;
speed = 0;
} ();
|
|
150
|
global.fe = 2;
|
|
151
|
global.msg[0] = Face 2* If it picked you up and bit your face off.Wait for input ;
|
|
152
|
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, 5);
|
|
153
|
global.msg[2] = * Th-that's not true...Wait for input ;
|
|
154
|
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, 1);
|
|
155
|
global.msg[4] = * Oh,Delay 11 really?Wait for inputClose Message ;
|
|
156
|
con = 13;
|
|
157
|
d = instance_create(0, 0, obj_dialoguer);
|
|
158
|
d.side = 0;
|
|
159
|
}
|
|
160
|
if (con == 13 && d_ex() == 0)
|
|
161
|
{
|
|
162
|
with (s)
|
|
163
|
{
|
|
164
|
hspeed = 2;
|
|
165
|
vspeed = (((obj_scarelancerevent.y - y) + obj_scarelancerevent.sprite_height) - sprite_height) / 30;
|
|
166
|
image_speed = 0.2;
|
|
167
|
}
|
|
168
|
hspeed = 1;
|
|
169
|
con = 15;
|
|
170
|
alarm[4] = 30; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
171
|
}
|
|
172
|
if (con == 16)
|
|
173
|
{
|
|
174
|
with (s)
|
|
175
|
scr_haltscr_halt
function scr_halt()
{
image_index = 0;
image_speed = 0;
speed = 0;
} ();
|
|
176
|
visible = 0;
|
|
177
|
with (s)
|
|
178
|
sprite_index = spr_susie_grablancer;
|
|
179
|
hspeed = 0;
|
|
180
|
con = 16.1;
|
|
181
|
alarm[4] = 30; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
182
|
}
|
|
183
|
if (con == 17.1)
|
|
184
|
{
|
|
185
|
s.image_index += 0.25;
|
|
186
|
if (s.image_index == 1)
|
|
187
|
snd_play(snd_noise);
|
|
188
|
if (s.image_index >= 3)
|
|
189
|
{
|
|
190
|
con = 17;
|
|
191
|
alarm[4] = 30; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
192
|
}
|
|
193
|
}
|
|
194
|
if (con == 18)
|
|
195
|
{
|
|
196
|
visible = 0;
|
|
197
|
global.fe = 3;
|
|
198
|
global.msg[0] = * Then why don't we PROVE IT?Wait for inputClose Message ;
|
|
199
|
con = 19;
|
|
200
|
d = instance_create(0, 0, obj_dialoguer);
|
|
201
|
d.side = 0;
|
|
202
|
}
|
|
203
|
if (con == 19 && d_ex() == 0)
|
|
204
|
{
|
|
205
|
s.image_index += 0.25;
|
|
206
|
if (s.image_index >= 7)
|
|
207
|
con = 20;
|
|
208
|
alarm[4] = 30; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
209
|
}
|
|
210
|
if (con == 21)
|
|
211
|
{
|
|
212
|
global.msg[0] = Face 1* We'll start with the part...Wait for input ;
|
|
213
|
global.msg[1] = Face 3* Where your face gets bit off.Wait for inputClose Message ;
|
|
214
|
instance_create(0, 0, obj_dialoguer);
|
|
215
|
con = 22;
|
|
216
|
}
|
|
217
|
if (con == 22 && d_ex() == 0)
|
|
218
|
{
|
|
219
|
with (s)
|
|
220
|
{
|
|
221
|
sprite_index = spr_susie_laughlancer;
|
|
222
|
image_speed = 0.25;
|
|
223
|
image_index = 0;
|
|
224
|
}
|
|
225
|
global.msg[0] = Face B* AHHHHH HA HA HA HA HA HA HA HA!!!!Wait for inputClose Message ;
|
|
226
|
d = instance_create(0, 0, obj_dialoguer);
|
|
227
|
d.skippable = 0;
|
|
228
|
d.skip = 0;
|
|
229
|
con = 23;
|
|
230
|
}
|
|
231
|
if (con == 23 && d_ex() == 0)
|
|
232
|
{
|
|
233
|
con = 26;
|
|
234
|
alarm[4] = 30; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
235
|
}
|
|
236
|
if (con == 27 && d_ex() == 0)
|
|
237
|
{
|
|
238
|
snd_free_all();
|
|
239
|
with (s)
|
|
240
|
sprite_index = spr_susie_finelancer;
|
|
241
|
global.fe = 3;
|
|
242
|
global.fc = 5;
|
|
243
|
global.typer = 32;
|
|
244
|
global.msg[0] = * Ohhhhh,Delay 11 OK.Delay 11 * I get it!Wait for input ;
|
|
245
|
global.msg[1] = Face 2* Thank you,Delay 11 purple girl!Wait for input ;
|
|
246
|
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, "A");
|
|
247
|
global.msg[3] = * ... What?Wait for input ;
|
|
248
|
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, 3);
|
|
249
|
global.msg[5] = * Thanks! * It was kind of you!Wait for input ;
|
|
250
|
global.msg[6] = * To teach me how to be scary!Delay 11 * With an evil laugh!Wait for input ;
|
|
251
|
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, 7);
|
|
252
|
global.msg[8] = * Hey,Delay 11 I wasn't...Wait for input ;
|
|
253
|
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));
} (9, 2);
|
|
254
|
global.msg[10] = * And now...!Wait for inputClose Message ;
|
|
255
|
instance_create(0, 0, obj_dialoguer);
|
|
256
|
con = 28;
|
|
257
|
global.encounterno = 8;
|
|
258
|
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);
|
|
259
|
}
|
|
260
|
if (con == 28 && d_ex() == 0)
|
|
261
|
{
|
|
262
|
instance_create(s.x + 20, s.y - 10, obj_excblcon);
|
|
263
|
with (s)
|
|
264
|
{
|
|
265
|
sprite_index = spr_susier_dark;
|
|
266
|
image_index = 0;
|
|
267
|
image_speed = 0;
|
|
268
|
}
|
|
269
|
visible = 1;
|
|
270
|
y -= 14;
|
|
271
|
snd_play(snd_noise);
|
|
272
|
hspeed = 8;
|
|
273
|
vspeed = 2;
|
|
274
|
con = 29;
|
|
275
|
alarm[4] = 5; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
276
|
}
|
|
277
|
if (con == 30)
|
|
278
|
{
|
|
279
|
hspeed = 0;
|
|
280
|
vspeed = 0;
|
|
281
|
con = 30.1;
|
|
282
|
alarm[4] = 10; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
283
|
}
|
|
284
|
if (con == 31.1)
|
|
285
|
{
|
|
286
|
for (i = 0; i < 3; i += 1)
|
|
287
|
{
|
|
288
|
cc[i] = 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;
} (__view_get(e__VW.XView, 0) + 700, y - 20, spr_jigsawry_idle);
|
|
289
|
with (cc[i])
|
|
290
|
{
|
|
291
|
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] + 60, y, 30);
|
|
292
|
depth = 50000;
|
|
293
|
}
|
|
294
|
}
|
|
295
|
con = 31;
|
|
296
|
alarm[4] = 30; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
297
|
}
|
|
298
|
if (con == 32)
|
|
299
|
{
|
|
300
|
for (i = 0; i < 3; i += 1)
|
|
301
|
{
|
|
302
|
with (cc[i])
|
|
303
|
hspeed = 0;
|
|
304
|
}
|
|
305
|
global.msg[0] = * You're going to be thrashed!Wait for input ;
|
|
306
|
global.msg[1] = Face 1* AHHHHH HA HA HA HA HA HA HA HA!!!!Wait for inputClose Message ;
|
|
307
|
instance_create(0, 0, obj_dialoguer);
|
|
308
|
con = 33;
|
|
309
|
}
|
|
310
|
if (con == 33 && d_ex() == 0)
|
|
311
|
{
|
|
312
|
hspeed = 16;
|
|
313
|
global.fe = 3;
|
|
314
|
global.msg[0] = * Merry Christmas!Wait for inputClose Message ;
|
|
315
|
con = 34;
|
|
316
|
instance_create(0, 0, obj_dialoguer);
|
|
317
|
}
|
|
318
|
if (con == 34 && d_ex() == 0)
|
|
319
|
{
|
|
320
|
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, 20);
|
|
321
|
con = 35;
|
|
322
|
for (i = 0; i < 3; i += 1)
|
|
323
|
{
|
|
324
|
with (cc[i])
|
|
325
|
hspeed = -4;
|
|
326
|
}
|
|
327
|
with (k)
|
|
328
|
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;
} (obj_mainchara.x, obj_mainchara.y, 20);
|
|
329
|
with (s)
|
|
330
|
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.cinstance[1].x, global.cinstance[1].y, 20);
|
|
331
|
with (r)
|
|
332
|
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.cinstance[0].x, global.cinstance[0].y, 20);
|
|
333
|
alarm[4] = 30; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
334
|
}
|
|
335
|
if (con == 36)
|
|
336
|
{
|
|
337
|
for (i = 0; i < 3; i += 1)
|
|
338
|
{
|
|
339
|
with (cc[i])
|
|
340
|
{
|
|
341
|
depth = 0;
|
|
342
|
hspeed = 0;
|
|
343
|
}
|
|
344
|
}
|
|
345
|
with (obj_caterpillarchara)
|
|
346
|
visible = 1;
|
|
347
|
with (obj_mainchara)
|
|
348
|
visible = 1;
|
|
349
|
with (s)
|
|
350
|
instance_destroy();
|
|
351
|
with (r)
|
|
352
|
instance_destroy();
|
|
353
|
with (k)
|
|
354
|
instance_destroy();
|
|
355
|
global.fe = 0;
|
|
356
|
global.fc = 1;
|
|
357
|
global.typer = 30;
|
|
358
|
global.msg[0] = * (I guess that's KIND OF an improvement...)Wait for inputClose Message ;
|
|
359
|
instance_create(0, 0, obj_dialoguer);
|
|
360
|
con = 37;
|
|
361
|
}
|
|
362
|
if (con == 37 && d_ex() == 0)
|
|
363
|
{
|
|
364
|
global.currentsong[0] = snd_init("field_of_hopes.ogg");
|
|
365
|
global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.7, 1);
|
|
366
|
snd_pause(global.currentsong[1]);
|
|
367
|
instance_create(0, 0, obj_battleback);
|
|
368
|
global.encounterno = 22;
|
|
369
|
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);
|
|
370
|
global.specialbattle = 0;
|
|
371
|
global.flag[9 battle_music] = 1;
|
|
372
|
global.batmusic[0] = snd_init("battle.ogg");
|
|
373
|
instance_create(0, 0, obj_encounterbasic);
|
|
374
|
for (i = 0; i < 3; i += 1)
|
|
375
|
{
|
|
376
|
if (instance_exists(cc[i]))
|
|
377
|
{
|
|
378
|
cc[i].i = i;
|
|
379
|
with (cc[i])
|
|
380
|
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[i], global.monstermakey[i], 25);
|
|
381
|
}
|
|
382
|
}
|
|
383
|
con = 38;
|
|
384
|
if (global.plot < 45)
|
|
385
|
global.plot = 45;
|
|
386
|
alarm[4] = 25; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
387
|
}
|
|
388
|
if (con == 39)
|
|
389
|
{
|
|
390
|
with (cc[0])
|
|
391
|
visible = 0;
|
|
392
|
with (cc[1])
|
|
393
|
visible = 0;
|
|
394
|
with (cc[2])
|
|
395
|
visible = 0;
|
|
396
|
con = 40;
|
|
397
|
alarm[4] = 15; gml_Object_obj_scarelancerevent_Alarm_4.gml
con += 1;
|
|
398
|
}
|
|
399
|
|
|
400
|
enum e__VW
|
|
401
|
{
|
|
402
|
XView,
|
|
403
|
YView,
|
|
404
|
WView,
|
|
405
|
HView,
|
|
406
|
Angle,
|
|
407
|
HBorder,
|
|
408
|
VBorder,
|
|
409
|
HSpeed,
|
|
410
|
VSpeed,
|
|
411
|
Object,
|
|
412
|
Visible,
|
|
413
|
XPort,
|
|
414
|
YPort,
|
|
415
|
WPort,
|
|
416
|
HPort,
|
|
417
|
Camera,
|
|
418
|
SurfaceID
|
|
419
|
}
|