Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_spamton_neo_enemy_Other_10

(view raw script w/o annotations or w/e)
1
if ((global.mercymod[myself] > 25 && phase == 1) || (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.75) && phase == 1))
2
    phase = 2;
3
if ((global.mercymod[myself] > 50 && phase == 2) || (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.5) && phase == 2))
4
    phase = 3;
5
if ((global.mercymod[myself] > 70 && phase == 3) || (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.3) && phase == 3))
6
{
7
    phaseturn = 0;
8
    phase = 4;
9
}
10
turn++;
11
phaseturn++;
12
if (phaseturn == 1)
13
{
14
    rr = 0;
15
    difficulty = 1;
16
}
17
if (phaseturn == 2)
18
{
19
    rr = 6;
20
    difficulty = 0;
21
}
22
if (phaseturn == 3)
23
{
24
    rr = 2;
25
    difficulty = 0;
26
}
27
if (phaseturn == 4)
28
{
29
    rr = 8;
30
    difficulty = 0;
31
}
32
if (phaseturn == 5)
33
{
34
    rr = 8.5;
35
    difficulty = 0;
36
    if (hellmode == 1)
37
        difficulty = 2;
38
}
39
if (phaseturn == 6)
40
{
41
    rr = 7;
42
    difficulty = 0;
43
}
44
if (phaseturn == 7)
45
{
46
    rr = 2;
47
    difficulty = 2;
48
}
49
if (phaseturn == 8)
50
{
51
    rr = 0;
52
    difficulty = 3;
53
}
54
if (phaseturn == 9)
55
{
56
    rr = 7;
57
    difficulty = 0;
58
}
59
if (phaseturn == 10)
60
{
61
    rr = 8.5;
62
    difficulty = 2;
63
    if (nothitduringphonehands == 1 || hellmode == 1)
64
    {
65
        rr = 8.5;
66
        difficulty = 1;
67
    }
68
}
69
if (phaseturn == 11)
70
{
71
    rr = 8;
72
    difficulty = 1;
73
}
74
if (phaseturn == 12)
75
{
76
    rr = 6;
77
    difficulty = 1;
78
    phaseturn = 7;
79
}
80
if (phase == 4)
81
{
82
    if (phaseturn == 1)
83
    {
84
        rr = 2;
85
        difficulty = 1;
86
    }
87
    if (phaseturn == 2)
88
    {
89
        rr = 8;
90
        difficulty = 3;
91
    }
92
    if (phaseturn == 3)
93
    {
94
        rr = 9;
95
        difficulty = 0;
96
        haveusedfinalattack = 1;
97
    }
98
    if (phaseturn == 4)
99
    {
100
        rr = 2;
101
        difficulty = 1;
102
    }
103
    if (phaseturn == 5)
104
    {
105
        rr = 7;
106
        difficulty = 0;
107
    }
108
    if (phaseturn == 6)
109
    {
110
        rr = 9;
111
        difficulty = 0;
112
        phaseturn = 3;
113
    }
114
}
115
if ((global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.1) && haveusedfinalattack == 0) || (global.mercymod[myself] > 90 && haveusedfinalattack == 0))
116
{
117
    rr = 9;
118
    difficulty = 0;
119
    haveusedfinalattack = 1;
120
    phaseturn = 3;
121
}
122
if (weirdpathendcon > 0)
123
    rr = 5;