Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_berdly_encounter_setup_Other_10

(view raw script w/o annotations or w/e)
1
if (state == 0)
2
    exit;
3
if (fightcon == 1)
4
{
5
    if (global.flag[9 battle_music] == 1)
6
        snd_pause(global.currentsong[1]);
7
    counttimer += 1;
8
    if (counttimer < 10)
9
    {
10
        i = 0;
11
        while (i < (count + 1))
12
            i += 1;
13
    }
14
    if (counttimer >= 10)
15
    {
16
        i = 0;
17
        while (i < (count + 1))
18
            i += 1;
19
        fightcon = 2;
20
        counttimer = 0;
21
    }
22
}
23
if (fightcon == 2)
24
{
25
    counttimer += 1;
26
    if (counttimer >= 15)
27
    {
28
        counttimer = 0;
29
        fightcon = 3;
30
        i = 0;
31
        while (i < (count + 1))
32
            i += 1;
33
        instance_create(0, 0, obj_battlecontroller);
34
        instance_destroy();
35
    }
36
}