Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_ch3_curtainroomnpc_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    var pedestal_npc = instance_create(1880, 190, obj_npc_room);
4
    with (pedestal_npc)
5
    {
6
        extflag = "pedestal";
7
        sprite_index = spr_castle_book_pillar;
8
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
9
    }
10
    shadowguy_sax = 
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; }
(1980, 142, spr_shadowman_sax_a);
11
    with (shadowguy_sax)
12
    {
13
        
scr_flip
scr_flip

function
scr_flip(arg0)
{ if (arg0 == "h" || arg0 == "x") { x += ((sprite_get_width(sprite_index) - (sprite_get_xoffset(sprite_index) * 2)) * image_xscale); image_xscale = -image_xscale; } else { y += ((sprite_get_height(sprite_index) - (sprite_get_yoffset(sprite_index) * 2)) * image_yscale); image_yscale = -image_yscale; } }
("x");
14
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
15
        image_speed = 0.25;
16
    }
17
    var shadowguy_sax_readable = instance_create(shadowguy_sax.x - 90, shadowguy_sax.y + 40, obj_readable_room1);
18
    with (shadowguy_sax_readable)
19
    {
20
        extflag = "shadowguy_sax";
21
        image_xscale = 3;
22
        image_yscale = 3;
23
    }
24
    var shadowguy_sax_block = instance_create(shadowguy_sax.x - 100, shadowguy_sax.y + 40, obj_solidblocksized);
25
    with (shadowguy_sax_block)
26
    {
27
        image_xscale = 2;
28
        image_yscale = 2;
29
    }
30
    shadowguy = 
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; }
(shadowguy_sax.x + 4, 142, spr_shadowman_idle_a);
31
    with (shadowguy)
32
    {
33
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
34
        image_speed = 0.25;
35
    }
36
    shadowguy_readable = instance_create(shadowguy.x + 20, shadowguy.y + 40, obj_readable_room1);
37
    with (shadowguy_readable)
38
    {
39
        extflag = "shadowguy";
40
        image_xscale = 3;
41
        image_yscale = 3;
42
    }
43
    var shadowguy_block = instance_create(shadowguy.x, shadowguy.y + 40, obj_solidblocksized);
44
    with (shadowguy_block)
45
    {
46
        image_xscale = 2.6;
47
        image_yscale = 2;
48
    }
49
    var pippins_marker = 
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; }
(shadowguy.x + 150, 170, spr_npc_pippins_jump);
50
    pippins_marker.image_speed = 0.2;
51
    with (pippins_marker)
52
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
53
    var pippins_readable = instance_create(pippins_marker.x + 8, pippins_marker.y + 16, obj_readable_room1);
54
    with (pippins_readable)
55
    {
56
        extflag = "pippins";
57
        image_xscale = 3;
58
        image_yscale = 2;
59
    }
60
    var pippins_block = instance_create(pippins_marker.x + 4, pippins_marker.y + 40, obj_solidblocksized);
61
    with (pippins_block)
62
    {
63
        image_xscale = 1.6;
64
        image_yscale = 1;
65
    }
66
    var save_point = instance_create(pippins_marker.x + 110, 230, obj_savepoint);
67
    with (save_point)
68
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
69
    var trash_marker = 
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; }
(save_point.x + 80, 174, spr_dw_ch3_b3bs_trashcan);
70
    with (trash_marker)
71
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
72
    var trash_readable = instance_create(trash_marker.x + 4, trash_marker.y + 20, obj_readable_room1);
73
    with (trash_readable)
74
    {
75
        extflag = "shutta";
76
        image_xscale = 2;
77
        image_yscale = 3;
78
    }
79
    var trash_block = instance_create(trash_marker.x + 4, trash_marker.y + 40, obj_solidblocksized);
80
    with (trash_block)
81
    {
82
        image_xscale = 1;
83
        image_yscale = 1;
84
    }
85
    shutta_marker = 
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; }
(trash_marker.x + 20, trash_marker.y + 80, spr_dw_couch_shutta_hand);
86
    shutta_marker.depth = trash_marker.depth + 10;
87
    var zapper_npc = instance_create(trash_marker.x + 110, 109, obj_npc_room);
88
    with (zapper_npc)
89
    {
90
        extflag = "zapper";
91
        sprite_index = spr_npc_zapper_talk;
92
    }
93
    lanino = 
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; }
(zapper_npc.x + 170, 260, spr_lanino_cool);
94
    with (lanino)
95
    {
96
        depth = 98340;
97
        image_xscale = -2;
98
        image_index = 3;
99
    }
100
    elnina = 
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; }
(lanino.x + 120, 260, spr_elnina_cool);
101
    with (elnina)
102
    {
103
        depth = 98350;
104
        image_index = 3;
105
    }
106
    var weather_guys_readable = instance_create(lanino.x - 10, 218, obj_readable_room1);
107
    with (weather_guys_readable)
108
    {
109
        extflag = "weather_guys";
110
        image_xscale = 7;
111
        image_yscale = 2;
112
    }
113
    var weather_block = instance_create(lanino.x - 10, 218, obj_solidblocksized);
114
    with (weather_block)
115
    {
116
        image_xscale = 4;
117
        image_yscale = 1;
118
    }
119
    var ramb_npc = instance_create(elnina.x + 90, 194, obj_npc_ramb);
120
    with (ramb_npc)
121
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
122
    var rouxls_npc = instance_create(ramb_npc.x + 90, 144, obj_npc_room);
123
    with (rouxls_npc)
124
    {
125
        extflag = "rouxls";
126
        sprite_index = spr_rurus_idle;
127
    }
128
    shadowguycon = 0;
129
    shadowguytimer = 0;
130
    weathercon = 0;
131
    weathertimer = 0;
132
    init = 1;
133
}
134
if (shadowguycon == 2)
135
{
136
    if (i_ex(shadowguy))
137
    {
138
        if (global.interact == 0)
139
            global.interact = 1;
140
        shadowguytimer++;
141
        if (shadowguytimer == 1)
142
        {
143
            snd_play_x(snd_damage, 0.8, 1.6);
144
            with (shadowguy)
145
            {
146
                sprite_index = spr_shadowman_hurt;
147
                
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
148
                y = ystart;
149
                x = xstart;
150
            }
151
        }
152
        if (shadowguytimer >= 26)
153
        {
154
            with (shadowguy_readable)
155
                extflag = "shadowguy_fallen";
156
            shadowguy.image_xscale = 2;
157
            shadowguy.sprite_index = spr_shadowman_fallen;
158
            shadowguy.hspeed = 6;
159
            shadowguy.friction = 0.5;
160
            shadowguy.y += 80;
161
            shadowguy.x -= 30;
162
            snd_play(snd_bump);
163
            snd_play(snd_wing);
164
            shadowguycon = 3;
165
            shadowguytimer = 0;
166
        }
167
    }
168
}
169
if (shadowguycon == 3)
170
{
171
    if (shadowguy.hspeed == 0)
172
    {
173
        shadowguycon = 4;
174
        global.interact = 0;
175
    }
176
}
177
if (weather_talk)
178
{
179
    if (weather_talk_con == 0 && global.interact == 0)
180
    {
181
        weather_talk_con = 1;
182
        global.interact = 1;
183
        
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 == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } 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; ...
("no_name");
184
        msgsetloc(0, 
* Ah,Delay 11 the stars. Charmed. We'll be your boss encounter.Wait for input
"* Ah^1, the stars. Charmed. We'll be your boss encounter./", "obj_dw_ch3_curtainroomnpc_slash_Step_0_gml_194_0"
);
185
        msgnextloc(
* Here's a little romantic forecast for you...Wait for inputClose Message
"* Here's a little romantic forecast for you.../%", "obj_dw_ch3_curtainroomnpc_slash_Step_0_gml_195_0"
);
186
        d_make();
187
    }
188
    if (weather_talk_con == 1 && !d_ex())
189
    {
190
        weather_talk_con = 2;
191
        weathercon = 1;
192
    }
193
    if (weather_talk_con == 2 && weathercon == 2)
194
    {
195
        weather_talk_con = 3;
196
        
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 == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } 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; ...
("no_name");
197
        msgsetloc(0, 
* The weather...Wait for inputClose Message
"* The weather.../%", "obj_dw_ch3_curtainroomnpc_slash_Step_0_gml_211_0"
);
198
        d_make();
199
    }
200
    if (weather_talk_con == 3 && !d_ex())
201
    {
202
        weather_talk_con = 4;
203
        weathercon = 3;
204
    }
205
    if (weather_talk_con == 4 && weathercon == 0)
206
    {
207
        weather_talk_con = 5;
208
        
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 == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } 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; ...
("no_name");
209
        msgsetloc(0, 
* ...Delay 11 always sticks together.Wait for inputClose Message
"* ..^1. always sticks together./%", "obj_dw_ch3_curtainroomnpc_slash_Step_0_gml_227_0"
);
210
        d_make();
211
    }
212
    if (weather_talk_con == 5 && !d_ex())
213
    {
214
        weather_talk_con = -1;
215
        weather_talk = false;
216
        global.interact = 0;
217
    }
218
}
219
if (global.flag[20 other_text_command] == 1)
220
{
221
    if (!weather_pose)
222
    {
223
        weather_pose = true;
224
        weathercon = 1;
225
    }
226
}
227
else if (global.flag[20 other_text_command] == 2)
228
{
229
    global.flag[20 other_text_command] = 0;
230
    if (weather_pose)
231
    {
232
        weather_pose = false;
233
        weathercon = 3;
234
    }
235
}
236
if (weather_pose)
237
{
238
    if (weather_pose_con == 0 && global.interact == 0)
239
    {
240
        global.interact = 1;
241
        weather_pose_con = 2;
242
        weathercon = 1;
243
        
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 == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } 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; ...
("no_name");
244
        msgsetloc(0, 
* Tonight's weather is...Wait for inputClose Message
"* Tonight's weather is.../%", "obj_dw_ch3_curtainroomnpc_slash_Step_0_gml_289_0"
);
245
        d_make();
246
    }
247
    if (weather_pose_con == 2 && !d_ex())
248
    {
249
        weather_pose_con = 3;
250
        weathercon = 3;
251
    }
252
    if (weather_pose_con == 3 && weathercon == 0)
253
    {
254
        weather_pose_con = 6;
255
        var weather_list = [stringsetloc(
Moons
"Moons", "obj_dw_ch3_curtainroomnpc_slash_Step_0_gml_302_0"
), stringsetloc(
Crystal
"Crystal", "obj_dw_ch3_curtainroomnpc_slash_Step_0_gml_302_1"
), stringsetloc(
Drop
"Drop", "obj_dw_ch3_curtainroomnpc_slash_Step_0_gml_302_2"
), stringsetloc(
Sun
"Sun", "obj_dw_ch3_curtainroomnpc_slash_Step_0_gml_302_3"
)];
256
        var weather_word = weather_list[irandom(array_length_1d(weather_list) - 1)];
257
        
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 == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } 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; ...
("no_name");
258
        msgsetsubloc(0, "* ~1./%", weather_word, "obj_dw_ch3_curtainroomnpc_slash_Step_0_gml_306_0");
259
        d_make();
260
    }
261
    if (weather_pose_con == 6 && !d_ex())
262
    {
263
        weather_pose_con = 0;
264
        weather_pose = false;
265
        global.interact = 0;
266
    }
267
}
268
if (weathercon == 1)
269
{
270
    weathertimer = 0;
271
    snd_play(snd_wing);
272
    with (lanino)
273
    {
274
        image_index = 0;
275
        
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
276
    }
277
    with (elnina)
278
    {
279
        image_index = 0;
280
        
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
281
    }
282
    weathercon = 2;
283
}
284
if (weathercon == 3)
285
{
286
    weathertimer++;
287
    if (weathertimer == 1)
288
    {
289
        with (lanino)
290
        {
291
            image_index = 0;
292
            image_speed = 0.5;
293
        }
294
        with (elnina)
295
        {
296
            image_index = 0;
297
            image_speed = 0.5;
298
        }
299
    }
300
    if (weathertimer == 4)
301
        snd_play(snd_wing);
302
    if (weathertimer == 7)
303
    {
304
        snd_play_x(snd_bell, 0.5, 0.8);
305
        with (lanino)
306
        {
307
            image_speed = 0;
308
            
scr_animation
scr_animation

function
scr_animation(arg0, arg1, arg2, arg3 = 1, arg4 = 0)
{ var __anim = instance_create(arg0, arg1, obj_animation); with (__anim) { sprite_index = arg2; image_speed = arg3; image_index = arg4; } return __anim; } function scr_dark_animation(arg0, arg1, arg2, arg3 = 1, arg4 = 0) { var __anim =
scr_animation(arg0, arg1, arg2, arg3, arg4);
with (__anim) { image_xscale = 2; image_yscale = 2; } return __anim; }
(x, y - 80, 3133, 0.5, 0);
309
        }
310
        with (elnina)
311
        {
312
            image_speed = 0;
313
            
scr_animation
scr_animation

function
scr_animation(arg0, arg1, arg2, arg3 = 1, arg4 = 0)
{ var __anim = instance_create(arg0, arg1, obj_animation); with (__anim) { sprite_index = arg2; image_speed = arg3; image_index = arg4; } return __anim; } function scr_dark_animation(arg0, arg1, arg2, arg3 = 1, arg4 = 0) { var __anim =
scr_animation(arg0, arg1, arg2, arg3, arg4);
with (__anim) { image_xscale = 2; image_yscale = 2; } return __anim; }
(x + 6, y - 80, 3133, 0.5, 0);
314
        }
315
        var flyingheart = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(((lanino.x + elnina.x) / 2) + 6, lanino.y - 96, spr_shadowman_sharpshoot_heart);
316
        with (flyingheart)
317
        {
318
            image_xscale = 0.5;
319
            image_yscale = 0.5;
320
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("image_alpha", 3, 0, 30, 0, "in");
321
            speed = 4 + random(2);
322
            direction = 90 + random_range(-20, 20);
323
            friction = 0.3;
324
            
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(id, 60);
325
        }
326
    }
327
    if (weathertimer == 30)
328
        weathercon = 0;
329
}
330
if (shadow_play)
331
{
332
    if (shadow_play_con == 0 && !d_ex())
333
    {
334
        shadow_play_con = 1;
335
        global.interact = 1;
336
        snd_play(snd_shadowman_sax_1);
337
        scr_delay_var("shadow_play_con", 5, 20);
338
    }
339
    if (shadow_play_con == 5 && !d_ex())
340
    {
341
        global.interact = 0;
342
        shadow_play = false;
343
        shadow_play_con = 0;
344
    }
345
}
346
if (starwalker_active)
347
{
348
    if (starwalker_npc == -4)
349
    {
350
        if (obj_mainchara.x >= 450)
351
        {
352
            starwalker_npc = instance_create(40, 184, obj_npc_room);
353
            with (starwalker_npc)
354
            {
355
                extflag = "starwalker";
356
                sprite_index = spr_npc_originalstarwalker;
357
                
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
358
            }
359
        }
360
    }
361
}
362
if (shutta_talk)
363
{
364
    if (shutta_talk_con == 0 && global.interact == 0)
365
    {
366
        shutta_talk_con = 1;
367
        global.interact = 1;
368
        with (shutta_marker)
369
        {
370
            image_speed = 0.2;
371
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", ystart, ystart - 40, 6, 3, "out");
372
        }
373
        
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 == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } 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; ...
("no_name");
374
        msgsetloc(0, 
* Everyone pose!Wait for inputClose Message
"* Everyone pose!/%", "obj_dw_ch3_curtainroomnpc_slash_Step_0_gml_353_0"
);
375
        d_make();
376
    }
377
    if (shutta_talk_con == 1 && !d_ex())
378
    {
379
        shutta_talk_con = 2;
380
        scr_delay_var("shutta_talk_con", 3, 30);
381
        with (obj_mainchara)
382
        {
383
            cutscene = 1;
384
            fun = 1;
385
            image_speed = 0.4;
386
            sprite_index = dsprite;
387
            var distance = distance_to_point(x, y);
388
            var max_speed = clamp(distance / 6, 6, 20);
389
            
scr_move_to_point_over_time
scr_move_to_point_over_time

function
scr_move_to_point_over_time(arg0, arg1, arg2)
{ _mmm = instance_create(x, y, obj_move_to_point); _mmm.target = id; _mmm.movex = arg0; _mmm.movey = arg1; _mmm.movemax = arg2; return _mmm; }
(2352, 222, max_speed);
390
            scr_delay_var("image_index", 0, max_speed);
391
            scr_delay_var("image_speed", 0, max_speed);
392
        }
393
        with (obj_caterpillarchara)
394
        {
395
            cutscene = 1;
396
            fun = 1;
397
            follow = 0;
398
            if (name == "susie")
399
            {
400
                var target_x_pos = 2402;
401
                image_speed = 0.4;
402
                sprite_index = (x > target_x_pos) ? lsprite : rsprite;
403
                var distance = distance_to_point(target_x_pos, 209);
404
                var max_speed = clamp(distance / 10, 10, 20);
405
                
scr_move_to_point_over_time
scr_move_to_point_over_time

function
scr_move_to_point_over_time(arg0, arg1, arg2)
{ _mmm = instance_create(x, y, obj_move_to_point); _mmm.target = id; _mmm.movex = arg0; _mmm.movey = arg1; _mmm.movemax = arg2; return _mmm; }
(target_x_pos, 209, max_speed);
406
                scr_delay_var("sprite_index", dsprite, max_speed);
407
                scr_delay_var("image_index", 0, max_speed);
408
                scr_delay_var("image_speed", 0, max_speed);
409
            }
410
            else if (name == "ralsei")
411
            {
412
                var target_x_pos = 2284;
413
                image_speed = 0.4;
414
                sprite_index = (x > target_x_pos) ? lsprite : rsprite;
415
                var distance = distance_to_point(target_x_pos, 213);
416
                var max_speed = clamp(distance / 10, 10, 20);
417
                
scr_move_to_point_over_time
scr_move_to_point_over_time

function
scr_move_to_point_over_time(arg0, arg1, arg2)
{ _mmm = instance_create(x, y, obj_move_to_point); _mmm.target = id; _mmm.movex = arg0; _mmm.movey = arg1; _mmm.movemax = arg2; return _mmm; }
(target_x_pos, 213, max_speed);
418
                scr_delay_var("sprite_index", dsprite, max_speed);
419
                scr_delay_var("image_index", 0, max_speed);
420
                scr_delay_var("image_speed", 0, max_speed);
421
            }
422
        }
423
    }
424
    if (shutta_talk_con == 3)
425
    {
426
        shutta_talk_con = 4;
427
        scr_delay_var("shutta_talk_con", 5, 15);
428
        with (obj_mainchara)
429
            sprite_index = spr_kris_pose;
430
        with (obj_caterpillarchara)
431
        {
432
            if (name == "susie")
433
                sprite_index = spr_susie_pose;
434
            else if (name == "ralsei")
435
                sprite_index = spr_ralsei_pose;
436
        }
437
    }
438
    if (shutta_talk_con == 5 && !d_ex())
439
    {
440
        shutta_talk_con = 6;
441
        scr_delay_var("shutta_talk_con", 7, 30);
442
        var flash_background = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(0, 0, spr_pixel_white);
443
        with (flash_background)
444
        {
445
            image_xscale = 999;
446
            image_yscale = 999;
447
            image_alpha = 0;
448
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("image_alpha", 0, 1, 3);
449
            
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_lerpvar, 6, "image_alpha", 1, 0, 6);
450
        }
451
        
scr_doom
scr_doom

function
scr_doom(arg0, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; } }
(flash_background, 7);
452
        snd_play_volume(snd_camera_flash, 0.8);
453
    }
454
    if (shutta_talk_con == 7)
455
    {
456
        shutta_talk_con = 8;
457
        scr_delay_var("shutta_talk_con", 10, 8);
458
        with (shutta_marker)
459
        {
460
            image_speed = 0;
461
            image_index = 0;
462
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", ystart - 40, ystart, 6, 3, "out");
463
        }
464
        with (obj_mainchara)
465
            sprite_index = dsprite;
466
        with (obj_caterpillarchara)
467
            sprite_index = dsprite;
468
        
scr_pan_to_obj
scr_pan_to_obj

function
scr_pan_to_obj(arg0, arg1)
{ _panx = arg0.x - floor((__view_get(e__VW.WView, 0) / 2) - (arg0.sprite_width / 2)); _pany = arg0.y - floor((__view_get(e__VW.HView, 0) / 2) - (arg0.sprite_height / 2)); if (_panx < 0) _panx = 0; if (_panx >= (room_width - __view_get(e__VW.WView, 0))) _panx = room_width - __view_get(e__VW.WView, 0); if (_pany < 0) _pany = 0; if (_pany >= (room_height - __view_get(e__VW.HView, 0))) _pany = room_height - __view_get(e__VW.HView, 0);
scr_pan_lerp(_panx, _pany, arg1);
} enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
(obj_mainchara, 8);
469
    }
470
    if (shutta_talk_con == 10)
471
    {
472
        shutta_talk_con = 0;
473
        global.interact = 0;
474
        global.facing = 0;
475
        shutta_talk = false;
476
        with (obj_mainchara)
477
        {
478
            cutscene = 0;
479
            fun = 0;
480
        }
481
        with (obj_caterpillarchara)
482
        {
483
            cutscene = 0;
484
            fun = 0;
485
            follow = 1;
486
            
scr_caterpillar_interpolate
scr_caterpillar_interpolate

function
scr_caterpillar_interpolate()
{ _newfacing =
scr_facing_letter_to_number(
scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x; remy[0] = obj_mainchara.y; facing[0] = _newfacing; for (_iaia = target; _iaia > 0; _iaia -= 1) { remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target); if (global.darkzone == 1) remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target); else remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target); facing[_iaia] = _newfacing; } }
();
487
        }
488
    }
489
}