Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_knight_enemy_Other_10

(view raw script w/o annotations or w/e)
1
if (phase != 4)
2
{
3
    turn++;
4
    phaseturn++;
5
}
6
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
() && overrideAttack > 0)
7
    phaseturn = overrideAttack;
8
if (phase == 1)
9
{
10
    if (phaseturn == 1)
11
    {
12
        myattackchoice = 1;
13
        difficulty = 0;
14
    }
15
    if (phaseturn == 2)
16
    {
17
        myattackchoice = 11;
18
        difficulty = 0;
19
    }
20
    if (phaseturn == 3)
21
    {
22
        myattackchoice = 2;
23
        difficulty = 0;
24
    }
25
    if (phaseturn == 4)
26
    {
27
        myattackchoice = 13;
28
        difficulty = 0;
29
    }
30
    if (phaseturn == 5)
31
    {
32
        myattackchoice = 5;
33
        difficulty = 0;
34
        phase = 2;
35
        phaseturn = 0;
36
    }
37
    if (phaseturn == 6)
38
    {
39
        myattackchoice = 12;
40
        difficulty = 0;
41
    }
42
    if (phaseturn == 7)
43
    {
44
        myattackchoice = 16;
45
        difficulty = 0;
46
    }
47
    if (phaseturn == 8)
48
    {
49
        myattackchoice = 17;
50
        difficulty = 0;
51
    }
52
    if (phaseturn == 9)
53
    {
54
        myattackchoice = 7;
55
        difficulty = 0;
56
    }
57
}
58
if (phase == 2)
59
{
60
    if (phaseturn == 1)
61
    {
62
        myattackchoice = 1;
63
        difficulty = 1;
64
    }
65
    if (phaseturn == 2)
66
    {
67
        myattackchoice = 2;
68
        difficulty = 1;
69
    }
70
    if (phaseturn == 3)
71
    {
72
        myattackchoice = 13;
73
        difficulty = 3;
74
    }
75
    if (phaseturn == 4)
76
    {
77
        myattackchoice = 15;
78
        difficulty = 0;
79
    }
80
    if (phaseturn == 5)
81
    {
82
        myattackchoice = 5;
83
        difficulty = 1;
84
        phase = 3;
85
        phaseturn = 0;
86
    }
87
}
88
if (phase == 3)
89
{
90
    if (phaseturn == 1)
91
    {
92
        myattackchoice = 1;
93
        difficulty = 2;
94
    }
95
    if (phaseturn == 2)
96
    {
97
        myattackchoice = 2;
98
        difficulty = 3;
99
    }
100
    if (phaseturn == 3)
101
    {
102
        myattackchoice = 14;
103
        difficulty = 0;
104
    }
105
    if (phaseturn == 4)
106
    {
107
        myattackchoice = 13;
108
        difficulty = 4;
109
    }
110
    if (phaseturn == 5)
111
    {
112
        myattackchoice = 5;
113
        difficulty = 2;
114
        rotatingslash3used = true;
115
        phaseturn = 0;
116
    }
117
}
118
if (phase == 4)
119
{
120
    phase4turn++;
121
    if (phase4turn == 1 && rotatingslash3used == true)
122
        phase4turn = 2;
123
    if (phase4turn == 1)
124
    {
125
        myattackchoice = 5;
126
        difficulty = 2;
127
    }
128
    if (phase4turn == 2)
129
    {
130
        myattackchoice = -1;
131
        difficulty = 1;
132
    }
133
    if (phase4turn == 3)
134
    {
135
        myattackchoice = 9;
136
        difficulty = 0;
137
        damagereduction = 0.4;
138
        haveusedroaring = true;
139
        phase = 3;
140
    }
141
}