Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_battlecontroller_Draw_0

(view raw script w/o annotations or w/e)
1
draw_set_color(c_yellow);
2
xx = __view_get(e__VW.XView, 0);
3
yy = __view_get(e__VW.YView, 0);
4
tpoff = (tp - tpy) + yy;
5
bpoff = -bp + bpy + yy;
6
var spell_offset = langopt(500, 496);
7
if (intro == 1)
8
{
9
    if (bp < (bpy - 1))
10
    {
11
        if ((bpy - bp) < 40)
12
            bp += round((bpy - bp) / 2.5);
13
        else
14
            bp += 30;
15
    }
16
    else
17
    {
18
        bp = bpy;
19
    }
20
    if (bp == bpy)
21
        intro = 0;
22
}
23
if (intro == 2)
24
{
25
    if (bp > 0)
26
    {
27
        if (round((bpy - bp) / 5) > 15)
28
            bp -= round((bpy - bp) / 2.5);
29
        else
30
            bp -= 30;
31
    }
32
    else
33
    {
34
        bp = 0;
35
    }
36
}
37
if (global.chapter == 5 && i_ex(obj_pink_enemy) && victory == 0)
38
{
39
    if (obj_pink_enemy.datecount == 1)
40
    {
41
        if (i_ex(obj_date_controller) && obj_date_controller.con != 0)
42
            bp = lerp(bp, 36, 0.3);
43
        else
44
            bp = lerp(bp, 152, 0.3);
45
    }
46
    else if (i_ex(obj_date_controller) && (obj_date_controller.con != 7 || obj_date_controller.date3endingcon == 2))
47
    {
48
        bp = lerp(bp, 36, 0.4);
49
    }
50
    else
51
    {
52
        bp = lerp(bp, 152, 0.3);
53
    }
54
}
55
if (global.chapter == 5 && hidebattleui == 1)
56
    bp = lerp(bp, 0, 0.3);
57
if (global.chapter == 5 && room == room_dw_fcastle_flowerclimb)
58
    bp = lerp(bp, 0, 0.3);
59
draw_set_color(c_black);
60
d_rectangle(xx - 10, 481 + yy, xx + 700, ((480 - bp) + yy) - 4, false);
61
draw_set_color(bcolor);
62
d_rectangle(xx - 10, (480 - bp - 3) + yy, xx + 700, (480 - bp - 2) + yy, false);
63
draw_set_color(bcolor);
64
d_rectangle(xx - 10, (480 - bp) + 34 + yy, xx + 700, (480 - bp) + 36 + yy, false);
65
scr_charbox
scr_charbox

function
scr_charbox()
{ var haveflowery = false; var soloflowery = false; with (obj_caterpillar_generic) { if (name == "flowery") haveflowery = 1; } if (haveflowery && room == room_dw_post_fountain_close) soloflowery = true; var flx = camerax() + 436; var fly = (bpoff + 421) - (global.fighting * 94); for (c = 0; c < 4; c += 1) { if (havechar[c] == 1) { if (c == 0) charcolor = hpcolor[0]; if (c == 1) charcolor = hpcolor[1]; if (c == 2) charcolor = hpcolor[2]; if (c == 3) charcolor = hpcolor[3]; gc = global.charturn; xchunk = 0; if (charpos[c] == 0 && chartotal == 3) xchunk = 0; if (charpos[c] == 1 && chartotal == 3) xchunk = 213; if (charpos[c] == 2 && chartotal == 3) xchunk = 426; if (charpos[c] == 0 && chartotal == 2) xchunk = 108; if (charpos[c] == 1 && chartotal == 2) xchunk = 322; if (charpos[c] == 0 && chartotal == 1) xchunk = 213; if (gc == charpos[c]) { if (global.myfight == 0)
scr_selectionmatrix(xx + xchunk, (480 - bp) + yy);
if (mmy[c] > -32) mmy[c] -= 2; if (mmy[c] > -24) mmy[c] -= 4; if (mmy[c] > -16) mmy[c] -= 6; if (mmy[c] > -8) mmy[c] -= 8; if (mmy[c] < -32) mmy[c] = -64; } else if (mmy[c] < -14) { mmy[c] += 15; } else { mmy[c] = 0; } btc[0] = 0; btc[1] = 0; btc[2] = 0; btc[3] = 0; btc[4] = 0; if (gc == charpos[c]) btc[global.bmenucoord[0][global.charturn]] = 1; if (global.fighting == 1) { spare_glow = 0; for (sglowi = 0; sglowi < 3; sglowi += 1) { if (global.monster[sglowi] == 1 && global.mercymod[sglowi] >= 100) spare_glow = 1; } pacify_glow = 0; if (c == 2 || c == 3 || c == 1) { for (sglowi = 0; sglowi < 3; sglowi += 1) { var tensionamount = 40; if (c == 3) tensionamount = 80; if (c == 1) tensionamount = 160; if (global.monster[sglowi] == 1 && global.monsterstatus[sglowi] == 1 && global.tension >= tensionamount) pacify_glow = 1; if (global.encounterno == 31) pacify_glow = 0; } } var icon_offset = 5; if (disablesusieralseiattack == 1 && (global.charturn == 1 || global.charturn == 2)) draw_sprite(
scr_84_get_sprite("spr_btfight"), 2, xx + xchunk + 15 + icon_offset, (485 - bp) + yy);
else draw_sprite(
scr_84_get_sprite("spr_btfight"), btc[0], xx + xchunk + 15 + icon_offset, (485 - bp) + yy);
if (global.chapter == 5 && i_ex(obj_flowery_enemy) && obj_flowery_enemy.flowerbuttonactive == true && c == 0) draw_sprite(spr_btact_flower, btc[1], xx + xchunk + 50 + icon_offset, (485 - bp) + yy); else if (c == 0) ...
();
66
if (i_ex(obj_blue_enemy) && !obj_blue_enemy.done_intro)
67
    exit;
68
if (global.bmenuno == 1 || global.bmenuno == 3 || global.bmenuno == 11 || global.bmenuno == 12 || global.bmenuno == 13)
69
{
70
    if (global.myfight == 0)
71
    {
72
        draw_sprite(spr_heart, 0, xx + 55, yy + 385 + (global.bmenucoord[global.bmenuno][global.charturn] * 30));
73
        
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
74
        namewidthb[0] = string_width(string_hash_to_newline(global.monstername[0]));
75
        namewidthb[1] = string_width(string_hash_to_newline(global.monstername[1]));
76
        namewidthb[2] = string_width(string_hash_to_newline(global.monstername[2]));
77
        var namewidthmax = 0;
78
        for (i = 0; i < 3; i++)
79
        {
80
            if (namewidthb[i] > namewidthmax)
81
                namewidthmax = namewidthb[i];
82
        }
83
        for (i = 0; i < 3; i += 1)
84
        {
85
            with (global.monsterinstance[global.bmenucoord[global.bmenuno][global.charturn]])
86
            {
87
                if (flash == 0)
88
                    fsiner = 0;
89
                flash = 1;
90
                becomeflash = 1;
91
            }
92
            if (global.monster[i] == 1)
93
            {
94
                draw_set_color(c_white);
95
                mercydraw = 0;
96
                tireddraw = 0;
97
                mnamecolor1 = 16777215;
98
                mnamecolor2 = 16777215;
99
                aqcolor = merge_color(c_aqua, c_blue, 0.3);
100
                if (global.monsterstatus[i] == 1)
101
                    tireddraw = 1;
102
                if (global.mercymod[i] >= global.mercymax[i])
103
                    mercydraw = 1;
104
                namewidth = string_width(string_hash_to_newline(global.monstername[i]));
105
                if (tireddraw == 1)
106
                {
107
                    if (global.encounterno != 31)
108
                    {
109
                        draw_set_color(aqcolor);
110
                        mnamecolor1 = aqcolor;
111
                        mnamecolor2 = aqcolor;
112
                    }
113
                    draw_sprite(spr_tiredmark, 0, xx + 80 + namewidth + 40, yy + 385 + (i * 30));
114
                }
115
                if (mercydraw == 1)
116
                {
117
                    draw_set_color(c_yellow);
118
                    mnamecolor1 = 65535;
119
                    if (tireddraw == 0)
120
                        mnamecolor2 = 65535;
121
                    if (hidemercy == 0)
122
                        draw_sprite(spr_sparestar, 0, xx + 80 + namewidth + 20, yy + 385 + (i * 30));
123
                }
124
                draw_text_colour(xx + 80, yy + 375 + (i * 30), string_hash_to_newline(global.monstername[i]), mnamecolor1, mnamecolor2, mnamecolor2, mnamecolor1, 1);
125
                var __drawstatus = 0;
126
                if (global.bmenuno == 13)
127
                    __drawstatus = 1;
128
                if (__drawstatus == 0)
129
                {
130
                    draw_set_color(c_gray);
131
                    if (global.lang != "ja")
132
                        draw_text(xx + 80 + namewidth + 60, yy + 375 + (i * 30), string_hash_to_newline(global.monstercomment[i]));
133
                    else if ((80 + namewidth + 60 + (string_width(global.monstercomment[i]) / 2)) < 415)
134
                        draw_text_transformed(xx + 80 + namewidth + 60, yy + 375 + (i * 30), string_hash_to_newline(global.monstercomment[i]), 0.5, 1, 0);
135
                    draw_set_color(c_maroon);
136
                    d_rectangle(xx + 420, yy + 380 + (i * 30), xx + 500, yy + 380 + (i * 30) + 15, false);
137
                    draw_set_color(c_lime);
138
                    d_rectangle(xx + 420, yy + 380 + (i * 30), xx + 420 + ((global.monsterhp[i] / global.monstermaxhp[i]) * 80), yy + 380 + (i * 30) + 15, false);
139
                    draw_set_color(c_white);
140
                    draw_text_transformed(xx + 424, yy + 364, stringsetloc(
HP
"HP", "obj_battlecontroller_slash_Draw_0_gml_173_0"
), 1, 0.5, 0);
141
                    draw_text_transformed(xx + 424, yy + 380 + (i * 30), string(ceil((global.monsterhp[i] / global.monstermaxhp[i]) * 100)) + "%", 1, 0.5, 0);
142
                }
143
                else
144
                {
145
                    var __actname = stringsetloc(
Standard
"Standard", "obj_battlecontroller_slash_Draw_0_gml_172_0"
);
146
                    var __plainactname = __actname;
147
                    if (global.char[global.charturn] == 2)
148
                        __actname = global.actnamesus[i][global.bmenucoord[2][global.charturn]];
149
                    if (global.char[global.charturn] == 3)
150
                        __actname = global.actnameral[i][global.bmenucoord[2][global.charturn]];
151
                    if (global.char[global.charturn] == 4)
152
                        __actname = global.actnamenoe[i][global.bmenucoord[2][global.charturn]];
153
                    if (__actname == "S-Action")
154
                        __actname = __plainactname;
155
                    if (__actname == "R-Action")
156
                        __actname = __plainactname;
157
                    if (__actname == "N-Action")
158
                        __actname = __plainactname;
159
                    draw_set_color(hpcolorsoft[global.char[global.charturn] - 1]);
160
                    draw_text_width(xx + 80 + namewidthmax + 60, yy + 375 + (i * 30), string_hash_to_newline(__actname), 514 - (80 + namewidthmax + 60));
161
                }
162
                mercyamt = global.mercymod[i];
163
                if (mercyamt >= 100)
164
                    mercyamt = 100;
165
                if (hidemercy == 0)
166
                {
167
                    var mercypercent = round(global.mercymod[i]);
168
                    if (mercypercent > 100)
169
                        mercypercent = 100;
170
                    draw_set_color(merge_color(c_orange, c_red, 0.5));
171
                    d_rectangle(xx + 520, yy + 380 + (i * 30), xx + 600, yy + 380 + (i * 30) + 15, false);
172
                    draw_set_color(c_yellow);
173
                    if (mercyamt > 0 && cantspare[i] == 0)
174
                        d_rectangle(xx + 520, yy + 380 + (i * 30), xx + 520 + (mercypercent * 0.8), yy + 380 + (i * 30) + 15, false);
175
                    draw_set_color(c_white);
176
                    var mercywidth = 1;
177
                    if (global.lang == "ja")
178
                        mercywidth = 0.5;
179
                    draw_text_transformed(xx + 524, yy + 364, stringsetloc(
MERCY
"MERCY", "obj_battlecontroller_slash_Draw_0_gml_208_0"
), mercywidth, 0.5, 0);
180
                    draw_set_color(c_maroon);
181
                    if (cantspare[i] == 0)
182
                        draw_text_transformed(xx + 524, yy + 380 + (i * 30), string(mercypercent) + "%", 1, 0.5, 0);
183
                    if (cantspare[i] == 1)
184
                    {
185
                        d_line_width_color((xx + 520) - 1, yy + 380 + (i * 30), xx + 600, yy + 380 + (i * 30) + 15, 2, 128, 128);
186
                        d_line_width_color((xx + 520) - 1, yy + 380 + (i * 30) + 15, xx + 600, yy + 380 + (i * 30), 2, 128, 128);
187
                    }
188
                }
189
            }
190
        }
191
    }
192
}
193
if (global.bmenuno == 2 && global.myfight == 0 && global.flag[34 disable_monster_acts] == 1)
194
{
195
    thischar = global.char[global.charturn];
196
    spellcoord = global.bmenucoord[2][global.charturn];
197
    page = 0;
198
    if (spellcoord > 5)
199
    {
200
        page = 1;
201
        spellcoord -= 6;
202
    }
203
    icx = 10;
204
    icy = 385;
205
    if (spellcoord == 1 || spellcoord == 3 || spellcoord == 5)
206
        icx = 230;
207
    if (spellcoord > 1 && spellcoord < 4)
208
        icy = 415;
209
    if (spellcoord > 3)
210
        icy = 445;
211
    draw_sprite(spr_heart, 0, xx + icx, yy + icy);
212
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
213
    for (i = 0; i < 3; i += 1)
214
    {
215
        var currentspell = global.spell[thischar][(page * 6) + (i * 2)];
216
        draw_set_color(c_white);
217
        if (global.tension < global.spellcost[thischar][(page * 6) + (i * 2)])
218
        {
219
            draw_set_color(c_gray);
220
        }
221
        else if (currentspell == 3 || currentspell == 8)
222
        {
223
            pacify_glow = 0;
224
            for (sglowi = 0; sglowi < 3; sglowi += 1)
225
            {
226
                if (global.monster[sglowi] == 1 && global.monsterstatus[sglowi] == 1)
227
                {
228
                    if (global.encounterno != 31)
229
                        pacify_glow = 1;
230
                }
231
            }
232
            if (pacify_glow == 1)
233
                draw_set_color(merge_color(c_aqua, c_blue, 0.3));
234
        }
235
        draw_text(xx + 30, yy + 375 + (i * 30), string_hash_to_newline(global.spellnameb[thischar][(page * 6) + (i * 2)]));
236
        draw_set_color(c_white);
237
        if (global.tension < global.spellcost[thischar][(page * 6) + (i * 2) + 1])
238
            draw_set_color(c_gray);
239
        draw_text(xx + 260, yy + 375 + (i * 30), string_hash_to_newline(global.spellnameb[thischar][(page * 6) + (i * 2) + 1]));
240
    }
241
    draw_set_color(c_gray);
242
    draw_text(xx + spell_offset, yy + 375, string_hash_to_newline(global.spelldescb[thischar][(page * 6) + spellcoord]));
243
    thiscost = floor((global.spellcost[thischar][(page * 6) + spellcoord] / global.maxtension) * 100);
244
    draw_set_color(c_orange);
245
    draw_text(xx + spell_offset, yy + 440, string_hash_to_newline(string(thiscost) + "% TP"));
246
}
247
if (global.bmenuno == 2 && global.myfight == 0 && global.flag[34 disable_monster_acts] == 0)
248
{
249
    thischar = global.charturn;
250
    spellcoord = global.bmenucoord[2][global.charturn];
251
    page = 0;
252
    if (spellcoord > 5)
253
    {
254
        page = 1;
255
        spellcoord -= 6;
256
    }
257
    icx = 10;
258
    icy = 385;
259
    if (spellcoord == 1 || spellcoord == 3 || spellcoord == 5)
260
        icx = 230;
261
    if (spellcoord > 1 && spellcoord < 4)
262
        icy = 415;
263
    if (spellcoord > 3)
264
        icy = 445;
265
    draw_sprite(spr_heart, 0, xx + icx, yy + icy);
266
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
267
    for (i = 0; i < 3; i += 1)
268
    {
269
        var __n = 0;
270
        var __isact = 0;
271
        repeat (2)
272
        {
273
            draw_set_color(c_white);
274
            if (global.battlespellspecial[thischar][(page * 6) + (i * 2) + __n] >= 1)
275
                draw_set_color(hpcolorsoft[global.char[thischar] - 1]);
276
            var _cant = 0;
277
            var _noitems = true;
278
            for (iii = 0; iii < 12; iii += 1)
279
            {
280
                if (tempitem[iii][global.charturn] != 0)
281
                    _noitems = false;
282
            }
283
            if (i_ex(obj_pink_enemy) && global.battlespellname[thischar][(page * 6) + (i * 2) + __n] == global.actnamesus[obj_pink_enemy.myself][2] && _noitems == true)
284
                _cant = 1;
285
            if (i_ex(obj_flowery_enemy) && global.battlespellcost[thischar][(page * 6) + (i * 2) + __n] == 125 && disablesusieralseiattack)
286
                _cant = 1;
287
            var _spell_id = (page * 6) + (i * 2) + __n;
288
            if (global.tension < global.battlespellcost[thischar][(page * 6) + (i * 2) + __n] || _cant == 1)
289
            {
290
                draw_set_color(c_gray);
291
            }
292
            else if (global.battlespell[thischar][_spell_id] == 3 || global.battlespell[thischar][_spell_id] == 8 || global.battlespell[thischar][_spell_id] == 13)
293
            {
294
                pacify_glow = 0;
295
                for (sglowi = 0; sglowi < 3; sglowi += 1)
296
                {
297
                    if (global.monster[sglowi] == 1 && global.monsterstatus[sglowi] == 1)
298
                    {
299
                        if (global.encounterno != 31)
300
                            pacify_glow = 1;
301
                    }
302
                }
303
                if (pacify_glow == 1)
304
                    draw_set_color(merge_color(c_aqua, c_blue, 0.3));
305
            }
306
            draw_text(xx + 30 + (__n * 230), yy + 375 + (i * 30), string_hash_to_newline(global.battlespellname[thischar][(page * 6) + (i * 2) + __n]));
307
            __n++;
308
        }
309
    }
310
    thiscost = floor((global.battlespellcost[thischar][(page * 6) + spellcoord] / global.maxtension) * 100);
311
    if (i_ex(obj_flowery_enemy) && thiscost == 50 && disablesusieralseiattack)
312
    {
313
    }
314
    else
315
    {
316
        draw_set_color(c_gray);
317
        draw_text(xx + spell_offset, yy + 375, string_hash_to_newline(global.battlespelldesc[thischar][(page * 6) + spellcoord]));
318
        draw_set_color(c_orange);
319
        if (thiscost > 0)
320
            draw_text(xx + spell_offset, yy + 440, string_hash_to_newline(string(thiscost) + "% TP"));
321
    }
322
}
323
if (global.bmenuno == 4 && global.myfight == 0)
324
{
325
    itemcoord = global.bmenucoord[4][global.charturn];
326
    page = 0;
327
    if (itemcoord > 5)
328
    {
329
        page = 1;
330
        itemcoord -= 6;
331
    }
332
    icx = 10;
333
    icy = 385;
334
    if (itemcoord == 1 || itemcoord == 3 || itemcoord == 5)
335
        icx = langopt(230, 240);
336
    if (itemcoord > 1 && itemcoord < 4)
337
        icy = 415;
338
    if (itemcoord > 3)
339
        icy = 445;
340
    draw_sprite(spr_heart, 0, xx + icx, yy + icy);
341
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
342
    for (i = 0; i < 3; i += 1)
343
    {
344
        var s1 = string_hash_to_newline(tempitemnameb[(page * 6) + (i * 2)][global.charturn]);
345
        var s2 = string_hash_to_newline(tempitemnameb[(page * 6) + (i * 2) + 1][global.charturn]);
346
        var s1_width = string_width(s1);
347
        var s2_width = string_width(s2);
348
        var s1_xscale = min(1, 200 / s1_width);
349
        var s2_xscale = min(1, 200 / s2_width);
350
        draw_set_color(c_white);
351
        draw_text_transformed(xx + 30, yy + 375 + (i * 30), s1, s1_xscale, 1, 0);
352
        draw_text_transformed(xx + 260, yy + 375 + (i * 30), s2, s2_xscale, 1, 0);
353
    }
354
    if (page == 0 && global.item[6] != 0)
355
        draw_sprite(spr_morearrow, 0, xx + 470, yy + 445 + (sin(s_siner / 10) * 2));
356
    if (page == 1)
357
        draw_sprite_ext(spr_morearrow, 0, xx + 470, (yy + 395) - (sin(s_siner / 10) * 2), 1, -1, 0, c_white, 1);
358
    draw_set_color(c_gray);
359
    draw_text(xx + spell_offset, yy + 375, string_hash_to_newline(tempitemdescb[(page * 6) + itemcoord][global.charturn]));
360
}
361
if (global.bmenuno == 9 && global.myfight == 0)
362
{
363
    actcoord = global.bmenucoord[9][global.charturn];
364
    for (__acti = 0; __acti < 6; __acti++)
365
    {
366
        canact[__acti] = 0;
367
        if (global.char[global.charturn] == 1)
368
        {
369
            canact[__acti] = global.canact[thisenemy][__acti];
370
            acttpcost[__acti] = global.actcost[thisenemy][__acti];
371
            actsimul[__acti] = global.actsimul[thisenemy][__acti];
372
            actname[__acti] = global.actname[thisenemy][__acti];
373
            actdesc[__acti] = global.actdesc[thisenemy][__acti];
374
        }
375
        if (global.char[global.charturn] == 2)
376
        {
377
            canact[__acti] = global.canactsus[thisenemy][__acti];
378
            acttpcost[__acti] = global.actcostsus[thisenemy][__acti];
379
            actsimul[__acti] = global.actsimulsus[thisenemy][__acti];
380
            actname[__acti] = global.actnamesus[thisenemy][__acti];
381
            actdesc[__acti] = global.actdescsus[thisenemy][__acti];
382
        }
383
        if (global.char[global.charturn] == 3)
384
        {
385
            canact[__acti] = global.canactral[thisenemy][__acti];
386
            acttpcost[__acti] = global.actcostral[thisenemy][__acti];
387
            actsimul[__acti] = global.actsimulral[thisenemy][__acti];
388
            actname[__acti] = global.actnameral[thisenemy][__acti];
389
            actdesc[__acti] = global.actdescral[thisenemy][__acti];
390
        }
391
        if (global.char[global.charturn] == 4)
392
        {
393
            canact[__acti] = global.canactnoe[thisenemy][__acti];
394
            acttpcost[__acti] = global.actcostnoe[thisenemy][__acti];
395
            actsimul[__acti] = global.actsimulnoe[thisenemy][__acti];
396
            actname[__acti] = global.actnamenoe[thisenemy][__acti];
397
            actdesc[__acti] = global.actdescnoe[thisenemy][__acti];
398
        }
399
    }
400
    page = 0;
401
    icx = 10;
402
    icy = 385;
403
    if (actcoord == 1 || actcoord == 3 || actcoord == 5)
404
        icx = 230;
405
    if (actcoord > 1 && actcoord < 4)
406
        icy = 415;
407
    if (actcoord > 3)
408
        icy = 445;
409
    draw_sprite(spr_heart, 0, xx + icx, yy + icy);
410
    
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
411
    for (i = 0; i < 6; i += 1)
412
    {
413
        cant = 0;
414
        chartime = 0;
415
        if (global.char[global.charturn] == 1)
416
            chartime = global.actactor[global.bmenucoord[11][global.charturn]][i];
417
        charoffset = 0;
418
        xoffset = 0;
419
        if (i == 1 || i == 3 || i == 5)
420
            xoffset = 230;
421
        yoffset = 0;
422
        if (i == 2 || i == 3)
423
            yoffset = 30;
424
        if (i == 4 || i == 5)
425
            yoffset = 60;
426
        drawsus = 0;
427
        drawral = 0;
428
        drawnoe = 0;
429
        susblend = 16777215;
430
        ralblend = 16777215;
431
        noeblend = 16777215;
432
        if (chartime == 2 || chartime == 4)
433
        {
434
            drawsus = 1;
435
            if (havechar[1] == 0 || global.hp[2] <= 0)
436
            {
437
                susblend = 8421504;
438
                cant = 1;
439
            }
440
            charoffset = 30;
441
        }
442
        if (chartime == 3 || chartime == 4)
443
        {
444
            drawral = 1;
445
            if (havechar[2] == 0 || global.hp[3] <= 0)
446
            {
447
                ralblend = 8421504;
448
                cant = 1;
449
            }
450
            charoffset = 30;
451
        }
452
        if (chartime == 5)
453
        {
454
            drawnoe = 1;
455
            if (havechar[3] == 0 || global.hp[4] <= 0)
456
            {
457
                noeblend = 8421504;
458
                cant = 1;
459
            }
460
            charoffset = 30;
461
        }
462
        if (global.tension < acttpcost[i])
463
            cant = 1;
464
        if (chartime == 4)
465
            charoffset *= 2;
466
        draw_set_color(c_white);
467
        if (cant == 1)
468
            draw_set_color(c_gray);
469
        if (chartime == 2)
470
            draw_sprite_ext(spr_headsusie, 0, xx + 30 + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
471
        if (chartime == 3)
472
            draw_sprite_ext(spr_headralsei, 0, xx + 30 + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
473
        if (chartime == 4)
474
        {
475
            draw_sprite_ext(spr_headsusie, 0, ((xx + 30) - 6) + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
476
            draw_sprite_ext(spr_headralsei, 0, ((xx + 60) - 6) + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
477
        }
478
        if (chartime == 5)
479
            draw_sprite_ext(spr_headnoelle, 0, xx + 30 + xoffset, yy + 375 + yoffset, 1, 1, 0, noeblend, 1);
480
        var s1 = string_hash_to_newline(actname[i]);
481
        var s1_width = max(1, string_width(s1));
482
        var s1_xscale = (206 - charoffset) / s1_width;
483
        if (s1_xscale > 1)
484
            s1_xscale = 1;
485
        if (s1_xscale < 0.5)
486
            s1_xscale = 0.5;
487
        if (global.chapter == 5 && i_ex(obj_floradinn_enemy) && obj_floradinn_enemy.flowery_arena == true && i == 0 && cant == 0)
488
            draw_set_color(c_lime);
489
        if (global.chapter == 5 && i_ex(obj_pink_enemy) && obj_pink_enemy.dateactdisabled == true && i == 1)
490
            draw_set_color(c_gray);
491
        draw_text_transformed(xx + 30 + charoffset + xoffset, yy + 375 + yoffset, string_hash_to_newline(actname[i]), s1_xscale, 1, 0);
492
    }
493
    draw_set_color(c_gray);
494
    if (global.chapter == 5 && i_ex(obj_pink_enemy) && obj_pink_enemy.dateactdisabled == true && global.bmenucoord[9][global.charturn] == 1)
495
    {
496
    }
497
    else
498
    {
499
        draw_text(xx + 500, yy + 375, string_hash_to_newline(actdesc[actcoord]));
500
    }
501
    var _override = false;
502
    with (obj_blue_enemy)
503
    {
504
        if (global.encounterno == 222)
505
        {
506
            if (global.bmenucoord[11][global.charturn] == 0 && other.actcoord == 0 && global.actcost[myself][0] == 2497.5)
507
                _override = true;
508
        }
509
    }
510
    with (obj_yellow_enemy)
511
    {
512
        if (global.encounterno == 222)
513
        {
514
            if (global.bmenucoord[11][global.charturn] == 1 && other.actcoord == 1 && global.actcost[myself][1] == 2497.5)
515
                _override = true;
516
        }
517
    }
518
    if (global.bmenucoord[11][global.charturn] == 1)
519
    {
520
        with (obj_yellow_enemy)
521
        {
522
            var ev_offset = 0;
523
            if (evidence_obtained[0])
524
            {
525
                draw_sprite_ext(spr_yellow_evidence, 0, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 45, c_gray, 1);
526
                draw_sprite_ext(spr_yellow_evidence, 1, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 0, c_gray, 1);
527
                ev_offset += 60;
528
            }
529
            if (evidence_obtained[4])
530
            {
531
                draw_sprite_ext(spr_yellow_evidence, 0, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 45, c_gray, 1);
532
                draw_sprite_ext(spr_yellow_evidence, 5, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 0, c_gray, 1);
533
                ev_offset += 60;
534
            }
535
            if (evidence_obtained[2])
536
            {
537
                draw_sprite_ext(spr_yellow_evidence, 0, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 45, c_gray, 1);
538
                draw_sprite_ext(spr_yellow_evidence, 3, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 0, c_gray, 1);
539
                ev_offset += 60;
540
            }
541
            if (evidence_obtained[1])
542
            {
543
                draw_sprite_ext(spr_yellow_evidence, 0, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 45, c_gray, 1);
544
                draw_sprite_ext(spr_yellow_evidence, 2, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 0, c_gray, 1);
545
                ev_offset += 60;
546
            }
547
            if (evidence_obtained[5])
548
            {
549
                draw_sprite_ext(spr_yellow_evidence, 0, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 45, c_gray, 1);
550
                draw_sprite_ext(spr_yellow_evidence, 6, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 0, c_gray, 1);
551
                ev_offset += 60;
552
            }
553
            if (evidence_obtained[3])
554
            {
555
                draw_sprite_ext(spr_yellow_evidence, 0, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 45, c_gray, 1);
556
                draw_sprite_ext(spr_yellow_evidence, 4, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 0, c_gray, 1);
557
                ev_offset += 60;
558
            }
559
            if (evidence_obtained[6])
560
            {
561
                draw_sprite_ext(spr_yellow_evidence, 0, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 45, c_gray, 1);
562
                draw_sprite_ext(spr_yellow_evidence, 7, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 0, c_gray, 1);
563
                ev_offset += 60;
564
            }
565
            if (
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(2))
566
            {
567
                draw_sprite_ext(spr_yellow_evidence, 0, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 45, c_gray, 1);
568
                draw_sprite_ext(spr_yellow_evidence, 9, camerax() + 36 + ev_offset, cameray() + 440 + (sin((global.time * 0.1) + (ev_offset / 60)) * 2), 1, 1, 0, c_gray, 1);
569
            }
570
        }
571
    }
572
    if (global.tensionselect > 0 || _override)
573
    {
574
        thiscost = round((acttpcost[actcoord] / global.maxtension) * 100);
575
        draw_set_color(c_orange);
576
        if (global.chapter == 5 && i_ex(obj_pink_enemy) && obj_pink_enemy.dateactdisabled == true && global.bmenucoord[9][global.charturn] == 1)
577
            _override = true;
578
        if (!_override)
579
            draw_text(xx + 500, yy + 440, string_hash_to_newline(string(thiscost) + "% TP"));
580
    }
581
    with (global.monsterinstance[global.bmenucoord[11][global.charturn]])
582
    {
583
        if (flash == 0)
584
            fsiner = 0;
585
        flash = 1;
586
        becomeflash = 1;
587
    }
588
}
589
if (global.bmenuno == 7 || global.bmenuno == 8)
590
{
591
    if (global.myfight == 0)
592
    {
593
        draw_sprite(spr_heart, 0, xx + 55, yy + 385 + (global.bmenucoord[global.bmenuno][global.charturn] * 30));
594
        
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
595
        for (i = 0; i < 3; i += 1)
596
        {
597
            if (global.char[i] != 0)
598
            {
599
                with (global.charinstance[global.bmenucoord[global.bmenuno][global.charturn]])
600
                {
601
                    if (flash == 0)
602
                        fsiner = 0;
603
                    flash = 1;
604
                    becomeflash = 1;
605
                }
606
                draw_set_color(c_white);
607
                draw_text(xx + 80, yy + 375 + (i * 30), string_hash_to_newline(global.charname[global.char[i]]));
608
                draw_set_color(c_maroon);
609
                d_rectangle(xx + 400, yy + 380 + (i * 30), xx + 500, yy + 380 + (i * 30) + 15, false);
610
                draw_set_color(c_lime);
611
                d_rectangle(xx + 400, yy + 380 + (i * 30), xx + 400 + ((global.hp[global.char[i]] / global.maxhp[global.char[i]]) * 100), yy + 380 + (i * 30) + 15, false);
612
            }
613
        }
614
    }
615
}
616
if (
scr_debug
scr_debug

function
scr_debug()
{ return global.debug == 1; }
())
617
{
618
    if (sunkus_kb_check(ord("A")))
619
    {
620
        if (global.flag[34 disable_monster_acts] == 0 && global.myfight == 0)
621
        {
622
            if (global.bmenuno == 11 || global.bmenuno == 13 || global.bmenuno == 2)
623
            {
624
                var remfont = draw_get_font();
625
                for (i = 0; i < 3; i++)
626
                {
627
                    var __y = 0;
628
                    var __x = 0;
629
                    var __offsetx = 0;
630
                    var __offsety = 0;
631
                    if (global.monster[i])
632
                    {
633
                        with (global.monsterinstance[i])
634
                        {
635
                            __offsetx = sactionboxx;
636
                            __offsety = sactionboxy;
637
                        }
638
                        
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("main");
639
                        if (
scr_havechar
scr_havechar

function
scr_havechar(arg0)
{ var checker = arg0; if (checker == "susie" || checker == "su" || checker == "s") checker = 2; if (checker == "ralsei" || checker == "ra" || checker == "r") checker = 3; if (checker == "noelle" || checker == "no" || checker == "n") checker = 4; _rreturn = 0; if (global.char[0] == checker) _rreturn = 1; if (global.char[1] == checker) _rreturn = 1; if (global.char[2] == checker) _rreturn = 1; return _rreturn; }
(2))
640
                        {
641
                            for (var __n = 0; __n < 3; __n++)
642
                            {
643
                                draw_set_color(hpcolorsoft[1]);
644
                                if (global.canactsus[i][__n] == 1)
645
                                {
646
                                    var __actnamestring = global.actnamesus[i][__n];
647
                                    var __actnamestringwidth = string_width(__actnamestring);
648
                                    if ((__actnamestringwidth - 45) > __x)
649
                                        __x = __actnamestringwidth - 45;
650
                                    if (__actnamestring != "S-Action")
651
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "S-Action - " + __actnamestring);
652
                                    else
653
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, __actnamestring);
654
                                    __y += 18;
655
                                }
656
                            }
657
                        }
658
                        if (
scr_havechar
scr_havechar

function
scr_havechar(arg0)
{ var checker = arg0; if (checker == "susie" || checker == "su" || checker == "s") checker = 2; if (checker == "ralsei" || checker == "ra" || checker == "r") checker = 3; if (checker == "noelle" || checker == "no" || checker == "n") checker = 4; _rreturn = 0; if (global.char[0] == checker) _rreturn = 1; if (global.char[1] == checker) _rreturn = 1; if (global.char[2] == checker) _rreturn = 1; return _rreturn; }
(3))
659
                        {
660
                            for (var __n = 0; __n < 3; __n++)
661
                            {
662
                                draw_set_color(hpcolorsoft[2]);
663
                                if (global.canactral[i][__n] == 1)
664
                                {
665
                                    var __actnamestring = global.actnameral[i][__n];
666
                                    var __actnamestringwidth = string_width(__actnamestring);
667
                                    if ((__actnamestringwidth - 45) > __x)
668
                                        __x = __actnamestringwidth - 45;
669
                                    if (global.actnameral[i][__n] != "R-Action")
670
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "R-Action - " + global.actnameral[i][__n]);
671
                                    else
672
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "R-Action - Standard");
673
                                    __y += 18;
674
                                }
675
                            }
676
                        }
677
                        if (
scr_havechar
scr_havechar

function
scr_havechar(arg0)
{ var checker = arg0; if (checker == "susie" || checker == "su" || checker == "s") checker = 2; if (checker == "ralsei" || checker == "ra" || checker == "r") checker = 3; if (checker == "noelle" || checker == "no" || checker == "n") checker = 4; _rreturn = 0; if (global.char[0] == checker) _rreturn = 1; if (global.char[1] == checker) _rreturn = 1; if (global.char[2] == checker) _rreturn = 1; return _rreturn; }
(4))
678
                        {
679
                            for (var __n = 0; __n < 3; __n++)
680
                            {
681
                                draw_set_color(hpcolorsoft[3]);
682
                                if (global.canactnoe[i][__n] == 1)
683
                                {
684
                                    var __actnamestring = global.actnamenoe[i][__n];
685
                                    var __actnamestringwidth = string_width(__actnamestring);
686
                                    if ((__actnamestringwidth - 45) > __x)
687
                                        __x = __actnamestringwidth - 45;
688
                                    if (global.actnamenoe[i][__n] != "N-Action")
689
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "N-Action - " + global.actnamenoe[i][__n]);
690
                                    else
691
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "N-Action - Standard");
692
                                    __y += 18;
693
                                }
694
                            }
695
                        }
696
                        draw_set_color(c_fuchsia);
697
                        if (__y > 0)
698
                            d_rectangle((global.monsterx[i] - 210) + __offsetx, global.monstery[i] + __offsety, (global.monsterx[i] - 80) + __x + __offsetx, global.monstery[i] + __y + __offsety, true);
699
                    }
700
                }
701
                draw_set_font(remfont);
702
            }
703
        }
704
    }
705
}
706
if (global.chapter == 5 && i_ex(obj_netskie_enemy) && obj_netskie_enemy.draw_kitsune_tail == true && i_ex(obj_writer) && obj_writer.reachedend == true)
707
{
708
    draw_sprite_ext(spr_kitsune_tail_check2, obj_netskie_enemy.draw_kitsune_index, camerax() + 552, cameray() + 368, 2, 2, 0, c_white, 1);
709
    with (obj_netskie_enemy)
710
        draw_kitsune_index += (1/3);
711
}
712
if (global.myfight == 0 && global.chapter == 5 && instance_exists(obj_flowery_enemy) && (global.bmenuno == 1 || global.bmenuno == 3 || global.bmenuno == 11 || global.bmenuno == 12 || global.bmenuno == 13))
713
{
714
    var __y = -5;
715
    var _color = merge_color(c_orange, c_red, 0.5);
716
    var mercywidth = 1;
717
    if (global.lang == "ja")
718
        mercywidth = 0.5;
719
    if (obj_flowery_enemy.phase == 3)
720
    {
721
        draw_set_color(c_gray);
722
        draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 80, __view_get(e__VW.YView, 0) + 407, stringsetloc(
Aqua
"Aqua", "obj_battlecontroller_slash_Draw_0_gml_787_0"
), 9999, 9999, 1, 1, 0);
723
        draw_healthbar(__view_get(e__VW.XView, 0) + 520, __view_get(e__VW.YView, 0) + 418 + __y, __view_get(e__VW.XView, 0) + 600, __view_get(e__VW.YView, 0) + 433 + __y, obj_flowery_enemy.aqua_mercy, _color, c_yellow, c_yellow, 0, 1, 0);
724
        draw_set_color(c_white);
725
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 397, stringsetloc(
MERCY
"MERCY", "obj_battlecontroller_slash_Draw_0_gml_208_0"
), mercywidth, 0.5, 0);
726
        draw_set_color(c_maroon);
727
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 413, string(obj_flowery_enemy.aqua_mercy) + "%", 1, 0.5, 0);
728
        draw_set_color(c_gray);
729
        draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 80, __view_get(e__VW.YView, 0) + 407 + 32, stringsetloc(
Seth
"Seth", "obj_battlecontroller_slash_Draw_0_gml_795_0"
), 9999, 9999, 1, 1, 0);
730
        draw_healthbar(__view_get(e__VW.XView, 0) + 520, __view_get(e__VW.YView, 0) + 418 + 32 + __y, __view_get(e__VW.XView, 0) + 600, __view_get(e__VW.YView, 0) + 433 + 32 + __y, obj_flowery_enemy.purple_mercy, _color, c_yellow, c_yellow, 0, 1, 0);
731
        draw_set_color(c_white);
732
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 397 + 32, stringsetloc(
MERCY
"MERCY", "obj_battlecontroller_slash_Draw_0_gml_208_0"
), mercywidth, 0.5, 0);
733
        draw_set_color(c_maroon);
734
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 413 + 32, string(obj_flowery_enemy.purple_mercy) + "%", 1, 0.5, 0);
735
    }
736
    if (obj_flowery_enemy.phase == 4)
737
    {
738
        draw_set_color(c_gray);
739
        draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 80, __view_get(e__VW.YView, 0) + 407, stringsetloc(
Orange
"Orange", "obj_battlecontroller_slash_Draw_0_gml_805_0"
), 9999, 9999, 1, 1, 0);
740
        draw_healthbar(__view_get(e__VW.XView, 0) + 520, __view_get(e__VW.YView, 0) + 418 + __y, __view_get(e__VW.XView, 0) + 600, __view_get(e__VW.YView, 0) + 433 + __y, obj_flowery_enemy.orange_mercy, _color, c_yellow, c_yellow, 0, 1, 0);
741
        draw_set_color(c_white);
742
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 397, stringsetloc(
MERCY
"MERCY", "obj_battlecontroller_slash_Draw_0_gml_208_0"
), mercywidth, 0.5, 0);
743
        draw_set_color(c_maroon);
744
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 413, string(obj_flowery_enemy.orange_mercy) + "%", 1, 0.5, 0);
745
        draw_set_color(c_gray);
746
        draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 80, __view_get(e__VW.YView, 0) + 407 + 32, stringsetloc(
Green
"Green", "obj_battlecontroller_slash_Draw_0_gml_813_0"
), 9999, 9999, 1, 1, 0);
747
        draw_healthbar(__view_get(e__VW.XView, 0) + 520, __view_get(e__VW.YView, 0) + 418 + 32 + __y, __view_get(e__VW.XView, 0) + 600, __view_get(e__VW.YView, 0) + 433 + 32 + __y, obj_flowery_enemy.green_mercy, _color, c_yellow, c_yellow, 0, 1, 0);
748
        draw_set_color(c_white);
749
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 397 + 32, stringsetloc(
MERCY
"MERCY", "obj_battlecontroller_slash_Draw_0_gml_208_0"
), mercywidth, 0.5, 0);
750
        draw_set_color(c_maroon);
751
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 413 + 32, string(obj_flowery_enemy.green_mercy) + "%", 1, 0.5, 0);
752
    }
753
    if (obj_flowery_enemy.phase == 5)
754
    {
755
        draw_set_color(c_gray);
756
        draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 80, __view_get(e__VW.YView, 0) + 407, stringsetloc(
Blue
"Blue", "obj_battlecontroller_slash_Draw_0_gml_823_0"
), 9999, 9999, 1, 1, 0);
757
        draw_healthbar(__view_get(e__VW.XView, 0) + 520, __view_get(e__VW.YView, 0) + 418 + __y, __view_get(e__VW.XView, 0) + 600, __view_get(e__VW.YView, 0) + 433 + __y, obj_flowery_enemy.blue_mercy, _color, c_yellow, c_yellow, 0, 1, 0);
758
        draw_set_color(c_white);
759
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 397, stringsetloc(
MERCY
"MERCY", "obj_battlecontroller_slash_Draw_0_gml_208_0"
), mercywidth, 0.5, 0);
760
        draw_set_color(c_maroon);
761
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 413, string(obj_flowery_enemy.blue_mercy) + "%", 1, 0.5, 0);
762
        draw_set_color(c_gray);
763
        draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 80, __view_get(e__VW.YView, 0) + 407 + 32, stringsetloc(
Yellow
"Yellow", "obj_battlecontroller_slash_Draw_0_gml_831_0"
), 9999, 9999, 1, 1, 0);
764
        draw_healthbar(__view_get(e__VW.XView, 0) + 520, __view_get(e__VW.YView, 0) + 418 + 32 + __y, __view_get(e__VW.XView, 0) + 600, __view_get(e__VW.YView, 0) + 433 + 32 + __y, obj_flowery_enemy.yellow_mercy, _color, c_yellow, c_yellow, 0, 1, 0);
765
        draw_set_color(c_white);
766
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 397 + 32, stringsetloc(
MERCY
"MERCY", "obj_battlecontroller_slash_Draw_0_gml_208_0"
), mercywidth, 0.5, 0);
767
        draw_set_color(c_maroon);
768
        draw_text_transformed(__view_get(e__VW.XView, 0) + 524, __view_get(e__VW.YView, 0) + 413 + 32, string(obj_flowery_enemy.yellow_mercy) + "%", 1, 0.5, 0);
769
    }
770
}
771
if (global.myfight == 0 && global.chapter == 2 && instance_exists(obj_queen_enemy) && (global.bmenuno == 1 || global.bmenuno == 3 || global.bmenuno == 11 || global.bmenuno == 12 || global.bmenuno == 13))
772
{
773
    if (i_ex(obj_berdlyplug_enemy))
774
    {
775
        draw_set_color(c_gray);
776
        draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 80, __view_get(e__VW.YView, 0) + 407, stringsetloc(
Berdly
"Berdly", "obj_battlecontroller_slash_Draw_0_gml_653_0"
), 9999, 9999, 1, 1, 0);
777
        draw_set_color(c_white);
778
        draw_healthbar(__view_get(e__VW.XView, 0) + 520, __view_get(e__VW.YView, 0) + 418, __view_get(e__VW.XView, 0) + 600, __view_get(e__VW.YView, 0) + 433, obj_queen_enemy.bardlymercy, c_gray, c_yellow, c_yellow, 0, 1, 0);
779
    }
780
    else
781
    {
782
        draw_set_color(c_gray);
783
        draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 80, __view_get(e__VW.YView, 0) + 407, stringsetloc(
Shield
"Shield", "obj_queen_enemy_slash_Draw_0_gml_67_0"
), 9999, 9999, 1, 1, 0);
784
        draw_set_color(c_white);
785
        draw_healthbar(__view_get(e__VW.XView, 0) + 520, __view_get(e__VW.YView, 0) + 418, __view_get(e__VW.XView, 0) + 600, __view_get(e__VW.YView, 0) + 433, (obj_queen_enemy.shieldacthp / obj_queen_enemy.shieldactmaxhp) * 10, c_gray, c_yellow, c_yellow, 0, 1, 0);
786
    }
787
    var xx2 = 0;
788
    if (global.charturn > 0 && global.bmenuno == 13)
789
        xx2 = 100;
790
    if (global.lang != "ja")
791
    {
792
        if (obj_queen_enemy.shieldhp > 1)
793
            draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 210 + xx2, __view_get(e__VW.YView, 0) + 376, stringsetloc(
(Protected)
"(Protected)", "obj_queen_enemy_slash_Draw_0_gml_78_0"
), 9999, 9999, 1, 1, 0);
794
        else
795
            draw_text_ext_transformed(__view_get(e__VW.XView, 0) + 210 + xx2, __view_get(e__VW.YView, 0) + 376, stringsetloc(
(Defenseless)
"(Defenseless)", "obj_queen_enemy_slash_Draw_0_gml_82_0"
), 9999, 9999, 1, 1, 0);
796
    }
797
}
798
799
enum e__VW
800
{
801
    XView,
802
    YView,
803
    WView,
804
    HView,
805
    Angle,
806
    HBorder,
807
    VBorder,
808
    HSpeed,
809
    VSpeed,
810
    Object,
811
    Visible,
812
    XPort,
813
    YPort,
814
    WPort,
815
    HPort,
816
    Camera,
817
    SurfaceID
818
}