|
1
|
global.mercymod[myself] = 0;
|
|
2
|
with (obj_battlecontroller)
|
|
3
|
hidestar = 1;
|
|
4
|
if (global.inv > 29)
|
|
5
|
global.inv = 29;
|
|
6
|
if (init == 0 && phase == 1)
|
|
7
|
{
|
|
8
|
global.tempflag[60]++;
|
|
9
|
global.batmusic[2] = snd_init("statue_level1.ogg");
|
|
10
|
global.batmusic[3] = mus_loop(global.batmusic[2]);
|
|
11
|
mus_volume(global.batmusic[3], 1, 0);
|
|
12
|
init = 1;
|
|
13
|
}
|
|
14
|
if (init == 0 && phase == 2)
|
|
15
|
{
|
|
16
|
if (i_ex(obj_dw_churchb_nongerson))
|
|
17
|
global.tension = obj_dw_churchb_nongerson.savetension;
|
|
18
|
global.batmusic[2] = snd_init("statue2_level1.ogg");
|
|
19
|
global.batmusic[3] = mus_loop(global.batmusic[2]);
|
|
20
|
mus_volume(global.batmusic[3], 1, 0);
|
|
21
|
init = 1;
|
|
22
|
introcon = 1;
|
|
23
|
if (room == room_battletest)
|
|
24
|
attackpattern = 5;
|
|
25
|
}
|
|
26
|
if (phase == 1 && susiedown == true && !i_ex(obj_heart))
|
|
27
|
{
|
|
28
|
phase = 2;
|
|
29
|
global.hp[2] = 1;
|
|
30
|
intermission1_con = 1;
|
|
31
|
intermission1_timer = 0;
|
|
32
|
if (i_ex(obj_dw_churchb_nongerson))
|
|
33
|
obj_dw_churchb_nongerson.attackpattern_save = attackpattern;
|
|
34
|
}
|
|
35
|
if (introcon == 1)
|
|
36
|
{
|
|
37
|
introtimer++;
|
|
38
|
if (introtimer == 1)
|
|
39
|
{
|
|
40
|
global.charturn = 3;
|
|
41
|
msgsetloc(0, Kris!? Kris, hey!!!Wait for inputClose Message"Kris!? Kris, hey!!!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_44_0" );
|
|
42
|
global.typer = 75;
|
|
43
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
44
|
}
|
|
45
|
if ((button3_p() && introtimer > 15) || !i_ex(obj_writer))
|
|
46
|
{
|
|
47
|
with (obj_writer)
|
|
48
|
instance_destroy();
|
|
49
|
introcon = 2;
|
|
50
|
introtimer = 0;
|
|
51
|
msgsetloc(0, Kris, there's something wrong...Wait for inputClose Message"Kris, there's&something wrong.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_53_0" );
|
|
52
|
global.typer = 75;
|
|
53
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
54
|
}
|
|
55
|
}
|
|
56
|
if (introcon == 2)
|
|
57
|
{
|
|
58
|
introtimer++;
|
|
59
|
if ((button3_p() && introtimer > 15) || !i_ex(obj_writer))
|
|
60
|
{
|
|
61
|
with (obj_writer)
|
|
62
|
instance_destroy();
|
|
63
|
introcon = 3;
|
|
64
|
introtimer = 0;
|
|
65
|
msgsetloc(0, There's something wrong with the old man...Wait for inputClose Message"There's something wrong&with the old man.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_67_0" );
|
|
66
|
global.typer = 75;
|
|
67
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
68
|
}
|
|
69
|
}
|
|
70
|
if (introcon == 3)
|
|
71
|
{
|
|
72
|
introtimer++;
|
|
73
|
if ((button3_p() && introtimer > 15) || !i_ex(obj_writer))
|
|
74
|
{
|
|
75
|
with (obj_writer)
|
|
76
|
instance_destroy();
|
|
77
|
introcon = 4;
|
|
78
|
introtimer = 0;
|
|
79
|
msgsetloc(0, We have to... figure out how to get through to him...Wait for inputClose Message"We have to...&figure out how to&get through to him.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_81_0" );
|
|
80
|
global.typer = 75;
|
|
81
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
82
|
}
|
|
83
|
}
|
|
84
|
if (introcon == 4)
|
|
85
|
{
|
|
86
|
introtimer++;
|
|
87
|
if ((button3_p() && introtimer > 15) || !i_ex(obj_writer))
|
|
88
|
{
|
|
89
|
with (obj_writer)
|
|
90
|
instance_destroy();
|
|
91
|
introcon = 0;
|
|
92
|
introtimer = 0;
|
|
93
|
global.charturn = 0;
|
|
94
|
}
|
|
95
|
}
|
|
96
|
if (global.monster[myself] == 1)
|
|
97
|
{
|
|
98
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk") && talked == 0 && kris_phase2_try_attack_con == 0 && susie_phase2_try_attack_con == 0 && intermission1_con == 0 && endingcon == 0 && introcon == 0)
|
|
99
|
{
|
|
100
|
bulletphaseend = false;
|
|
101
|
global.tensionselect = 0;
|
|
102
|
scr_randomtargetscr_randomtarget
function scr_randomtarget()
{
abletotarget = 1;
if (global.charcantarget[0] == 0 && global.charcantarget[1] == 0 && global.charcantarget[2] == 0)
abletotarget = 0;
mytarget = choose(0, 1, 2);
if (abletotarget == 1)
{
while (global.charcantarget[mytarget] == 0)
mytarget = choose(0, 1, 2);
}
else
{
mytarget = 3;
}
global.targeted[mytarget] = 1;
if (global.chapter >= 2 && mytarget != 3)
{
if (global.charcantarget[0])
global.targeted[0] = 1;
if (global.charcantarget[1])
global.targeted[1] = 1;
if (global.charcantarget[2])
global.targeted[2] = 1;
mytarget = 4;
}
} ();
|
|
103
|
sprite_set_offset(spr_spearblocker, 32, 32);
|
|
104
|
ballooncon = 0;
|
|
105
|
balloonsubcon = 0;
|
|
106
|
balloonend = 1;
|
|
107
|
talkedcon = 0;
|
|
108
|
rtimer = 0;
|
|
109
|
rr = choose(0, 1, 2, 3);
|
|
110
|
attackcon = 0;
|
|
111
|
if (turns == 0)
|
|
112
|
{
|
|
113
|
msgsetloc(0, Old man... what... what are you doing?Wait for inputClose Message"Old man... what...&what are you doing?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_125_0" );
|
|
114
|
ballooncon = 1;
|
|
115
|
balloonend = 0;
|
|
116
|
}
|
|
117
|
else if (turns == 1)
|
|
118
|
{
|
|
119
|
msgsetloc(0, H... Hey, what's the big idea!?Wait for inputClose Message"H... Hey, what's &the big idea!?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_126_0" );
|
|
120
|
ballooncon = 2;
|
|
121
|
balloonend = 0;
|
|
122
|
}
|
|
123
|
else if (turns == 2)
|
|
124
|
{
|
|
125
|
msgsetloc(0, I wrote your letter for you, don't you...Wait for inputClose Message"I wrote your letter&for you, don't you.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_127_0" );
|
|
126
|
ballooncon = 3;
|
|
127
|
balloonend = 0;
|
|
128
|
}
|
|
129
|
else if (turns == 3)
|
|
130
|
{
|
|
131
|
msgsetloc(0, I... I'm telling you... Wait for inputClose Message"I...&I'm telling you... /%", "obj_sound_of_justice_enemy_slash_Step_0_gml_128_0" );
|
|
132
|
ballooncon = 4;
|
|
133
|
balloonend = 0;
|
|
134
|
}
|
|
135
|
else if (turns == 4)
|
|
136
|
{
|
|
137
|
msgsetloc(0, Kris... why... Why doesn't he recognize me?Wait for inputClose Message"Kris... why... &Why doesn't he&recognize me?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_131_0" );
|
|
138
|
ballooncon = 5;
|
|
139
|
balloonend = 0;
|
|
140
|
}
|
|
141
|
else if (turns == 5)
|
|
142
|
{
|
|
143
|
msgsetloc(0, I knew I... I screwed up.Wait for inputClose Message"I knew I... &I screwed up./%", "obj_sound_of_justice_enemy_slash_Step_0_gml_132_0" );
|
|
144
|
ballooncon = 6;
|
|
145
|
balloonend = 0;
|
|
146
|
}
|
|
147
|
else if (turns == 6)
|
|
148
|
{
|
|
149
|
msgsetloc(0, Old man, listen! I... I screwed up! I know! But I...Wait for inputClose Message"Old man, listen! &I... I screwed up!&I know! But I.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_133_0" );
|
|
150
|
ballooncon = 7;
|
|
151
|
balloonend = 0;
|
|
152
|
}
|
|
153
|
else if (turns == 7)
|
|
154
|
{
|
|
155
|
msgsetloc(0, So we don't have to hurt you...Wait for inputClose Message"So we don't have&to hurt you.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_134_0" );
|
|
156
|
ballooncon = 8;
|
|
157
|
balloonend = 0;
|
|
158
|
}
|
|
159
|
else if (turns == 8)
|
|
160
|
{
|
|
161
|
msgsetloc(0, ... If...Wait for inputClose Message"... If.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_135_0" );
|
|
162
|
ballooncon = 9;
|
|
163
|
balloonend = 0;
|
|
164
|
}
|
|
165
|
else
|
|
166
|
{
|
|
167
|
msgsetloc(0, ?Wait for inputClose Message"?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_137_0" );
|
|
168
|
ballooncon = 0;
|
|
169
|
balloonend = 1;
|
|
170
|
}
|
|
171
|
turns++;
|
|
172
|
global.typer = 75;
|
|
173
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
174
|
susieripple = 1;
|
|
175
|
event_user(0);
|
|
176
|
gothitlastturn = 0;
|
|
177
|
if (ballooncon == 0)
|
|
178
|
{
|
|
179
|
talked = 1;
|
|
180
|
talktimer = 0;
|
|
181
|
}
|
|
182
|
else
|
|
183
|
{
|
|
184
|
talked = 0.6;
|
|
185
|
talktimer = 0;
|
|
186
|
}
|
|
187
|
}
|
|
188
|
if (talked == 0.6)
|
|
189
|
{
|
|
190
|
talktimer++;
|
|
191
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
192
|
{
|
|
193
|
with (obj_writer)
|
|
194
|
instance_destroy();
|
|
195
|
if (ballooncon == 1)
|
|
196
|
{
|
|
197
|
msgsetloc(0, Why are you... Attacking me?Wait for inputClose Message"Why are you...&Attacking me?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_167_0" );
|
|
198
|
ballooncon = 1.1;
|
|
199
|
balloonend = 0;
|
|
200
|
}
|
|
201
|
else if (ballooncon == 1.1)
|
|
202
|
{
|
|
203
|
msgsetloc(0, You aren't... Trying to teach me something, are you?Wait for inputClose Message"You aren't...&Trying to teach&me something, are you?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_168_0" );
|
|
204
|
ballooncon = 0;
|
|
205
|
balloonend = 1;
|
|
206
|
}
|
|
207
|
else if (ballooncon == 2)
|
|
208
|
{
|
|
209
|
msgsetloc(0, It's me, Susie! I'm your... Wait for inputClose Message"It's me, Susie!&I'm your... /%", "obj_sound_of_justice_enemy_slash_Step_0_gml_170_0" );
|
|
210
|
ballooncon = 2.1;
|
|
211
|
balloonend = 0;
|
|
212
|
}
|
|
213
|
else if (ballooncon == 2.1)
|
|
214
|
{
|
|
215
|
msgsetloc(0, I'm your friend, right!?Wait for inputClose Message"I'm your friend,&right!?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_171_0" );
|
|
216
|
ballooncon = 0;
|
|
217
|
balloonend = 1;
|
|
218
|
}
|
|
219
|
else if (ballooncon == 3)
|
|
220
|
{
|
|
221
|
msgsetloc(0, Don't you recognize me...?Wait for inputClose Message"Don't you&recognize me...?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_173_0" );
|
|
222
|
ballooncon = 3.1;
|
|
223
|
balloonend = 0;
|
|
224
|
}
|
|
225
|
else if (ballooncon == 3.1)
|
|
226
|
{
|
|
227
|
msgsetloc(0, Hey, say something... Say something already!Wait for inputClose Message"Hey, say something...&Say something already!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_174_0" );
|
|
228
|
ballooncon = 3.2;
|
|
229
|
balloonend = 0;
|
|
230
|
}
|
|
231
|
else if (ballooncon == 3.2)
|
|
232
|
{
|
|
233
|
msgsetloc(0, COME ON, SAY SOMETHING, ALREADY!!!Wait for inputClose Message"COME ON, SAY&SOMETHING, ALREADY!!!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_175_0" );
|
|
234
|
ballooncon = 3.3;
|
|
235
|
balloonend = 0;
|
|
236
|
}
|
|
237
|
else if (ballooncon == 3.3)
|
|
238
|
{
|
|
239
|
with (obj_sound_of_justice_enemy)
|
|
240
|
{
|
|
241
|
if (state != 13)
|
|
242
|
{
|
|
243
|
state = 13;
|
|
244
|
sprite_index = spr_gerson_teleport;
|
|
245
|
image_xscale = 3;
|
|
246
|
image_yscale = 3;
|
|
247
|
image_speed = 1;
|
|
248
|
x = obj_sound_of_justice_enemy.xstart + 56;
|
|
249
|
y = obj_sound_of_justice_enemy.ystart + 70;
|
|
250
|
snd_play_pitch(motor_swing_down, 1.4);
|
|
251
|
}
|
|
252
|
}
|
|
253
|
with (obj_heroparent)
|
|
254
|
state = 1;
|
|
255
|
ballooncon = 0;
|
|
256
|
balloonend = 1;
|
|
257
|
talked = 0.7;
|
|
258
|
alarm[6] = 60; gml_Object_obj_sound_of_justice_enemy_Alarm_6.gml
with (obj_heroparent)
state = 0;
if (balloonend == 1)
{
talked = 1;
}
else
{
talked = 0.6;
talktimer = 0;
}
|
|
259
|
exit;
|
|
260
|
}
|
|
261
|
else if (ballooncon == 4)
|
|
262
|
{
|
|
263
|
msgsetloc(0, I don't want to hurt you, so... just...Wait for inputClose Message"I don't want to&hurt you, so... just.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_200_0" );
|
|
264
|
ballooncon = 0;
|
|
265
|
balloonend = 1;
|
|
266
|
}
|
|
267
|
else if (ballooncon == 5)
|
|
268
|
{
|
|
269
|
msgsetloc(0, We have to stop him... before anyone gets hurt.Wait for inputClose Message"We have to stop&him... before&anyone gets hurt./%", "obj_sound_of_justice_enemy_slash_Step_0_gml_202_0" );
|
|
270
|
ballooncon = 0;
|
|
271
|
balloonend = 1;
|
|
272
|
}
|
|
273
|
else if (ballooncon == 6)
|
|
274
|
{
|
|
275
|
msgsetloc(0, I screwed up making this Dark World.Wait for inputClose Message"I screwed up&making this&Dark World./%", "obj_sound_of_justice_enemy_slash_Step_0_gml_204_0" );
|
|
276
|
ballooncon = 6.1;
|
|
277
|
balloonend = 0;
|
|
278
|
}
|
|
279
|
else if (ballooncon == 6.1)
|
|
280
|
{
|
|
281
|
msgsetloc(0, Trying to... See him again. Even though he's already...Wait for inputClose Message"Trying to...&See him again.&Even though he's&already.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_205_0" );
|
|
282
|
ballooncon = 0;
|
|
283
|
balloonend = 1;
|
|
284
|
}
|
|
285
|
else if (ballooncon == 7)
|
|
286
|
{
|
|
287
|
msgsetloc(0, We can bring you to our Castle Town!Wait for inputClose Message"We can bring you&to our Castle Town!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_207_0" );
|
|
288
|
ballooncon = 7.1;
|
|
289
|
balloonend = 0;
|
|
290
|
}
|
|
291
|
else if (ballooncon == 7.1)
|
|
292
|
{
|
|
293
|
msgsetloc(0, If we bring you there, you'll be... You'll be all better!Wait for inputClose Message"If we bring you&there, you'll be...&You'll be all better!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_208_0" );
|
|
294
|
ballooncon = 0;
|
|
295
|
balloonend = 1;
|
|
296
|
}
|
|
297
|
else if (ballooncon == 8)
|
|
298
|
{
|
|
299
|
msgsetloc(0, And you... don't have to hurt us!Wait for inputClose Message"And you...&don't have&to hurt us!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_210_0" );
|
|
300
|
ballooncon = 0;
|
|
301
|
balloonend = 1;
|
|
302
|
}
|
|
303
|
else if (ballooncon == 9)
|
|
304
|
{
|
|
305
|
msgsetloc(0, If Ralsei shows up, he can use Pacify, right, Kris!?Wait for inputClose Message"If Ralsei shows up,&he can use Pacify,&right, Kris!?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_212_0" );
|
|
306
|
ballooncon = 9.1;
|
|
307
|
balloonend = 0;
|
|
308
|
}
|
|
309
|
else if (ballooncon == 9.1)
|
|
310
|
{
|
|
311
|
msgsetloc(0, All we have to do... is wait for the old man... to get tired...Wait for inputClose Message"All we have to do...&is wait for the old&man... to get tired.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_213_0" );
|
|
312
|
ballooncon = 0;
|
|
313
|
balloonend = 1;
|
|
314
|
}
|
|
315
|
talked = 0.7;
|
|
316
|
global.typer = 75;
|
|
317
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
318
|
susieripple = 1;
|
|
319
|
alarm[6] = 1; gml_Object_obj_sound_of_justice_enemy_Alarm_6.gml
with (obj_heroparent)
state = 0;
if (balloonend == 1)
{
talked = 1;
}
else
{
talked = 0.6;
talktimer = 0;
}
|
|
320
|
}
|
|
321
|
}
|
|
322
|
if (talked == 1 && scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk"))
|
|
323
|
{
|
|
324
|
talktimer++;
|
|
325
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
326
|
{
|
|
327
|
with (obj_writer)
|
|
328
|
instance_destroy();
|
|
329
|
global.mnfight = 1.5;
|
|
330
|
}
|
|
331
|
}
|
|
332
|
if (global.mnfight == 1.5)
|
|
333
|
{
|
|
334
|
if (!instance_exists(obj_growtangle))
|
|
335
|
instance_create(camerax() + (camerawidth() / 2), cameray() + (cameraheight() / 2), obj_growtangle);
|
|
336
|
with (obj_battlecontroller)
|
|
337
|
depth = obj_growtangle.depth + 2;
|
|
338
|
with (obj_growtangle)
|
|
339
|
depth = obj_gerson_darkness_overlay.depth + 2;
|
|
340
|
if (!instance_exists(obj_moveheart) && !instance_exists(obj_heart))
|
|
341
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
if (global.chapter == 4 && (i_ex(obj_hammer_of_justice_enemy) || i_ex(obj_sound_of_justice_enemy)))
return instance_create(obj_herosusie.x - 250, obj_herosusie.y + 40, obj_moveheart);
else
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
342
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (90);
|
|
343
|
with (obj_gerson_darkness_overlay)
|
|
344
|
con = 1;
|
|
345
|
global.mnfight = 2;
|
|
346
|
mus_volume(global.batmusic[1], 0.6, 60);
|
|
347
|
mus_volume(global.batmusic[3], 0.6, 30);
|
|
348
|
}
|
|
349
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("bullets") && attacked == 0)
|
|
350
|
{
|
|
351
|
rtimer += 1;
|
|
352
|
if (rtimer == 12)
|
|
353
|
{
|
|
354
|
attackcon = 1;
|
|
355
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (999);
|
|
356
|
global.typer = 6;
|
|
357
|
global.fc = 0;
|
|
358
|
rr = choose(0, 0);
|
|
359
|
if (rr == 0)
|
|
360
|
global.battlemsg[0] = stringsetloc(* The air crackles with sound."* The air crackles with sound.", "obj_sound_of_justice_enemy_slash_Step_0_gml_264_0" );
|
|
361
|
attacked = 1;
|
|
362
|
}
|
|
363
|
}
|
|
364
|
if (global.mnfight == 2 && global.turntimer < 1 && bulletphaseend == false)
|
|
365
|
{
|
|
366
|
if (phase == 1 && turns == 4)
|
|
367
|
{
|
|
368
|
phase = 2;
|
|
369
|
intermission1_con = 1;
|
|
370
|
intermission1_timer = 0;
|
|
371
|
}
|
|
372
|
if (turns == 9)
|
|
373
|
endingcon = 1;
|
|
374
|
if (turns == 1)
|
|
375
|
{
|
|
376
|
snd_free(global.batmusic[2]);
|
|
377
|
global.batmusic[2] = snd_init("statue_level2.ogg");
|
|
378
|
global.batmusic[3] = mus_loop(global.batmusic[2]);
|
|
379
|
mus_volume(global.batmusic[3], 0.6, 0);
|
|
380
|
mus_volume(global.batmusic[3], 1, 10);
|
|
381
|
}
|
|
382
|
if (turns == 2)
|
|
383
|
{
|
|
384
|
snd_free(global.batmusic[2]);
|
|
385
|
global.batmusic[2] = snd_init("statue_level3.ogg");
|
|
386
|
global.batmusic[3] = mus_loop(global.batmusic[2]);
|
|
387
|
mus_volume(global.batmusic[3], 0.6, 0);
|
|
388
|
mus_volume(global.batmusic[3], 1, 10);
|
|
389
|
}
|
|
390
|
if (turns == 3)
|
|
391
|
{
|
|
392
|
snd_free(global.batmusic[2]);
|
|
393
|
global.batmusic[2] = snd_init("statue_level4.ogg");
|
|
394
|
global.batmusic[3] = mus_loop(global.batmusic[2]);
|
|
395
|
mus_volume(global.batmusic[3], 0.6, 0);
|
|
396
|
mus_volume(global.batmusic[3], 1, 10);
|
|
397
|
}
|
|
398
|
if (turns == 5)
|
|
399
|
{
|
|
400
|
snd_free(global.batmusic[2]);
|
|
401
|
global.batmusic[2] = snd_init("statue2_level2.ogg");
|
|
402
|
global.batmusic[3] = mus_loop(global.batmusic[2]);
|
|
403
|
mus_volume(global.batmusic[3], 0.6, 0);
|
|
404
|
mus_volume(global.batmusic[3], 1, 10);
|
|
405
|
}
|
|
406
|
if (turns == 6)
|
|
407
|
{
|
|
408
|
snd_free(global.batmusic[2]);
|
|
409
|
global.batmusic[2] = snd_init("statue2_level3.ogg");
|
|
410
|
global.batmusic[3] = mus_loop(global.batmusic[2]);
|
|
411
|
mus_volume(global.batmusic[3], 0.6, 0);
|
|
412
|
mus_volume(global.batmusic[3], 1, 10);
|
|
413
|
}
|
|
414
|
if (turns == 7)
|
|
415
|
{
|
|
416
|
snd_free(global.batmusic[2]);
|
|
417
|
global.batmusic[2] = snd_init("statue2_level4.ogg");
|
|
418
|
global.batmusic[3] = mus_loop(global.batmusic[2]);
|
|
419
|
mus_volume(global.batmusic[3], 0.6, 0);
|
|
420
|
mus_volume(global.batmusic[3], 1, 10);
|
|
421
|
}
|
|
422
|
if (turns == 8)
|
|
423
|
{
|
|
424
|
snd_free(global.batmusic[2]);
|
|
425
|
global.batmusic[2] = snd_init("statue2_level5.ogg");
|
|
426
|
global.batmusic[3] = mus_loop(global.batmusic[2]);
|
|
427
|
mus_volume(global.batmusic[3], 0.6, 0);
|
|
428
|
mus_volume(global.batmusic[3], 1, 10);
|
|
429
|
}
|
|
430
|
track_pos = audio_sound_get_track_position(global.batmusic[1]);
|
|
431
|
audio_sound_set_track_position(global.batmusic[3], track_pos);
|
|
432
|
mus_volume(global.batmusic[1], 1, 10);
|
|
433
|
with (obj_gerson_darkness_overlay)
|
|
434
|
scalecon = 2;
|
|
435
|
with (obj_growtangle)
|
|
436
|
growcon = 3;
|
|
437
|
with (obj_heart)
|
|
438
|
{
|
|
439
|
instance_create(x, y, obj_returnheart);
|
|
440
|
instance_destroy();
|
|
441
|
}
|
|
442
|
bulletphaseend = true;
|
|
443
|
}
|
|
444
|
}
|
|
445
|
if (global.myfight == 3)
|
|
446
|
{
|
|
447
|
xx = __view_get(e__VW.XView, 0);
|
|
448
|
yy = __view_get(e__VW.YView, 0);
|
|
449
|
if (acting == 1 && actcon == 0)
|
|
450
|
{
|
|
451
|
actcon = 1;
|
|
452
|
msgsetloc(0, * (You talked... but nothing happened.)Wait for inputClose Message"* (You talked... but nothing happened.)/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_364_0" );
|
|
453
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
454
|
}
|
|
455
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
456
|
{
|
|
457
|
if (scr_terminate_writerscr_terminate_writer
function scr_terminate_writer()
{
__writerkilled = 0;
__writerkillable = 0;
__writerended = 0;
if (instance_exists(obj_writer))
{
obj_writer.__endcheckid = id;
with (obj_writer)
{
if (reachedend == 1)
{
with (__endcheckid)
__writerended++;
}
}
if (__writerended == instance_number(obj_writer))
__writerkillable = 1;
}
else
{
__writerkilled = 1;
}
if (button1_p() && __writerkillable == 1)
{
with (obj_writer)
instance_destroy();
__writerkilled = 1;
}
return __writerkilled;
} ())
|
|
458
|
{
|
|
459
|
actconsus = -1;
|
|
460
|
actconral = -1;
|
|
461
|
actcon = 1;
|
|
462
|
}
|
|
463
|
}
|
|
464
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
465
|
scr_nextactscr_nextact
function scr_nextact()
{
global.acting[0] = 0;
global.acting[1] = 0;
global.acting[2] = 0;
global.actingsingle[global.currentactingchar] = 0;
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
with (__minstance)
{
acting = 0;
actcon = 0;
actconsus = 0;
actconral = 0;
actconnoe = 0;
}
var singleactcomplete = 0;
while (global.currentactingchar < 3)
{
global.currentactingchar++;
if (global.currentactingchar < 3)
{
if (global.actingsingle[global.currentactingchar] == 1)
{
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
if (global.char[global.currentactingchar] == 2)
{
with (__minstance)
actconsus = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 3)
{
with (__minstance)
actconral = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 4)
{
with (__minstance)
actconnoe = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
}
}
}
if (i_ex(obj_sound_of_justice_enemy) && obj_sound_of_justice_enemy.phase == 1)
{
global.charturn = 3;
global.myfight = 3;
global.currentactingchar = 0;
if (global.acting[0] == 0)
scr_nextact();
if (global.acting[0] == 1 && global.actingsimul[0] == 1)
scr_act_simul();
exit;
}
if (global.currentactingchar >= 3)
{
with (obj_monsterparent)
{
acting = 0;
actingsus = 0;
actingral = 0;
actingnoe = 0;
}
global.currentactingchar = 0;
scr_attackphase();
}
else if (!singleactcomplete)
{
scr_act_simul();
}
} ();
|
|
466
|
}
|
|
467
|
if (state == 3)
|
|
468
|
scr_enemy_hurtscr_enemy_hurt
function scr_enemy_hurt()
{
hurttimer -= 1;
if (hurttimer < 0)
{
state = 0;
}
else
{
if (global.monster[myself] == 0)
scr_defeatrun();
hurtshake += 1;
if (hurtshake > 1)
{
if (shakex > 0)
shakex -= 1;
if (shakex < 0)
shakex += 1;
shakex = -shakex;
hurtshake = 0;
}
}
} ();
|
|
469
|
if (attackcon == 1 && !i_ex(obj_writer))
|
|
470
|
{
|
|
471
|
if (attackcount < attackcountmax)
|
|
472
|
{
|
|
473
|
scr_spearshotscr_spearshot
function scr_spearshot(arg0, arg1, arg2, arg3)
{
if (arg3 == 1)
{
instance_create(x - 5, y + 4, obj_gerson_green_switch);
}
else if (arg3 == 2)
{
ham = instance_create(obj_heart.x - 20, obj_heart.y - 20, obj_giant_hammer);
ham.type = 2;
ham.dir = arg0;
}
else if (arg3 == 3)
{
with (obj_spearblocker)
diagonal_transform = 1;
with (obj_hammer_of_justice_enemy)
diagonal_enabled = 1;
}
else if (arg3 == 400)
{
if (obj_hammer_of_justice_enemy.visible == true)
{
obj_hammer_of_justice_enemy.visible = false;
gers = instance_create(obj_hammer_of_justice_enemy.x + 45, obj_hammer_of_justice_enemy.y + 45, obj_gerson_teleport);
gers.depth = obj_hammer_of_justice_enemy.depth;
}
}
else if (arg3 == 4)
{
if (i_ex(obj_hammer_of_justice_enemy) && obj_hammer_of_justice_enemy.visible == true)
{
obj_hammer_of_justice_enemy.visible = false;
gers = instance_create(obj_hammer_of_justice_enemy.x + 45, obj_hammer_of_justice_enemy.y + 45, obj_gerson_teleport);
gers.depth = obj_hammer_of_justice_enemy.depth;
}
if (arg2 == -5)
{
gers = instance_create(camerax() + arg0, cameray() + arg1, obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = -3;
gers.image_alpha = 0;
gers.image_angle = 90;
}
else if (arg2 == -4)
{
gers = instance_create(obj_growtangle.x + arg0 + lengthdir_x(130, obj_hammer_of_justice_enemy.swingdown_ex * 45), obj_growtangle.y + arg1 + 20 + lengthdir_y(130, obj_hammer_of_justice_enemy.swingdown_ex * 45), obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = -4;
gers.image_angle = obj_hammer_of_justice_enemy.swingdown_ex * 45;
gers.image_alpha = 0;
obj_hammer_of_justice_enemy.swingdown_ex++;
if (obj_hammer_of_justice_enemy.swingdown_ex == 1)
gers.special = 4;
if (obj_hammer_of_justice_enemy.swingdown_ex == 2)
gers.special = 1;
if (obj_hammer_of_justice_enemy.swingdown_ex == 3)
gers.special = 3;
if (obj_hammer_of_justice_enemy.swingdown_ex == 4)
gers.special = 2;
if (obj_hammer_of_justice_enemy.swingdown_ex == 5)
gers.special = 4;
if (obj_hammer_of_justice_enemy.swingdown_ex == 6)
gers.special = 1;
if (obj_hammer_of_justice_enemy.swingdown_ex == 7)
gers.special = 3;
if (obj_hammer_of_justice_enemy.swingdown_ex == 8)
gers.special = 2;
}
else if (arg2 == -3)
{
gers = instance_create(obj_growtangle.x + arg0 + lengthdir_x(130, obj_hammer_of_justice_enemy.swingdown_ex * 45), obj_growtangle.y + arg1 + 20 + lengthdir_y(130, obj_hammer_of_justice_enemy.swingdown_ex * 45), obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = arg2;
gers.image_angle = obj_hammer_of_justice_enemy.swingdown_ex * 45;
gers.image_alpha = 0;
obj_hammer_of_justice_enemy.swingdown_ex++;
}
else if (arg2 == 10)
{
gers = instance_create(obj_growtangle.x + 116, obj_heart.y + 26, obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = arg2;
gers.image_alpha = 0;
}
else if (arg2 == 11)
{
gers = instance_create(obj_growtangle.x + 116, obj_growtangle.y + 55, obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = arg2;
gers.image_alpha = 0;
}
else if (arg2 == 12)
{
gers = instance_create(obj_growtangle.x - 116, obj_growtangle.y - 65, obj_gerson_teleport);
gers.type = 2;
gers.swingdowntype = arg2;
gers.image_angle = 180;
gers.image_alpha = 0;
}
else if (arg2 == 13)
... (list_attackdirection[attackcount], list_attackspeed[attackcount], list_attackframes[attackcount], list_attackspecial[attackcount], list_attackspecial2[attackcount]);
|
|
474
|
attackcon = 2;
|
|
475
|
}
|
|
476
|
else
|
|
477
|
{
|
|
478
|
attackcon = 3;
|
|
479
|
}
|
|
480
|
attackcount++;
|
|
481
|
}
|
|
482
|
if (attackcon == 2 && !i_ex(obj_gerson_growtangle))
|
|
483
|
{
|
|
484
|
attacktimer++;
|
|
485
|
if (attacktimer >= list_attackwait[attackcount - 1] && !i_ex(obj_writer))
|
|
486
|
{
|
|
487
|
attacktimer = 0;
|
|
488
|
attackcon = 1;
|
|
489
|
}
|
|
490
|
}
|
|
491
|
if (attackcon == 3 && global.turntimer > 10 && !i_ex(obj_spearshot))
|
|
492
|
{
|
|
493
|
global.turntimer = 10;
|
|
494
|
attackcon = 0;
|
|
495
|
}
|
|
496
|
if (scr_debug && scr_debug_keycheckscr_debug_keycheck
function scr_debug_keycheck(arg0)
{
} (ord("V")) && scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("bullets"))
|
|
497
|
event_user(14);
|
|
498
|
if (attackcon == 0)
|
|
499
|
obj_battlecontroller.depth = savebattlecontrollerdepth;
|
|
500
|
if (intermission1_con == 1)
|
|
501
|
{
|
|
502
|
if (i_ex(obj_dw_churchb_nongerson))
|
|
503
|
obj_dw_churchb_nongerson.savetension = global.tension;
|
|
504
|
if (i_ex(obj_dw_churchb_nongerson))
|
|
505
|
obj_dw_churchb_nongerson.attackpattern_save = attackpattern;
|
|
506
|
intermission1_con = 0;
|
|
507
|
with (obj_battlecontroller)
|
|
508
|
skipvictory = 1;
|
|
509
|
scr_wincombatscr_wincombat
function scr_wincombat()
{
if (global.flag[60 dojo_next_encounter] == 0 || global.flag[36 dojo_failure] == 1)
{
global.myfight = 7;
global.mnfight = -1;
with (obj_battlecontroller)
victory = 1;
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
}
else
{
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
global.encounterno = global.flag[60 dojo_next_encounter];
scr_encountersetup(global.encounterno);
global.flag[60 dojo_next_encounter] = 0;
for (__j = 0; __j < 3; __j++)
{
if (global.monstertype[__j] != 0(None))
{
_newmonster = scr_monster_add(global.monstertype[__j], global.monsterinstancetype[__j]);
global.monsterinstance[_newmonster].x = camerax() + 800;
global.monsterinstance[_newmonster].y = global.monstermakey[__j];
with (global.monsterinstance[_newmonster])
scr_move_to_point_over_time(global.monstermakex[myself], global.monstermakey[myself], 10);
}
}
global.myfight = 5;
myfightreturntimer = 15;
global.mnfight = -1;
}
} ();
|
|
510
|
}
|
|
511
|
if (kris_phase2_try_attack_con == 5)
|
|
512
|
{
|
|
513
|
intermission1_timer = 0;
|
|
514
|
kris_phase2_try_attack_con = 0;
|
|
515
|
turns = 4;
|
|
516
|
phase = 2;
|
|
517
|
global.tension = 0;
|
|
518
|
}
|
|
519
|
if (susie_phase2_try_attack_con == 1 && kris_phase2_try_attack_con == 1)
|
|
520
|
{
|
|
521
|
susie_phase2_try_attack_con = 0;
|
|
522
|
susie_phase2_try_attack_con = 2;
|
|
523
|
}
|
|
524
|
if (susie_phase2_try_attack_con == 1 && scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk") && talked == 0 && endingcon == 0)
|
|
525
|
{
|
|
526
|
susie_phase2_try_attack_timer++;
|
|
527
|
if (susie_phase2_try_attack_timer == 1)
|
|
528
|
{
|
|
529
|
msgsetloc(0, You want me to... huh!?Wait for inputClose Message"You want me to...&huh!?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_449_0" );
|
|
530
|
global.typer = 75;
|
|
531
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
532
|
susieripple = 1;
|
|
533
|
}
|
|
534
|
if ((button3_p() && susie_phase2_try_attack_timer > 16) || !i_ex(obj_writer))
|
|
535
|
{
|
|
536
|
with (obj_writer)
|
|
537
|
instance_destroy();
|
|
538
|
susie_phase2_try_attack_con = 2;
|
|
539
|
susie_phase2_try_attack_timer = 0;
|
|
540
|
msgsetloc(0, What the hell? I'm not doing that!Wait for inputClose Message"What the hell?&I'm not doing that!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_462_0" );
|
|
541
|
global.typer = 75;
|
|
542
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
543
|
susieripple = 1;
|
|
544
|
}
|
|
545
|
}
|
|
546
|
if (susie_phase2_try_attack_con == 2)
|
|
547
|
{
|
|
548
|
susie_phase2_try_attack_timer++;
|
|
549
|
if ((button3_p() && susie_phase2_try_attack_timer > 15) || !i_ex(obj_writer))
|
|
550
|
{
|
|
551
|
with (obj_writer)
|
|
552
|
instance_destroy();
|
|
553
|
susie_phase2_try_attack_con = 0;
|
|
554
|
susie_phase2_try_attack_timer = 0;
|
|
555
|
with (obj_battlecontroller)
|
|
556
|
disablesusieattack = 1;
|
|
557
|
}
|
|
558
|
}
|
|
559
|
if (kris_phase2_try_attack_con == 1)
|
|
560
|
global.faceaction[1] = 0;
|
|
561
|
if (kris_phase2_try_attack_con == 1 && scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk") && talked == 0 && endingcon == 0)
|
|
562
|
{
|
|
563
|
kris_phase2_try_attack_timer++;
|
|
564
|
if (kris_phase2_try_attack_timer == 1)
|
|
565
|
krisattackcount++;
|
|
566
|
if (krisattackcount == 1)
|
|
567
|
{
|
|
568
|
if (kris_phase2_try_attack_timer == 1)
|
|
569
|
{
|
|
570
|
msgsetloc(0, K-Kris!? Kris, what the hell are you doing?!Wait for inputClose Message"K-Kris!? Kris,&what the hell are you doing?!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_494_0" );
|
|
571
|
global.typer = 75;
|
|
572
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
573
|
susieripple = 1;
|
|
574
|
}
|
|
575
|
if ((button3_p() && kris_phase2_try_attack_timer > 16) || !i_ex(obj_writer))
|
|
576
|
{
|
|
577
|
with (obj_writer)
|
|
578
|
instance_destroy();
|
|
579
|
kris_phase2_try_attack_con = 2;
|
|
580
|
kris_phase2_try_attack_timer = 0;
|
|
581
|
msgsetloc(0, Th... That's the old man!Wait for inputClose Message"Th... That's&the old man!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_507_0" );
|
|
582
|
global.typer = 75;
|
|
583
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
584
|
susieripple = 1;
|
|
585
|
}
|
|
586
|
}
|
|
587
|
if (krisattackcount > 1)
|
|
588
|
{
|
|
589
|
if (kris_phase2_try_attack_timer == 1)
|
|
590
|
{
|
|
591
|
msgsetloc(0, * (You try to attack...)Wait for input"* (You try to attack...)/", "obj_sound_of_justice_enemy_slash_Step_0_gml_518_0" );
|
|
592
|
msgnextloc(* (... But Susie stood in your way!)Wait for inputClose Message"* (... But Susie stood in your way!)/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_519_0" );
|
|
593
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
594
|
kris_phase2_try_attack_con = 2;
|
|
595
|
kris_phase2_try_attack_timer = 0;
|
|
596
|
}
|
|
597
|
}
|
|
598
|
}
|
|
599
|
if (kris_phase2_try_attack_con == 2)
|
|
600
|
{
|
|
601
|
kris_phase2_try_attack_timer++;
|
|
602
|
if ((button3_p() && kris_phase2_try_attack_timer > 15) || !i_ex(obj_writer))
|
|
603
|
{
|
|
604
|
with (obj_writer)
|
|
605
|
instance_destroy();
|
|
606
|
kris_phase2_try_attack_con = 0;
|
|
607
|
kris_phase2_try_attack_timer = 0;
|
|
608
|
}
|
|
609
|
}
|
|
610
|
if (endingcon == 1 && introcon == 0)
|
|
611
|
{
|
|
612
|
endingtimer++;
|
|
613
|
global.charturn = 2;
|
|
614
|
if (endingtimer == 1)
|
|
615
|
{
|
|
616
|
with (obj_heroparent)
|
|
617
|
showdarkness = false;
|
|
618
|
if (i_ex(obj_gerson_darkness_overlay))
|
|
619
|
obj_gerson_darkness_overlay.scalecon = 3;
|
|
620
|
}
|
|
621
|
if (endingtimer == 60)
|
|
622
|
{
|
|
623
|
msgsetloc(0, Screw it! Old man...Wait for inputClose Message"Screw it! Old man.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_555_0" );
|
|
624
|
global.typer = 75;
|
|
625
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
626
|
with (obj_battleblcon)
|
|
627
|
x += 12;
|
|
628
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_attackready, 0.5, true);
|
|
629
|
with (obj_herosusie)
|
|
630
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|
|
631
|
susieripple = 1;
|
|
632
|
}
|
|
633
|
if ((button3_p() && endingtimer >= 60 && endingtimer > 75) || (!i_ex(obj_writer) && endingtimer >= 60))
|
|
634
|
{
|
|
635
|
with (obj_writer)
|
|
636
|
instance_destroy();
|
|
637
|
endingcon = 2;
|
|
638
|
endingtimer = 0;
|
|
639
|
msgsetloc(0, If it's really you, I know...Wait for inputClose Message"If it's really&you, I know.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_574_0" );
|
|
640
|
global.typer = 75;
|
|
641
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
642
|
with (obj_battleblcon)
|
|
643
|
x += 12;
|
|
644
|
susieripple = 1;
|
|
645
|
}
|
|
646
|
}
|
|
647
|
if (endingcon == 2)
|
|
648
|
{
|
|
649
|
global.charturn = 2;
|
|
650
|
endingtimer++;
|
|
651
|
if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
|
|
652
|
{
|
|
653
|
with (obj_writer)
|
|
654
|
instance_destroy();
|
|
655
|
endingcon = 3;
|
|
656
|
endingtimer = 0;
|
|
657
|
msgsetloc(0, I know something you've gotta recognize!Wait for inputClose Message"I know something&you've gotta recognize!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_594_0" );
|
|
658
|
global.typer = 75;
|
|
659
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
660
|
with (obj_battleblcon)
|
|
661
|
x += 12;
|
|
662
|
susieripple = 1;
|
|
663
|
}
|
|
664
|
}
|
|
665
|
if (endingcon == 3)
|
|
666
|
{
|
|
667
|
endingtimer++;
|
|
668
|
if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
|
|
669
|
{
|
|
670
|
with (obj_writer)
|
|
671
|
instance_destroy();
|
|
672
|
endingcon = 4;
|
|
673
|
endingtimer = 0;
|
|
674
|
mus_volume(global.batmusic[1], 0, 90);
|
|
675
|
mus_volume(global.batmusic[3], 0, 90);
|
|
676
|
}
|
|
677
|
}
|
|
678
|
if (endingcon == 4)
|
|
679
|
{
|
|
680
|
endingtimer++;
|
|
681
|
if (endingtimer == 1)
|
|
682
|
{
|
|
683
|
obj_herosusie.x -= 35;
|
|
684
|
obj_herosusie.y -= 28;
|
|
685
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_heal_green_palette_charge, 0.5, false);
|
|
686
|
light1 = instance_create(camerax() + 105, cameray() + 211, obj_gerson_darkness_overlay_light);
|
|
687
|
with (obj_gerson_darkness_overlay_light)
|
|
688
|
{
|
|
689
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", 0, 1, 60);
|
|
690
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", 0, 1, 60);
|
|
691
|
}
|
|
692
|
}
|
|
693
|
if (endingtimer == 14)
|
|
694
|
{
|
|
695
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_heal_green_palette_charge_loop, 0.5, true);
|
|
696
|
var snd = snd_loop(snd_chargeshot_charge);
|
|
697
|
snd_volume(snd, 0, 0);
|
|
698
|
snd_volume(snd, 0.2, 30);
|
|
699
|
}
|
|
700
|
if (endingtimer == 51)
|
|
701
|
{
|
|
702
|
msgsetloc(0, Heheh... see this?!Wait for inputClose Message"Heheh...&see this?!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_646_0" );
|
|
703
|
global.typer = 75;
|
|
704
|
var heroballoon = scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (obj_herosusie.x + 100 + 20, obj_herosusie.y + 40 + 42, 10);
|
|
705
|
heroballoon.side = -1;
|
|
706
|
susieripple = 1;
|
|
707
|
endingcon = 6;
|
|
708
|
endingtimer = 0;
|
|
709
|
}
|
|
710
|
}
|
|
711
|
if (endingcon == 6)
|
|
712
|
{
|
|
713
|
endingtimer++;
|
|
714
|
if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
|
|
715
|
{
|
|
716
|
with (obj_writer)
|
|
717
|
instance_destroy();
|
|
718
|
endingcon = 7;
|
|
719
|
endingtimer = 0;
|
|
720
|
msgsetloc(0, You didn't forget my green sparkles, did you!?Wait for inputClose Message"You didn't forget my&green sparkles, did you!?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_667_0" );
|
|
721
|
global.typer = 75;
|
|
722
|
var heroballoon = scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_z;
return myblcon;
}
} (obj_herosusie.x + 100 + 20, obj_herosusie.y + 40 + 42, 10);
|
|
723
|
heroballoon.side = -1;
|
|
724
|
susieripple = 1;
|
|
725
|
}
|
|
726
|
}
|
|
727
|
if (endingcon == 7)
|
|
728
|
{
|
|
729
|
endingtimer++;
|
|
730
|
if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
|
|
731
|
{
|
|
732
|
with (obj_writer)
|
|
733
|
instance_destroy();
|
|
734
|
endingcon = 8;
|
|
735
|
endingtimer = 0;
|
|
736
|
}
|
|
737
|
}
|
|
738
|
if (endingcon == 8)
|
|
739
|
{
|
|
740
|
endingtimer++;
|
|
741
|
if (endingtimer == 1)
|
|
742
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_heal_green_palette_charge_end, 0.5, false);
|
|
743
|
if (endingtimer == 3)
|
|
744
|
{
|
|
745
|
light1.x += 45;
|
|
746
|
light1.y -= 21;
|
|
747
|
}
|
|
748
|
if (endingtimer == 6)
|
|
749
|
{
|
|
750
|
inst = instance_create(obj_herosusie.x + 86, obj_herosusie.y + 60, obj_susie_heal_projectile);
|
|
751
|
inst.gravity = 1;
|
|
752
|
inst.gravity_direction = 0;
|
|
753
|
inst.image_xscale = 3;
|
|
754
|
inst.image_yscale = 3;
|
|
755
|
inst.image_speed = 1;
|
|
756
|
snd_stop(snd_chargeshot_charge);
|
|
757
|
snd_play_x(snd_heartshot_dr_b, 0.4, 0.4);
|
|
758
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_heal_green_palette_charge_heal_loop, 0.5, true);
|
|
759
|
}
|
|
760
|
if (endingtimer == 7)
|
|
761
|
{
|
|
762
|
}
|
|
763
|
if (endingtimer == 28)
|
|
764
|
{
|
|
765
|
}
|
|
766
|
if (endingtimer == 31)
|
|
767
|
{
|
|
768
|
with (obj_susie_heal_projectile)
|
|
769
|
{
|
|
770
|
anim = instance_create(x + 30 + 12, y + 9, obj_animation);
|
|
771
|
anim.sprite_index = spr_sound_of_justice_heal;
|
|
772
|
anim.image_xscale = 2;
|
|
773
|
anim.image_yscale = 2;
|
|
774
|
light2 = instance_create(x + 30 + 12, y + 9, obj_gerson_darkness_overlay_light);
|
|
775
|
light2.image_xscale = 5;
|
|
776
|
light2.image_yscale = 5;
|
|
777
|
with (light2)
|
|
778
|
{
|
|
779
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", 0, 5, 1);
|
|
780
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", 0, 5, 1);
|
|
781
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 0, 1, 4);
|
|
782
|
}
|
|
783
|
}
|
|
784
|
lightupcon = 1;
|
|
785
|
snd_play(snd_power);
|
|
786
|
}
|
|
787
|
if (endingtimer == 32)
|
|
788
|
{
|
|
789
|
with (obj_susie_heal_projectile)
|
|
790
|
instance_destroy();
|
|
791
|
}
|
|
792
|
if (endingtimer == 59)
|
|
793
|
{
|
|
794
|
obj_herosusie.x = obj_herosusie.xstart;
|
|
795
|
obj_herosusie.y = obj_herosusie.ystart;
|
|
796
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_hurt_green, 0.5, true);
|
|
797
|
obj_herosusie.x += 25;
|
|
798
|
with (obj_herosusie)
|
|
799
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|
|
800
|
snd_play(snd_sussurprise);
|
|
801
|
}
|
|
802
|
if (endingtimer == 102)
|
|
803
|
{
|
|
804
|
with (obj_gerson_darkness_overlay_light)
|
|
805
|
{
|
|
806
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", image_xscale, 0, 15);
|
|
807
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", image_yscale, 0, 15);
|
|
808
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 1, 0, 15);
|
|
809
|
}
|
|
810
|
}
|
|
811
|
if (endingtimer == 135)
|
|
812
|
{
|
|
813
|
with (obj_writer)
|
|
814
|
instance_destroy();
|
|
815
|
endingcon = 9;
|
|
816
|
endingtimer = 0;
|
|
817
|
msgsetloc(0, Wh... What the hell...Wait for inputClose Message"Wh...&What the hell.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_791_0" );
|
|
818
|
global.typer = 75;
|
|
819
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
820
|
susieripple = 1;
|
|
821
|
}
|
|
822
|
}
|
|
823
|
if (endingcon == 9)
|
|
824
|
{
|
|
825
|
endingtimer++;
|
|
826
|
if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
|
|
827
|
{
|
|
828
|
with (obj_writer)
|
|
829
|
instance_destroy();
|
|
830
|
endingcon = 10;
|
|
831
|
endingtimer = 0;
|
|
832
|
msgsetloc(0, What happened to his...Wait for inputClose Message"What happened&to his.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_808_0" );
|
|
833
|
global.typer = 75;
|
|
834
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
835
|
susieripple = 1;
|
|
836
|
}
|
|
837
|
}
|
|
838
|
if (endingcon == 10)
|
|
839
|
{
|
|
840
|
endingtimer++;
|
|
841
|
if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
|
|
842
|
{
|
|
843
|
with (obj_writer)
|
|
844
|
instance_destroy();
|
|
845
|
endingcon = 11;
|
|
846
|
endingtimer = 179;
|
|
847
|
}
|
|
848
|
}
|
|
849
|
if (endingcon == 11)
|
|
850
|
{
|
|
851
|
endingtimer++;
|
|
852
|
if (endingtimer == 2)
|
|
853
|
{
|
|
854
|
inst = instance_create(x - 5, y + 4, obj_gerson_green_switch);
|
|
855
|
inst.type = 1;
|
|
856
|
ralseimarker.sprite_index = spr_ralsei_walk_left_unhappy;
|
|
857
|
ralseimarker.image_speed = 1/3;
|
|
858
|
ralseimarker.image_xscale = -2;
|
|
859
|
ralseimarker.image_yscale = 2;
|
|
860
|
ralseimarker.x = camerax() + camerawidth() + 50;
|
|
861
|
ralseimarker.y = cameray() + 210;
|
|
862
|
ralseimarker.hspeed -= 12;
|
|
863
|
}
|
|
864
|
if (endingtimer == 6)
|
|
865
|
{
|
|
866
|
ralseimarker.sprite_index = spr_ralsei_attack;
|
|
867
|
ralseimarker.image_speed = 0.5;
|
|
868
|
ralseimarker.hspeed = 0;
|
|
869
|
}
|
|
870
|
if (endingtimer == 8)
|
|
871
|
{
|
|
872
|
snd_play(snd_damage);
|
|
873
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|
|
874
|
attack = instance_create(global.monsterx[global.chartarget[myself]] + random(6), global.monstery[global.chartarget[myself]] + random(6), obj_basicattack);
|
|
875
|
}
|
|
876
|
if (endingtimer == 14)
|
|
877
|
ralseimarker.sprite_index = spr_ralsei_idle;
|
|
878
|
if (endingtimer == 22)
|
|
879
|
{
|
|
880
|
with (obj_gerson_green_switch)
|
|
881
|
instance_destroy();
|
|
882
|
state = 14;
|
|
883
|
state14con = 3;
|
|
884
|
}
|
|
885
|
if (endingtimer == 180)
|
|
886
|
{
|
|
887
|
endingcon = 0;
|
|
888
|
with (obj_battlecontroller)
|
|
889
|
skipvictory = 1;
|
|
890
|
scr_wincombatscr_wincombat
function scr_wincombat()
{
if (global.flag[60 dojo_next_encounter] == 0 || global.flag[36 dojo_failure] == 1)
{
global.myfight = 7;
global.mnfight = -1;
with (obj_battlecontroller)
victory = 1;
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
}
else
{
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
global.encounterno = global.flag[60 dojo_next_encounter];
scr_encountersetup(global.encounterno);
global.flag[60 dojo_next_encounter] = 0;
for (__j = 0; __j < 3; __j++)
{
if (global.monstertype[__j] != 0(None))
{
_newmonster = scr_monster_add(global.monstertype[__j], global.monsterinstancetype[__j]);
global.monsterinstance[_newmonster].x = camerax() + 800;
global.monsterinstance[_newmonster].y = global.monstermakey[__j];
with (global.monsterinstance[_newmonster])
scr_move_to_point_over_time(global.monstermakex[myself], global.monstermakey[myself], 10);
}
}
global.myfight = 5;
myfightreturntimer = 15;
global.mnfight = -1;
}
} ();
|
|
891
|
}
|
|
892
|
}
|
|
893
|
if (redflashcon > 0 || growtangleredcon > 0)
|
|
894
|
{
|
|
895
|
with (obj_spearshot)
|
|
896
|
instance_destroy();
|
|
897
|
}
|
|
898
|
if (redflashcon == 1)
|
|
899
|
{
|
|
900
|
redflashtimer++;
|
|
901
|
if (redflashtimer == 1)
|
|
902
|
snd_play(snd_gerlaugh_distort);
|
|
903
|
if (redflashtimer == 1)
|
|
904
|
{
|
|
905
|
inst = instance_create(x, y, obj_gerson_gradient_telegraph);
|
|
906
|
inst.image_alpha = 1;
|
|
907
|
inst.image_blend = c_red;
|
|
908
|
inst.side = "left";
|
|
909
|
inst = instance_create(x, y, obj_gerson_gradient_telegraph);
|
|
910
|
inst.image_alpha = 1;
|
|
911
|
inst.image_blend = c_red;
|
|
912
|
inst.side = "right";
|
|
913
|
growtangleredtimer = 0;
|
|
914
|
growtangleredcon = 1;
|
|
915
|
}
|
|
916
|
if (redflashtimer == 11)
|
|
917
|
{
|
|
918
|
inst = instance_create(x, y, obj_gerson_gradient_telegraph);
|
|
919
|
inst.image_alpha = 1;
|
|
920
|
inst.image_blend = c_red;
|
|
921
|
inst.side = "down";
|
|
922
|
inst = instance_create(x, y, obj_gerson_gradient_telegraph);
|
|
923
|
inst.image_alpha = 1;
|
|
924
|
inst.image_blend = c_red;
|
|
925
|
inst.side = "up";
|
|
926
|
}
|
|
927
|
if (redflashtimer == 21)
|
|
928
|
{
|
|
929
|
inst = instance_create(x, y, obj_gerson_gradient_telegraph);
|
|
930
|
inst.image_alpha = 1;
|
|
931
|
inst.image_blend = c_red;
|
|
932
|
inst.side = "left";
|
|
933
|
inst = instance_create(x, y, obj_gerson_gradient_telegraph);
|
|
934
|
inst.image_alpha = 1;
|
|
935
|
inst.image_blend = c_red;
|
|
936
|
inst.side = "right";
|
|
937
|
redflashcon = 0;
|
|
938
|
redflashtimer = 0;
|
|
939
|
}
|
|
940
|
}
|
|
941
|
if (growtangleredcon == 1)
|
|
942
|
{
|
|
943
|
growtangleredtimer++;
|
|
944
|
if (growtangleredtimer == 3)
|
|
945
|
{
|
|
946
|
}
|
|
947
|
if (growtangleredtimer == 6)
|
|
948
|
{
|
|
949
|
growtangleredcon = 2;
|
|
950
|
_inst = instance_create(obj_growtangle.x + 0, obj_growtangle.y - 70, obj_gerson_swing_down_new);
|
|
951
|
_inst.image_angle = 0;
|
|
952
|
_inst.direction = 270;
|
|
953
|
_inst.gravity_direction = 270;
|
|
954
|
}
|
|
955
|
}
|
|
956
|
if (growtangleredcon == 2)
|
|
957
|
{
|
|
958
|
if (global.turntimer < 2)
|
|
959
|
growtangleredcon = 3;
|
|
960
|
}
|
|
961
|
if (growtangleredcon == 3)
|
|
962
|
{
|
|
963
|
growtangleredtimer--;
|
|
964
|
if (growtangleredtimer == 0)
|
|
965
|
{
|
|
966
|
growtangleredtimer = 0;
|
|
967
|
growtangleredcon = 0;
|
|
968
|
}
|
|
969
|
}
|
|
970
|
|
|
971
|
enum e__VW
|
|
972
|
{
|
|
973
|
XView,
|
|
974
|
YView,
|
|
975
|
WView,
|
|
976
|
HView,
|
|
977
|
Angle,
|
|
978
|
HBorder,
|
|
979
|
VBorder,
|
|
980
|
HSpeed,
|
|
981
|
VSpeed,
|
|
982
|
Object,
|
|
983
|
Visible,
|
|
984
|
XPort,
|
|
985
|
YPort,
|
|
986
|
WPort,
|
|
987
|
HPort,
|
|
988
|
Camera,
|
|
989
|
SurfaceID
|
|
990
|
}
|