Undertale script viewer

← back to main script listing

gml_Object_obj_asriel_swordmaster_Other_12

related scripts: Alarm_5 • Alarm_6 • Create_0 • Destroy_0 • Other_12 • Other_13 • Other_15 • Other_16 • Other_17 • Other_18 • Other_19 • Step_0

(view raw script w/o annotations or w/e)
1
if (x > (thisx - 80))
2
{
3
    x -= 1;
4
    if (x > (thisx - 35))
5
        king.torsorot += 1;
6
}
7
if (x > (thisx - 70))
8
{
9
    x -= 2;
10
    if (x > (thisx - 35))
11
        king.torsorot += 2;
12
}
13
if (x > (thisx - 60))
14
{
15
    x -= 2;
16
    if (x > (thisx - 35))
17
        king.torsorot += 3;
18
}
19
if (x > (thisx - 40))
20
{
21
    x -= 3;
22
    if (x > (thisx - 35))
23
        king.torsorot += 4;
24
}
25
if (x > (thisx - 20))
26
    x -= 3;
27
if (x > thisx)
28
    x -= 4;
29
if (x > (thisx + 10))
30
    x -= 4;