Undertale script viewer

← back to main script listing

gml_Object_obj_asgore_spearswipegen_Alarm_2

(view raw script w/o annotations or w/e)
1
sw = instance_create(x, y, obj_asgore_spearswipe);
2
for (i = 0; i < (typeamt + 1); i += 1)
3
    sw.type[i] = type[i];
4
if (diff == 0)
5
{
6
    with (sw)
7
    {
8
        amt = 1;
9
        quick = 0;
10
        cutspeed = 0.5;
11
        flashtimer = 12;
12
        swipewait = 2;
13
        initswipewait = 5;
14
    }
15
}
16
if (diff == 1)
17
{
18
    with (sw)
19
    {
20
        amt = 2;
21
        quick = 0;
22
        cutspeed = 0.5;
23
        flashtimer = 12;
24
        swipewait = 0;
25
        initswipewait = 8;
26
    }
27
}
28
if (diff == 2)
29
{
30
    with (sw)
31
    {
32
        amt = 2;
33
        quick = 0;
34
        cutspeed = 1;
35
        flashtimer = 7;
36
        swipewait = 3;
37
        initswipewait = 4;
38
    }
39
}
40
if (diff == 3)
41
{
42
    with (sw)
43
    {
44
        amt = 3;
45
        quick = 0;
46
        cutspeed = 1;
47
        flashtimer = 7;
48
        swipewait = 3;
49
        initswipewait = 3;
50
    }
51
}
52
instance_destroy();