Undertale script viewer

← back to main script listing

gml_Object_obj_asgore_spearswipe_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    swipetimer += 1;
4
    if (swipetimer > initswipewait)
5
        con = 1;
6
    if (quick > 0)
7
    {
8
        image_index = 2;
9
        con = 1;
10
    }
11
}
12
if (con == 2)
13
{
14
    if (image_xscale == 2)
15
        image_xscale = -2;
16
    else
17
        image_xscale = 2;
18
    con = 3;
19
    hitted = 0;
20
    image_speed = 0;
21
    image_index = 0;
22
    swipetimer = 0;
23
    curamt += 1;
24
}
25
if (con == 3)
26
{
27
    if (curamt > amt)
28
    {
29
        con = 99;
30
        alarm[2] = 45;
31
    }
32
    else
33
    {
34
        swipetimer += 1;
35
        image_speed = 0;
36
        image_index = 0;
37
        if (swipetimer > swipewait)
38
        {
39
            con = 1;
40
            if (quick > 1)
41
                image_index = 2;
42
        }
43
    }
44
}
45
if (con == 1)
46
{
47
    image_index += cutspeed;
48
    if (image_index >= 6)
49
    {
50
        con = 2;
51
        swipetimer = 0;
52
    }
53
}