Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_balthizard_enemy_Step_0

(view raw script w/o annotations or w/e)
1
if (global.monster[myself] == 1)
2
{
3
    if (gersonintro == 0 && gersonevent == true)
4
    {
5
        global.charturn = 3;
6
        talked = 0.1;
7
        gersontimer++;
8
        if (gersontimer == 1)
9
        {
10
            gerson = instance_create_depth(camerax() + 320 + 20, cameray() + 260, depth - 10, obj_marker);
11
            gerson.sprite_index = spr_gerson_outfit_idle;
12
            gerson.image_speed = 0;
13
            gerson.image_xscale = 2;
14
            gerson.image_yscale = 2;
15
            with (obj_balthizard_enemy)
16
                gerson = other.gerson;
17
        }
18
        gerson.y = lerp(gerson.y, cameray() + 220, gersontimer / 15);
19
        if (gersontimer == 15)
20
        {
21
            gersonintro = 0.1;
22
            gersontimer = 0;
23
        }
24
    }
25
    if (gersonintro == 0.1)
26
    {
27
        gersonintro = 0.2;
28
        global.typer = 86;
29
        msgsetloc(0, 
Hm, what's
all this now?Wait for inputClose Message
"Hm, what's&all this now?/%", "obj_balthizard_enemy_slash_Step_0_gml_38_0"
);
30
        
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; } }
(gerson.x, gerson.y + 32, 10);
31
    }
32
    if (gersonintro == 0.2)
33
    {
34
        talktimer++;
35
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
36
        {
37
            with (obj_writer)
38
                instance_destroy();
39
            talktimer = 0;
40
            gersonintro = 0.3;
41
            global.typer = 75;
42
            msgsetloc(0, 
H-hey!!
We're fighting!!
Get out of here!!Wait for inputClose Message
"H-hey!!&We're fighting!!&Get out of here!!/%", "obj_balthizard_enemy_slash_Step_0_gml_53_0"
);
43
            
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");
44
        }
45
    }
46
    if (gersonintro == 0.3)
47
    {
48
        talktimer++;
49
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
50
        {
51
            with (obj_writer)
52
                instance_destroy();
53
            talktimer = 0;
54
            gersonintro = 0.4;
55
            global.typer = 86;
56
            msgsetloc(0, 
I see, I see.
Well, you kids
have fun!Wait for inputClose Message
"I see, I see.&Well, you kids&have fun!/%", "obj_balthizard_enemy_slash_Step_0_gml_72_0"
);
57
            
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; } }
(gerson.x, gerson.y + 32, 10);
58
        }
59
    }
60
    if (gersonintro == 0.4)
61
    {
62
        talktimer++;
63
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
64
        {
65
            with (obj_writer)
66
                instance_destroy();
67
            talktimer = 0;
68
            gersonintro = 1;
69
        }
70
    }
71
    if (gersonintro == 1)
72
    {
73
        gersontimer++;
74
        if (gersontimer == 1)
75
        {
76
            with (obj_writer)
77
                instance_destroy();
78
            talktimer = 0;
79
            gerson.sprite_index = spr_gerson_outfit_walk;
80
            gerson.image_speed = 0.16666666666666666;
81
            gerson.image_xscale = -2;
82
            audio_pause_sound(global.batmusic[1]);
83
        }
84
        gerson.x = lerp(camerax() + 374 + 20, camerax() + camerawidth() + 100, gersontimer / 150);
85
        if (gersontimer <= 10)
86
        {
87
            with (obj_balthizard_enemy)
88
                eyesfollowgersonindex = lerp(headindex, 2, other.gersontimer / 10);
89
        }
90
        if (gersontimer > 10 && gersontimer < 140)
91
        {
92
            with (obj_balthizard_enemy)
93
                eyesfollowgersonindex = lerp(2, 18, (other.gersontimer - 10) / 140);
94
        }
95
        if (gersontimer > 140)
96
        {
97
            with (obj_balthizard_enemy)
98
            {
99
                eyesiner = 40;
100
                headindex = 7 + (sin(eyesiner / 12) * 5);
101
                eyesfollowgersonindex = lerp(18, headindex, (other.gersontimer - 140) / 10);
102
            }
103
        }
104
        if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 0 && gerson.image_index < 0.8333333333333334 && walkvar == 0)
105
        {
106
            snd_play_pitch(snd_bump, 0.9);
107
            walkvar = 1;
108
        }
109
        if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 2 && gerson.image_index < 2.8333333333333335 && walkvar == 1)
110
        {
111
            snd_play_pitch(snd_bump, 0.9);
112
            walkvar = 0;
113
        }
114
        if (gersontimer == 150)
115
        {
116
            talked = 0;
117
            gersonintro = 2;
118
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("none");
119
            gerson.sprite_index = spr_gerson_outfit_idle;
120
            gerson.image_speed = 0;
121
            talked = 0;
122
            audio_resume_sound(global.batmusic[1]);
123
            global.charturn = 0;
124
            with (obj_battlecontroller)
125
                incenseturtlegersoncon = 1;
126
            with (obj_balthizard_enemy)
127
            {
128
                eyesfollowgersonindex = -1;
129
                eyedelay = 10;
130
            }
131
        }
132
    }
133
    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)
134
    {
135
        with (obj_battlecontroller)
136
            skipsusieturn = false;
137
        
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; } }
();
138
        var sleepymizzle = false;
139
        with (obj_mizzle_enemy)
140
        {
141
            if (idlesprite == spr_holywater_idle)
142
                sleepymizzle = true;
143
        }
144
        if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() == 1)
145
        {
146
            myattackchoice = 0;
147
        }
148
        else if (attackselected == 0)
149
        {
150
            if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() == instance_number(object_index))
151
            {
152
                with (obj_balthizard_enemy)
153
                    myattackchoice = 1;
154
                myattackchoice = 0;
155
            }
156
            else if (sleepymizzle)
157
            {
158
                myattackchoice = 0;
159
            }
160
            else
161
            {
162
                with (obj_balthizard_enemy)
163
                    myattackchoice = 1;
164
            }
165
            if (lightup)
166
            {
167
                with (obj_balthizard_enemy)
168
                {
169
                    myattackchoice = 1;
170
                    attackselected = 1;
171
                }
172
                myattackchoice = 0;
173
            }
174
        }
175
        myattackpriority = 1;
176
        if (myattackchoice == 0)
177
            myattackpriority = 50;
178
        
scr_attackpriority
scr_attackpriority

function
scr_attackpriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.attackpriority < arg0) { obj_battlecontroller.attackpriority = arg0; return true; } else { return false; } } else { return false; } }
(myattackpriority - 1);
179
        if (!instance_exists(obj_darkener))
180
            instance_create(0, 0, obj_darkener);
181
        if (gersonvar == 1)
182
        {
183
            global.typer = 75;
184
            msgsetloc(0, 
... anyone, uh,
got any left?
"... anyone, uh,&got any left?", "obj_balthizard_enemy_slash_Step_0_gml_183_0"
);
185
            
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");
186
            talked = 0.5;
187
            with (obj_balthizard_enemy)
188
                gersonvar = 2;
189
        }
190
        if (gersonvar == 0)
191
        {
192
            global.typer = 50;
193
            if (lightup == false)
194
            {
195
                rr = choose(0, 1, 2, 3);
196
                if (rr == 0)
197
                    msgsetloc(0, 
Slow down.
"Slow down.", "obj_balthizard_enemy_slash_Step_0_gml_195_0"
);
198
                if (rr == 1)
199
                    msgsetloc(0, 
Take it easy.
"Take it easy.", "obj_balthizard_enemy_slash_Step_0_gml_196_0"
);
200
                if (rr == 2)
201
                    msgsetloc(0, 
Glory,
memory.
"Glory,&memory.", "obj_balthizard_enemy_slash_Step_0_gml_197_0"
);
202
                if (rr == 3)
203
                    msgsetloc(0, 
Sit back,
relax.
"Sit back,&relax.", "obj_balthizard_enemy_slash_Step_0_gml_198_0"
);
204
                if (justshaked)
205
                    msgsetloc(0, 
A nice
massage.
"A nice&massage.", "obj_balthizard_enemy_slash_Step_0_gml_199_0"
);
206
                balloon = 
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; } }
(x - 16, y + 54, 10);
207
                balloon.mywriter.rate = 3;
208
            }
209
            else
210
            {
211
                rr = choose(0, 1, 2);
212
                if (rr == 0)
213
                    msgsetloc(0, 
Let's burn
rubber!
"Let's burn&rubber!", "obj_balthizard_enemy_slash_Step_0_gml_206_0"
);
214
                if (rr == 1)
215
                    msgsetloc(0, 
Strike while
the iron
is hot!
"Strike while&the iron&is hot!", "obj_balthizard_enemy_slash_Step_0_gml_207_0"
);
216
                if (rr == 2)
217
                    msgsetloc(0, 
Inferno,
Inferno!
"Inferno,&Inferno!", "obj_balthizard_enemy_slash_Step_0_gml_208_0"
);
218
                if (lightupfirstturn)
219
                    msgsetloc(0, 
Ah! That
wakes
me up!!!
"Ah! That&wakes&me up!!!", "obj_balthizard_enemy_slash_Step_0_gml_209_0"
);
220
                if (justshaked)
221
                    msgsetloc(0, 
What a
blast!
Hoh hoh!
"What a&blast!&Hoh hoh!", "obj_balthizard_enemy_slash_Step_0_gml_210_0"
);
222
                
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; } }
(x - 16, y + 54, 10);
223
            }
224
            talked = 1;
225
        }
226
        talktimer = 0;
227
        rtimer = 0;
228
    }
229
    if (talked == 0.5 && 
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"))
230
    {
231
        talktimer++;
232
        if (talktimer > 15 && (button3_p() || button1_p()))
233
        {
234
            with (obj_writer)
235
                instance_destroy();
236
            with (obj_balthizard_enemy)
237
            {
238
                global.typer = 50;
239
                msgsetloc(0, 
No.
"No.", "obj_balthizard_enemy_slash_Step_0_gml_233_0"
);
240
                
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; } }
(x - 16, y + 54, 10);
241
                talked = 1;
242
                talktimer = 0;
243
                gersonvar = 0;
244
            }
245
        }
246
    }
247
    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"))
248
        
scr_blconskip
scr_blconskip

function
scr_blconskip(arg0)
{ if (arg0 >= 0) { if (button1_p() && talktimer > arg0) talktimer = talkmax; talktimer += 1; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); with (obj_guei_balloon) instance_destroy(); global.mnfight = 1.5; } } else if (arg0 == -1) { if (instance_exists(obj_writer) == false) global.mnfight = 1.5; } else if (arg0 == -2) { talktimer += 1; if (talktimer > 15) talktimer = talkmax; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); with (obj_guei_balloon) instance_destroy(); global.mnfight = 1.5; } } }
(15);
249
    if (global.mnfight == 1.5)
250
    {
251
        if (
scr_attackpriority
scr_attackpriority

function
scr_attackpriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.attackpriority < arg0) { obj_battlecontroller.attackpriority = arg0; return true; } else { return false; } } else { return false; } }
(myattackpriority))
252
        {
253
            if (!instance_exists(obj_growtangle))
254
            {
255
                inst = instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 240 + 18.75, obj_growtangle);
256
                inst.image_xscale = 1;
257
            }
258
            if (!instance_exists(obj_moveheart))
259
                
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); }
();
260
            global.mnfight = 2;
261
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
262
        }
263
    }
264
    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)
265
    {
266
        attackselected = 0;
267
        if (myattackchoice == 0)
268
            state = 10;
269
        rtimer += 1;
270
        if (rtimer == 12)
271
        {
272
            global.monsterattackname[myself] = "turtleattack";
273
            dc = 
scr_bulletspawner
scr_bulletspawner

function
scr_bulletspawner(arg0, arg1, arg2)
{ __dc = instance_create(arg0, arg1, arg2); __dc.creator = myself; __dc.creatorid = id; __dc.target = mytarget; __dc.damage = global.monsterat[myself] * 5; return __dc; }
(x, y, obj_dbulletcontroller);
274
            dc.type = 105;
275
            dc.damage = 80;
276
            if (attackdown)
277
                dc.damage = round(dc.damage * 0.6);
278
            if (lightup == true)
279
                dc.difficulty = 1;
280
            if (myattackchoice == 0)
281
                dc.special = 0;
282
            else
283
                dc.special = 1;
284
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(200);
285
            turns += 1;
286
            global.typer = 6;
287
            global.fc = 0;
288
            rr = choose(0, 1, 2, 3, 4);
289
            if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(random(2)))
290
            {
291
                var substring = string(myself);
292
                if (rr == 0)
293
                    global.battlemsg[0] = stringsetloc(
* Balthizard clambers slowly.
"* Balthizard clambers slowly.", "obj_balthizard_enemy_slash_Step_0_gml_288_0"
);
294
                if (rr == 1)
295
                    global.battlemsg[0] = stringsetloc(
* Balthizard releases a plume of sickly sweet nostalgia.
"* Balthizard releases a plume of sickly sweet nostalgia.", "obj_balthizard_enemy_slash_Step_0_gml_289_0"
);
296
                if (rr == 2)
297
                    global.battlemsg[0] = stringsetloc(
* Balthizard breathes a fog of sunbeam on warm wood.
"* Balthizard breathes a fog of sunbeam on warm wood.", "obj_balthizard_enemy_slash_Step_0_gml_290_0"
);
298
                if (rr == 3)
299
                    global.battlemsg[0] = stringsetloc(
* Balthizard spins the scent of a rainy, grassy day.
"* Balthizard spins the scent of a rainy, grassy day.", "obj_balthizard_enemy_slash_Step_0_gml_291_0"
);
300
                if (rr == 4)
301
                    global.battlemsg[0] = stringsetloc(
* Balthizard coughs plumes like old pillows on golden hair.
"* Balthizard coughs plumes like old pillows on golden hair.", "obj_balthizard_enemy_slash_Step_0_gml_292_0"
);
302
            }
303
            if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
304
            {
305
                if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(100 + random(2)))
306
                    global.battlemsg[0] = stringsetloc(
* Balthizard coughs scentlessly.
"* Balthizard coughs scentlessly.", "obj_balthizard_enemy_slash_Step_0_gml_297_0"
);
307
            }
308
            if (global.mercymod[myself] >= 100)
309
            {
310
                if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(100 + random(2)))
311
                    global.battlemsg[0] = stringsetloc(
* Balthizard laughs plumes of heart-shaped gas.
"* Balthizard laughs plumes of heart-shaped gas.", "obj_balthizard_enemy_slash_Step_0_gml_302_0"
);
312
            }
313
            if (global.monsterstatus[myself] == 1)
314
            {
315
                if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(102 + random(2)))
316
                    global.battlemsg[0] = stringsetloc(
* Balthizard releases a scent of candles and chamomile.
"* Balthizard releases a scent of candles and chamomile.", "obj_balthizard_enemy_slash_Step_0_gml_307_0"
);
317
            }
318
            if (lightup == true)
319
            {
320
                if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(102 + random(2)))
321
                    global.battlemsg[0] = stringsetloc(
* Balthizard burns with taco-scented excitement.
"* Balthizard burns with taco-scented excitement.", "obj_balthizard_enemy_slash_Step_0_gml_312_0"
);
322
            }
323
            attacked = 1;
324
        }
325
    }
326
    if (global.mnfight == 2 && global.turntimer <= 1)
327
    {
328
        lightupfirstturn = 0;
329
        justshaked = 0;
330
    }
331
}
332
if (global.myfight == 3)
333
{
334
    xx = __view_get(e__VW.XView, 0);
335
    yy = __view_get(e__VW.YView, 0);
336
    var turtle_tired_text = stringsetloc(
* Balthizard became TIRED!Wait for inputClose Message
"* Balthizard became TIRED!/%", "obj_balthizard_enemy_slash_Step_0_gml_336_0"
);
337
    if (acting == 1 && actcon == 0)
338
    {
339
        actcon = 1;
340
        msgsetloc(0, 
* BALTHIZARD - An ancient aromancer. Punishes intruders with beautiful scent.Wait for inputClose Message
"* BALTHIZARD - An ancient aromancer. Punishes intruders with beautiful scent./%", "obj_balthizard_enemy_slash_Step_0_gml_342_0"
);
341
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
342
    }
343
    if (acting == 2 && actcon == 0)
344
    {
345
        acting = 20;
346
        msgsetloc(0, 
* Press Left and Right rapidly to shake!
"* Press Left and Right rapidly to shake!", "obj_balthizard_enemy_slash_Step_0_gml_349_0"
);
347
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
348
        with (obj_writer)
349
            pos = 100;
350
        with (obj_dmgwriter)
351
            instance_destroy();
352
        shakex = 0;
353
        shakemercystart = global.mercymod[myself];
354
        shakehead.image_index = headindex;
355
        if (global.mercymod[myself] >= 100)
356
            shakestartsatmaxmercy = true;
357
    }
358
    if (acting == 20 && actcon == 0)
359
    {
360
        if (shakelastpress != 0)
361
        {
362
            if (shakex == 0)
363
                shaketimer += 3;
364
            shaketimer++;
365
        }
366
        var mercygained = 0;
367
        var _speed = 20;
368
        var _offset = 5;
369
        if (left_p())
370
        {
371
            shakehead.image_index = 2;
372
            if (shakelastpress == -1 || shakelastpress == 0)
373
            {
374
                headspeed -= _speed;
375
                headoffsetx -= _offset;
376
            }
377
            else
378
            {
379
                headspeed -= _speed;
380
                headoffsetx -= _offset;
381
            }
382
            if (shakex == 1)
383
                mercygained = 8;
384
            else
385
                mercygained = 4;
386
            shakelastpress = -1;
387
        }
388
        if (right_p())
389
        {
390
            shakehead.image_index = 16;
391
            if (shakelastpress == 1 || shakelastpress == 0)
392
            {
393
                headspeed += _speed;
394
                headoffsetx += _offset;
395
            }
396
            else
397
            {
398
                headspeed += _speed;
399
                headoffsetx += _offset;
400
            }
401
            if (shakex == 1)
402
                mercygained = 8;
403
            else
404
                mercygained = 3;
405
            shakelastpress = 1;
406
        }
407
        justshaked = 1;
408
        if (shakemercystart < 50 && (mercygained + global.mercymod[myself]) > 90)
409
            mercygained = 90 - global.mercymod[myself];
410
        if (mercygained > 0)
411
        {
412
            if (shakelastpress == 1)
413
            {
414
                smoke = instance_create((x + 26 + headoffsetx) - 14, y + 56 + headoffsety, obj_incense_turtle_shake_smoke);
415
                smoke.speed = choose(-3, -4, -5);
416
            }
417
            else
418
            {
419
                smoke = instance_create(x + 26 + headoffsetx + 20, y + 56 + headoffsety, obj_incense_turtle_shake_smoke);
420
                smoke.speed = choose(3, 4, 5);
421
            }
422
            snd_stop(snd_damage);
423
            snd_play(snd_damage);
424
            if (!i_ex(obj_dmgwriter) && shakemercystart < 100)
425
            {
426
                
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, mercygained);
427
            }
428
            else
429
            {
430
                if (i_ex(obj_dmgwriter))
431
                    obj_dmgwriter.damage += mercygained;
432
                global.mercymod[myself] += mercygained;
433
                shakemaxmercyhp -= mercygained;
434
                if (global.mercymod[myself] < 0)
435
                    global.mercymod[myself] = 0;
436
                if (global.mercymod[myself] >= 100)
437
                {
438
                    global.mercymod[myself] = 100;
439
                    if (i_ex(obj_dmgwriter))
440
                        obj_dmgwriter.damage = global.mercymod[myself] - shakemercystart;
441
                }
442
                if (i_ex(obj_dmgwriter))
443
                    obj_dmgwriter.init = 0;
444
                if (shakemercystart >= 100)
445
                {
446
                    with (obj_dmgwriter)
447
                    {
448
                        y = -9999;
449
                        ystart = -9999;
450
                    }
451
                }
452
            }
453
            headflashtimer = 2;
454
        }
455
        with (obj_dmgwriter)
456
            killtimer = 33;
457
        if ((shakemercystart < 50 && global.mercymod[myself] >= 90 && shakemercystart < 100) || (shakemercystart >= 50 && shakemercystart < 100 && global.mercymod[myself] >= 100 && shakemercystart < 100) || (shakemercystart >= 100 && global.mercymod[myself] >= 100 && shakemaxmercyhp < 1) || shaketimer >= 180 || (shakemaxmercyhp < 1 && shakemercystart >= 100))
458
        {
459
            acting = 21;
460
            if (shakemaxmercyhp < 1 && shakemercystart >= 100)
461
            {
462
                event_user(10);
463
                for (var __i = 1; __i < 3; __i++)
464
                {
465
                    if (global.actingtarget[__i] == myself && global.char[__i] > 0)
466
                    {
467
                        global.acting[__i] = 0;
468
                        global.actingsimul[__i] = 0;
469
                        global.actingsingle[__i] = 0;
470
                        global.faceaction[__i] = 0;
471
                    }
472
                }
473
            }
474
            shakestartsatmaxmercy = false;
475
            shakemaxmercyhp = 30;
476
        }
477
    }
478
    if (acting == 21 && actcon == 0)
479
    {
480
        with (obj_writer)
481
            instance_destroy();
482
        shakelastpress = 0;
483
        shaketimer = 0;
484
        actcon = 1;
485
        if (global.mercymod[myself] > 50 && global.monsterstatus[myself] != 1)
486
        {
487
        }
488
    }
489
    if (acting == 3 && actcon == 0)
490
    {
491
        acting = 20;
492
        msgsetloc(0, 
* Press Left and Right rapidly to shake!
"* Press Left and Right rapidly to shake!", "obj_balthizard_enemy_slash_Step_0_gml_490_0"
);
493
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
494
        with (obj_writer)
495
            pos = 100;
496
        shakex = 1;
497
        shakemercystart = global.mercymod[myself];
498
    }
499
    if (acting == 4)
500
    {
501
        msgsetloc(0, 
* Ralsei lit up!Wait for inputClose Message
"* Ralsei lit up!/%", "obj_balthizard_enemy_slash_Step_0_gml_499_0"
);
502
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
503
        acting = 4.1;
504
    }
505
    if (acting == 4.1 && actcon == 0 && !i_ex(obj_writer))
506
    {
507
        if (lightuptimer == 0)
508
            
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; } } }
("ralsei", spr_ralsei_spell, 0.5, false);
509
        if (lightuptimer == 16)
510
            
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; } } }
("ralsei", spr_ralsei_spell_end, 1, true);
511
        if (lightuptimer == 16 || lightuptimer == 22 || lightuptimer == 28 || lightuptimer == 34)
512
        {
513
            var b = 0;
514
            var rand = irandom(30);
515
            snd_play(snd_wing);
516
            repeat (9)
517
            {
518
                inst = instance_create(obj_heroralsei.x + 62, obj_heroralsei.y + 22, obj_turtle_toriel_fire);
519
                inst.direction = (b * 45) + rand;
520
                inst.speed = 14;
521
                inst.gravity_direction = 270;
522
                inst.gravity = 0.4;
523
                inst.image_xscale = 1.5;
524
                inst.image_yscale = 1.5;
525
                b++;
526
            }
527
        }
528
        if (lightuptimer == 18)
529
            instance_create(x, y, obj_incense_turtle_screen_flash);
530
        if (lightuptimer == 38)
531
        {
532
            snd_play_x(snd_rocket, 0.9, 0.9);
533
            lightupfirstturn = 1;
534
            lightup = true;
535
            
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _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 = 0; hurt = 0; attacktimer = 0; attacked = 0; global.faceaction[myself] = 0; } } }
("ralsei");
536
        }
537
        lightuptimer++;
538
        if (lightuptimer == 50)
539
        {
540
            lightuptimer = 0;
541
            acting = 25;
542
            
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 50);
543
            var maketired = 0;
544
            var lightup_text1 = stringsetloc(
* The room got smokey!
"* The room got smokey!", "obj_balthizard_enemy_slash_Step_0_gml_556_0"
);
545
            var lightup_text2 = stringsetloc(
* Other enemies became TIRED!
"* Other enemies became TIRED!", "obj_balthizard_enemy_slash_Step_0_gml_557_0"
);
546
            for (var i = 0; i < instance_number(obj_monsterparent); i += 1)
547
            {
548
                enemy[i] = instance_find(obj_monsterparent, i);
549
                if (enemy[i].myself != myself && global.monsterstatus[enemy[i].myself] != 1)
550
                {
551
                    with (enemy[i])
552
                        
scr_monster_make_tired
scr_monster_make_tired

function
scr_monster_make_tired(arg0)
{ if (global.monsterstatus[arg0] == 0) { __tiredwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] - (global.hittarget[arg0] * 20)) + 20, obj_dmgwriter); __tiredwriter.type = 13; global.hittarget[arg0] += 1; snd_play_x(snd_spellcast, 0.5, 0.9); } global.monstercomment[arg0] = stringsetloc(
(Tired)
"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0"
);
global.monsterstatus[arg0] = 1; }
(myself);
553
                    maketired = 1;
554
                }
555
            }
556
            if (maketired == 0)
557
                msgset(0, lightup_text1 + "/%");
558
            else
559
                msgset(0, lightup_text1 + "&" + lightup_text2 + "/%");
560
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
561
        }
562
    }
563
    if (acting == 25 && !i_ex(obj_writer))
564
        actcon = 1;
565
    if (acting == 5 && actcon == 0)
566
    {
567
        gersontimer = 0;
568
        if (gersonactcount == 0 || gersonactcount == 1)
569
        {
570
            msgsetloc(0, 
* You used Old Man.Wait for inputClose Message
"* You used Old Man./%", "obj_balthizard_enemy_slash_Step_0_gml_580_0"
);
571
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
572
        }
573
        acting = 5.1;
574
    }
575
    if (acting == 5.1 && actcon == 0 && !i_ex(obj_writer))
576
    {
577
        if (gersonactcount == 0)
578
        {
579
            gersontimer++;
580
            if (gersontimer == 1)
581
            {
582
                gerson.image_xscale = -2;
583
                gerson.sprite_index = spr_gerson_outfit_walk;
584
                gerson.image_speed = 0.16666666666666666;
585
                audio_pause_sound(global.batmusic[1]);
586
            }
587
            gerson.x = lerp(camerax() + camerawidth() + 100, camerax() + 410, gersontimer / 120);
588
            if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 0 && gerson.image_index < 0.8333333333333334 && walkvar == 0)
589
            {
590
                snd_play_pitch(snd_bump, 0.9);
591
                walkvar = 1;
592
            }
593
            if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 2 && gerson.image_index < 2.8333333333333335 && walkvar == 1)
594
            {
595
                snd_play_pitch(snd_bump, 0.9);
596
                walkvar = 0;
597
            }
598
            if (gersontimer <= 30)
599
            {
600
                with (obj_balthizard_enemy)
601
                    eyesfollowgersonindex = lerp(headindex, 18, other.gersontimer / 30);
602
            }
603
            if (gersontimer > 30 && gersontimer < 110)
604
            {
605
                with (obj_balthizard_enemy)
606
                    eyesfollowgersonindex = lerp(18, 8, (other.gersontimer - 30) / 80);
607
            }
608
            if (gersontimer > 110)
609
            {
610
                with (obj_balthizard_enemy)
611
                {
612
                    eyesiner = 0;
613
                    headindex = 7 + (sin(eyesiner / 12) * 5);
614
                    eyesfollowgersonindex = lerp(8, headindex, (other.gersontimer - 110) / 10);
615
                }
616
            }
617
            if (gersontimer == 120)
618
            {
619
                audio_resume_sound(global.batmusic[1]);
620
                gerson.sprite_index = spr_gerson_outfit_idle;
621
                gerson.image_speed = 0;
622
                gerson.image_xscale = 2;
623
                gersontimer = 0;
624
                acting = 35;
625
                gerson.x -= 74;
626
                global.typer = 86;
627
                msgsetloc(0, 
How's it going?
Ya winning, kids?Wait for inputClose Message
"How's it going?&Ya winning, kids?/%", "obj_balthizard_enemy_slash_Step_0_gml_640_0"
);
628
                
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; } }
(gerson.x, gerson.y + 32, 10);
629
                for (var i = 0; i < instance_number(obj_balthizard_enemy); i++)
630
                {
631
                    turtle[i] = instance_find(obj_balthizard_enemy, i);
632
                    turtle[i].gersonactcount++;
633
                }
634
                with (obj_balthizard_enemy)
635
                {
636
                    eyesfollowgersonindex = -1;
637
                    eyedelay = 10;
638
                }
639
            }
640
        }
641
        else if (gersonactcount == 1)
642
        {
643
            gersontimer++;
644
            if (gersontimer == 1)
645
            {
646
                gerson.image_xscale = -2;
647
                gerson.sprite_index = spr_gerson_outfit_walk;
648
                gerson.image_speed = 0.16666666666666666;
649
                audio_pause_sound(global.batmusic[1]);
650
            }
651
            gerson.x = lerp(camerax() - 100, camerax() + 410, gersontimer / 120);
652
            if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 0 && gerson.image_index < 0.8333333333333334 && walkvar == 0)
653
            {
654
                snd_play_pitch(snd_bump, 0.9);
655
                walkvar = 1;
656
            }
657
            if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 2 && gerson.image_index < 2.8333333333333335 && walkvar == 1)
658
            {
659
                snd_play_pitch(snd_bump, 0.9);
660
                walkvar = 0;
661
            }
662
            if (gersontimer == 120)
663
            {
664
                audio_resume_sound(global.batmusic[1]);
665
                gerson.sprite_index = spr_gerson_outfit_idle;
666
                gerson.image_speed = 0;
667
                gerson.image_xscale = 2;
668
                gersontimer = 0;
669
                acting = 40;
670
                gerson.x -= 74;
671
                global.typer = 86;
672
                msgsetloc(0, 
You kids mus' be
getting hungry
battling.
Some candy?Wait for inputClose Message
"You kids mus' be&getting hungry&battling.&Some candy?/%", "obj_balthizard_enemy_slash_Step_0_gml_679_0"
);
673
                
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; } }
(gerson.x, gerson.y + 32, 10);
674
                for (var i = 0; i < instance_number(obj_balthizard_enemy); i++)
675
                {
676
                    turtle[i] = instance_find(obj_balthizard_enemy, i);
677
                    turtle[i].gersonactcount++;
678
                }
679
            }
680
        }
681
        else if (gersonactcount > 1)
682
        {
683
            msgsetloc(0, 
* Called the OldMan! Nothing happened!Wait for inputClose Message
"* Called the OldMan! Nothing happened!/%", "obj_balthizard_enemy_slash_Step_0_gml_691_0"
);
684
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
685
            actcon = 1;
686
        }
687
    }
688
    if (acting >= 35 && acting < 39)
689
        talktimer++;
690
    if (acting == 35 && actcon == 0)
691
    {
692
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
693
        {
694
            with (obj_writer)
695
                instance_destroy();
696
            talktimer = 0;
697
            global.typer = 75;
698
            msgsetloc(0, 
Not now, old
man! We're in
the middle of
this!Wait for inputClose Message
"Not now, old&man! We're in&the middle of&this!/%", "obj_balthizard_enemy_slash_Step_0_gml_707_0"
);
699
            
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");
700
            acting = 36;
701
        }
702
    }
703
    if (acting == 36 && actcon == 0)
704
    {
705
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
706
        {
707
            with (obj_writer)
708
                instance_destroy();
709
            talktimer = 0;
710
            global.typer = 75;
711
            msgsetloc(0, 
I was about to...
dang it, you
made me forget!Wait for inputClose Message
"I was about to...&dang it, you&made me forget!/%", "obj_balthizard_enemy_slash_Step_0_gml_723_0"
);
712
            
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");
713
            acting = 36.5;
714
        }
715
    }
716
    if (acting == 36.5 && actcon == 0)
717
    {
718
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
719
        {
720
            with (obj_writer)
721
                instance_destroy();
722
            talktimer = 0;
723
            msgsetloc(0, 
* (Susie forgot what she was about to do! Her move got cancelled!)Wait for inputClose Message
"* (Susie forgot what she was about to do! Her move got cancelled!)/%", "obj_balthizard_enemy_slash_Step_0_gml_738_0"
);
724
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
725
            obj_battlecontroller.skipsusieturn = true;
726
            global.faceaction[1] = 0;
727
            global.charaction[1] = 0;
728
            global.acting[1] = 0;
729
            global.actingsingle[1] = 0;
730
            actingsus = 0;
731
            acting = 37;
732
        }
733
    }
734
    if (acting == 37 && actcon == 0)
735
    {
736
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
737
        {
738
            with (obj_writer)
739
                instance_destroy();
740
            talktimer = 0;
741
            gerson.x += 74;
742
            gerson.image_xscale = -2;
743
            global.typer = 86;
744
            msgsetloc(0, 
Now you go easy
on them, you hear?
They're still
learnin'.Wait for inputClose Message
"Now you go easy&on them, you hear?&They're still&learnin'./%", "obj_balthizard_enemy_slash_Step_0_gml_762_0"
);
745
            
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; } }
(gerson.x + 37, gerson.y + 32, 10);
746
            myblcon.side = -1;
747
            acting = 38;
748
        }
749
    }
750
    if (acting == 38 && actcon == 0)
751
    {
752
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
753
        {
754
            with (obj_writer)
755
                instance_destroy();
756
            talktimer = 0;
757
            with (obj_balthizard_enemy)
758
            {
759
                
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 50);
760
                global.monsterat[myself] -= 1;
761
                attackdown = true;
762
            }
763
            msgsetloc(0, 
* (The enemies' attack power went down!)Wait for inputClose Message
"* (The enemies' attack power went down!)/%", "obj_balthizard_enemy_slash_Step_0_gml_783_0"
);
764
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
765
            acting = 39;
766
        }
767
    }
768
    if (acting == 39 && actcon == 0 && !i_ex(obj_writer))
769
    {
770
        gersontimer++;
771
        if (gersontimer == 1)
772
        {
773
            gerson.sprite_index = spr_gerson_outfit_walk;
774
            gerson.image_speed = 0.16666666666666666;
775
            gerson.image_xscale = 2;
776
            audio_pause_sound(global.batmusic[1]);
777
        }
778
        gerson.x = lerp((camerax() + 410) - 74, camerax() - 100, gersontimer / 120);
779
        if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 0 && gerson.image_index < 0.8333333333333334 && walkvar == 0)
780
        {
781
            snd_play_pitch(snd_bump, 0.9);
782
            walkvar = 1;
783
        }
784
        if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 2 && gerson.image_index < 2.8333333333333335 && walkvar == 1)
785
        {
786
            snd_play_pitch(snd_bump, 0.9);
787
            walkvar = 0;
788
        }
789
        if (gersontimer == 120)
790
        {
791
            audio_resume_sound(global.batmusic[1]);
792
            gerson.sprite_index = spr_gerson_outfit_idle;
793
            gerson.image_speed = 0;
794
            gersontimer = 0;
795
            actcon = 1;
796
        }
797
    }
798
    if (acting >= 40 && acting < 44)
799
        talktimer++;
800
    if (acting == 40 && actcon == 0)
801
    {
802
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
803
        {
804
            with (obj_writer)
805
                instance_destroy();
806
            talktimer = 0;
807
            global.typer = 75;
808
            msgsetloc(0, 
Hell yeah,
we'd --Wait for inputClose Message
"Hell yeah,&we'd --/%", "obj_balthizard_enemy_slash_Step_0_gml_829_0"
);
809
            
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");
810
            acting = 41;
811
        }
812
    }
813
    if (acting == 41 && actcon == 0)
814
    {
815
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
816
        {
817
            with (obj_writer)
818
                instance_destroy();
819
            talktimer = 0;
820
            global.typer = 75;
821
            msgsetloc(0, 
No!
No way, we don't
need that now!Wait for inputClose Message
"No!&No way, we don't&need that now!/%", "obj_balthizard_enemy_slash_Step_0_gml_845_0"
);
822
            
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");
823
            acting = 42;
824
        }
825
    }
826
    if (acting == 42 && actcon == 0)
827
    {
828
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
829
        {
830
            with (obj_writer)
831
                instance_destroy();
832
            talktimer = 0;
833
            global.typer = 86;
834
            msgsetloc(0, 
Suit yourself!Wait for inputClose Message
"Suit yourself!/%", "obj_balthizard_enemy_slash_Step_0_gml_861_0"
);
835
            
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; } }
(gerson.x, gerson.y + 32, 10);
836
            acting = 43;
837
        }
838
    }
839
    if (acting == 43 && actcon == 0)
840
    {
841
        if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
842
        {
843
            with (obj_writer)
844
                instance_destroy();
845
            talktimer = 0;
846
            for (var i = 0; i < 3; i += 1)
847
            {
848
                if (i != 1)
849
                {
850
                    
scr_heal
scr_heal

function
scr_heal(arg0, arg1)
{ abovemaxhp = 0; belowzero = 0; hltarget = global.char[arg0]; _curhp = global.hp[hltarget]; if (global.hp[hltarget] <= 0) belowzero = 1; if (global.hp[hltarget] > global.maxhp[hltarget]) abovemaxhp = 1; if (abovemaxhp == 0) { global.hp[hltarget] += arg1; if (global.hp[hltarget] > global.maxhp[hltarget]) global.hp[hltarget] = global.maxhp[hltarget]; } if (belowzero == 1 && global.hp[hltarget] >= 0) { if (global.hp[hltarget] < ceil(global.maxhp[hltarget] / 6)) global.hp[hltarget] = ceil(global.maxhp[hltarget] / 6);
scr_revive(arg0);
} snd_stop(snd_power); snd_play(snd_power); return global.hp[hltarget] - _curhp; }
(i, 50);
851
                    global.charinstance[i].healnum = 50;
852
                    with (global.charinstance[i])
853
                    {
854
                        ha = instance_create(x, y, obj_healanim);
855
                        ha.target = id;
856
                        dmgwr = 
scr_dmgwriter_selfchar
scr_dmgwriter_selfchar

function
scr_dmgwriter_selfchar()
{ return instance_create(x, (y + myheight) - 24 - (tu * 20), obj_dmgwriter); }
();
857
                        with (dmgwr)
858
                        {
859
                            delay = 8;
860
                            type = 3;
861
                        }
862
                        if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
863
                        {
864
                            with (dmgwr)
865
                                specialmessage = 3;
866
                        }
867
                        dmgwr.damage = 50;
868
                    }
869
                }
870
            }
871
            with (obj_balthizard_enemy)
872
            {
873
                
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 50);
874
                ha = instance_create(x, y, obj_healanim);
875
                ha.target = id;
876
                dmgwr = instance_create(x, y, obj_dmgwriter);
877
                with (dmgwr)
878
                {
879
                    delay = 8;
880
                    type = 3;
881
                }
882
                global.monsterhp[myself] += 50;
883
                if (global.monsterhp[myself] > global.monstermaxhp[myself])
884
                {
885
                    global.monsterhp[myself] = global.monstermaxhp[myself];
886
                    with (dmgwr)
887
                        specialmessage = 3;
888
                }
889
                dmgwr.damage = 50;
890
            }
891
            msgsetloc(0, 
* Everyone except Susie got candy!Wait for inputClose Message
"* Everyone except Susie got candy!/%", "obj_balthizard_enemy_slash_Step_0_gml_914_0"
);
892
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
893
            acting = 44;
894
        }
895
    }
896
    if (acting == 44 && actcon == 0 && !i_ex(obj_writer))
897
    {
898
        gersontimer++;
899
        if (gersontimer == 1)
900
        {
901
            gerson.sprite_index = spr_gerson_outfit_walk;
902
            gerson.image_speed = 0.16666666666666666;
903
            gerson.image_xscale = 2;
904
            audio_pause_sound(global.batmusic[1]);
905
        }
906
        gerson.x = lerp((camerax() + 410) - 74, camerax() - 100, gersontimer / 120);
907
        if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 0 && gerson.image_index < 0.8333333333333334 && walkvar == 0)
908
        {
909
            snd_play_pitch(snd_bump, 0.9);
910
            walkvar = 1;
911
        }
912
        if (gerson.sprite_index == spr_gerson_outfit_walk && gerson.image_index >= 2 && gerson.image_index < 2.8333333333333335 && walkvar == 1)
913
        {
914
            snd_play_pitch(snd_bump, 0.9);
915
            walkvar = 0;
916
        }
917
        if (gersontimer == 120)
918
        {
919
            audio_resume_sound(global.batmusic[1]);
920
            gerson.sprite_index = spr_gerson_outfit_idle;
921
            gerson.image_speed = 0;
922
            gersontimer = 0;
923
            actcon = 1;
924
        }
925
        with (obj_balthizard_enemy)
926
            gersonvar = 1;
927
    }
928
    if (actingsus == 1 && actconsus == 1)
929
    {
930
        
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 30);
931
        var s_act_text = stringsetloc(
* Susie shakes Balthizard!
"* Susie shakes Balthizard!", "obj_balthizard_enemy_slash_Step_0_gml_959_0"
);
932
        if (simultotal == 1)
933
        {
934
            msgset(0, s_act_text + "/%");
935
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
936
            actconsus = 20;
937
        }
938
        else
939
        {
940
            msgset(0, s_act_text);
941
            
scr_simultext
scr_simultext

function
scr_simultext(arg0)
{ __simulorder = 0; if (arg0 == "kris") __simulorder = simulorderkri; if (arg0 == "susie") __simulorder = simulordersus; if (arg0 == "ralsei") __simulorder = simulorderral; if (arg0 == "noelle") __simulorder = simulordernoe; __yoffset = __simulorder * 30; global.typer = 4; battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer); }
("susie");
942
            if (simulordersus == 0)
943
                actconsus = 20;
944
            else
945
                actconsus = 0;
946
        }
947
    }
948
    if (actingral == 1 && actconral == 1)
949
    {
950
        
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 30);
951
        var r_act_text = stringsetloc(
* Ralsei shakes Balthizard!
"* Ralsei shakes Balthizard!", "obj_balthizard_enemy_slash_Step_0_gml_979_0"
);
952
        if (simultotal == 1)
953
        {
954
            msgset(0, r_act_text + "/%");
955
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
956
            actconral = 20;
957
        }
958
        else
959
        {
960
            msgset(0, r_act_text);
961
            
scr_simultext
scr_simultext

function
scr_simultext(arg0)
{ __simulorder = 0; if (arg0 == "kris") __simulorder = simulorderkri; if (arg0 == "susie") __simulorder = simulordersus; if (arg0 == "ralsei") __simulorder = simulorderral; if (arg0 == "noelle") __simulorder = simulordernoe; __yoffset = __simulorder * 30; global.typer = 4; battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer); }
("ralsei");
962
            if (simulorderral == 0)
963
                actconral = 20;
964
            else
965
                actconral = 0;
966
        }
967
    }
968
    if (actcon == 20 || actconsus == 20 || actconral == 20)
969
    {
970
        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; }
())
971
        {
972
            actconsus = -1;
973
            actconral = -1;
974
            actcon = 1;
975
        }
976
    }
977
    if (actcon == 1 && !instance_exists(obj_writer))
978
        
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();
} }
();
979
}
980
if (state == 3)
981
{
982
    
scr_enemyhurt_tired_after_damage
scr_enemyhurt_tired_after_damage

function
scr_enemyhurt_tired_after_damage(arg0)
{ if (global.monsterhp[myself] <= (global.monstermaxhp[myself] * arg0))
scr_monster_make_tired(myself);
}
(0.5);
983
    
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; } } }
();
984
}
985
if (global.turntimer < 1)
986
{
987
    with (obj_animation)
988
    {
989
        if (sprite_index == spr_incense_fire_explosion1c)
990
            instance_destroy();
991
    }
992
}
993
994
enum e__VW
995
{
996
    XView,
997
    YView,
998
    WView,
999
    HView,
1000
    Angle,
1001
    HBorder,
1002
    VBorder,
1003
    HSpeed,
1004
    VSpeed,
1005
    Object,
1006
    Visible,
1007
    XPort,
1008
    YPort,
1009
    WPort,
1010
    HPort,
1011
    Camera,
1012
    SurfaceID
1013
}