Undertale script viewer

← back to main script listing

gml_Object_obj_encounterer_glyde_Step_0

(view raw script w/o annotations or w/e)
1
if (global.encounter > steps)
2
{
3
    if (global.phasing == 0)
4
    {
5
        if (global.interact == 0)
6
        {
7
            script_execute(scr_steps, 840, 680, 16, 203);
8
            global.encounter = 0;
9
            global.battlegroup = 135;
10
            if (alldead == 2)
11
                global.battlegroup = 19;
12
            if (alldead == 1)
13
            {
14
                global.flag[222 genocide_tundra] = 1;
15
                global.battlegroup = 19;
16
                alldead = 2;
17
            }
18
            else
19
            {
20
                instance_create(0, 0, obj_battleblcon);
21
                instance_destroy();
22
            }
23
        }
24
        else
25
        {
26
            steps = 0;
27
        }
28
    }
29
}