Undertale script viewer

← back to main script listing

gml_Object_obj_asriel_swordmaster_Alarm_5

(view raw script w/o annotations or w/e)
1
maxtime = 5;
2
if (h_mode > 0)
3
    maxtime = 6;
4
if (times < maxtime)
5
{
6
    which = choose(0, 1);
7
    if (which == lastwhichwhich && which == lastwhich)
8
    {
9
        if (which == 0)
10
            which = 1;
11
        else
12
            which = 0;
13
    }
14
    if (h_mode == 0)
15
    {
16
        if (which == 0)
17
            sword_a.timer = 106;
18
        if (which == 1)
19
            sword_b.timer = 106;
20
    }
21
    if (h_mode == 1)
22
    {
23
        if (which == 0)
24
            sword_a.timer = 109;
25
        if (which == 1)
26
            sword_b.timer = 109;
27
    }
28
    if (h_mode == 2)
29
    {
30
        if (which == 0)
31
            sword_a.timer = 112;
32
        if (which == 1)
33
            sword_b.timer = 112;
34
    }
35
    sword_a.h_mode = h_mode;
36
    sword_b.h_mode = h_mode;
37
    lastwhichwhich = lastwhich;
38
    lastwhich = which;
39
    alarm[5] = 27;
gml_Object_obj_asriel_swordmaster_Alarm_5.gml

maxtime = 5; if (h_mode > 0) maxtime = 6; if (times < maxtime) { which = choose(0, 1); if (which == lastwhichwhich && which == lastwhich) { if (which == 0) which = 1; else which = 0; } if (h_mode == 0) { if (which == 0) sword_a.timer = 106; if (which == 1) sword_b.timer = 106; } if (h_mode == 1) { if (which == 0) sword_a.timer = 109; if (which == 1) sword_b.timer = 109; } if (h_mode == 2) { if (which == 0) sword_a.timer = 112; if (which == 1) sword_b.timer = 112; } sword_a.h_mode = h_mode; sword_b.h_mode = h_mode; lastwhichwhich = lastwhich; lastwhich = which; alarm[5] = 27; if (h_mode == 1) alarm[5] = 24; if (h_mode == 2) alarm[5] = 21; } else { sword_a.timer = 89; sword_b.timer = 89; obj_asriel_swordarm.twinkle = 1; freakcon = 1; } times += 1; king.headrot = 0;
40
    if (h_mode == 1)
41
        alarm[5] = 24;
gml_Object_obj_asriel_swordmaster_Alarm_5.gml

maxtime = 5; if (h_mode > 0) maxtime = 6; if (times < maxtime) { which = choose(0, 1); if (which == lastwhichwhich && which == lastwhich) { if (which == 0) which = 1; else which = 0; } if (h_mode == 0) { if (which == 0) sword_a.timer = 106; if (which == 1) sword_b.timer = 106; } if (h_mode == 1) { if (which == 0) sword_a.timer = 109; if (which == 1) sword_b.timer = 109; } if (h_mode == 2) { if (which == 0) sword_a.timer = 112; if (which == 1) sword_b.timer = 112; } sword_a.h_mode = h_mode; sword_b.h_mode = h_mode; lastwhichwhich = lastwhich; lastwhich = which; alarm[5] = 27; if (h_mode == 1) alarm[5] = 24; if (h_mode == 2) alarm[5] = 21; } else { sword_a.timer = 89; sword_b.timer = 89; obj_asriel_swordarm.twinkle = 1; freakcon = 1; } times += 1; king.headrot = 0;
42
    if (h_mode == 2)
43
        alarm[5] = 21;
gml_Object_obj_asriel_swordmaster_Alarm_5.gml

maxtime = 5; if (h_mode > 0) maxtime = 6; if (times < maxtime) { which = choose(0, 1); if (which == lastwhichwhich && which == lastwhich) { if (which == 0) which = 1; else which = 0; } if (h_mode == 0) { if (which == 0) sword_a.timer = 106; if (which == 1) sword_b.timer = 106; } if (h_mode == 1) { if (which == 0) sword_a.timer = 109; if (which == 1) sword_b.timer = 109; } if (h_mode == 2) { if (which == 0) sword_a.timer = 112; if (which == 1) sword_b.timer = 112; } sword_a.h_mode = h_mode; sword_b.h_mode = h_mode; lastwhichwhich = lastwhich; lastwhich = which; alarm[5] = 27; if (h_mode == 1) alarm[5] = 24; if (h_mode == 2) alarm[5] = 21; } else { sword_a.timer = 89; sword_b.timer = 89; obj_asriel_swordarm.twinkle = 1; freakcon = 1; } times += 1; king.headrot = 0;
44
}
45
else
46
{
47
    sword_a.timer = 89;
48
    sword_b.timer = 89;
49
    obj_asriel_swordarm.twinkle = 1;
50
    freakcon = 1;
51
}
52
times += 1;
53
king.headrot = 0;