Undertale script viewer

← back to main script listing

gml_Object_obj_lazyencounterer_core_Collision_1576

(view raw script w/o annotations or w/e)
1
global.flag[15 in_battle] = 1;
2
if (cl == 0)
3
{
4
    battleno = choose(64, 65);
5
    if (global.flag[423 progress_core_battles] == 0)
6
        battleno = 64;
7
    if (global.flag[423 progress_core_battles] == 1)
8
        battleno = 65;
9
    if (global.flag[423 progress_core_battles] == 2)
10
        battleno = 68;
11
    if (global.flag[419 warriors_path_complete] == 1 && battleno == 68)
12
        battleno = 61;
13
    global.battlegroup = battleno;
14
    global.border = 0;
15
    other.x = other.xprevious;
16
    other.y = other.yprevious;
17
    instance_create(0, 0, obj_battleblcon);
18
    cl = 1;
19
    global.flag[423 progress_core_battles] += 1;
20
    instance_destroy();
21
}