Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_battlecontroller_Draw_0

(view raw script w/o annotations or w/e)
1
xx = __view_get(e__VW.XView, 0);
2
yy = __view_get(e__VW.YView, 0);
3
tpoff = (tp - tpy) + yy;
4
bpoff = -bp + bpy + yy;
5
var spell_offset = langopt(500, 496);
6
if (intro == 1)
7
{
8
    if (bp < (bpy - 1))
9
    {
10
        if ((bpy - bp) < 40)
11
            bp += round((bpy - bp) / 2.5);
12
        else
13
            bp += 30;
14
    }
15
    else
16
    {
17
        bp = bpy;
18
    }
19
    if (bp == bpy)
20
        intro = 0;
21
}
22
if (intro == 2)
23
{
24
    if (bp > 0)
25
    {
26
        if (round((bpy - bp) / 5) > 15)
27
            bp -= round((bpy - bp) / 2.5);
28
        else
29
            bp -= 30;
30
    }
31
    else
32
    {
33
        bp = 0;
34
    }
35
}
36
if (global.chapter == 4 && dancing_jackolantern_con > 0)
37
{
38
    dancing_jackolantern_timer++;
39
    dancing_jackolantern_index += (1/3);
40
    if ((global.turntimer > 0 && dancing_jackolantern_alpha > 0) || (i_ex(obj_ghosthouse_jackolantern_merciful) && obj_ghosthouse_jackolantern_merciful.end_con == 1))
41
    {
42
        dancing_jackolantern_alpha -= 0.1;
43
        if (dancing_jackolantern_alpha == 0 && obj_jackenstein_enemy.phaseturn >= 6)
44
            dancing_jackolantern_con = 2;
45
        if (dancing_jackolantern_alpha == 0 && obj_jackenstein_enemy.phaseturn >= 8)
46
            dancing_jackolantern_con = 3;
47
    }
48
    if (global.turntimer < 1 && dancing_jackolantern_alpha < 1)
49
        dancing_jackolantern_alpha += 0.1;
50
    var jackocount = 0;
51
    if (dancing_jackolantern_con == 1)
52
    {
53
        if (dancing_jackolantern_timer > 768)
54
            dancing_jackolantern_timer -= 128;
55
        repeat (6)
56
        {
57
            draw_sprite_ext(spr_dancing_lantern, dancing_jackolantern_index, (camerax() + camerawidth() + (jackocount * 128)) - dancing_jackolantern_timer, cameray() + 272, 2, 2, 0, c_white, dancing_jackolantern_alpha);
58
            jackocount++;
59
        }
60
    }
61
    if (dancing_jackolantern_con == 2)
62
    {
63
        if (dancing_jackolantern_timer > 711)
64
            dancing_jackolantern_timer -= 71;
65
        repeat (10)
66
        {
67
            draw_sprite_ext(spr_dancing_lantern, dancing_jackolantern_index, (camerax() + camerawidth() + (jackocount * 71)) - dancing_jackolantern_timer, cameray() + 272, 2, 2, 0, c_white, dancing_jackolantern_alpha);
68
            jackocount++;
69
        }
70
    }
71
    if (dancing_jackolantern_con == 3)
72
    {
73
        if (dancing_jackolantern_timer > 686)
74
            dancing_jackolantern_timer -= 46;
75
        repeat (15)
76
        {
77
            draw_sprite_ext(spr_dancing_lantern, dancing_jackolantern_index, (camerax() + camerawidth() + (jackocount * 46)) - dancing_jackolantern_timer, cameray() + 272, 2, 2, 0, c_white, dancing_jackolantern_alpha);
78
            jackocount++;
79
        }
80
    }
81
}
82
draw_set_color(c_black);
83
ossafe_fill_rectangle(xx - 10, 481 + yy, xx + 700, ((480 - bp) + yy) - 4, false);
84
draw_set_color(bcolor);
85
ossafe_fill_rectangle(xx - 10, (480 - bp - 3) + yy, xx + 700, (480 - bp - 2) + yy, false);
86
draw_set_color(bcolor);
87
ossafe_fill_rectangle(xx - 10, (480 - bp) + 34 + yy, xx + 700, (480 - bp) + 36 + yy, false);
88
scr_charbox
scr_charbox

function
scr_charbox()
{ 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; unleash_glow = 0; if (global.charturn == 0) { if (i_ex(obj_titan_enemy) && obj_titan_enemy.phase < 6 && global.tension >= 200 && obj_titan_enemy.unleashed == false) unleash_glow = 1; if (i_ex(obj_titan_spawn_enemy) && global.tension >= 160) unleash_glow = 1; if (i_ex(obj_jackenstein_enemy) && global.tension >= 150) unleash_glow = 1; } if (c == 2 || c == 3) { for (sglowi = 0; sglowi < 3; sglowi += 1) { var tensionamount = 40; if (c == 3) tensionamount = 80; 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 (disablesusieattack == 1 && global.charturn == 1) 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 (c == 0) { draw_sprite(
scr_84_get_sprite("spr_btact"), btc[1], xx + xchunk + 50 + icon_offset, (485 - bp) + yy);
if (unleash_glow == 1) draw_sprite_ext(
scr_84_get_sprite("spr_btact"), 2, xx + xchunk + 50 + icon_offset, (485 - bp) + yy, 1, 1, 0, c_white, 0.4 + (sin(global.time / 6) * 0.4));
} ...
();
89
if (global.bmenuno == 1 || global.bmenuno == 3 || global.bmenuno == 11 || global.bmenuno == 12 || global.bmenuno == 13)
90
{
91
    if (global.myfight == 0)
92
    {
93
        draw_sprite(spr_heart, 0, xx + 55, yy + 385 + (global.bmenucoord[global.bmenuno][global.charturn] * 30));
94
        
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");
95
        namewidthb[0] = string_width(string_hash_to_newline(global.monstername[0]));
96
        namewidthb[1] = string_width(string_hash_to_newline(global.monstername[1]));
97
        namewidthb[2] = string_width(string_hash_to_newline(global.monstername[2]));
98
        var namewidthmax = 0;
99
        for (i = 0; i < 3; i++)
100
        {
101
            if (namewidthb[i] > namewidthmax)
102
                namewidthmax = namewidthb[i];
103
        }
104
        for (i = 0; i < 3; i += 1)
105
        {
106
            with (global.monsterinstance[global.bmenucoord[global.bmenuno][global.charturn]])
107
            {
108
                if (flash == 0)
109
                    fsiner = 0;
110
                flash = 1;
111
                becomeflash = 1;
112
            }
113
            if (global.monster[i] == 1)
114
            {
115
                draw_set_color(c_white);
116
                mercydraw = 0;
117
                tireddraw = 0;
118
                mnamecolor1 = 16777215;
119
                mnamecolor2 = 16777215;
120
                aqcolor = merge_color(c_aqua, c_blue, 0.3);
121
                if (global.charturn == 2)
122
                {
123
                    var _aqcolor = merge_color(c_aqua, c_blue, 0.3);
124
                    aqcolor = merge_color(_aqcolor, c_white, 0.5 + (sin(t_siner / 4) * 0.5));
125
                }
126
                if (global.monsterstatus[i] == 1)
127
                    tireddraw = 1;
128
                if (global.mercymod[i] >= global.mercymax[i])
129
                    mercydraw = 1;
130
                namewidth = string_width(string_hash_to_newline(global.monstername[i]));
131
                if (tireddraw == 1)
132
                {
133
                    if (global.encounterno != 31)
134
                    {
135
                        draw_set_color(aqcolor);
136
                        mnamecolor1 = aqcolor;
137
                        mnamecolor2 = aqcolor;
138
                    }
139
                    draw_sprite(spr_tiredmark, 0, xx + 80 + namewidth + 40, yy + 385 + (i * 30));
140
                }
141
                if (mercydraw == 1)
142
                {
143
                    draw_set_color(c_yellow);
144
                    if (hidestar == 0)
145
                        mnamecolor1 = 65535;
146
                    if (tireddraw == 0 && hidestar == 0)
147
                        mnamecolor2 = 65535;
148
                    if (hidemercy == 0 && hidestar == 0)
149
                        draw_sprite(spr_sparestar, 0, xx + 80 + namewidth + 20, yy + 385 + (i * 30));
150
                }
151
                draw_text_colour(xx + 80, yy + 375 + (i * 30), string_hash_to_newline(global.monstername[i]), mnamecolor1, mnamecolor2, mnamecolor2, mnamecolor1, 1);
152
                var __drawstatus = 0;
153
                if (global.bmenuno == 13)
154
                    __drawstatus = 1;
155
                if (__drawstatus == 0)
156
                {
157
                    draw_set_color(c_gray);
158
                    if (global.lang != "ja")
159
                        draw_text(xx + 80 + namewidth + 60, yy + 375 + (i * 30), string_hash_to_newline(global.monstercomment[i]));
160
                    else if ((80 + namewidth + 60 + (string_width(global.monstercomment[i]) / 2)) < 415)
161
                        draw_text_transformed(xx + 80 + namewidth + 60, yy + 375 + (i * 30), string_hash_to_newline(global.monstercomment[i]), 0.5, 1, 0);
162
                    draw_set_color(c_maroon);
163
                    ossafe_fill_rectangle(xx + 420, yy + 380 + (i * 30), xx + 500, yy + 380 + (i * 30) + 15, false);
164
                    draw_set_color(c_lime);
165
                    ossafe_fill_rectangle(xx + 420, yy + 380 + (i * 30), xx + 420 + ((global.monsterhp[i] / global.monstermaxhp[i]) * 80), yy + 380 + (i * 30) + 15, false);
166
                    draw_set_color(c_white);
167
                    draw_text_transformed(xx + 424, yy + 364, stringsetloc(
HP
"HP", "obj_battlecontroller_slash_Draw_0_gml_173_0"
), 1, 0.5, 0);
168
                    draw_text_transformed(xx + 424, yy + 380 + (i * 30), string(ceil((global.monsterhp[i] / global.monstermaxhp[i]) * 100)) + "%", 1, 0.5, 0);
169
                }
170
                else
171
                {
172
                    var __actname = stringsetloc(
Standard
"Standard", "obj_battlecontroller_slash_Draw_0_gml_172_0"
);
173
                    var __plainactname = __actname;
174
                    if (global.char[global.charturn] == 2)
175
                        __actname = global.actnamesus[i][global.bmenucoord[2][global.charturn]];
176
                    if (global.char[global.charturn] == 3)
177
                        __actname = global.actnameral[i][global.bmenucoord[2][global.charturn]];
178
                    if (global.char[global.charturn] == 4)
179
                        __actname = global.actnamenoe[i][global.bmenucoord[2][global.charturn]];
180
                    if (__actname == "S-Action")
181
                        __actname = __plainactname;
182
                    if (__actname == "R-Action")
183
                        __actname = __plainactname;
184
                    if (__actname == "N-Action")
185
                        __actname = __plainactname;
186
                    draw_set_color(hpcolorsoft[global.char[global.charturn] - 1]);
187
                    draw_text_width(xx + 80 + namewidthmax + 60, yy + 375 + (i * 30), string_hash_to_newline(__actname), 514 - (80 + namewidthmax + 60));
188
                }
189
                mercyamt = global.mercymod[i];
190
                if (mercyamt >= 100)
191
                    mercyamt = 100;
192
                if (hidemercy == 0)
193
                {
194
                    var mercypercent = round((global.mercymod[i] / global.mercymax[i]) * 100);
195
                    if (mercypercent > 100)
196
                        mercypercent = 100;
197
                    draw_set_color(merge_color(c_orange, c_red, 0.5));
198
                    ossafe_fill_rectangle(xx + 520, yy + 380 + (i * 30), xx + 600, yy + 380 + (i * 30) + 15, false);
199
                    draw_set_color(c_yellow);
200
                    if (mercyamt > 0 && cantspare[i] == 0 && questionmercy[i] == 0)
201
                        ossafe_fill_rectangle(xx + 520, yy + 380 + (i * 30), xx + 520 + (mercypercent * 0.8), yy + 380 + (i * 30) + 15, false);
202
                    draw_set_color(c_white);
203
                    var mercywidth = 1;
204
                    if (global.lang == "ja")
205
                        mercywidth = 0.5;
206
                    draw_text_transformed(xx + 524, yy + 364, stringsetloc(
MERCY
"MERCY", "obj_battlecontroller_slash_Draw_0_gml_208_0"
), mercywidth, 0.5, 0);
207
                    draw_set_color(c_maroon);
208
                    if (cantspare[i] == 0 && questionmercy[i] == 0)
209
                        draw_text_transformed(xx + 524, yy + 380 + (i * 30), string(mercypercent) + "%", 1, 0.5, 0);
210
                    if (cantspare[i] == 1)
211
                    {
212
                        d_line_width_color((xx + 520) - 1, yy + 380 + (i * 30), xx + 600, yy + 380 + (i * 30) + 15, 2, 128, 128);
213
                        d_line_width_color((xx + 520) - 1, yy + 380 + (i * 30) + 15, xx + 600, yy + 380 + (i * 30), 2, 128, 128);
214
                    }
215
                    if (questionmercy[i] == 1)
216
                    {
217
                        draw_set_color(c_white);
218
                        draw_text_transformed(xx + 524 + 0, yy + 364 + 15, stringsetloc(
???
"???", "obj_battlecontroller_slash_Draw_0_gml_264_0"
), mercywidth, 0.5, 0);
219
                    }
220
                }
221
            }
222
        }
223
    }
224
}
225
if (global.bmenuno == 2 && global.myfight == 0 && global.flag[34 disable_monster_acts] == 1)
226
{
227
    thischar = global.char[global.charturn];
228
    spellcoord = global.bmenucoord[2][global.charturn];
229
    page = 0;
230
    if (spellcoord > 5)
231
    {
232
        page = 1;
233
        spellcoord -= 6;
234
    }
235
    icx = 10;
236
    icy = 385;
237
    if (spellcoord == 1 || spellcoord == 3 || spellcoord == 5)
238
        icx = 230;
239
    if (spellcoord > 1 && spellcoord < 4)
240
        icy = 415;
241
    if (spellcoord > 3)
242
        icy = 445;
243
    draw_sprite(spr_heart, 0, xx + icx, yy + icy);
244
    
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");
245
    for (i = 0; i < 3; i += 1)
246
    {
247
        var currentspell = global.spell[thischar][(page * 6) + (i * 2)];
248
        draw_set_color(c_white);
249
        if (global.tension < global.spellcost[thischar][(page * 6) + (i * 2)])
250
        {
251
            draw_set_color(c_gray);
252
        }
253
        else if (currentspell == 3 || currentspell == 8)
254
        {
255
            pacify_glow = 0;
256
            for (sglowi = 0; sglowi < 3; sglowi += 1)
257
            {
258
                if (global.monster[sglowi] == 1 && global.monsterstatus[sglowi] == 1)
259
                {
260
                    if (global.encounterno != 31)
261
                        pacify_glow = 1;
262
                }
263
            }
264
            if (pacify_glow == 1)
265
                draw_set_color(merge_color(c_aqua, c_blue, 0.3));
266
        }
267
        draw_text(xx + 30, yy + 375 + (i * 30), string_hash_to_newline(global.spellnameb[thischar][(page * 6) + (i * 2)]));
268
        draw_set_color(c_white);
269
        if (global.tension < global.spellcost[thischar][(page * 6) + (i * 2) + 1])
270
            draw_set_color(c_gray);
271
        draw_text(xx + 260, yy + 375 + (i * 30), string_hash_to_newline(global.spellnameb[thischar][(page * 6) + (i * 2) + 1]));
272
    }
273
    draw_set_color(c_gray);
274
    draw_text(xx + spell_offset, yy + 375, string_hash_to_newline(global.spelldescb[thischar][(page * 6) + spellcoord]));
275
    thiscost = floor((global.spellcost[thischar][(page * 6) + spellcoord] / global.maxtension) * 100);
276
    draw_set_color(c_orange);
277
    draw_text(xx + spell_offset, yy + 440, string_hash_to_newline(string(thiscost) + "% TP"));
278
}
279
if (global.bmenuno == 2 && global.myfight == 0 && global.flag[34 disable_monster_acts] == 0)
280
{
281
    thischar = global.charturn;
282
    spellcoord = global.bmenucoord[2][global.charturn];
283
    page = 0;
284
    if (spellcoord > 5)
285
    {
286
        page = 1;
287
        spellcoord -= 6;
288
    }
289
    icx = 10;
290
    icy = 385;
291
    if (spellcoord == 1 || spellcoord == 3 || spellcoord == 5)
292
        icx = 230;
293
    if (spellcoord > 1 && spellcoord < 4)
294
        icy = 415;
295
    if (spellcoord > 3)
296
        icy = 445;
297
    draw_sprite(spr_heart, 0, xx + icx, yy + icy);
298
    
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");
299
    for (i = 0; i < 3; i += 1)
300
    {
301
        var __n = 0;
302
        var __isact = 0;
303
        repeat (2)
304
        {
305
            draw_set_color(c_white);
306
            if (global.battlespellspecial[thischar][(page * 6) + (i * 2) + __n] >= 1)
307
                draw_set_color(hpcolorsoft[global.char[thischar] - 1]);
308
            if (global.tension < global.battlespellcost[thischar][(page * 6) + (i * 2) + __n])
309
            {
310
                draw_set_color(c_gray);
311
            }
312
            else if (global.battlespell[thischar][(page * 6) + (i * 2) + __n] == 3 || global.battlespell[thischar][(page * 6) + (i * 2) + __n] == 8)
313
            {
314
                pacify_glow = 0;
315
                for (sglowi = 0; sglowi < 3; sglowi += 1)
316
                {
317
                    if (global.monster[sglowi] == 1 && global.monsterstatus[sglowi] == 1)
318
                    {
319
                        if (global.encounterno != 31)
320
                            pacify_glow = 1;
321
                    }
322
                }
323
                if (pacify_glow == 1)
324
                {
325
                    var _aqcolor = merge_color(c_aqua, c_blue, 0.3);
326
                    var _aqcolor2 = merge_color(_aqcolor, c_white, 0.5 + (sin(t_siner / 4) * 0.5));
327
                    draw_set_color(_aqcolor2);
328
                }
329
            }
330
            draw_text(xx + 30 + (__n * 230), yy + 375 + (i * 30), string_hash_to_newline(global.battlespellname[thischar][(page * 6) + (i * 2) + __n]));
331
            __n++;
332
        }
333
    }
334
    draw_set_color(c_gray);
335
    draw_text(xx + spell_offset, yy + 375, string_hash_to_newline(global.battlespelldesc[thischar][(page * 6) + spellcoord]));
336
    thiscost = floor((global.battlespellcost[thischar][(page * 6) + spellcoord] / global.maxtension) * 100);
337
    draw_set_color(c_orange);
338
    if (thiscost > 0)
339
        draw_text(xx + spell_offset, yy + 440, string_hash_to_newline(string(thiscost) + "% TP"));
340
}
341
if (global.bmenuno == 4 && global.myfight == 0)
342
{
343
    itemcoord = global.bmenucoord[4][global.charturn];
344
    page = 0;
345
    if (itemcoord > 5)
346
    {
347
        page = 1;
348
        itemcoord -= 6;
349
    }
350
    icx = 10;
351
    icy = 385;
352
    if (itemcoord == 1 || itemcoord == 3 || itemcoord == 5)
353
        icx = langopt(230, 240);
354
    if (itemcoord > 1 && itemcoord < 4)
355
        icy = 415;
356
    if (itemcoord > 3)
357
        icy = 445;
358
    draw_sprite(spr_heart, 0, xx + icx, yy + icy);
359
    
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");
360
    for (i = 0; i < 3; i += 1)
361
    {
362
        var s1 = string_hash_to_newline(tempitemnameb[(page * 6) + (i * 2)][global.charturn]);
363
        var s2 = string_hash_to_newline(tempitemnameb[(page * 6) + (i * 2) + 1][global.charturn]);
364
        var s1_width = string_width(s1);
365
        var s2_width = string_width(s2);
366
        var s1_xscale = min(1, 200 / s1_width);
367
        var s2_xscale = min(1, 200 / s2_width);
368
        draw_set_color(c_white);
369
        draw_text_transformed(xx + 30, yy + 375 + (i * 30), s1, s1_xscale, 1, 0);
370
        draw_text_transformed(xx + 260, yy + 375 + (i * 30), s2, s2_xscale, 1, 0);
371
    }
372
    if (page == 0 && global.item[6] != 0)
373
        draw_sprite(spr_morearrow, 0, xx + 470, yy + 445 + (sin(s_siner / 10) * 2));
374
    if (page == 1)
375
        draw_sprite_ext(spr_morearrow, 0, xx + 470, (yy + 395) - (sin(s_siner / 10) * 2), 1, -1, 0, c_white, 1);
376
    draw_set_color(c_gray);
377
    draw_text(xx + spell_offset, yy + 375, string_hash_to_newline(tempitemdescb[(page * 6) + itemcoord][global.charturn]));
378
}
379
if (global.bmenuno == 9 && global.myfight == 0)
380
{
381
    actcoord = global.bmenucoord[9][global.charturn];
382
    for (__acti = 0; __acti < 6; __acti++)
383
    {
384
        canact[__acti] = 0;
385
        if (global.char[global.charturn] == 1)
386
        {
387
            canact[__acti] = global.canact[thisenemy][__acti];
388
            acttpcost[__acti] = global.actcost[thisenemy][__acti];
389
            actsimul[__acti] = global.actsimul[thisenemy][__acti];
390
            actname[__acti] = global.actname[thisenemy][__acti];
391
            actdesc[__acti] = global.actdesc[thisenemy][__acti];
392
        }
393
        if (global.char[global.charturn] == 2)
394
        {
395
            canact[__acti] = global.canactsus[thisenemy][__acti];
396
            acttpcost[__acti] = global.actcostsus[thisenemy][__acti];
397
            actsimul[__acti] = global.actsimulsus[thisenemy][__acti];
398
            actname[__acti] = global.actnamesus[thisenemy][__acti];
399
            actdesc[__acti] = global.actdescsus[thisenemy][__acti];
400
        }
401
        if (global.char[global.charturn] == 3)
402
        {
403
            canact[__acti] = global.canactral[thisenemy][__acti];
404
            acttpcost[__acti] = global.actcostral[thisenemy][__acti];
405
            actsimul[__acti] = global.actsimulral[thisenemy][__acti];
406
            actname[__acti] = global.actnameral[thisenemy][__acti];
407
            actdesc[__acti] = global.actdescral[thisenemy][__acti];
408
        }
409
        if (global.char[global.charturn] == 4)
410
        {
411
            canact[__acti] = global.canactnoe[thisenemy][__acti];
412
            acttpcost[__acti] = global.actcostnoe[thisenemy][__acti];
413
            actsimul[__acti] = global.actsimulnoe[thisenemy][__acti];
414
            actname[__acti] = global.actnamenoe[thisenemy][__acti];
415
            actdesc[__acti] = global.actdescnoe[thisenemy][__acti];
416
        }
417
    }
418
    page = 0;
419
    icx = 10;
420
    icy = 385;
421
    if (actcoord == 1 || actcoord == 3 || actcoord == 5)
422
        icx = 230;
423
    if (actcoord > 1 && actcoord < 4)
424
        icy = 415;
425
    if (actcoord > 3)
426
        icy = 445;
427
    draw_sprite(spr_heart, 0, xx + icx, yy + icy);
428
    
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");
429
    for (i = 0; i < 6; i += 1)
430
    {
431
        cant = 0;
432
        chartime = 0;
433
        if (global.char[global.charturn] == 1)
434
            chartime = global.actactor[global.bmenucoord[11][global.charturn]][i];
435
        charoffset = 0;
436
        xoffset = 0;
437
        if (i == 1 || i == 3 || i == 5)
438
            xoffset = 230;
439
        yoffset = 0;
440
        if (i == 2 || i == 3)
441
            yoffset = 30;
442
        if (i == 4 || i == 5)
443
            yoffset = 60;
444
        drawsus = 0;
445
        drawral = 0;
446
        drawnoe = 0;
447
        susblend = 16777215;
448
        ralblend = 16777215;
449
        noeblend = 16777215;
450
        if (chartime == 2 || chartime == 4)
451
        {
452
            drawsus = 1;
453
            if (havechar[1] == 0 || global.hp[2] <= 0)
454
            {
455
                susblend = 8421504;
456
                cant = 1;
457
            }
458
            charoffset = 30;
459
        }
460
        if (chartime == 3 || chartime == 4)
461
        {
462
            drawral = 1;
463
            if (havechar[2] == 0 || global.hp[3] <= 0)
464
            {
465
                ralblend = 8421504;
466
                cant = 1;
467
            }
468
            charoffset = 30;
469
        }
470
        if (chartime == 5)
471
        {
472
            drawnoe = 1;
473
            if (havechar[3] == 0 || global.hp[4] <= 0)
474
            {
475
                noeblend = 8421504;
476
                cant = 1;
477
            }
478
            charoffset = 30;
479
        }
480
        if (global.tension < acttpcost[i])
481
            cant = 1;
482
        if (chartime == 4)
483
            charoffset *= 2;
484
        draw_set_color(c_white);
485
        if (cant == 1)
486
            draw_set_color(c_gray);
487
        unleash_glow = 0;
488
        if (i_ex(obj_titan_enemy) && global.tension >= 200 && i == 3 && obj_titan_enemy.unleashed == false)
489
            unleash_glow = 1;
490
        if (i_ex(obj_titan_spawn_enemy) && global.tension >= 160 && i == 3)
491
            unleash_glow = 1;
492
        if (i_ex(obj_jackenstein_enemy) && global.tension >= 150 && i == 1)
493
            unleash_glow = 1;
494
        if (unleash_glow == 1)
495
        {
496
            var _ycolor = merge_color(c_yellow, c_white, 0.5 + (sin(t_siner / 4) * 0.5));
497
            draw_set_color(_ycolor);
498
        }
499
        if (chartime == 2)
500
            draw_sprite_ext(spr_headsusie, 0, xx + 30 + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
501
        if (chartime == 3)
502
            draw_sprite_ext(spr_headralsei, 0, xx + 30 + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
503
        if (chartime == 4)
504
        {
505
            draw_sprite_ext(spr_headsusie, 0, xx + 30 + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
506
            draw_sprite_ext(spr_headralsei, 0, xx + 60 + xoffset, yy + 375 + yoffset, 1, 1, 0, susblend, 1);
507
        }
508
        if (chartime == 5)
509
            draw_sprite_ext(spr_headnoelle, 0, xx + 30 + xoffset, yy + 375 + yoffset, 1, 1, 0, noeblend, 1);
510
        var s1 = string_hash_to_newline(actname[i]);
511
        var s1_width = max(1, string_width(s1));
512
        var s1_xscale = (206 - charoffset) / s1_width;
513
        if (s1_xscale > 1)
514
            s1_xscale = 1;
515
        if (s1_xscale < 0.5)
516
            s1_xscale = 0.5;
517
        draw_text_transformed(xx + 30 + charoffset + xoffset, yy + 375 + yoffset, string_hash_to_newline(actname[i]), s1_xscale, 1, 0);
518
    }
519
    if (i_ex(obj_balthizard_enemy) && global.charturn == 0 && incenseturtlegersoncon == 1 && global.plot == 141)
520
        draw_sprite_ext(spr_gerson_acticon, 0, camerax() + 44, cameray() + 450, 1, 1, 0, c_white, 1);
521
    if (i_ex(obj_guei_enemy) && global.plot >= 140 && global.plot <= 160 && global.flag[868] == 0 && gueigersoncon == 1)
522
        draw_sprite_ext(spr_gerson_acticon, 0, camerax() + 274, cameray() + 422, 1, 1, 0, c_white, 1);
523
    if (i_ex(obj_titan_enemy) && obj_titan_enemy.dualbusterenabled && !obj_titan_enemy.susiesideaenabled)
524
        draw_sprite_ext(spr_gerson_acticon, 0, camerax() + 82, cameray() + 386, 1, 1, 0, c_white, 1);
525
    draw_set_color(c_gray);
526
    draw_text(xx + 500, yy + 375, string_hash_to_newline(actdesc[actcoord]));
527
    if (global.tensionselect > 0)
528
    {
529
        thiscost = floor((acttpcost[actcoord] / global.maxtension) * 100);
530
        draw_set_color(c_orange);
531
        draw_text(xx + 500, yy + 440, string_hash_to_newline(string(thiscost) + "% TP"));
532
    }
533
    with (global.monsterinstance[global.bmenucoord[11][global.charturn]])
534
    {
535
        if (flash == 0)
536
            fsiner = 0;
537
        flash = 1;
538
        becomeflash = 1;
539
    }
540
}
541
if (global.bmenuno == 7 || global.bmenuno == 8)
542
{
543
    if (global.myfight == 0)
544
    {
545
        draw_sprite(spr_heart, 0, xx + 55, yy + 385 + (global.bmenucoord[global.bmenuno][global.charturn] * 30));
546
        
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");
547
        for (i = 0; i < 3; i += 1)
548
        {
549
            if (global.char[i] != 0)
550
            {
551
                with (global.charinstance[global.bmenucoord[global.bmenuno][global.charturn]])
552
                {
553
                    if (flash == 0)
554
                        fsiner = 0;
555
                    flash = 1;
556
                    becomeflash = 1;
557
                }
558
                draw_set_color(c_white);
559
                draw_text(xx + 80, yy + 375 + (i * 30), string_hash_to_newline(global.charname[global.char[i]]));
560
                draw_set_color(c_maroon);
561
                ossafe_fill_rectangle(xx + 400, yy + 380 + (i * 30), xx + 500, yy + 380 + (i * 30) + 15, false);
562
                draw_set_color(c_lime);
563
                ossafe_fill_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);
564
            }
565
        }
566
    }
567
}
568
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
569
{
570
    if (sunkus_kb_check(65))
571
    {
572
        if (global.flag[34 disable_monster_acts] == 0 && global.myfight == 0)
573
        {
574
            if (global.bmenuno == 11 || global.bmenuno == 13 || global.bmenuno == 2)
575
            {
576
                var remfont = draw_get_font();
577
                for (i = 0; i < 3; i++)
578
                {
579
                    var __y = 0;
580
                    var __x = 0;
581
                    var __offsetx = 0;
582
                    var __offsety = 0;
583
                    if (global.monster[i])
584
                    {
585
                        with (global.monsterinstance[i])
586
                        {
587
                            __offsetx = sactionboxx;
588
                            __offsety = sactionboxy;
589
                        }
590
                        
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");
591
                        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))
592
                        {
593
                            for (var __n = 0; __n < 3; __n++)
594
                            {
595
                                draw_set_color(hpcolorsoft[1]);
596
                                if (global.canactsus[i][__n] == 1)
597
                                {
598
                                    var __actnamestring = global.actnamesus[i][__n];
599
                                    var __actnamestringwidth = string_width(__actnamestring);
600
                                    if ((__actnamestringwidth - 45) > __x)
601
                                        __x = __actnamestringwidth - 45;
602
                                    if (__actnamestring != "S-Action")
603
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "S-Action - " + __actnamestring);
604
                                    else
605
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, __actnamestring);
606
                                    __y += 18;
607
                                }
608
                            }
609
                        }
610
                        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))
611
                        {
612
                            for (var __n = 0; __n < 3; __n++)
613
                            {
614
                                draw_set_color(hpcolorsoft[2]);
615
                                if (global.canactral[i][__n] == 1)
616
                                {
617
                                    var __actnamestring = global.actnameral[i][__n];
618
                                    var __actnamestringwidth = string_width(__actnamestring);
619
                                    if ((__actnamestringwidth - 45) > __x)
620
                                        __x = __actnamestringwidth - 45;
621
                                    if (global.actnameral[i][__n] != "R-Action")
622
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "R-Action - " + global.actnameral[i][__n]);
623
                                    else
624
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "R-Action - Standard");
625
                                    __y += 18;
626
                                }
627
                            }
628
                        }
629
                        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))
630
                        {
631
                            for (var __n = 0; __n < 3; __n++)
632
                            {
633
                                draw_set_color(hpcolorsoft[3]);
634
                                if (global.canactnoe[i][__n] == 1)
635
                                {
636
                                    var __actnamestring = global.actnamenoe[i][__n];
637
                                    var __actnamestringwidth = string_width(__actnamestring);
638
                                    if ((__actnamestringwidth - 45) > __x)
639
                                        __x = __actnamestringwidth - 45;
640
                                    if (global.actnamenoe[i][__n] != "N-Action")
641
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "N-Action - " + global.actnamenoe[i][__n]);
642
                                    else
643
                                        draw_text((global.monsterx[i] - 200) + __offsetx, global.monstery[i] + __y + __offsety, "N-Action - Standard");
644
                                    __y += 18;
645
                                }
646
                            }
647
                        }
648
                        draw_set_color(c_fuchsia);
649
                        if (__y > 0)
650
                            ossafe_fill_rectangle((global.monsterx[i] - 210) + __offsetx, global.monstery[i] + __offsety, (global.monsterx[i] - 80) + __x + __offsetx, global.monstery[i] + __y + __offsety, true);
651
                    }
652
                }
653
                draw_set_font(remfont);
654
            }
655
        }
656
    }
657
}
658
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))
659
{
660
    if (i_ex(obj_berdlyplug_enemy))
661
    {
662
        draw_set_color(c_gray);
663
        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);
664
        draw_set_color(c_white);
665
        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);
666
    }
667
    else
668
    {
669
        draw_set_color(c_gray);
670
        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);
671
        draw_set_color(c_white);
672
        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);
673
    }
674
    var xx2 = 0;
675
    if (global.charturn > 0 && global.bmenuno == 13)
676
        xx2 = 100;
677
    if (global.lang != "ja")
678
    {
679
        if (obj_queen_enemy.shieldhp > 1)
680
            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);
681
        else
682
            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);
683
    }
684
}
685
686
enum e__VW
687
{
688
    XView,
689
    YView,
690
    WView,
691
    HView,
692
    Angle,
693
    HBorder,
694
    VBorder,
695
    HSpeed,
696
    VSpeed,
697
    Object,
698
    Visible,
699
    XPort,
700
    YPort,
701
    WPort,
702
    HPort,
703
    Camera,
704
    SurfaceID
705
}