Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_scene26_powers_combined_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    image_xscale = lerp(image_xscale, 2, 0.15);
4
    image_yscale = lerp(image_yscale, 2, 0.15);
5
    image_alpha = lerp(image_alpha, 1, 0.15);
6
    if (image_alpha >= 0.9)
7
    {
8
        if (i_ex(obj_actor))
9
        {
10
            with (obj_actor)
11
                image_alpha = lerp(image_alpha, 0, 0.5);
12
        }
13
    }
14
    if (image_alpha >= 0.95)
15
    {
16
        con = 1;
17
        image_alpha = 1;
18
        
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 == "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; } if (global.fighting == 1) ...
("berdly");
19
        msgsetloc(0, 
Face J* With a splendid base...Wait for inputClose Message
"\\EJ* With a splendid base.../%", "obj_ch2_scene26_powers_combined_slash_Step_0_gml_16_0"
);
20
        var d = d_make();
21
        d.side = 1;
22
    }
23
}
24
if (con == 1 && !d_ex())
25
{
26
    color_lerp = round(lerp(color_lerp, 1, 0.15) * 100) / 100;
27
    image_blend = merge_color(c_white, c_black, color_lerp);
28
    if (color_lerp >= 0.95)
29
    {
30
        con = 2;
31
        image_blend = c_black;
32
    }
33
}
34
if (con == 2)
35
{
36
    if (current_index > -1)
37
    {
38
        if (recruit_con == 0)
39
        {
40
            recruit_con = 1;
41
            if (!is_undefined(ds_map_find_value(recruit_dialog_map, array_get(recruit, current_index))))
42
            {
43
                var dialog = ds_map_find_value(recruit_dialog_map, array_get(recruit, current_index));
44
                
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 == "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; } if (global.fighting == 1) ...
("no_name");
45
                msgset(0, dialog);
46
                var d = d_make();
47
                d.side = 1;
48
            }
49
            else
50
            {
51
            }
52
        }
53
        if (recruit_con == 1)
54
        {
55
            recruit_con = 2;
56
            recruit_col = recruit_color[current_index];
57
            current_sprite = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x + (current_side * 80), y, ds_map_find_value(recruit_sprite_map, array_get(recruit, current_index)));
58
            current_sprite.depth = depth - 100;
59
            if (current_side == -1)
60
                current_sprite.image_xscale = -3;
61
            else
62
                current_sprite.image_xscale = 3;
63
            current_sprite.image_yscale = 3;
64
            current_sprite.image_alpha = 0;
65
        }
66
        if (recruit_con == 2)
67
        {
68
            if (current_side == -1)
69
                current_sprite.image_xscale = lerp(current_sprite.image_xscale, -2, 0.15);
70
            else
71
                current_sprite.image_xscale = lerp(current_sprite.image_xscale, 2, 0.15);
72
            current_sprite.image_yscale = lerp(current_sprite.image_yscale, 2, 0.15);
73
            current_sprite.image_alpha = lerp(current_sprite.image_alpha, 1, 0.15);
74
            current_sprite.x = lerp(x + (current_side * 80), x + (current_side * 20), current_sprite.image_alpha);
75
            if (current_sprite.image_alpha >= 0.95 && !d_ex())
76
            {
77
                recruit_con = 3;
78
                color_lerp = 0;
79
                current_sprite.image_alpha = 1;
80
                start_color = c_black;
81
                end_color = c_white;
82
                fade_in_out = true;
83
            }
84
        }
85
        if (recruit_con == 3)
86
        {
87
            color_lerp = round(lerp(color_lerp, 1, 0.35) * 100) / 100;
88
            current_sprite.x = lerp(x + (current_side * 20), x, color_lerp);
89
            if (current_side == -1)
90
                current_sprite.image_xscale = lerp(-2, -1, color_lerp);
91
            else
92
                current_sprite.image_xscale = lerp(2, 1, color_lerp);
93
            current_sprite.image_yscale = lerp(2, 1, color_lerp);
94
            current_sprite.image_blend = merge_color(c_white, c_black, color_lerp);
95
            if (color_lerp >= 0.95)
96
            {
97
                recruit_con = 4;
98
                color_lerp = 0;
99
                current_sprite.image_blend = c_black;
100
                start_color = c_white;
101
                end_color = c_black;
102
                miniflash = 0;
103
            }
104
        }
105
        if (recruit_con == 4)
106
        {
107
            color_lerp = round(lerp(color_lerp, 1, 0.35) * 100) / 100;
108
            if (color_lerp >= 0.95)
109
            {
110
                fade_in_out = false;
111
                recruit_con = 5;
112
                color_lerp = 0;
113
                image_blend = c_black;
114
                instance_destroy(current_sprite);
115
                current_index++;
116
                if (current_index >= array_length_1d(recruit))
117
                {
118
                    current_index = -1;
119
                    current_side = 0;
120
                }
121
                else
122
                {
123
                    recruit_con = 0;
124
                    current_side *= -1;
125
                }
126
            }
127
        }
128
    }
129
    else
130
    {
131
        con = 3;
132
    }
133
}
134
if (con == 3)
135
{
136
    if (thrash_con == 0)
137
    {
138
        thrash_con = 0.5;
139
        
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 == "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; } if (global.fighting == 1) ...
("rouxls");
140
        msgsetloc(0, 
* And....Delay 11 mosteth of all...Wait for inputClose Message
"* And...^1. mosteth of all.../%", "obj_ch2_scene26_powers_combined_slash_Step_0_gml_159_0"
);
141
        var d = d_make();
142
        d.side = 1;
143
    }
144
    if (thrash_con == 0.5 && !d_ex())
145
        thrash_con = 1;
146
    if (thrash_con == 1)
147
    {
148
        if (thrash == -4)
149
        {
150
            
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 == "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; } if (global.fighting == 1) ...
("rouxls");
151
            msgsetloc(0, 
Face 6* Whatevereth this thingeth is!!!Wait for inputClose Message
"\\E6* Whatevereth this thingeth is!!!/%", "obj_ch2_scene26_powers_combined_slash_Step_0_gml_160_0"
);
152
            var d = d_make();
153
            d.side = 1;
154
            thrash = instance_create(camerax() + 320, cameray() + 220, obj_thrashmachine);
155
            thrash.s = 6;
156
            thrash.drawfeet = 1;
157
            thrash.animate = 0;
158
            thrash.depth = 150;
159
            thrash.override_color = c_black;
160
            thrash.glow = 0;
161
        }
162
        thrash.s = round(lerp(thrash.s, 3, 0.1) * 100) / 100;
163
        if (thrash.s <= 3.25 && !d_ex())
164
        {
165
            thrash.s = 3;
166
            orb_con = 1;
167
            thrash_con = 2;
168
            color_lerp = 0;
169
            fade_in_out = true;
170
            start_color = c_black;
171
            end_color = c_white;
172
        }
173
    }
174
    if (thrash_con == 2)
175
    {
176
        if (thrash.glow < 1)
177
            thrash.glow = lerp(thrash.glow, 1, 0.35);
178
        if (thrash.glow >= 0.99 && thrash_con <= 2)
179
        {
180
            thrash.glow = 1;
181
            thrash_con = 2.5;
182
            var d = instance_create(x, y + 26, obj_ch2_scene26_henshin_flash);
183
            d.depth = 151;
184
            big_square = instance_create(x, y, obj_screen_color);
185
            big_square.blend_mode = 1;
186
            big_square.image_blend = c_white;
187
            alarm[0]
 = 45;
gml_Object_obj_ch2_scene26_powers_combined_Alarm_0.gml

con++;
188
        }
189
    }
190
}
191
if (con == 4)
192
{
193
    if (thrash_con == 3)
194
    {
195
        instance_destroy(thrash);
196
        instance_destroy(obj_ch2_scene26_henshin_flash);
197
        instance_destroy(big_square);
198
        thrash = instance_create(camerax() + 320, cameray() + 240, obj_ch2_scene26_transformation);
199
        thrash.depth = depth - 30;
200
        thrash.image_xscale = 3;
201
        thrash.image_yscale = 3;
202
        thrash_con = 4;
203
        alarm[0]
 = 45;
gml_Object_obj_ch2_scene26_powers_combined_Alarm_0.gml

con++;
204
    }
205
}
206
if (con == 5)
207
{
208
    if (thrash_con == 4)
209
    {
210
        snd_play(snd_weaponpull);
211
        snd_play(snd_closet_impact);
212
        thrash_con = 5;
213
        thrash.max_index = 3;
214
        thrash.image_play = true;
215
        thrash.image_index++;
216
        alarm[0]
 = 30;
gml_Object_obj_ch2_scene26_powers_combined_Alarm_0.gml

con++;
217
    }
218
}
219
if (con == 6)
220
{
221
    if (thrash_con == 5)
222
    {
223
        snd_play(snd_weaponpull);
224
        snd_play(snd_closet_impact);
225
        thrash.max_index = 6;
226
        thrash.image_play = true;
227
        thrash.image_index++;
228
        thrash_con = 6;
229
        alarm[0]
 = 30;
gml_Object_obj_ch2_scene26_powers_combined_Alarm_0.gml

con++;
230
    }
231
}
232
if (con == 7)
233
{
234
    if (thrash_con == 6)
235
    {
236
        snd_play(snd_weaponpull);
237
        snd_play(snd_closet_impact);
238
        thrash.image_play = true;
239
        thrash.image_index++;
240
        thrash.max_index = 9;
241
        thrash_con = 7;
242
        alarm[0]
 = 30;
gml_Object_obj_ch2_scene26_powers_combined_Alarm_0.gml

con++;
243
    }
244
}
245
if (con == 8)
246
{
247
    if (thrash_con == 7)
248
    {
249
        thrash.max_index = 11;
250
        thrash.image_index++;
251
        thrash.speed = 30;
252
        thrash.gravity = -2.5;
253
        thrash.direction = 270;
254
        thrash_con = 8;
255
        alarm[0]
 = 10;
gml_Object_obj_ch2_scene26_powers_combined_Alarm_0.gml

con++;
256
    }
257
}
258
if (con == 9)
259
{
260
    if (thrash_con == 8)
261
    {
262
        thrash.image_index++;
263
        thrash_con = 9;
264
        alarm[0]
 = 5;
gml_Object_obj_ch2_scene26_powers_combined_Alarm_0.gml

con++;
265
    }
266
}
267
if (con == 10)
268
{
269
    if (thrash_con == 9)
270
    {
271
        thrash.max_index = 13;
272
        snd_play(snd_cardrive);
273
        snd_play(snd_jump);
274
        thrash_con = 10;
275
        alarm[0]
 = 5;
gml_Object_obj_ch2_scene26_powers_combined_Alarm_0.gml

con++;
276
    }
277
}
278
if (con == 11)
279
{
280
    if (thrash_con == 10)
281
    {
282
        thrash.image_index++;
283
        thrash_con = 11;
284
        alarm[0]
 = 40;
gml_Object_obj_ch2_scene26_powers_combined_Alarm_0.gml

con++;
285
    }
286
}
287
if (con == 12)
288
{
289
    con = 99;
290
    if (i_ex(obj_ch2_scene26))
291
    {
292
        with (obj_ch2_scene26)
293
            con = 15;
294
    }
295
}