Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_titan_enemy_Other_10

(view raw script w/o annotations or w/e)
1
var _battlemsg1 = stringsetloc(
* Titan's DEFENSE dropped massively! ATTACKs are super effective!
"* Titan's DEFENSE dropped massively! ATTACKs are super effective!", "obj_titan_enemy_slash_Other_10_gml_4_0"
);
2
var _battlemsg3 = stringsetloc(
* The darkness slithers.
"* The darkness slithers.", "obj_titan_enemy_slash_Other_10_gml_8_0"
);
3
var _battlemsg4 = stringsetloc(
* Darkness flows.
* A swarm is coming.
"* Darkness flows.&* A swarm is coming.", "obj_titan_enemy_slash_Other_10_gml_9_0"
);
4
var _battlemsg5 = stringsetloc(
* The Titan's hands began to move once more.
"* The Titan's hands began to move once more.", "obj_titan_enemy_slash_Other_10_gml_10_0"
);
5
var _battlemsg6 = stringsetloc(
* ...
"* ...", "obj_titan_enemy_slash_Other_10_gml_11_0"
);
6
var _battlemsg7 = stringsetloc(
* Titan's DEFENSEs are dropped! ATTACKs will be super effective!
"* Titan's DEFENSEs are dropped! ATTACKs will be super effective!", "obj_titan_enemy_slash_Other_10_gml_12_0"
);
7
if (phase == 1)
8
{
9
    if (phaseturn == 1)
10
    {
11
        myattackchoice = 0;
12
        difficulty = 0;
13
        global.battlemsg[0] = stringsetloc(
* The ground shudders.
* A swarm is coming.
"* The ground shudders.&* A swarm is coming.", "obj_titan_enemy_slash_Other_10_gml_15_0"
);
14
    }
15
    if (phaseturn == 2)
16
    {
17
        myattackchoice = 12;
18
        difficulty = 0;
19
        global.battlemsg[0] = stringsetloc(
* The darkness gives a long gaze, which slithered like a snake.
"* The darkness gives a long gaze, which slithered like a snake. ", "obj_titan_enemy_slash_Other_10_gml_16_0"
);
20
    }
21
    if (phaseturn == 3)
22
    {
23
        myattackchoice = 9;
24
        difficulty = 0;
25
        phaseturn = 0;
26
        global.battlemsg[0] = stringsetloc(
* For a moment,
* You felt your heart being gripped.
"* For a moment, &* You felt your heart being gripped.", "obj_titan_enemy_slash_Other_10_gml_17_0"
);
27
    }
28
}
29
else if (phase == 2)
30
{
31
    if (phaseturn == 1)
32
    {
33
        myattackchoice = 4;
34
        difficulty = 0;
35
        if (global.hp[3] < 1)
36
        {
37
            global.battlemsg[0] = _battlemsg1;
38
        }
39
        else
40
        {
41
            global.battlemsg[0] = _battlemsg1b;
42
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("ralsei");
43
        }
44
    }
45
    if (phaseturn == 2)
46
    {
47
        myattackchoice = 1;
48
        difficulty = 0;
49
        phaseturn = 1;
50
        phase = 3;
51
        deunleash = true;
52
        unleash_hp = unleash_hpmax;
53
        if (global.hp[2] < 1)
54
        {
55
            global.battlemsg[0] = _battlemsg6;
56
        }
57
        else
58
        {
59
            global.battlemsg[0] = stringsetloc(
Face I* Damn! Its shield is back... Kris, take it down again!
"\\EI* Damn! Its shield is back... Kris, take it down again!", "obj_titan_enemy_slash_Other_10_gml_24_0"
);
60
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("susie");
61
        }
62
    }
63
}
64
else if (phase == 3)
65
{
66
    if (phaseturn == 1)
67
    {
68
        myattackchoice = 1;
69
        difficulty = 0;
70
        global.battlemsg[0] = _battlemsg3;
71
    }
72
    if (phaseturn == 2)
73
    {
74
        myattackchoice = 14;
75
        difficulty = 0;
76
        global.battlemsg[0] = _battlemsg4;
77
    }
78
    if (phaseturn == 3)
79
    {
80
        myattackchoice = 10;
81
        difficulty = 0;
82
        phaseturn = 0;
83
        handattackhardcon = 1;
84
        global.battlemsg[0] = _battlemsg5;
85
    }
86
}
87
else if (phase == 4)
88
{
89
    if (phaseturn == 1)
90
    {
91
        myattackchoice = 4;
92
        difficulty = 0;
93
        if (global.hp[3] < 1)
94
        {
95
            global.battlemsg[0] = _battlemsg1;
96
        }
97
        else
98
        {
99
            global.battlemsg[0] = _battlemsg1b;
100
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("ralsei");
101
        }
102
    }
103
    if (phaseturn == 2)
104
    {
105
        myattackchoice = 5;
106
        difficulty = 0;
107
        phaseturn = 1;
108
        phase = 5;
109
        deunleash = true;
110
        unleash_hp = unleash_hpmax;
111
        if (global.hp[2] < 1)
112
        {
113
            global.battlemsg[0] = _battlemsg6;
114
        }
115
        else
116
        {
117
            global.battlemsg[0] = stringsetloc(
Face J* We almost got it! Keep taking down its shield, Kris!
"\\EJ* We almost got it! Keep taking down its shield, Kris!", "obj_titan_enemy_slash_Other_10_gml_39_0"
);
118
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("susie");
119
        }
120
    }
121
}
122
else if (phase == 5)
123
{
124
    if (phaseturn == 1)
125
    {
126
        myattackchoice = 5;
127
        difficulty = 0;
128
        global.battlemsg[0] = _battlemsg3;
129
    }
130
    if (phaseturn == 2)
131
    {
132
        myattackchoice = 15;
133
        difficulty = 0;
134
        global.battlemsg[0] = _battlemsg4;
135
    }
136
    if (phaseturn == 3)
137
    {
138
        myattackchoice = 11;
139
        difficulty = 0;
140
        phaseturn = 0;
141
        global.battlemsg[0] = _battlemsg5;
142
    }
143
}
144
else if (phase == 6)
145
{
146
    unleashmultiplierturn++;
147
    if (unleashmultiplierturn == 1)
148
        unleashmultiplier = 1.2;
149
    if (unleashmultiplierturn == 2)
150
        unleashmultiplier = 1.2;
151
    if (unleashmultiplierturn == 3)
152
        unleashmultiplier = 2;
153
    if (unleashmultiplierturn == 4)
154
        unleashmultiplier = 3;
155
    if (loopedphase6)
156
    {
157
        myattackchoice = 4;
158
        difficulty = 0;
159
        phaseturn = 1;
160
        global.battlemsg[0] = _battlemsg7;
161
    }
162
    else
163
    {
164
        switch (phase6turn)
165
        {
166
            case 1:
167
                myattackchoice = 3;
168
                difficulty = 0;
169
                phase6turn = 2;
170
                global.battlemsg[0] = "";
171
                break;
172
            case 2:
173
                myattackchoice = 4;
174
                difficulty = 0;
175
                phaseturn = 1;
176
                global.battlemsg[0] = _battlemsg7;
177
                if (loopedphase6 == true)
178
                {
179
                    global.battlemsg[0] = _battlemsg2;
180
                    
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("ralsei");
181
                }
182
                loopedphase6 = true;
183
                break;
184
        }
185
    }
186
}
187
else if (phase == 7)
188
{
189
    unleashmultiplier = 1;
190
    global.battlemsg[0] = _battlemsg6;
191
    if (phaseturn == 1)
192
    {
193
        myattackchoice = 20;
194
        difficulty = 0;
195
    }
196
    if (phaseturn == 2)
197
    {
198
        myattackchoice = 20;
199
        difficulty = 0;
200
    }
201
    if (phaseturn == 3)
202
    {
203
        myattackchoice = 20;
204
        difficulty = 0;
205
    }
206
}
207
else if (phase == 8)
208
{
209
    global.battlemsg[0] = _battlemsg6;
210
    if (dualbusterused)
211
        myattackchoice = 4;
212
    else
213
        myattackchoice = 15;
214
    difficulty = 0;
215
}