Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_sound_of_justice_enemy_Step_0

related scripts: Alarm_4Alarm_6Alarm_7CleanUp_0Create_0Draw_0Mouse_60Mouse_61Other_10Other_11Other_22Other_24Step_0

(view raw script w/o annotations or w/e)
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
        for (j = 0; j < 3; j += 1)
41
            global.temptension[j] = global.tension;
42
        global.charturn = 3;
43
        msgsetloc(0, 
Kris!? Kris, hey!!!Wait for inputClose Message
"Kris!? Kris, hey!!!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_44_0"
);
44
        global.typer = 75;
45
        
scr_heroblcon
scr_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");
46
    }
47
    if ((button3_p() && introtimer > 15) || !i_ex(obj_writer))
48
    {
49
        with (obj_writer)
50
            instance_destroy();
51
        introcon = 2;
52
        introtimer = 0;
53
        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"
);
54
        global.typer = 75;
55
        
scr_heroblcon
scr_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");
56
    }
57
}
58
if (introcon == 2)
59
{
60
    introtimer++;
61
    if ((button3_p() && introtimer > 15) || !i_ex(obj_writer))
62
    {
63
        with (obj_writer)
64
            instance_destroy();
65
        introcon = 3;
66
        introtimer = 0;
67
        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"
);
68
        global.typer = 75;
69
        
scr_heroblcon
scr_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");
70
    }
71
}
72
if (introcon == 3)
73
{
74
    introtimer++;
75
    if ((button3_p() && introtimer > 15) || !i_ex(obj_writer))
76
    {
77
        with (obj_writer)
78
            instance_destroy();
79
        introcon = 4;
80
        introtimer = 0;
81
        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"
);
82
        global.typer = 75;
83
        
scr_heroblcon
scr_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");
84
    }
85
}
86
if (introcon == 4)
87
{
88
    introtimer++;
89
    if ((button3_p() && introtimer > 15) || !i_ex(obj_writer))
90
    {
91
        with (obj_writer)
92
            instance_destroy();
93
        introcon = 0;
94
        introtimer = 0;
95
        global.charturn = 0;
96
    }
97
}
98
if (global.monster[myself] == 1)
99
{
100
    if (
scr_isphase
scr_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)
101
    {
102
        bulletphaseend = false;
103
        global.tensionselect = 0;
104
        
scr_randomtarget
scr_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; } }
();
105
        sprite_set_offset(spr_spearblocker, 32, 32);
106
        ballooncon = 0;
107
        balloonsubcon = 0;
108
        balloonend = 1;
109
        talkedcon = 0;
110
        rtimer = 0;
111
        rr = choose(0, 1, 2, 3);
112
        attackcon = 0;
113
        if (turns == 0)
114
        {
115
            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"
);
116
            ballooncon = 1;
117
            balloonend = 0;
118
        }
119
        else if (turns == 1)
120
        {
121
            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"
);
122
            ballooncon = 2;
123
            balloonend = 0;
124
        }
125
        else if (turns == 2)
126
        {
127
            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"
);
128
            ballooncon = 3;
129
            balloonend = 0;
130
        }
131
        else if (turns == 3)
132
        {
133
            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"
);
134
            ballooncon = 4;
135
            balloonend = 0;
136
        }
137
        else if (turns == 4)
138
        {
139
            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"
);
140
            ballooncon = 5;
141
            balloonend = 0;
142
        }
143
        else if (turns == 5)
144
        {
145
            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"
);
146
            ballooncon = 6;
147
            balloonend = 0;
148
        }
149
        else if (turns == 6)
150
        {
151
            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"
);
152
            ballooncon = 7;
153
            balloonend = 0;
154
        }
155
        else if (turns == 7)
156
        {
157
            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"
);
158
            ballooncon = 8;
159
            balloonend = 0;
160
        }
161
        else if (turns == 8)
162
        {
163
            msgsetloc(0, 
... If...Wait for inputClose Message
"... If.../%", "obj_sound_of_justice_enemy_slash_Step_0_gml_135_0"
);
164
            ballooncon = 9;
165
            balloonend = 0;
166
        }
167
        else
168
        {
169
            msgsetloc(0, 
?Wait for inputClose Message
"?/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_137_0"
);
170
            ballooncon = 0;
171
            balloonend = 1;
172
        }
173
        turns++;
174
        global.typer = 75;
175
        
scr_heroblcon
scr_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");
176
        susieripple = 1;
177
        event_user(0);
178
        gothitlastturn = 0;
179
        if (ballooncon == 0)
180
        {
181
            talked = 1;
182
            talktimer = 0;
183
        }
184
        else
185
        {
186
            talked = 0.6;
187
            talktimer = 0;
188
        }
189
    }
190
    if (talked == 0.6)
191
    {
192
        talktimer++;
193
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
194
        {
195
            with (obj_writer)
196
                instance_destroy();
197
            if (ballooncon == 1)
198
            {
199
                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"
);
200
                ballooncon = 1.1;
201
                balloonend = 0;
202
            }
203
            else if (ballooncon == 1.1)
204
            {
205
                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"
);
206
                ballooncon = 0;
207
                balloonend = 1;
208
            }
209
            else if (ballooncon == 2)
210
            {
211
                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"
);
212
                ballooncon = 2.1;
213
                balloonend = 0;
214
            }
215
            else if (ballooncon == 2.1)
216
            {
217
                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"
);
218
                ballooncon = 0;
219
                balloonend = 1;
220
            }
221
            else if (ballooncon == 3)
222
            {
223
                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"
);
224
                ballooncon = 3.1;
225
                balloonend = 0;
226
            }
227
            else if (ballooncon == 3.1)
228
            {
229
                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"
);
230
                ballooncon = 3.2;
231
                balloonend = 0;
232
            }
233
            else if (ballooncon == 3.2)
234
            {
235
                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"
);
236
                ballooncon = 3.3;
237
                balloonend = 0;
238
            }
239
            else if (ballooncon == 3.3)
240
            {
241
                with (obj_sound_of_justice_enemy)
242
                {
243
                    if (state != 13)
244
                    {
245
                        state = 13;
246
                        sprite_index = spr_gerson_teleport;
247
                        image_xscale = 3;
248
                        image_yscale = 3;
249
                        image_speed = 1;
250
                        x = obj_sound_of_justice_enemy.xstart + 56;
251
                        y = obj_sound_of_justice_enemy.ystart + 70;
252
                        snd_play_pitch(motor_swing_down, 1.4);
253
                    }
254
                }
255
                with (obj_heroparent)
256
                    state = 1;
257
                ballooncon = 0;
258
                balloonend = 1;
259
                talked = 0.7;
260
                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; }
261
                exit;
262
            }
263
            else if (ballooncon == 4)
264
            {
265
                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"
);
266
                ballooncon = 0;
267
                balloonend = 1;
268
            }
269
            else if (ballooncon == 5)
270
            {
271
                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"
);
272
                ballooncon = 0;
273
                balloonend = 1;
274
            }
275
            else if (ballooncon == 6)
276
            {
277
                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"
);
278
                ballooncon = 6.1;
279
                balloonend = 0;
280
            }
281
            else if (ballooncon == 6.1)
282
            {
283
                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"
);
284
                ballooncon = 0;
285
                balloonend = 1;
286
            }
287
            else if (ballooncon == 7)
288
            {
289
                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"
);
290
                ballooncon = 7.1;
291
                balloonend = 0;
292
            }
293
            else if (ballooncon == 7.1)
294
            {
295
                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"
);
296
                ballooncon = 0;
297
                balloonend = 1;
298
            }
299
            else if (ballooncon == 8)
300
            {
301
                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"
);
302
                ballooncon = 0;
303
                balloonend = 1;
304
            }
305
            else if (ballooncon == 9)
306
            {
307
                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"
);
308
                ballooncon = 9.1;
309
                balloonend = 0;
310
            }
311
            else if (ballooncon == 9.1)
312
            {
313
                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"
);
314
                ballooncon = 0;
315
                balloonend = 1;
316
            }
317
            talked = 0.7;
318
            global.typer = 75;
319
            
scr_heroblcon
scr_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");
320
            susieripple = 1;
321
            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; }
322
        }
323
    }
324
    if (talked == 1 && 
scr_isphase
scr_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"))
325
    {
326
        talktimer++;
327
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
328
        {
329
            with (obj_writer)
330
                instance_destroy();
331
            global.mnfight = 1.5;
332
        }
333
    }
334
    if (global.mnfight == 1.5)
335
    {
336
        if (!instance_exists(obj_growtangle))
337
            instance_create(camerax() + (camerawidth() / 2), cameray() + (cameraheight() / 2), obj_growtangle);
338
        with (obj_battlecontroller)
339
            depth = obj_growtangle.depth + 2;
340
        with (obj_growtangle)
341
            depth = obj_gerson_darkness_overlay.depth + 2;
342
        if (!instance_exists(obj_moveheart) && !instance_exists(obj_heart))
343
            
scr_moveheart
scr_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); }
();
344
        
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
345
        with (obj_gerson_darkness_overlay)
346
            con = 1;
347
        global.mnfight = 2;
348
        mus_volume(global.batmusic[1], 0.6, 60);
349
        mus_volume(global.batmusic[3], 0.6, 30);
350
    }
351
    if (
scr_isphase
scr_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)
352
    {
353
        rtimer += 1;
354
        if (rtimer == 12)
355
        {
356
            attackcon = 1;
357
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(999);
358
            global.typer = 6;
359
            global.fc = 0;
360
            rr = choose(0, 0);
361
            if (rr == 0)
362
                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"
);
363
            attacked = 1;
364
        }
365
    }
366
    if (global.mnfight == 2 && global.turntimer < 1 && bulletphaseend == false)
367
    {
368
        if (phase == 1 && turns == 4)
369
        {
370
            phase = 2;
371
            intermission1_con = 1;
372
            intermission1_timer = 0;
373
        }
374
        if (turns == 9)
375
            endingcon = 1;
376
        if (turns == 1)
377
        {
378
            snd_free(global.batmusic[2]);
379
            global.batmusic[2] = snd_init("statue_level2.ogg");
380
            global.batmusic[3] = mus_loop(global.batmusic[2]);
381
            mus_volume(global.batmusic[3], 0.6, 0);
382
            mus_volume(global.batmusic[3], 1, 10);
383
        }
384
        if (turns == 2)
385
        {
386
            snd_free(global.batmusic[2]);
387
            global.batmusic[2] = snd_init("statue_level3.ogg");
388
            global.batmusic[3] = mus_loop(global.batmusic[2]);
389
            mus_volume(global.batmusic[3], 0.6, 0);
390
            mus_volume(global.batmusic[3], 1, 10);
391
        }
392
        if (turns == 3)
393
        {
394
            snd_free(global.batmusic[2]);
395
            global.batmusic[2] = snd_init("statue_level4.ogg");
396
            global.batmusic[3] = mus_loop(global.batmusic[2]);
397
            mus_volume(global.batmusic[3], 0.6, 0);
398
            mus_volume(global.batmusic[3], 1, 10);
399
        }
400
        if (turns == 5)
401
        {
402
            snd_free(global.batmusic[2]);
403
            global.batmusic[2] = snd_init("statue2_level2.ogg");
404
            global.batmusic[3] = mus_loop(global.batmusic[2]);
405
            mus_volume(global.batmusic[3], 0.6, 0);
406
            mus_volume(global.batmusic[3], 1, 10);
407
        }
408
        if (turns == 6)
409
        {
410
            snd_free(global.batmusic[2]);
411
            global.batmusic[2] = snd_init("statue2_level3.ogg");
412
            global.batmusic[3] = mus_loop(global.batmusic[2]);
413
            mus_volume(global.batmusic[3], 0.6, 0);
414
            mus_volume(global.batmusic[3], 1, 10);
415
        }
416
        if (turns == 7)
417
        {
418
            snd_free(global.batmusic[2]);
419
            global.batmusic[2] = snd_init("statue2_level4.ogg");
420
            global.batmusic[3] = mus_loop(global.batmusic[2]);
421
            mus_volume(global.batmusic[3], 0.6, 0);
422
            mus_volume(global.batmusic[3], 1, 10);
423
        }
424
        if (turns == 8)
425
        {
426
            snd_free(global.batmusic[2]);
427
            global.batmusic[2] = snd_init("statue2_level5.ogg");
428
            global.batmusic[3] = mus_loop(global.batmusic[2]);
429
            mus_volume(global.batmusic[3], 0.6, 0);
430
            mus_volume(global.batmusic[3], 1, 10);
431
        }
432
        track_pos = audio_sound_get_track_position(global.batmusic[1]);
433
        audio_sound_set_track_position(global.batmusic[3], track_pos);
434
        mus_volume(global.batmusic[1], 1, 10);
435
        with (obj_gerson_darkness_overlay)
436
            scalecon = 2;
437
        with (obj_growtangle)
438
            growcon = 3;
439
        with (obj_heart)
440
        {
441
            instance_create(x, y, obj_returnheart);
442
            instance_destroy();
443
        }
444
        bulletphaseend = true;
445
    }
446
}
447
if (global.myfight == 3)
448
{
449
    xx = __view_get(e__VW.XView, 0);
450
    yy = __view_get(e__VW.YView, 0);
451
    if (acting == 1 && actcon == 0)
452
    {
453
        actcon = 1;
454
        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"
);
455
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
456
    }
457
    if (actcon == 20 || actconsus == 20 || actconral == 20)
458
    {
459
        if (
scr_terminate_writer
scr_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; }
())
460
        {
461
            actconsus = -1;
462
            actconral = -1;
463
            actcon = 1;
464
        }
465
    }
466
    if (actcon == 1 && !instance_exists(obj_writer))
467
        
scr_nextact
scr_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();
} }
();
468
}
469
if (state == 3)
470
    
scr_enemy_hurt
scr_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; } } }
();
471
if (attackcon == 1 && !i_ex(obj_writer))
472
{
473
    if (attackcount < attackcountmax)
474
    {
475
        
scr_spearshot
scr_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]);
476
        attackcon = 2;
477
    }
478
    else
479
    {
480
        attackcon = 3;
481
    }
482
    attackcount++;
483
}
484
if (attackcon == 2 && !i_ex(obj_gerson_growtangle))
485
{
486
    attacktimer++;
487
    if (attacktimer >= list_attackwait[attackcount - 1] && !i_ex(obj_writer))
488
    {
489
        attacktimer = 0;
490
        attackcon = 1;
491
    }
492
}
493
if (attackcon == 3 && global.turntimer > 10 && !i_ex(obj_spearshot))
494
{
495
    global.turntimer = 10;
496
    attackcon = 0;
497
}
498
if (scr_debug && 
scr_debug_keycheck
scr_debug_keycheck

function
scr_debug_keycheck(arg0)
{ }
(ord("V")) &&
scr_isphase
scr_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"))
499
    event_user(14);
500
if (attackcon == 0)
501
    obj_battlecontroller.depth = savebattlecontrollerdepth;
502
if (intermission1_con == 1)
503
{
504
    if (i_ex(obj_dw_churchb_nongerson))
505
        obj_dw_churchb_nongerson.savetension = global.tension;
506
    if (i_ex(obj_dw_churchb_nongerson))
507
        obj_dw_churchb_nongerson.attackpattern_save = attackpattern;
508
    intermission1_con = 0;
509
    with (obj_battlecontroller)
510
        skipvictory = 1;
511
    
scr_wincombat
scr_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; } }
();
512
}
513
if (kris_phase2_try_attack_con == 5)
514
{
515
    intermission1_timer = 0;
516
    kris_phase2_try_attack_con = 0;
517
    turns = 4;
518
    phase = 2;
519
    global.tension = 0;
520
}
521
if (susie_phase2_try_attack_con == 1 && kris_phase2_try_attack_con == 1)
522
{
523
    susie_phase2_try_attack_con = 0;
524
    susie_phase2_try_attack_con = 2;
525
}
526
if (susie_phase2_try_attack_con == 1 && 
scr_isphase
scr_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)
527
{
528
    susie_phase2_try_attack_timer++;
529
    if (susie_phase2_try_attack_timer == 1)
530
    {
531
        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"
);
532
        global.typer = 75;
533
        
scr_heroblcon
scr_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");
534
        susieripple = 1;
535
    }
536
    if ((button3_p() && susie_phase2_try_attack_timer > 16) || !i_ex(obj_writer))
537
    {
538
        with (obj_writer)
539
            instance_destroy();
540
        susie_phase2_try_attack_con = 2;
541
        susie_phase2_try_attack_timer = 0;
542
        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"
);
543
        global.typer = 75;
544
        
scr_heroblcon
scr_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");
545
        susieripple = 1;
546
    }
547
}
548
if (susie_phase2_try_attack_con == 2)
549
{
550
    susie_phase2_try_attack_timer++;
551
    if ((button3_p() && susie_phase2_try_attack_timer > 15) || !i_ex(obj_writer))
552
    {
553
        with (obj_writer)
554
            instance_destroy();
555
        susie_phase2_try_attack_con = 0;
556
        susie_phase2_try_attack_timer = 0;
557
        with (obj_battlecontroller)
558
            disablesusieattack = 1;
559
    }
560
}
561
if (kris_phase2_try_attack_con == 1)
562
    global.faceaction[1] = 0;
563
if (kris_phase2_try_attack_con == 1 && 
scr_isphase
scr_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)
564
{
565
    kris_phase2_try_attack_timer++;
566
    if (kris_phase2_try_attack_timer == 1)
567
        krisattackcount++;
568
    if (krisattackcount == 1)
569
    {
570
        if (kris_phase2_try_attack_timer == 1)
571
        {
572
            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"
);
573
            global.typer = 75;
574
            
scr_heroblcon
scr_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");
575
            susieripple = 1;
576
        }
577
        if ((button3_p() && kris_phase2_try_attack_timer > 16) || !i_ex(obj_writer))
578
        {
579
            with (obj_writer)
580
                instance_destroy();
581
            kris_phase2_try_attack_con = 2;
582
            kris_phase2_try_attack_timer = 0;
583
            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"
);
584
            global.typer = 75;
585
            
scr_heroblcon
scr_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");
586
            susieripple = 1;
587
        }
588
    }
589
    if (krisattackcount > 1)
590
    {
591
        if (kris_phase2_try_attack_timer == 1)
592
        {
593
            msgsetloc(0, 
* (You try to attack...)Wait for input
"* (You try to attack...)/", "obj_sound_of_justice_enemy_slash_Step_0_gml_518_0"
);
594
            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"
);
595
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
596
            kris_phase2_try_attack_con = 2;
597
            kris_phase2_try_attack_timer = 0;
598
        }
599
    }
600
}
601
if (kris_phase2_try_attack_con == 2)
602
{
603
    kris_phase2_try_attack_timer++;
604
    if ((button3_p() && kris_phase2_try_attack_timer > 15) || !i_ex(obj_writer))
605
    {
606
        with (obj_writer)
607
            instance_destroy();
608
        kris_phase2_try_attack_con = 0;
609
        kris_phase2_try_attack_timer = 0;
610
    }
611
}
612
if (endingcon == 1 && introcon == 0)
613
{
614
    endingtimer++;
615
    global.charturn = 2;
616
    if (endingtimer == 1)
617
    {
618
        with (obj_heroparent)
619
            showdarkness = false;
620
        if (i_ex(obj_gerson_darkness_overlay))
621
            obj_gerson_darkness_overlay.scalecon = 3;
622
    }
623
    if (endingtimer == 60)
624
    {
625
        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"
);
626
        global.typer = 75;
627
        
scr_heroblcon
scr_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");
628
        with (obj_battleblcon)
629
            x += 12;
630
        
scr_battle_sprite_set
scr_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);
631
        with (obj_herosusie)
632
            
scr_shakeobj
scr_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); }
();
633
        susieripple = 1;
634
    }
635
    if ((button3_p() && endingtimer >= 60 && endingtimer > 75) || (!i_ex(obj_writer) && endingtimer >= 60))
636
    {
637
        with (obj_writer)
638
            instance_destroy();
639
        endingcon = 2;
640
        endingtimer = 0;
641
        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"
);
642
        global.typer = 75;
643
        
scr_heroblcon
scr_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");
644
        with (obj_battleblcon)
645
            x += 12;
646
        susieripple = 1;
647
    }
648
}
649
if (endingcon == 2)
650
{
651
    global.charturn = 2;
652
    endingtimer++;
653
    if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
654
    {
655
        with (obj_writer)
656
            instance_destroy();
657
        endingcon = 3;
658
        endingtimer = 0;
659
        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"
);
660
        global.typer = 75;
661
        
scr_heroblcon
scr_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");
662
        with (obj_battleblcon)
663
            x += 12;
664
        susieripple = 1;
665
    }
666
}
667
if (endingcon == 3)
668
{
669
    endingtimer++;
670
    if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
671
    {
672
        with (obj_writer)
673
            instance_destroy();
674
        endingcon = 4;
675
        endingtimer = 0;
676
        mus_volume(global.batmusic[1], 0, 90);
677
        mus_volume(global.batmusic[3], 0, 90);
678
    }
679
}
680
if (endingcon == 4)
681
{
682
    endingtimer++;
683
    if (endingtimer == 1)
684
    {
685
        obj_herosusie.x -= 35;
686
        obj_herosusie.y -= 28;
687
        
scr_battle_sprite_set
scr_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);
688
        light1 = instance_create(camerax() + 105, cameray() + 211, obj_gerson_darkness_overlay_light);
689
        with (obj_gerson_darkness_overlay_light)
690
        {
691
            
scr_lerpvar
scr_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);
692
            
scr_lerpvar
scr_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);
693
        }
694
    }
695
    if (endingtimer == 14)
696
    {
697
        
scr_battle_sprite_set
scr_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);
698
        var snd = snd_loop(snd_chargeshot_charge);
699
        snd_volume(snd, 0, 0);
700
        snd_volume(snd, 0.2, 30);
701
    }
702
    if (endingtimer == 51)
703
    {
704
        msgsetloc(0, 
Heheh...
see this?!Wait for inputClose Message
"Heheh...&see this?!/%", "obj_sound_of_justice_enemy_slash_Step_0_gml_646_0"
);
705
        global.typer = 75;
706
        var heroballoon = 
scr_enemyblcon
scr_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);
707
        heroballoon.side = -1;
708
        susieripple = 1;
709
        endingcon = 6;
710
        endingtimer = 0;
711
    }
712
}
713
if (endingcon == 6)
714
{
715
    endingtimer++;
716
    if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
717
    {
718
        with (obj_writer)
719
            instance_destroy();
720
        endingcon = 7;
721
        endingtimer = 0;
722
        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"
);
723
        global.typer = 75;
724
        var heroballoon = 
scr_enemyblcon
scr_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);
725
        heroballoon.side = -1;
726
        susieripple = 1;
727
    }
728
}
729
if (endingcon == 7)
730
{
731
    endingtimer++;
732
    if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
733
    {
734
        with (obj_writer)
735
            instance_destroy();
736
        endingcon = 8;
737
        endingtimer = 0;
738
    }
739
}
740
if (endingcon == 8)
741
{
742
    endingtimer++;
743
    if (endingtimer == 1)
744
        
scr_battle_sprite_set
scr_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);
745
    if (endingtimer == 3)
746
    {
747
        light1.x += 45;
748
        light1.y -= 21;
749
    }
750
    if (endingtimer == 6)
751
    {
752
        inst = instance_create(obj_herosusie.x + 86, obj_herosusie.y + 60, obj_susie_heal_projectile);
753
        inst.gravity = 1;
754
        inst.gravity_direction = 0;
755
        inst.image_xscale = 3;
756
        inst.image_yscale = 3;
757
        inst.image_speed = 1;
758
        snd_stop(snd_chargeshot_charge);
759
        snd_play_x(snd_heartshot_dr_b, 0.4, 0.4);
760
        
scr_battle_sprite_set
scr_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);
761
    }
762
    if (endingtimer == 7)
763
    {
764
    }
765
    if (endingtimer == 28)
766
    {
767
    }
768
    if (endingtimer == 31)
769
    {
770
        with (obj_susie_heal_projectile)
771
        {
772
            anim = instance_create(x + 30 + 12, y + 9, obj_animation);
773
            anim.sprite_index = spr_sound_of_justice_heal;
774
            anim.image_xscale = 2;
775
            anim.image_yscale = 2;
776
            light2 = instance_create(x + 30 + 12, y + 9, obj_gerson_darkness_overlay_light);
777
            light2.image_xscale = 5;
778
            light2.image_yscale = 5;
779
            with (light2)
780
            {
781
                
scr_lerpvar
scr_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);
782
                
scr_lerpvar
scr_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);
783
                
scr_lerpvar
scr_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);
784
            }
785
        }
786
        lightupcon = 1;
787
        snd_play(snd_power);
788
    }
789
    if (endingtimer == 32)
790
    {
791
        with (obj_susie_heal_projectile)
792
            instance_destroy();
793
    }
794
    if (endingtimer == 59)
795
    {
796
        obj_herosusie.x = obj_herosusie.xstart;
797
        obj_herosusie.y = obj_herosusie.ystart;
798
        
scr_battle_sprite_set
scr_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);
799
        obj_herosusie.x += 25;
800
        with (obj_herosusie)
801
            
scr_shakeobj
scr_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); }
();
802
        snd_play(snd_sussurprise);
803
    }
804
    if (endingtimer == 102)
805
    {
806
        with (obj_gerson_darkness_overlay_light)
807
        {
808
            
scr_lerpvar
scr_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);
809
            
scr_lerpvar
scr_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);
810
            
scr_lerpvar
scr_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);
811
        }
812
    }
813
    if (endingtimer == 135)
814
    {
815
        with (obj_writer)
816
            instance_destroy();
817
        endingcon = 9;
818
        endingtimer = 0;
819
        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"
);
820
        global.typer = 75;
821
        
scr_heroblcon
scr_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");
822
        susieripple = 1;
823
    }
824
}
825
if (endingcon == 9)
826
{
827
    endingtimer++;
828
    if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
829
    {
830
        with (obj_writer)
831
            instance_destroy();
832
        endingcon = 10;
833
        endingtimer = 0;
834
        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"
);
835
        global.typer = 75;
836
        
scr_heroblcon
scr_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");
837
        susieripple = 1;
838
    }
839
}
840
if (endingcon == 10)
841
{
842
    endingtimer++;
843
    if ((button3_p() && endingtimer > 15) || !i_ex(obj_writer))
844
    {
845
        with (obj_writer)
846
            instance_destroy();
847
        endingcon = 11;
848
        endingtimer = 179;
849
    }
850
}
851
if (endingcon == 11)
852
{
853
    endingtimer++;
854
    if (endingtimer == 2)
855
    {
856
        inst = instance_create(x - 5, y + 4, obj_gerson_green_switch);
857
        inst.type = 1;
858
        ralseimarker.sprite_index = spr_ralsei_walk_left_unhappy;
859
        ralseimarker.image_speed = 1/3;
860
        ralseimarker.image_xscale = -2;
861
        ralseimarker.image_yscale = 2;
862
        ralseimarker.x = camerax() + camerawidth() + 50;
863
        ralseimarker.y = cameray() + 210;
864
        ralseimarker.hspeed -= 12;
865
    }
866
    if (endingtimer == 6)
867
    {
868
        ralseimarker.sprite_index = spr_ralsei_attack;
869
        ralseimarker.image_speed = 0.5;
870
        ralseimarker.hspeed = 0;
871
    }
872
    if (endingtimer == 8)
873
    {
874
        snd_play(snd_damage);
875
        
scr_shakeobj
scr_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); }
();
876
        attack = instance_create(global.monsterx[global.chartarget[myself]] + random(6), global.monstery[global.chartarget[myself]] + random(6), obj_basicattack);
877
    }
878
    if (endingtimer == 14)
879
        ralseimarker.sprite_index = spr_ralsei_idle;
880
    if (endingtimer == 22)
881
    {
882
        with (obj_gerson_green_switch)
883
            instance_destroy();
884
        state = 14;
885
        state14con = 3;
886
    }
887
    if (endingtimer == 180)
888
    {
889
        endingcon = 0;
890
        with (obj_battlecontroller)
891
            skipvictory = 1;
892
        
scr_wincombat
scr_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; } }
();
893
    }
894
}
895
if (redflashcon > 0 || growtangleredcon > 0)
896
{
897
    with (obj_spearshot)
898
        instance_destroy();
899
}
900
if (redflashcon == 1)
901
{
902
    redflashtimer++;
903
    if (redflashtimer == 1)
904
        snd_play(snd_gerlaugh_distort);
905
    if (redflashtimer == 1)
906
    {
907
        inst = instance_create(x, y, obj_gerson_gradient_telegraph);
908
        inst.image_alpha = 1;
909
        inst.image_blend = c_red;
910
        inst.side = "left";
911
        inst = instance_create(x, y, obj_gerson_gradient_telegraph);
912
        inst.image_alpha = 1;
913
        inst.image_blend = c_red;
914
        inst.side = "right";
915
        growtangleredtimer = 0;
916
        growtangleredcon = 1;
917
    }
918
    if (redflashtimer == 11)
919
    {
920
        inst = instance_create(x, y, obj_gerson_gradient_telegraph);
921
        inst.image_alpha = 1;
922
        inst.image_blend = c_red;
923
        inst.side = "down";
924
        inst = instance_create(x, y, obj_gerson_gradient_telegraph);
925
        inst.image_alpha = 1;
926
        inst.image_blend = c_red;
927
        inst.side = "up";
928
    }
929
    if (redflashtimer == 21)
930
    {
931
        inst = instance_create(x, y, obj_gerson_gradient_telegraph);
932
        inst.image_alpha = 1;
933
        inst.image_blend = c_red;
934
        inst.side = "left";
935
        inst = instance_create(x, y, obj_gerson_gradient_telegraph);
936
        inst.image_alpha = 1;
937
        inst.image_blend = c_red;
938
        inst.side = "right";
939
        redflashcon = 0;
940
        redflashtimer = 0;
941
    }
942
}
943
if (growtangleredcon == 1)
944
{
945
    growtangleredtimer++;
946
    if (growtangleredtimer == 3)
947
    {
948
    }
949
    if (growtangleredtimer == 6)
950
    {
951
        growtangleredcon = 2;
952
        _inst = instance_create(obj_growtangle.x + 0, obj_growtangle.y - 70, obj_gerson_swing_down_new);
953
        _inst.image_angle = 0;
954
        _inst.direction = 270;
955
        _inst.gravity_direction = 270;
956
    }
957
}
958
if (growtangleredcon == 2)
959
{
960
    if (global.turntimer < 2)
961
        growtangleredcon = 3;
962
}
963
if (growtangleredcon == 3)
964
{
965
    growtangleredtimer--;
966
    if (growtangleredtimer == 0)
967
    {
968
        growtangleredtimer = 0;
969
        growtangleredcon = 0;
970
    }
971
}
972
973
enum e__VW
974
{
975
    XView,
976
    YView,
977
    WView,
978
    HView,
979
    Angle,
980
    HBorder,
981
    VBorder,
982
    HSpeed,
983
    VSpeed,
984
    Object,
985
    Visible,
986
    XPort,
987
    YPort,
988
    WPort,
989
    HPort,
990
    Camera,
991
    SurfaceID
992
}