Undertale script viewer

← back to main script listing

gml_Object_obj_mainchara_KeyPress_36

related scripts: Collision_10 • Collision_11 • Collision_12 • Collision_13 • Collision_1367 • Collision_822 • Create_0 • Draw_0 • KeyPress_118 • KeyPress_120 • KeyPress_121 • KeyPress_122 • KeyPress_123 • KeyPress_33 • KeyPress_34 • KeyPress_35 • KeyPress_36 • KeyPress_45 • KeyPress_46 • KeyPress_48 • KeyPress_49 • KeyPress_50 • KeyPress_51 • KeyPress_52 • KeyPress_53 • KeyPress_54 • KeyPress_71 • KeyPress_73 • KeyPress_77 • KeyPress_79 • KeyPress_80 • KeyPress_85 • Keyboard_76 • Keyboard_83 • Other_10 • Other_12 • Step_0 • Step_2

(view raw script w/o annotations or w/e)
1
if (global.debug == 1)
2
{
3
    global.battlegroup = 57 + nnn;
4
    global.border = 0;
5
    instance_create(0, 0, obj_battleblcon);
6
    if (global.plot == 998)
7
    {
8
        global.flag[10 spared_last] = 0;
9
        global.flag[11 escaped_last] = 0;
10
        global.flag[12 killed_last] = 0;
11
        global.flag[13 bored_last] = 0;
12
        global.entrance = 0;
13
        global.battlegroup = 82;
14
        obj_mainchara.depth = -600;
15
        if (instance_exists(obj_battler) == 0)
16
            instance_create(0, 0, obj_battler);
17
    }
18
}