Undertale script viewer

← back to main script listing

gml_Object_obj_encoutnerer_gyftrot_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
            battlegroup = round(random(15));
10
            if (battlegroup >= 0)
11
                global.battlegroup = 28;
12
            if (battlegroup > 8)
13
                global.battlegroup = 28;
14
            if (global.flag[70 progress_tundra_battles] < 3)
15
            {
16
                global.battlegroup = 24;
17
                global.flag[70 progress_tundra_battles] = 4;
18
            }
19
            if (alldead == 2)
20
                global.battlegroup = 19;
21
            if (alldead == 1)
22
            {
23
                global.flag[222 genocide_tundra] = 1;
24
                global.battlegroup = 19;
25
                alldead = 2;
26
            }
27
            else
28
            {
29
                instance_create(0, 0, obj_battleblcon);
30
            }
31
        }
32
    }
33
    else
34
    {
35
        steps = 0;
36
    }
37
}