Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_checkers_enemy_Step_0

(view raw script w/o annotations or w/e)
1
if (global.monstertype[myself] == 21K.Round 2)
2
    secondtime = 1;
3
if (global.monster[myself] == 1)
4
{
5
    global.flag[51 + myself] = 4;
6
    if (secondtime == 1)
7
        milk_counter = 99;
8
    if (secondtime == 1)
9
        ralsei_lecture = 99;
10
    if (global.mnfight == 1 && talked == 0)
11
    {
12
        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; } }
();
13
        if (!instance_exists(obj_darkener))
14
            instance_create(0, 0, obj_darkener);
15
        milkmax = 1000;
16
        if (milk_counter > 0)
17
            milkmax = 600;
18
        if (global.monsterhp[myself] > milkmax)
19
        {
20
            if (!instance_exists(obj_moveheart) && !instance_exists(obj_heart))
21
                scr_moveheart
scr_moveheart

function scr_moveheart() { global.inv = 0; if (global.chapter == 2 && instance_exists(obj_gigaqueen_enemy)) return instance_create(o_boxingcontroller.x + 4, o_boxingcontroller.y - 120, obj_moveheart); else return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart); }
();
22
            if (!instance_exists(obj_growtangle))
23
                instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
24
        }
25
        global.mnfight = 2;
26
        rtimer = 0;
27
        global.typer = 50;
28
        talked = 2;
29
        attacked = 0;
30
        talktimer = 0;
31
    }
32
    if (talked == 2)
33
        global.mnfight = 2;
34
    if (global.mnfight == 2 && attacked == 0)
35
    {
36
        rtimer += 1;
37
        if (rtimer == 12)
38
        {
39
            talked = 0;
40
            milkmax = 1000;
41
            if (milk_counter > 0)
42
                milkmax = 600;
43
            if (global.monsterhp[myself] <= milkmax)
44
            {
45
                if (scon == 0)
46
                    scon = 1;
47
            }
48
            else
49
            {
50
                if (!instance_exists(obj_checkers_leap))
51
                {
52
                    if (attacktype == 0)
53
                        rr = 0;
54
                    if (attacktype == 1)
55
                        rr = 3;
56
                    if (attacktype == 2)
57
                        rr = 1;
58
                    if (attacktype == 3)
59
                        rr = 2;
60
                    dc = instance_create(x, y, obj_checkers_leap);
61
                    dc.leapmode = rr;
62
                    dc.target = mytarget;
63
                    dc.damage = global.monsterat[myself] * 5;
64
                    attacktype += 1;
65
                    if (attacktype > 3)
66
                        attacktype = 0;
67
                }
68
                siner = 0;
69
                visible = 0;
70
                turns += 1;
71
            }
72
            global.turntimer = 999;
73
            attacked = 1;
74
            global.typer = 6;
75
            global.fc = 0;
76
            rr = choose(0);
77
            global.battlemsg[0] = stringsetloc(
* K.Round shuffles furiously.
"* K.Round shuffles furiously.", "obj_checkers_enemy_slash_Step_0_gml_77_0"
);
78
            if (global.monsterstatus[myself] == 1)
79
                global.battlemsg[0] = stringsetloc(
* K.Round looks weak.
"* K.Round looks weak.", "obj_checkers_enemy_slash_Step_0_gml_79_0"
);
80
            if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
81
                global.battlemsg[0] = stringsetloc(
* K.Round's shuffle becomes lethargic.
"* K.Round's shuffle becomes lethargic.", "obj_checkers_enemy_slash_Step_0_gml_80_0"
);
82
            if (crown > 0)
83
                global.battlemsg[0] = stringsetsubloc("* The crown is \\cY~1-percent\\cW loose!", string(crown), "obj_checkers_enemy_slash_Step_0_gml_82_0");
84
        }
85
        else
86
        {
87
            global.turntimer = 120;
88
        }
89
    }
90
    if (global.mnfight == 2)
91
    {
92
        if (global.turntimer <= 1)
93
        {
94
            if (battlecancel == 1)
95
                global.mercymod[myself] = 999;
96
            if (battlecancel == 2)
97
            {
98
                with (obj_battlecontroller)
99
                    noreturn = 1;
100
                con = 1;
101
                battlecancel = 3;
102
            }
103
        }
104
    }
105
}
106
if (scon == 1)
107
{
108
    if (milk_counter > 0)
109
    {
110
        scon = 1.5;
111
    }
112
    else
113
    {
114
        with (obj_writer)
115
            instance_destroy();
116
        global.msg[0] = stringsetloc(
* K. ROUND felt stressed out and attacked!Wait for inputClose Message
"* K. ROUND felt stressed out and attacked!/%", "obj_checkers_enemy_slash_Step_0_gml_119_0"
);
117
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
118
        scon = 1.5;
119
    }
120
}
121
if (scon == 1.5 && !instance_exists(obj_writer))
122
{
123
    snd_play(snd_magicsprinkle);
124
    with (obj_writer)
125
        instance_destroy();
126
    global.msg[0] = stringsetloc(
* K. ROUND practiced self-care!
"* K. ROUND practiced self-care!", "obj_checkers_enemy_slash_Step_0_gml_129_0"
);
127
    global.turntimer = 999;
128
    scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
129
    milk = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x - 100, y + 60, spr_checkers_milk);
130
    with (milk)
131
    {
132
        image_speed = 0;
133
        image_xscale = 4;
134
        image_yscale = 4;
135
        image_alpha = 0;
136
    }
137
    milk.depth = depth - 1;
138
    scon = 2;
139
    milktimer = 0;
140
}
141
if (scon == 2)
142
{
143
    with (milk)
144
    {
145
        image_xscale -= 0.2;
146
        image_yscale -= 0.2;
147
        image_alpha += 0.1;
148
    }
149
    milktimer += 1;
150
    if (milktimer >= 10)
151
    {
152
        scon = 3;
153
        milktimer = 0;
154
        with (milk)
155
            image_alpha = 1.4;
156
    }
157
}
158
if (scon == 3)
159
{
160
    milktimer += 1;
161
    if (milktimer >= 25)
162
    {
163
        scon = 4;
164
        milktimer = 0;
165
    }
166
}
167
if (scon == 4)
168
{
169
    with (milk)
170
    {
171
        hspeed += 2;
172
        image_alpha -= 0.1;
173
    }
174
    milktimer += 1;
175
    if (milktimer == 10)
176
    {
177
        if (global.monsterat[myself] < 10)
178
            global.monsterat[myself] += 0.5;
179
        snd_play(snd_power);
180
        milkheal = 700;
181
        if (milk_counter == 0)
182
            milkheal = 300;
183
        global.monsterhp[myself] += milkheal;
184
        healamt = instance_create(global.monsterx[myself], global.monstery[myself], obj_dmgwriter);
185
        with (healamt)
186
        {
187
            delay = 8;
188
            type = 3;
189
            damage = 700;
190
        }
191
        healamt.damage = milkheal;
192
        hanim = instance_create(x, y, obj_healanim);
193
        hanim.target = id;
194
    }
195
    if (milktimer >= 15)
196
    {
197
        with (milk)
198
            instance_destroy();
199
        scon = 5;
200
        milktimer = 0;
201
    }
202
}
203
if (scon == 5)
204
{
205
    milktimer += 1;
206
    if (milktimer >= 30)
207
    {
208
        if (milk_counter > 0)
209
        {
210
            with (obj_writer)
211
                instance_destroy();
212
            scon = 0;
213
            milktimer = 0;
214
            global.turntimer = 0;
215
        }
216
        else
217
        {
218
            with (obj_writer)
219
                instance_destroy();
220
            scon = 6;
221
            global.msg[0] = stringsetloc(
* K. ROUND's HP and ATTACK went up!Wait for input
"* K. ROUND's HP and ATTACK went up!/", "obj_checkers_enemy_slash_Step_0_gml_226_0"
);
222
            scr_ralface
scr_ralface

function scr_ralface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FR \\TR %", string(arg1), "scr_ralface_slash_scr_ralface_gml_1_0"); }
(1, 3);
223
            global.msg[2] = stringsetloc(
* Susie!Delay 11 Stop attacking it!Delay 11 You're making it stronger!Wait for input
"* Susie^1! Stop attacking it^1! You're making it stronger!/", "obj_checkers_enemy_slash_Step_0_gml_228_0"
);
224
            scr_susface
scr_susface

function scr_susface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FS \\TS %", string(arg1), "scr_susface_slash_scr_susface_gml_1_0"); }
(3, 3);
225
            global.msg[4] = stringsetloc(
* Pssh,Delay 11 and let it think I'm AFRAID?Delay 11 No way!Wait for inputClose Message
"* Pssh^1, and let it think I'm AFRAID^1? No way!/%", "obj_checkers_enemy_slash_Step_0_gml_230_0"
);
226
            scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
227
        }
228
        milk_counter += 1;
229
    }
230
}
231
if (scon == 6)
232
{
233
    if (!instance_exists(obj_writer))
234
    {
235
        global.fc = 0;
236
        scon = 0;
237
        milktimer = 0;
238
        global.turntimer = 0;
239
    }
240
}
241
if (global.myfight == 3)
242
{
243
    xx = __view_get(e__VW.XView, 0);
244
    yy = __view_get(e__VW.YView, 0);
245
    if (acting == 1 && actcon == 0)
246
    {
247
        actcon = 1;
248
        if (secondtime == 0)
249
        {
250
            global.msg[0] = stringsetloc(
* K.ROUND - AT 9 DF 3
* Check?Delay 11
* That's chess,Delay 11 not checkers!Wait for inputClose Message
"* K.ROUND - AT 9 DF 3&* Check^1?&* That's chess^1, not checkers!/%", "obj_checkers_enemy_slash_Step_0_gml_263_0"
);
251
            global.actname[myself][0] = stringsetloc(
Checkers
"Checkers", "obj_checkers_enemy_slash_Step_0_gml_264_0"
);
252
            global.flag[246 checkers_act] = 1;
253
            if (checked == 1)
254
                global.msg[0] = stringsetloc(
* K.ROUND - AT 9 DF 3
* That's better.Wait for inputClose Message
"* K.ROUND - AT 9 DF 3&* That's better./%", "obj_checkers_enemy_slash_Step_0_gml_268_0"
);
255
            checked = 1;
256
        }
257
        else
258
        {
259
            if (global.flag[246 checkers_act] == 1)
260
            {
261
                global.msg[0] = stringsetloc(
* K.ROUND - AT 9 DF 3
* Watch out for its Flying King attack!Wait for input
"* K.ROUND - AT 9 DF 3&* Watch out for its Flying King attack!/", "obj_checkers_enemy_slash_Step_0_gml_277_0"
);
262
                global.msg[1] = stringsetloc(
* (Also,Delay 11 you need to get the CROWN off of its head.)Wait for inputClose Message
"* (Also^1, you need to get the CROWN off of its head.)/%", "obj_checkers_enemy_slash_Step_0_gml_278_0"
);
263
            }
264
            else
265
            {
266
                global.msg[0] = stringsetloc(
* K.ROUND - AT 9 DF 3
* It's being controlled into attacking...!Wait for input
"* K.ROUND - AT 9 DF 3&* It's being controlled into attacking...!/", "obj_checkers_enemy_slash_Step_0_gml_282_0"
);
267
                global.msg[1] = stringsetloc(
* (Though,Delay 11 wouldn't it just attack anyway...?)Wait for inputClose Message
"* (Though^1, wouldn't it just attack anyway...?)/%", "obj_checkers_enemy_slash_Step_0_gml_283_0"
);
268
            }
269
            checked = 1;
270
        }
271
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
272
    }
273
    if (acting == 2 && actcon == 0)
274
    {
275
        if (secondtime == 0)
276
            crown += 15;
277
        if (secondtime == 1)
278
            crown += 18;
279
        global.msg[0] = stringsetloc(
* You bowed to K. ROUND.Wait for inputClose Message
"* You bowed to K. ROUND./%", "obj_checkers_enemy_slash_Step_0_gml_296_0"
);
280
        with (obj_herokris)
281
            visible = 0;
282
        global.faceaction[0] = 0;
283
        global.charaction[0] = 0;
284
        bowkris = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(obj_herokris.x, obj_herokris.y, spr_krisb_bow);
285
        with (bowkris)
286
        {
287
            scr_oflash
scr_oflash

function scr_oflash() { _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; if (global.chapter == 2 && object_index == obj_mauswheel_enemy) _oflash.sprite_index = spr_mauswheel_idle; else _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
288
            a = scr_afterimage
scr_afterimage

function scr_afterimage() { afterimage = instance_create(x, y, obj_afterimage); afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; return afterimage; }
();
289
            a.hspeed = 5;
290
            a.depth = depth + 1;
291
        }
292
        snd_play(snd_item);
293
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
294
        actcon = 20;
295
    }
296
    if (actcon == 20 && !instance_exists(obj_writer))
297
    {
298
        visible = 0;
299
        bowcheck = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x, y, spr_checkers_bow);
300
        with (bowcheck)
301
            image_speed = 0.334;
302
        global.fc = 0;
303
        global.typer = 4;
304
        global.msg[0] = stringsetloc(
* It bowed back.Delay 11
* Its crown loosened a little.Wait for inputClose Message
"* It bowed back^1.&* Its crown loosened a little./%", "obj_checkers_enemy_slash_Step_0_gml_327_0"
);
305
        if (ralsei_lecture == 0 && secondtime == 0)
306
        {
307
            global.msg[0] = stringsetloc(
* It bowed back.Delay 11
* Its crown loosened a little.Wait for input
"* It bowed back^1.&* Its crown loosened a little./", "obj_checkers_enemy_slash_Step_0_gml_330_0"
);
308
            scr_ralface
scr_ralface

function scr_ralface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FR \\TR %", string(arg1), "scr_ralface_slash_scr_ralface_gml_1_0"); }
(1, 0);
309
            global.msg[2] = stringsetloc(
* That's it,Delay 11 Kris!Delay 11 If we can get its crown off...Wait for input
"* That's it^1, Kris^1! If we can get its crown off.../", "obj_checkers_enemy_slash_Step_0_gml_332_0"
);
310
            global.msg[3] = stringsetloc(
Face 8* It should turn back into a little guy...!Wait for input
"\\E8* It should turn back into a little guy...!/", "obj_checkers_enemy_slash_Step_0_gml_333_0"
);
311
            global.msg[4] = stringsetloc(
Face 0* Susie!Delay 11 Help us bow at it!Wait for input
"\\E0* Susie^1! Help us bow at it!/", "obj_checkers_enemy_slash_Step_0_gml_334_0"
);
312
            scr_susface
scr_susface

function scr_susface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FS \\TS %", string(arg1), "scr_susface_slash_scr_susface_gml_1_0"); }
(5, 0);
313
            global.msg[6] = stringsetloc(
* Nah,Delay 11 it's crown'll come off...Wait for input
"* Nah^1, it's crown'll come off.../", "obj_checkers_enemy_slash_Step_0_gml_336_0"
);
314
            global.msg[7] = stringsetloc(
Face 4* When I smash this guy into the GROUND!Wait for input
"\\E4* When I smash this guy into the GROUND!/", "obj_checkers_enemy_slash_Step_0_gml_337_0"
);
315
            scr_ralface
scr_ralface

function scr_ralface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FR \\TR %", string(arg1), "scr_ralface_slash_scr_ralface_gml_1_0"); }
(8, 1);
316
            global.msg[9] = stringsetloc(
* ...Wait for inputClose Message
"* .../%", "obj_checkers_enemy_slash_Step_0_gml_339_0"
);
317
            ralsei_lecture = 1;
318
        }
319
        if (thrown == 0 && secondtime == 1)
320
        {
321
            if (bowcounter == 0)
322
            {
323
                global.fc = 2;
324
                global.fe = 3;
325
                global.typer = 45;
326
                global.msg[0] = stringsetloc(
* Huh!? That hardly did anything!Wait for input
"* Huh!? That hardly did anything!/", "obj_checkers_enemy_slash_Step_0_gml_349_0"
);
327
                global.msg[1] = stringsetloc(
Face 1* How can we push off that CROWN...?Wait for input
"\\E1* How can we push off that CROWN...?/", "obj_checkers_enemy_slash_Step_0_gml_350_0"
);
328
                scr_susface
scr_susface

function scr_susface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FS \\TS %", string(arg1), "scr_susface_slash_scr_susface_gml_1_0"); }
(2, 1);
329
                global.msg[3] = stringsetloc(
* ... Hmm.Wait for inputClose Message
"* ... Hmm./%", "obj_checkers_enemy_slash_Step_0_gml_352_0"
);
330
            }
331
            if (bowcounter == 1)
332
            {
333
                global.fc = 2;
334
                global.fe = 3;
335
                global.typer = 45;
336
                global.msg[0] = stringsetloc(
* It's still hardly working!Wait for input
"* It's still hardly working!/", "obj_checkers_enemy_slash_Step_0_gml_359_0"
);
337
                global.msg[1] = stringsetloc(
Face 6* Whatever can we do,Delay 11 Kris...?Wait for input
"\\E6* Whatever can we do^1, Kris...?/", "obj_checkers_enemy_slash_Step_0_gml_360_0"
);
338
                scr_susface
scr_susface

function scr_susface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FS \\TS %", string(arg1), "scr_susface_slash_scr_susface_gml_1_0"); }
(2, 2);
339
                global.msg[3] = stringsetloc(
* ... Hey.Wait for inputClose Message
"* ... Hey./%", "obj_checkers_enemy_slash_Step_0_gml_362_0"
);
340
            }
341
            if (bowcounter == 2)
342
            {
343
                global.fc = 2;
344
                global.fe = 8;
345
                global.typer = 45;
346
                global.msg[0] = stringsetloc(
* Sometimes persistence is key,Delay 11 Kris!!Wait for input
"* Sometimes persistence is key^1, Kris!!/", "obj_checkers_enemy_slash_Step_0_gml_369_0"
);
347
                global.msg[1] = stringsetloc(
Face 6* It'll be hard,Delay 11 but we can do it!!Wait for input
"\\E6* It'll be hard^1, but we can do it!!/", "obj_checkers_enemy_slash_Step_0_gml_370_0"
);
348
                scr_susface
scr_susface

function scr_susface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FS \\TS %", string(arg1), "scr_susface_slash_scr_susface_gml_1_0"); }
(2, 7);
349
                global.msg[3] = stringsetloc(
* HEY YOU GUYS!!!Wait for inputClose Message
"* HEY YOU GUYS!!!/%", "obj_checkers_enemy_slash_Step_0_gml_372_0"
);
350
            }
351
        }
352
        bowcounter += 1;
353
        scr_battletext
scr_battletext

function scr_battletext() { xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); if (global.fc != 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); if (global.fc == 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); myface = instance_create(xx + 26, yy + 380, obj_face); with (battlewriter) { dialoguer = 1; facer = 1; if (global.fc == 0 && originalcharline == 33) charline = 26; } return battlewriter; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
();
354
        actcon = 21;
355
    }
356
    if (actcon == 21 && !instance_exists(obj_writer))
357
    {
358
        with (bowkris)
359
            instance_destroy();
360
        with (bowcheck)
361
            instance_destroy();
362
        visible = 1;
363
        with (obj_herokris)
364
            visible = 1;
365
        actcon = 1;
366
    }
367
    if (secondtime == 0)
368
    {
369
        if (acting == 3 && actcon == 0)
370
        {
371
            crown += 20;
372
            global.msg[0] = stringsetloc(
* You and Ralsei bowed.Wait for inputClose Message
"* You and Ralsei bowed./%", "obj_checkers_enemy_slash_Step_0_gml_398_0"
);
373
            with (obj_herokris)
374
                visible = 0;
375
            with (obj_heroralsei)
376
                visible = 0;
377
            global.faceaction[0] = 0;
378
            global.charaction[0] = 0;
379
            global.faceaction[1] = 0;
380
            global.charaction[1] = 0;
381
            bowkris = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(obj_herokris.x, obj_herokris.y, spr_krisb_bow);
382
            with (bowkris)
383
            {
384
                scr_oflash
scr_oflash

function scr_oflash() { _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; if (global.chapter == 2 && object_index == obj_mauswheel_enemy) _oflash.sprite_index = spr_mauswheel_idle; else _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
385
                a = scr_afterimage
scr_afterimage

function scr_afterimage() { afterimage = instance_create(x, y, obj_afterimage); afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; return afterimage; }
();
386
                a.hspeed = 5;
387
                a.depth = depth + 1;
388
            }
389
            bowral = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(obj_heroralsei.x, obj_heroralsei.y, spr_ralseib_bow);
390
            with (bowral)
391
            {
392
                scr_oflash
scr_oflash

function scr_oflash() { _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; if (global.chapter == 2 && object_index == obj_mauswheel_enemy) _oflash.sprite_index = spr_mauswheel_idle; else _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
393
                a = scr_afterimage
scr_afterimage

function scr_afterimage() { afterimage = instance_create(x, y, obj_afterimage); afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; return afterimage; }
();
394
                a.hspeed = 5;
395
                a.depth = depth + 1;
396
            }
397
            snd_play(snd_item);
398
            scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
399
            actcon = 30;
400
        }
401
    }
402
    if (actcon == 30 && !instance_exists(obj_writer))
403
    {
404
        visible = 0;
405
        bowcheck = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x, y, spr_checkers_bow);
406
        with (bowcheck)
407
            image_speed = 0.5;
408
        global.msg[0] = stringsetloc(
* K. ROUND bowed back.Delay 11
* Its crown loosened!Wait for inputClose Message
"* K. ROUND bowed back^1.&* Its crown loosened!/%", "obj_checkers_enemy_slash_Step_0_gml_442_0"
);
409
        if (ralsei_lecture == 0 && secondtime == 0)
410
        {
411
            global.msg[0] = stringsetloc(
* K. ROUND bowed back.Delay 11
* Its crown loosened!Wait for input
"* K. ROUND bowed back^1.&* Its crown loosened!/", "obj_checkers_enemy_slash_Step_0_gml_445_0"
);
412
            scr_ralface
scr_ralface

function scr_ralface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FR \\TR %", string(arg1), "scr_ralface_slash_scr_ralface_gml_1_0"); }
(1, 0);
413
            global.msg[2] = stringsetloc(
* That's it,Delay 11 Kris!Delay 11 If we can get its crown off...Wait for input
"* That's it^1, Kris^1! If we can get its crown off.../", "obj_checkers_enemy_slash_Step_0_gml_447_0"
);
414
            global.msg[3] = stringsetloc(
Face 8* It should turn back into a little guy...!Wait for input
"\\E8* It should turn back into a little guy...!/", "obj_checkers_enemy_slash_Step_0_gml_448_0"
);
415
            global.msg[4] = stringsetloc(
Face 0* Susie!Delay 11 Help us bow at it!Wait for input
"\\E0* Susie^1! Help us bow at it!/", "obj_checkers_enemy_slash_Step_0_gml_449_0"
);
416
            scr_susface
scr_susface

function scr_susface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FS \\TS %", string(arg1), "scr_susface_slash_scr_susface_gml_1_0"); }
(5, 0);
417
            global.msg[6] = stringsetloc(
* Nah,Delay 11 its crown'll come off...Wait for input
"* Nah^1, its crown'll come off.../", "obj_checkers_enemy_slash_Step_0_gml_451_0"
);
418
            global.msg[7] = stringsetloc(
Face 4* When I smash this guy to the GROUND!Wait for input
"\\E4* When I smash this guy to the GROUND!/", "obj_checkers_enemy_slash_Step_0_gml_452_0"
);
419
            scr_ralface
scr_ralface

function scr_ralface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FR \\TR %", string(arg1), "scr_ralface_slash_scr_ralface_gml_1_0"); }
(8, 1);
420
            global.msg[9] = stringsetloc(
* ...Wait for inputClose Message
"* .../%", "obj_checkers_enemy_slash_Step_0_gml_454_0"
);
421
            ralsei_lecture = 1;
422
        }
423
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
424
        actcon = 31;
425
    }
426
    if (actcon == 31 && !instance_exists(obj_writer))
427
    {
428
        with (bowral)
429
            instance_destroy();
430
        with (bowkris)
431
            instance_destroy();
432
        with (bowcheck)
433
            instance_destroy();
434
        visible = 1;
435
        with (obj_heroralsei)
436
            visible = 1;
437
        with (obj_herokris)
438
            visible = 1;
439
        actcon = 1;
440
    }
441
    if (secondtime == 1)
442
    {
443
        if (acting == 3 && actcon == 0)
444
        {
445
            if (thrown == 1)
446
            {
447
                with (trsus)
448
                    instance_destroy();
449
                thrown = 2;
450
            }
451
            if (thrown > 0)
452
            {
453
                global.actname[myself][2] = stringsetloc(
Throw
"Throw", "obj_checkers_enemy_slash_Step_0_gml_487_0"
);
454
                global.msg[0] = stringsetsubloc("* Press ~1 to determine the ANGLE!", scr_get_input_name
scr_get_input_name

function scr_get_input_name(arg0) { var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == gp_padu) return "\\*W "; if (_control == gp_padd) return "\\*S "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(6), "obj_checkers_enemy_slash_Step_0_gml_489_0");
455
                flash = 0;
456
                becomeflash = 0;
457
                scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
458
                actcon = 90;
459
                instance_create(x, y, obj_throwtarget);
460
                throwsus = instance_create(obj_herosusie.x, obj_herosusie.y, obj_throwralsei);
461
                visible = 0;
462
                global.faceaction[1] = 0;
463
                global.charaction[1] = 0;
464
                global.faceaction[2] = 0;
465
                global.charaction[2] = 0;
466
                with (obj_herosusie)
467
                    visible = 0;
468
                with (obj_heroralsei)
469
                    visible = 0;
470
                snd_play(snd_grab);
471
            }
472
            else
473
            {
474
                global.typer = 31;
475
                global.fc = 2;
476
                global.fe = 6;
477
                global.msg[0] = stringsetloc(
* Susie?Delay 11 You want to ACT?Delay 11 Aww, what's your idea?Wait for input
"* Susie^1? You want to ACT^1? Aww, what's your idea?/", "obj_checkers_enemy_slash_Step_0_gml_510_0"
);
478
                scr_susface
scr_susface

function scr_susface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FS \\TS %", string(arg1), "scr_susface_slash_scr_susface_gml_1_0"); }
(1, 0);
479
                global.msg[2] = stringsetloc(
* Umm...Delay 11 well...Delay 11 how do I say this.Wait for input
"* Umm..^1. well..^1. how do I say this./", "obj_checkers_enemy_slash_Step_0_gml_512_0"
);
480
                global.msg[3] = stringsetloc(
* I kind of...Delay 11
* Need you for this one.Wait for input
"* I kind of..^1.&* Need you for this one./", "obj_checkers_enemy_slash_Step_0_gml_513_0"
);
481
                scr_ralface
scr_ralface

function scr_ralface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FR \\TR %", string(arg1), "scr_ralface_slash_scr_ralface_gml_1_0"); }
(4, 8);
482
                global.msg[5] = stringsetloc(
* That's fine,Delay 11 Susie!Delay 11
* I'll help!Wait for input
"* That's fine^1, Susie^1!&* I'll help!/", "obj_checkers_enemy_slash_Step_0_gml_515_0"
);
483
                global.msg[6] = stringsetloc(
Face 0* You want to apologize to it for earlier,Delay 11 right?Wait for input
"\\E0* You want to apologize to it for earlier^1, right?/", "obj_checkers_enemy_slash_Step_0_gml_516_0"
);
484
                scr_susface
scr_susface

function scr_susface(arg0, arg1) { global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FS \\TS %", string(arg1), "scr_susface_slash_scr_susface_gml_1_0"); }
(7, 2);
485
                global.msg[8] = stringsetloc(
* Nah,Delay 11 I just need you to stay still.Wait for inputClose Message
"* Nah^1, I just need you to stay still./%", "obj_checkers_enemy_slash_Step_0_gml_518_0"
);
486
                actcon = 10;
487
                scr_battletext
scr_battletext

function scr_battletext() { xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); if (global.fc != 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); if (global.fc == 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); myface = instance_create(xx + 26, yy + 380, obj_face); with (battlewriter) { dialoguer = 1; facer = 1; if (global.fc == 0 && originalcharline == 33) charline = 26; } return battlewriter; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
();
488
            }
489
        }
490
    }
491
    if (acting == 4 && actcon == 0)
492
    {
493
        actcon = 1;
494
        global.msg[0] = stringsetloc(
* You explained to K. Round about the importance of dodging Susie's attacks.Wait for input
"* You explained to K. Round about the importance of dodging Susie's attacks./", "obj_checkers_enemy_slash_Step_0_gml_531_0"
);
495
        global.msg[1] = stringsetloc(
* But it didn't seem to understand...Wait for inputClose Message
"* But it didn't seem to understand.../%", "obj_checkers_enemy_slash_Step_0_gml_532_0"
);
496
        if (warned == 1)
497
        {
498
            global.msg[0] = stringsetloc(
* You started making siren noises with your mouth and looking at Susie.Wait for input
"* You started making siren noises with your mouth and looking at Susie./", "obj_checkers_enemy_slash_Step_0_gml_535_0"
);
499
            global.msg[1] = stringsetloc(
* K. Round still didn't understand...Wait for inputClose Message
"* K. Round still didn't understand.../%", "obj_checkers_enemy_slash_Step_0_gml_536_0"
);
500
        }
501
        if (warned == 2)
502
        {
503
            global.msg[0] = stringsetloc(
* You started explaining that Susie is really dangerous and strong.Wait for input
"* You started explaining that Susie is really dangerous and strong./", "obj_checkers_enemy_slash_Step_0_gml_540_0"
);
504
            global.msg[1] = stringsetloc(
* Susie got a large boost to her morale.Wait for input
"* Susie got a large boost to her morale./", "obj_checkers_enemy_slash_Step_0_gml_541_0"
);
505
            global.msg[2] = stringsetloc(
* Susie's ATTACK went up massively...!Wait for inputClose Message
"* Susie's ATTACK went up massively...!/%", "obj_checkers_enemy_slash_Step_0_gml_542_0"
);
506
            global.battleat[2] *= 1.5;
507
        }
508
        warned += 1;
509
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
510
    }
511
    if (actcon == 1 && !instance_exists(obj_writer))
512
    {
513
        actcon = 0;
514
        if (crown >= 100)
515
        {
516
            global.mercymod[myself] = 999;
517
            actcon = 50;
518
        }
519
        else
520
        {
521
            scr_attackphase
scr_attackphase

function scr_attackphase() { with (obj_battlecontroller) { techwon = 0; if (scr_monsterpop() == 0) techwon = 1; if (global.chapter == 2 && i_ex(obj_berdlyb_enemy) && obj_berdlyb_enemy.endcon == 1) techwon = 1; else if (techwon == 1) scr_wincombat(); if (techwon == 0) { for (__hiti = 0; __hiti < 3; __hiti++) global.hittarget[__hiti] = 0; fightphase = 1; global.charturn = 3; if (global.charaction[0] == 4 || global.charaction[0] == 2) fightphase = 0; if (global.charaction[1] == 4 || global.charaction[1] == 2) fightphase = 0; if (global.charaction[2] == 4 || global.charaction[2] == 2) fightphase = 0; if (global.myfight == 4) fightphase = 1; if (fightphase == 1) { global.myfight = 1; instance_create(xx + 2, yy + 365, obj_attackpress); } else { global.myfight = 4; instance_create(0, 0, obj_spellphase); } } } }
();
522
        }
523
    }
524
    if (actcon == 10 && !instance_exists(obj_writer))
525
    {
526
        actcon = 11;
527
        alarm[4] = 30;
528
        with (obj_herosusie)
529
            visible = 0;
530
        with (obj_heroralsei)
531
            visible = 0;
532
        thrown = 1;
533
        trsus = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(obj_herosusie.x, obj_herosusie.y, spr_susieb_throwralseiready);
534
        snd_play(snd_grab);
535
    }
536
    if (actcon == 12)
537
    {
538
        global.fe = 7;
539
        global.msg[0] = stringsetloc(
* Kris!Delay 11 We gotta get that CROWN off its head!Wait for input
"* Kris^1! We gotta get that CROWN off its head!/", "obj_checkers_enemy_slash_Step_0_gml_578_0"
);
540
        global.msg[1] = stringsetloc(
* Help me throw Ralsei at it!Wait for inputClose Message
"* Help me throw Ralsei at it!/%", "obj_checkers_enemy_slash_Step_0_gml_579_0"
);
541
        scr_battletext
scr_battletext

function scr_battletext() { xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); if (global.fc != 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); if (global.fc == 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); myface = instance_create(xx + 26, yy + 380, obj_face); with (battlewriter) { dialoguer = 1; facer = 1; if (global.fc == 0 && originalcharline == 33) charline = 26; } return battlewriter; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
();
542
        actcon = 13;
543
    }
544
    if (actcon == 13 && !instance_exists(obj_writer))
545
        actcon = 0;
546
    if (actcon == 50)
547
    {
548
        visible = 0;
549
        snd_free_all();
550
        animtest = instance_create(x, y, obj_checker_animtest);
551
        animtest.sprite_index = spr_smallchecker_transform3;
552
        animtest.image_xscale = 2;
553
        animtest.image_yscale = 2;
554
        animtest.type = 1;
555
        actcon = 51;
556
    }
557
}
558
if (global.myfight == 7)
559
    hspeed = 15;
560
561
enum e__VW
562
{
563
    XView,
564
    YView,
565
    WView,
566
    HView,
567
    Angle,
568
    HBorder,
569
    VBorder,
570
    HSpeed,
571
    VSpeed,
572
    Object,
573
    Visible,
574
    XPort,
575
    YPort,
576
    WPort,
577
    HPort,
578
    Camera,
579
    SurfaceID
580
}