Deltarune script viewer

← back to main script listing

gml_Object_obj_attackpress_ch1_Other_11

(view raw script w/o annotations or w/e)
1
if (scr_monsterpop_ch1
scr_monsterpop_ch1

function scr_monsterpop_ch1() { return global.monster[0] + global.monster[1] + global.monster[2]; }
() > 0)
2
{
3
    for (i = 0; i < 3; i += 1)
4
    {
5
        if (target == i)
6
        {
7
            if (instance_exists(global.charinstance[i]))
8
            {
9
                global.charinstance[i].points = points[i];
10
                with (global.charinstance[i])
11
                {
12
                    state = 1;
13
                    attacktimer = 0;
14
                }
15
            }
16
        }
17
    }
18
}