Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_battletester_Draw_64

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_shadowman_sharpshoot_cursor) && obj_shadowman_sharpshoot_cursor.disabledebugui == true)
2
    exit;
3
setup_encounter = 0;
4
if (global.fighting == 0)
5
{
6
    if (sunkus_kb_check_pressed(49) || gamepad_button_check_pressed(0, gp_shoulderl))
7
        global.encounterno--;
8
    if (sunkus_kb_check_pressed(50) || gamepad_button_check_pressed(0, gp_shoulderr))
9
        global.encounterno++;
10
    if (sunkus_kb_check_pressed(51))
11
        global.encounterno -= 5;
12
    if (sunkus_kb_check_pressed(52))
13
        global.encounterno += 5;
14
    if (sunkus_kb_check_pressed(48))
15
        global.encounterno = 500;
16
}
17
global.encounterno = clamp(global.encounterno, encountermin, encountermax);
18
if (instance_exists(obj_chaseenemy))
19
    obj_chaseenemy.myencounter = global.encounterno;
20
if (global.fighting == 0)
21
{
22
    if (sunkus_kb_check_pressed(54) || gamepad_button_check_pressed(0, gp_shoulderlb))
23
    {
24
        
scr_losechar
scr_losechar

function
scr_losechar()
{ global.char[2] = 0; global.char[1] = 0; with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } global.submenu = 0; global.charselect = -1; for (i = 0; i < 36; i += 1) global.submenucoord[i] = 0; }
();
25
        
scr_getchar
scr_getchar

function
scr_getchar(arg0)
{ switch (arg0) { case "kr": case "kris": arg0 = 1; break; case "su": case "susie": arg0 = 2; break; case "ra": case "ralsei": arg0 = 3; break; case "no": case "noelle": arg0 = 4; break; } var characterToGet = arg0; getchar = 0; if (global.char[0] == 0) { global.char[0] = characterToGet; getchar = 1; } if (global.char[1] == 0 && getchar == 0) { global.char[1] = characterToGet; getchar = 1; } if (global.char[2] == 0 && getchar == 0) { global.char[2] = characterToGet; getchar = 1; } with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } }
(2);
26
        
scr_getchar
scr_getchar

function
scr_getchar(arg0)
{ switch (arg0) { case "kr": case "kris": arg0 = 1; break; case "su": case "susie": arg0 = 2; break; case "ra": case "ralsei": arg0 = 3; break; case "no": case "noelle": arg0 = 4; break; } var characterToGet = arg0; getchar = 0; if (global.char[0] == 0) { global.char[0] = characterToGet; getchar = 1; } if (global.char[1] == 0 && getchar == 0) { global.char[1] = characterToGet; getchar = 1; } if (global.char[2] == 0 && getchar == 0) { global.char[2] = characterToGet; getchar = 1; } with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } }
(3);
27
    }
28
    if (sunkus_kb_check_pressed(55) || gamepad_button_check_pressed(0, gp_shoulderrb))
29
        
scr_losechar
scr_losechar

function
scr_losechar()
{ global.char[2] = 0; global.char[1] = 0; with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } global.submenu = 0; global.charselect = -1; for (i = 0; i < 36; i += 1) global.submenucoord[i] = 0; }
();
30
    if (sunkus_kb_check_pressed(56))
31
    {
32
        
scr_losechar
scr_losechar

function
scr_losechar()
{ global.char[2] = 0; global.char[1] = 0; with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } global.submenu = 0; global.charselect = -1; for (i = 0; i < 36; i += 1) global.submenucoord[i] = 0; }
();
33
        
scr_getchar
scr_getchar

function
scr_getchar(arg0)
{ switch (arg0) { case "kr": case "kris": arg0 = 1; break; case "su": case "susie": arg0 = 2; break; case "ra": case "ralsei": arg0 = 3; break; case "no": case "noelle": arg0 = 4; break; } var characterToGet = arg0; getchar = 0; if (global.char[0] == 0) { global.char[0] = characterToGet; getchar = 1; } if (global.char[1] == 0 && getchar == 0) { global.char[1] = characterToGet; getchar = 1; } if (global.char[2] == 0 && getchar == 0) { global.char[2] = characterToGet; getchar = 1; } with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } }
(3);
34
    }
35
    if (sunkus_kb_check_pressed(57))
36
    {
37
        
scr_losechar
scr_losechar

function
scr_losechar()
{ global.char[2] = 0; global.char[1] = 0; with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } global.submenu = 0; global.charselect = -1; for (i = 0; i < 36; i += 1) global.submenucoord[i] = 0; }
();
38
        
scr_getchar
scr_getchar

function
scr_getchar(arg0)
{ switch (arg0) { case "kr": case "kris": arg0 = 1; break; case "su": case "susie": arg0 = 2; break; case "ra": case "ralsei": arg0 = 3; break; case "no": case "noelle": arg0 = 4; break; } var characterToGet = arg0; getchar = 0; if (global.char[0] == 0) { global.char[0] = characterToGet; getchar = 1; } if (global.char[1] == 0 && getchar == 0) { global.char[1] = characterToGet; getchar = 1; } if (global.char[2] == 0 && getchar == 0) { global.char[2] = characterToGet; getchar = 1; } with (obj_darkcontroller) { chartotal = 0; havechar[0] = 0; havechar[1] = 0; havechar[2] = 0; havechar[3] = 0; for (i = 0; i < 3; i += 1) { global.faceaction[i] = 0; if (global.char[i] != 0) chartotal += 1; if (global.char[i] == 1) { havechar[0] = 1; charpos[0] = i; } if (global.char[i] == 2) { havechar[1] = 1; charpos[1] = i; } if (global.char[i] == 3) { havechar[2] = 1; charpos[2] = i; } if (global.char[i] == 4) { havechar[3] = 1; charpos[3] = i; } } } }
(4);
39
        
scr_itemget
scr_itemget

function
scr_itemget(arg0)
{ var __i = 0; var loop = 1; noroom = 0; _pocketed = 0; _noroominventory = 0; global.item[12] = 999; while (loop == 1) { if (global.item[__i] == 0) { global.item[__i] = arg0; break; } if (__i == 12) { _noroominventory = 1; noroom = 1; for (var __j = 0; __j < global.flag[64 storage_size]; __j++) { if (global.pocketitem[__j] == 0) { debug_message("Placed in pocket :" + string(__j)); global.pocketitem[__j] = arg0; _pocketed = 1; noroom = 0; break; } } break; } __i += 1; } script_execute(scr_iteminfo_all); debug_message("noroom=" + string(noroom)); debug_message("_pocketed=" + string(_pocketed)); debug_message("_noroominventory=" + string(_noroominventory)); }
(1);
40
    }
41
    draw_set_color(c_lime);
42
    
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");
43
    draw_text(0, 440, string_hash_to_newline("Party:  " + string(global.charname[global.char[0]]) + " " + string(global.charname[global.char[1]]) + " " + string(global.charname[global.char[2]])));
44
    draw_text(0, 455, string_hash_to_newline("6: full party. 7:kris only. 8:kris and ralsei 9: kris + noelle"));
45
}
46
if (!instance_exists(obj_debug_xy))
47
{
48
    if (global.fighting == 0)
49
    {
50
        
scr_encountersetup
scr_encountersetup

function
scr_encountersetup(arg0)
{ xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); for (i = 0; i < 3; i += 1) { global.heromakex[i] = xx + 80; global.heromakey[i] = yy + 50 + (80 * i); global.monsterinstancetype[i] = obj_baseenemy; global.monstertype[i] = 1Enemy (placeholder/G-BODY); global.monstermakex[i] = xx + 500 + (20 * i); global.monstermakey[i] = yy + 40 + (90 * i); } global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) global.heromakey[0] = yy + 140; if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) { global.heromakey[0] = yy + 100; global.heromakey[1] = yy + 180; } global.battlemsg[0] = stringsetloc(
* It is known.
"* It is known.", "scr_encountersetup_slash_scr_encountersetup_gml_34_0"
);
if (global.chapter == 3) { global.rank1time = 30; global.rank1turns = 4; global.rank1tp = 200; global.rank1hurtcount = 0; } var board4battleintrostring = ""; var rr = choose(0, 1, 2, 3); if (rr == 0) board4battleintrostring = stringsetloc(
* Wanna be an ACT-er...? Here's my CARD!
"* Wanna be an ACT-er...? Here's my CARD!", "scr_encountersetup_slash_scr_encountersetup_gml_52_0"
);
if (rr == 1) board4battleintrostring = stringsetloc(
* Now where the heck is my debit card?
"* Now where the heck is my debit card?", "scr_encountersetup_slash_scr_encountersetup_gml_53_0"
);
if (rr == 2) board4battleintrostring = stringsetloc(
* If you're gonna be so dramatic... then ACT!
"* If you're gonna be so dramatic... then ACT!", "scr_encountersetup_slash_scr_encountersetup_gml_54_0"
);
if (rr == 3) board4battleintrostring = stringsetloc(
* I Love TV. That's all you gotta say.
"* I Love TV. That's all you gotta say.", "scr_encountersetup_slash_scr_encountersetup_gml_55_0"
);
switch (arg0) { case 0: break; case 1: global.monsterinstancetype[0] = obj_baseenemy; global.monstertype[0] = 1Enemy (placeholder/G-BODY); global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 110; global.monsterinstancetype[1] = obj_baseenemy; global.monstertype[1] = 1Enemy (placeholder/G-BODY); global.monstermakex[1] = xx + 500; global.monstermakey[1] = yy + 200; global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* Test enemies showed up.
"* Test enemies showed up.", "scr_encountersetup_slash_scr_encountersetup_gml_72_0"
);
break; case 2: global.monsterinstancetype[0] = obj_lancerboss; global.monstertype[0] = 2Lancer; global.monstermakex[0] = xx + 540; global.monstermakey[0] = yy + 200; global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); break; case 3: global.monsterinstancetype[0] = obj_dummyenemy; global.monstertype[0] = 3Dummy; global.monstermakex[0] = xx + 500; global.monstermakey[0] = yy + 160; if (instance_exists(obj_npc_room)) { global.monstermakex[0] = obj_npc_room.xstart; global.monstermakey[0] = obj_npc_room.ystart; } global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); break; case 4: global.monsterinstancetype[0] = obj_diamondenemy; global.monstertype[0] = 5Rudinn; global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 140; global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* Rudinn drew near!
"* Rudinn drew near!", "scr_encountersetup_slash_scr_encountersetup_gml_98_0"
);
if (global.flag[500 times_rudinn_fought] >= 1) global.battlemsg[0] = stringsetloc(
* A different Rudinn from last time drew near!
"* A different Rudinn from last time drew near!", "scr_encountersetup_slash_scr_encountersetup_gml_99_0"
);
if (global.flag[500 times_rudinn_fought] == 2) global.battlemsg[0] = stringsetloc(
* Assumedly another different Rudinn appeared!
"* Assumedly another different Rudinn appeared!", "scr_encountersetup_slash_scr_encountersetup_gml_100_0"
);
break; case 5: global.monsterinstancetype[0] = obj_diamondenemy; global.monstertype[0] = 5Rudinn; global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 110; global.monsterinstancetype[1] = obj_diamondenemy; global.monstertype[1] = 5Rudinn; global.monstermakex[1] = xx + 500; global.monstermakey[1] = yy + 200; global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* A necklace of Rudinns blocks your path.
"* A necklace of Rudinns blocks your path.", "scr_encountersetup_slash_scr_encountersetup_gml_116_0"
);
...
(global.encounterno);
51
        draw_set_color(c_black);
52
        draw_rectangle(0, 0, 80, 50, false);
53
        draw_set_color(c_white);
54
        
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");
55
        draw_text(0, 0, string_hash_to_newline("EncounterNo: " + string(global.encounterno)));
56
        for (i = 0; i < 3; i++)
57
        {
58
            if (global.monstertype[i] > 0)
59
                draw_text(0, 20 + (i * 20), string_hash_to_newline(object_get_name(global.monsterinstancetype[i])));
60
        }
61
        draw_set_color(c_ltgray);
62
        
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");
63
        for (j = 1; j < 5; j++)
64
        {
65
            
scr_encountersetup
scr_encountersetup

function
scr_encountersetup(arg0)
{ xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); for (i = 0; i < 3; i += 1) { global.heromakex[i] = xx + 80; global.heromakey[i] = yy + 50 + (80 * i); global.monsterinstancetype[i] = obj_baseenemy; global.monstertype[i] = 1Enemy (placeholder/G-BODY); global.monstermakex[i] = xx + 500 + (20 * i); global.monstermakey[i] = yy + 40 + (90 * i); } global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) global.heromakey[0] = yy + 140; if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) { global.heromakey[0] = yy + 100; global.heromakey[1] = yy + 180; } global.battlemsg[0] = stringsetloc(
* It is known.
"* It is known.", "scr_encountersetup_slash_scr_encountersetup_gml_34_0"
);
if (global.chapter == 3) { global.rank1time = 30; global.rank1turns = 4; global.rank1tp = 200; global.rank1hurtcount = 0; } var board4battleintrostring = ""; var rr = choose(0, 1, 2, 3); if (rr == 0) board4battleintrostring = stringsetloc(
* Wanna be an ACT-er...? Here's my CARD!
"* Wanna be an ACT-er...? Here's my CARD!", "scr_encountersetup_slash_scr_encountersetup_gml_52_0"
);
if (rr == 1) board4battleintrostring = stringsetloc(
* Now where the heck is my debit card?
"* Now where the heck is my debit card?", "scr_encountersetup_slash_scr_encountersetup_gml_53_0"
);
if (rr == 2) board4battleintrostring = stringsetloc(
* If you're gonna be so dramatic... then ACT!
"* If you're gonna be so dramatic... then ACT!", "scr_encountersetup_slash_scr_encountersetup_gml_54_0"
);
if (rr == 3) board4battleintrostring = stringsetloc(
* I Love TV. That's all you gotta say.
"* I Love TV. That's all you gotta say.", "scr_encountersetup_slash_scr_encountersetup_gml_55_0"
);
switch (arg0) { case 0: break; case 1: global.monsterinstancetype[0] = obj_baseenemy; global.monstertype[0] = 1Enemy (placeholder/G-BODY); global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 110; global.monsterinstancetype[1] = obj_baseenemy; global.monstertype[1] = 1Enemy (placeholder/G-BODY); global.monstermakex[1] = xx + 500; global.monstermakey[1] = yy + 200; global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* Test enemies showed up.
"* Test enemies showed up.", "scr_encountersetup_slash_scr_encountersetup_gml_72_0"
);
break; case 2: global.monsterinstancetype[0] = obj_lancerboss; global.monstertype[0] = 2Lancer; global.monstermakex[0] = xx + 540; global.monstermakey[0] = yy + 200; global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); break; case 3: global.monsterinstancetype[0] = obj_dummyenemy; global.monstertype[0] = 3Dummy; global.monstermakex[0] = xx + 500; global.monstermakey[0] = yy + 160; if (instance_exists(obj_npc_room)) { global.monstermakex[0] = obj_npc_room.xstart; global.monstermakey[0] = obj_npc_room.ystart; } global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); break; case 4: global.monsterinstancetype[0] = obj_diamondenemy; global.monstertype[0] = 5Rudinn; global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 140; global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* Rudinn drew near!
"* Rudinn drew near!", "scr_encountersetup_slash_scr_encountersetup_gml_98_0"
);
if (global.flag[500 times_rudinn_fought] >= 1) global.battlemsg[0] = stringsetloc(
* A different Rudinn from last time drew near!
"* A different Rudinn from last time drew near!", "scr_encountersetup_slash_scr_encountersetup_gml_99_0"
);
if (global.flag[500 times_rudinn_fought] == 2) global.battlemsg[0] = stringsetloc(
* Assumedly another different Rudinn appeared!
"* Assumedly another different Rudinn appeared!", "scr_encountersetup_slash_scr_encountersetup_gml_100_0"
);
break; case 5: global.monsterinstancetype[0] = obj_diamondenemy; global.monstertype[0] = 5Rudinn; global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 110; global.monsterinstancetype[1] = obj_diamondenemy; global.monstertype[1] = 5Rudinn; global.monstermakex[1] = xx + 500; global.monstermakey[1] = yy + 200; global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* A necklace of Rudinns blocks your path.
"* A necklace of Rudinns blocks your path.", "scr_encountersetup_slash_scr_encountersetup_gml_116_0"
);
...
(global.encounterno + j);
66
            for (i = 0; i < 3; i++)
67
            {
68
                draw_text(0, 60 + (j * 70), string_hash_to_newline("Encounter: " + string(global.encounterno + j)));
69
                if (global.monstertype[i] > 0)
70
                    draw_text(0, 70 + (i * 10) + (j * 70), string_hash_to_newline(object_get_name(global.monsterinstancetype[i])));
71
            }
72
        }
73
        draw_text(300, 0, string_hash_to_newline("Adjust EncounterNo:#1- 2+#3----- 4+++++"));
74
        
scr_encountersetup
scr_encountersetup

function
scr_encountersetup(arg0)
{ xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); for (i = 0; i < 3; i += 1) { global.heromakex[i] = xx + 80; global.heromakey[i] = yy + 50 + (80 * i); global.monsterinstancetype[i] = obj_baseenemy; global.monstertype[i] = 1Enemy (placeholder/G-BODY); global.monstermakex[i] = xx + 500 + (20 * i); global.monstermakey[i] = yy + 40 + (90 * i); } global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) global.heromakey[0] = yy + 140; if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) { global.heromakey[0] = yy + 100; global.heromakey[1] = yy + 180; } global.battlemsg[0] = stringsetloc(
* It is known.
"* It is known.", "scr_encountersetup_slash_scr_encountersetup_gml_34_0"
);
if (global.chapter == 3) { global.rank1time = 30; global.rank1turns = 4; global.rank1tp = 200; global.rank1hurtcount = 0; } var board4battleintrostring = ""; var rr = choose(0, 1, 2, 3); if (rr == 0) board4battleintrostring = stringsetloc(
* Wanna be an ACT-er...? Here's my CARD!
"* Wanna be an ACT-er...? Here's my CARD!", "scr_encountersetup_slash_scr_encountersetup_gml_52_0"
);
if (rr == 1) board4battleintrostring = stringsetloc(
* Now where the heck is my debit card?
"* Now where the heck is my debit card?", "scr_encountersetup_slash_scr_encountersetup_gml_53_0"
);
if (rr == 2) board4battleintrostring = stringsetloc(
* If you're gonna be so dramatic... then ACT!
"* If you're gonna be so dramatic... then ACT!", "scr_encountersetup_slash_scr_encountersetup_gml_54_0"
);
if (rr == 3) board4battleintrostring = stringsetloc(
* I Love TV. That's all you gotta say.
"* I Love TV. That's all you gotta say.", "scr_encountersetup_slash_scr_encountersetup_gml_55_0"
);
switch (arg0) { case 0: break; case 1: global.monsterinstancetype[0] = obj_baseenemy; global.monstertype[0] = 1Enemy (placeholder/G-BODY); global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 110; global.monsterinstancetype[1] = obj_baseenemy; global.monstertype[1] = 1Enemy (placeholder/G-BODY); global.monstermakex[1] = xx + 500; global.monstermakey[1] = yy + 200; global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* Test enemies showed up.
"* Test enemies showed up.", "scr_encountersetup_slash_scr_encountersetup_gml_72_0"
);
break; case 2: global.monsterinstancetype[0] = obj_lancerboss; global.monstertype[0] = 2Lancer; global.monstermakex[0] = xx + 540; global.monstermakey[0] = yy + 200; global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); break; case 3: global.monsterinstancetype[0] = obj_dummyenemy; global.monstertype[0] = 3Dummy; global.monstermakex[0] = xx + 500; global.monstermakey[0] = yy + 160; if (instance_exists(obj_npc_room)) { global.monstermakex[0] = obj_npc_room.xstart; global.monstermakey[0] = obj_npc_room.ystart; } global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); break; case 4: global.monsterinstancetype[0] = obj_diamondenemy; global.monstertype[0] = 5Rudinn; global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 140; global.monstertype[1] = 0(None); global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* Rudinn drew near!
"* Rudinn drew near!", "scr_encountersetup_slash_scr_encountersetup_gml_98_0"
);
if (global.flag[500 times_rudinn_fought] >= 1) global.battlemsg[0] = stringsetloc(
* A different Rudinn from last time drew near!
"* A different Rudinn from last time drew near!", "scr_encountersetup_slash_scr_encountersetup_gml_99_0"
);
if (global.flag[500 times_rudinn_fought] == 2) global.battlemsg[0] = stringsetloc(
* Assumedly another different Rudinn appeared!
"* Assumedly another different Rudinn appeared!", "scr_encountersetup_slash_scr_encountersetup_gml_100_0"
);
break; case 5: global.monsterinstancetype[0] = obj_diamondenemy; global.monstertype[0] = 5Rudinn; global.monstermakex[0] = xx + 480; global.monstermakey[0] = yy + 110; global.monsterinstancetype[1] = obj_diamondenemy; global.monstertype[1] = 5Rudinn; global.monstermakex[1] = xx + 500; global.monstermakey[1] = yy + 200; global.monstertype[2] = 0(None); global.battlemsg[0] = stringsetloc(
* A necklace of Rudinns blocks your path.
"* A necklace of Rudinns blocks your path.", "scr_encountersetup_slash_scr_encountersetup_gml_116_0"
);
...
(global.encounterno);
75
    }
76
    else
77
    {
78
    }
79
}
80
if (global.fighting == 1 && sunkus_kb_check_pressed(68))
81
{
82
    if (!i_ex(obj_danmaku_analyzer))
83
    {
84
        instance_create(0, 0, obj_danmaku_analyzer);
85
    }
86
    else
87
    {
88
        with (obj_danmaku_analyzer)
89
            instance_destroy();
90
    }
91
}