Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_churchb_gersonchase_Step_0

(view raw script w/o annotations or w/e)
1
var str_left = stringsetloc(
Left
"Left", "obj_dw_churchb_gersonchase_slash_Step_0_gml_5_0"
);
2
var str_right = stringsetloc(
Right
"Right", "obj_dw_churchb_gersonchase_slash_Step_0_gml_6_0"
);
3
var str_up = stringsetloc(
Up
"Up", "obj_dw_churchb_gersonchase_slash_Step_0_gml_7_0"
);
4
var str_down = stringsetloc(
Down
"Down", "obj_dw_churchb_gersonchase_slash_Step_0_gml_8_0"
);
5
var str_hisound = stringsetloc(
Church Bell
"Church Bell", "obj_dw_churchb_gersonchase_slash_Step_0_gml_10_0"
);
6
var str_losound = stringsetloc(
Violin
"Violin", "obj_dw_churchb_gersonchase_slash_Step_0_gml_11_0"
);
7
var str_dogcat = stringsetloc(
Drum
"Drum", "obj_dw_churchb_gersonchase_slash_Step_0_gml_12_0"
);
8
var str_laser = stringsetloc(
Guitar
"Guitar", "obj_dw_churchb_gersonchase_slash_Step_0_gml_13_0"
);
9
if (!init)
10
{
11
    var prevy = -1;
12
    if (global.tempflag[51] != 0)
13
    {
14
        with (obj_mainchara)
15
        {
16
            prevy = y;
17
            debug_print(string(global.tempflag[51]));
18
            var offset = findspriteinfo(spr_debug_cameraregionpreview, "DEBUG_ASSETS").y;
19
            y = global.tempflag[51] + offset;
20
            global.tempflag[51] = 0;
21
        }
22
        var moveddist = prevy - obj_mainchara.y;
23
        with (obj_caterpillarchara)
24
        {
25
            for (var i = 0; i < array_length(remx); i++)
26
                remy[i] += moveddist;
27
        }
28
    }
29
    var pos = 
scr_heromarker
scr_heromarker

function
scr_heromarker(arg0 = "", arg1 = "")
{ var ____foundmarker = -4; var xpos = -1; var ypos = -1; var objindextocheck = 1365; if (string_pos("kr", arg0) != 0) objindextocheck = 544; if (string_pos("su", arg0) != 0) objindextocheck = 522; if (string_pos("ra", arg0) != 0) objindextocheck = 75; if (string_pos("no", arg0) != 0) objindextocheck = 933; if (string_pos("gen", arg0) != 0) objindextocheck = 1365; with (objindextocheck) { if (variable_instance_exists(id, "extflag")) { if (extflag == arg1) ____foundmarker = id; } } if (instance_exists(____foundmarker)) { xpos = ____foundmarker.x; ypos = ____foundmarker.y; } if (____foundmarker == -4) { debug_message("
scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4]; } return [xpos, ypos, ____foundmarker]; } function scr_genmarker(arg0 = "") { var marker = -4; with (obj_genmarker) { if (extflag == arg0) marker = id; } return marker; }
(undefined, "notgerson1");
30
    germark1 = 
scr_marker_ext
scr_marker_ext

function
scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{ var thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { depth = arg8; sprite_index = arg2; image_speed = arg5; image_xscale = arg3; image_yscale = arg4; image_index = arg6; image_blend = arg7; image_alpha = arg11; if (arg9)
scr_depth_alt();
} if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker; } function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false) { if (is_undefined(arg0)) { debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist"); return -4; } var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var imagespeed = layer_sprite_get_speed(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker); with (thismarker) { sprite_index = sprite; image_index = index; image_speed = imagespeed; image_xscale = xscale; image_yscale = yscale; image_angle = angle; image_blend = blend; image_alpha = alpha; if (arg2)
scr_depth_alt(id, arg2);
} return thismarker; } function scr_assetgetinfo(arg0) { var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var imagespeed = layer_sprite_get_speed(arg0); return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed]; }
(pos[0], pos[1], spr_gerson_walk_armor_left, 2, 2, 0, 0, undefined, undefined, 1);
31
    germark1.image_blend = c_black;
32
    germark1.con = 0;
33
    germark1.timer = 14;
34
    pos = 
scr_heromarker
scr_heromarker

function
scr_heromarker(arg0 = "", arg1 = "")
{ var ____foundmarker = -4; var xpos = -1; var ypos = -1; var objindextocheck = 1365; if (string_pos("kr", arg0) != 0) objindextocheck = 544; if (string_pos("su", arg0) != 0) objindextocheck = 522; if (string_pos("ra", arg0) != 0) objindextocheck = 75; if (string_pos("no", arg0) != 0) objindextocheck = 933; if (string_pos("gen", arg0) != 0) objindextocheck = 1365; with (objindextocheck) { if (variable_instance_exists(id, "extflag")) { if (extflag == arg1) ____foundmarker = id; } } if (instance_exists(____foundmarker)) { xpos = ____foundmarker.x; ypos = ____foundmarker.y; } if (____foundmarker == -4) { debug_message("
scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4]; } return [xpos, ypos, ____foundmarker]; } function scr_genmarker(arg0 = "") { var marker = -4; with (obj_genmarker) { if (extflag == arg0) marker = id; } return marker; }
(undefined, "notgerson2");
35
    germark2 = 
scr_marker_ext
scr_marker_ext

function
scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{ var thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { depth = arg8; sprite_index = arg2; image_speed = arg5; image_xscale = arg3; image_yscale = arg4; image_index = arg6; image_blend = arg7; image_alpha = arg11; if (arg9)
scr_depth_alt();
} if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker; } function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false) { if (is_undefined(arg0)) { debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist"); return -4; } var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var imagespeed = layer_sprite_get_speed(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker); with (thismarker) { sprite_index = sprite; image_index = index; image_speed = imagespeed; image_xscale = xscale; image_yscale = yscale; image_angle = angle; image_blend = blend; image_alpha = alpha; if (arg2)
scr_depth_alt(id, arg2);
} return thismarker; } function scr_assetgetinfo(arg0) { var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var imagespeed = layer_sprite_get_speed(arg0); return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed]; }
(pos[0], pos[1], spr_gerson_walk_armor_left, 2, 2, 0, 0, undefined, undefined, 1);
36
    germark2.image_blend = c_black;
37
    germark2.con = 0;
38
    germark2.timer = 14;
39
    init = 1;
40
    if (global.tempflag[90] == 43)
41
    {
42
        global.tempflag[90] = 0;
43
        pos = 
scr_heromarker
scr_heromarker

function
scr_heromarker(arg0 = "", arg1 = "")
{ var ____foundmarker = -4; var xpos = -1; var ypos = -1; var objindextocheck = 1365; if (string_pos("kr", arg0) != 0) objindextocheck = 544; if (string_pos("su", arg0) != 0) objindextocheck = 522; if (string_pos("ra", arg0) != 0) objindextocheck = 75; if (string_pos("no", arg0) != 0) objindextocheck = 933; if (string_pos("gen", arg0) != 0) objindextocheck = 1365; with (objindextocheck) { if (variable_instance_exists(id, "extflag")) { if (extflag == arg1) ____foundmarker = id; } } if (instance_exists(____foundmarker)) { xpos = ____foundmarker.x; ypos = ____foundmarker.y; } if (____foundmarker == -4) { debug_message("
scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4]; } return [xpos, ypos, ____foundmarker]; } function scr_genmarker(arg0 = "") { var marker = -4; with (obj_genmarker) { if (extflag == arg0) marker = id; } return marker; }
("kris", "debugwarp1");
44
        setxy(pos[0], pos[1], 1049);
45
        setxy(pos[0], pos[1], 93);
46
        
scr_caterpillar_interpolate
scr_caterpillar_interpolate

function
scr_caterpillar_interpolate(arg0 = "none")
{ if (arg0 == "all") { with (obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else if (arg0 == "none") { if (object_index == obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else { with (obj_caterpillarchara) { if (name == arg0) scr_caterpillar_interpolate_old(); } } } function scr_caterinterp(arg0 = "none") {
scr_caterpillar_interpolate(arg0);
} function scr_caterpillar_interpolate_old() { _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; } }
("all");
47
        con = 11;
48
    }
49
    if (global.tempflag[90] == 44)
50
    {
51
        global.tempflag[90] = 0;
52
        pos = 
scr_heromarker
scr_heromarker

function
scr_heromarker(arg0 = "", arg1 = "")
{ var ____foundmarker = -4; var xpos = -1; var ypos = -1; var objindextocheck = 1365; if (string_pos("kr", arg0) != 0) objindextocheck = 544; if (string_pos("su", arg0) != 0) objindextocheck = 522; if (string_pos("ra", arg0) != 0) objindextocheck = 75; if (string_pos("no", arg0) != 0) objindextocheck = 933; if (string_pos("gen", arg0) != 0) objindextocheck = 1365; with (objindextocheck) { if (variable_instance_exists(id, "extflag")) { if (extflag == arg1) ____foundmarker = id; } } if (instance_exists(____foundmarker)) { xpos = ____foundmarker.x; ypos = ____foundmarker.y; } if (____foundmarker == -4) { debug_message("
scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4]; } return [xpos, ypos, ____foundmarker]; } function scr_genmarker(arg0 = "") { var marker = -4; with (obj_genmarker) { if (extflag == arg0) marker = id; } return marker; }
("kris", "debugwarp1");
53
        setxy(pos[0], pos[1], 1049);
54
        setxy(pos[0], pos[1], 93);
55
        
scr_caterpillar_interpolate
scr_caterpillar_interpolate

function
scr_caterpillar_interpolate(arg0 = "none")
{ if (arg0 == "all") { with (obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else if (arg0 == "none") { if (object_index == obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else { with (obj_caterpillarchara) { if (name == arg0) scr_caterpillar_interpolate_old(); } } } function scr_caterinterp(arg0 = "none") {
scr_caterpillar_interpolate(arg0);
} function scr_caterpillar_interpolate_old() { _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; } }
("all");
56
        qcon = 41;
57
        timer = 0;
58
        global.interact = 1;
59
    }
60
}
61
var makesoltrig = -4;
62
if (con == 0)
63
{
64
    if (
scr_trigcheck
scr_trigcheck

function
scr_trigcheck(arg0)
{ var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, obj_mainchara)) ____trig++; } } } return ____trig; } function scr_trigcheck_ext(arg0, arg1 = id) { var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, arg1)) ____trig++; } } } return ____trig; }
("seeger1"))
65
    {
66
        with (obj_trigger)
67
        {
68
            if (extflag == "seeger1_blackout")
69
                makesoltrig = id;
70
        }
71
        with (germark1)
72
        {
73
            image_speed = 0.125;
74
            con = 1;
75
            vspeed = -6;
76
            
scr_doom
scr_doom

function
scr_doom(arg0 = id, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; persistent = arg0.persistent; } }
(id, 140);
77
        }
78
        con = 3;
79
    }
80
}
81
if (con == 3)
82
{
83
    if (
scr_trigcheck
scr_trigcheck

function
scr_trigcheck(arg0)
{ var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, obj_mainchara)) ____trig++; } } } return ____trig; } function scr_trigcheck_ext(arg0, arg1 = id) { var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, arg1)) ____trig++; } } } return ____trig; }
("seeger2"))
84
    {
85
        with (obj_trigger)
86
        {
87
            if (extflag == "seeger2_blackout")
88
                makesoltrig = id;
89
        }
90
        darkcount++;
91
        with (germark2)
92
        {
93
            con = 1;
94
            image_speed = 0.125;
95
            hspeed = -6;
96
            friction = -0.1;
97
            
scr_doom
scr_doom

function
scr_doom(arg0 = id, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; persistent = arg0.persistent; } }
(id, 140);
98
        }
99
        con = 4;
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; ...
("susie");
101
        msgsetloc(0, 
Face e* Hey!Delay 11 Slow the hell down,Delay 11 old man!Wait for input
"\\Ee* Hey^1! Slow the hell down^1, old man!/", "obj_dw_churchb_gersonchase_slash_Step_0_gml_107_0"
);
102
        msgnextloc(
Face d* We're trying to talk to you!Wait for inputClose Message
"\\Ed* We're trying to talk to you!/%", "obj_dw_churchb_gersonchase_slash_Step_0_gml_108_0"
);
103
        d_make(undefined, undefined, undefined, 1);
104
        global.interact = 1;
105
    }
106
}
107
if (con == 4 && !d_ex())
108
{
109
    global.interact = 0;
110
    con = 6;
111
}
112
if (con == 6)
113
{
114
    if (
scr_trigcheck
scr_trigcheck

function
scr_trigcheck(arg0)
{ var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, obj_mainchara)) ____trig++; } } } return ____trig; } function scr_trigcheck_ext(arg0, arg1 = id) { var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, arg1)) ____trig++; } } } return ____trig; }
("darker1"))
115
    {
116
        with (obj_trigger)
117
        {
118
            if (extflag == "darker1_blackout")
119
                makesoltrig = id;
120
        }
121
        darkcount++;
122
        con++;
123
    }
124
}
125
if (con == 7)
126
{
127
    var trigtocheck = "darker2";
128
    if (
scr_trigcheck
scr_trigcheck

function
scr_trigcheck(arg0)
{ var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, obj_mainchara)) ____trig++; } } } return ____trig; } function scr_trigcheck_ext(arg0, arg1 = id) { var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, arg1)) ____trig++; } } } return ____trig; }
(trigtocheck))
129
    {
130
        with (obj_trigger)
131
        {
132
            if (extflag == (trigtocheck + "_blackout"))
133
                makesoltrig = id;
134
        }
135
        darkcount++;
136
        con++;
137
    }
138
}
139
if (con == 8)
140
{
141
    var trigtocheck = "darker3";
142
    if (
scr_trigcheck
scr_trigcheck

function
scr_trigcheck(arg0)
{ var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, obj_mainchara)) ____trig++; } } } return ____trig; } function scr_trigcheck_ext(arg0, arg1 = id) { var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, arg1)) ____trig++; } } } return ____trig; }
(trigtocheck))
143
    {
144
        with (obj_trigger)
145
        {
146
            if (extflag == (trigtocheck + "_blackout"))
147
                makesoltrig = id;
148
        }
149
        darkcount++;
150
        con++;
151
    }
152
}
153
if (con == 9)
154
{
155
    var trigtocheck = "darker4";
156
    if (
scr_trigcheck
scr_trigcheck

function
scr_trigcheck(arg0)
{ var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, obj_mainchara)) ____trig++; } } } return ____trig; } function scr_trigcheck_ext(arg0, arg1 = id) { var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, arg1)) ____trig++; } } } return ____trig; }
(trigtocheck))
157
    {
158
        with (obj_trigger)
159
        {
160
            if (extflag == (trigtocheck + "_blackout"))
161
                makesoltrig = id;
162
        }
163
        darkcount++;
164
        con++;
165
    }
166
}
167
if (con == 10)
168
{
169
    var trigtocheck = "darker5";
170
    if (
scr_trigcheck
scr_trigcheck

function
scr_trigcheck(arg0)
{ var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, obj_mainchara)) ____trig++; } } } return ____trig; } function scr_trigcheck_ext(arg0, arg1 = id) { var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, arg1)) ____trig++; } } } return ____trig; }
(trigtocheck))
171
    {
172
        with (obj_trigger)
173
        {
174
            if (extflag == (trigtocheck + "_blackout"))
175
                makesoltrig = id;
176
        }
177
        darkcount++;
178
        con++;
179
    }
180
}
181
if (con == 11)
182
{
183
    if (
scr_trigcheck
scr_trigcheck

function
scr_trigcheck(arg0)
{ var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, obj_mainchara)) ____trig++; } } } return ____trig; } function scr_trigcheck_ext(arg0, arg1 = id) { var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, arg1)) ____trig++; } } } return ____trig; }
("end"))
184
    {
185
        darkcount = 6;
186
        global.interact = 1;
187
        blackout = 
scr_marker_ext
scr_marker_ext

function
scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{ var thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { depth = arg8; sprite_index = arg2; image_speed = arg5; image_xscale = arg3; image_yscale = arg4; image_index = arg6; image_blend = arg7; image_alpha = arg11; if (arg9)
scr_depth_alt();
} if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker; } function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false) { if (is_undefined(arg0)) { debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist"); return -4; } var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var imagespeed = layer_sprite_get_speed(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker); with (thismarker) { sprite_index = sprite; image_index = index; image_speed = imagespeed; image_xscale = xscale; image_yscale = yscale; image_angle = angle; image_blend = blend; image_alpha = alpha; if (arg2)
scr_depth_alt(id, arg2);
} return thismarker; } function scr_assetgetinfo(arg0) { var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var imagespeed = layer_sprite_get_speed(arg0); return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed]; }
(camerax() - 20, cameray() - 20, spr_pxwhite, 680, 520, undefined, undefined, c_black, 5000, undefined, undefined, 0);
188
        with (blackout)
189
        {
190
            var lifetime = 90;
191
            if (button3_h() || button2_h())
192
                lifetime = 30;
193
            
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", -1, 1.1, lifetime, 2, "out");
194
        }
195
        
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");
196
        msgsetloc(0, 
Face V* Damn,Delay 11 can't see anything in here...Wait for inputClose Message
"\\EV* Damn^1, can't see anything in here.../%", "obj_dw_churchb_gersonchase_slash_Step_0_gml_220_0"
);
197
        d_make(undefined, undefined, undefined, 1);
198
        snd_volume(global.currentsong[1], 0, 120);
199
        pitch = 0;
200
        con = 12;
201
    }
202
}
203
if (con == 12)
204
{
205
    if (!d_ex() && blackout.image_alpha >= 1)
206
    {
207
        with (obj_church_ripple)
208
            instance_destroy();
209
        with (obj_fancy_ripples)
210
            instance_destroy();
211
        with (obj_fancy_ripples_alt)
212
            instance_destroy();
213
        safe_delete(blackout);
214
        setxy(room_width / 2, room_height / 2, 1049);
215
        layer_set_visible("TILES_WALL", 0);
216
        with (obj_solidblock)
217
            instance_destroy();
218
        global.interact = 0;
219
        with (obj_caterpillarchara)
220
        {
221
            setxy(obj_mainchara.x + 90, obj_mainchara.y - 16);
222
            
scr_caterpillar_interpolate
scr_caterpillar_interpolate

function
scr_caterpillar_interpolate(arg0 = "none")
{ if (arg0 == "all") { with (obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else if (arg0 == "none") { if (object_index == obj_caterpillarchara) scr_caterpillar_interpolate_old(); } else { with (obj_caterpillarchara) { if (name == arg0) scr_caterpillar_interpolate_old(); } } } function scr_caterinterp(arg0 = "none") {
scr_caterpillar_interpolate(arg0);
} function scr_caterpillar_interpolate_old() { _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; } }
();
223
        }
224
        qcon = 1;
225
        qplay = 1;
226
        qtimer = 0;
227
        qx = obj_mainchara.x;
228
        qy = obj_mainchara.y;
229
        con = 13;
230
    }
231
}
232
if (i_ex(makesoltrig))
233
{
234
    with (makesoltrig)
235
    {
236
        var sol = instance_create(x, y, obj_solidblocksized);
237
        sol.sprite_index = spr_pxwhite;
238
        
scr_sizeexact
scr_sizeexact

function
scr_sizeexact(arg0, arg1, arg2 = id)
{ with (arg2) { if (!sprite_exists(sprite_index)) { debug_message("Can't size, no sprite"); exit; } var _w = sprite_get_width(sprite_index); var _h = sprite_get_width(sprite_index); image_xscale = arg0 / _w; image_yscale = arg1 / _h; } }
(sprite_width, sprite_height, sol);
239
        sol.visible = true;
240
        sol.depth = 12000;
241
        sol.image_alpha = 0;
242
        with (sol)
243
            
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", -1, 1, 120, 2, "out");
244
        sol.image_blend = c_black;
245
    }
246
}
247
darkindex = clamp(darkcount / 7, 0, 1);
248
if (qplay == 1 || qplay == 2)
249
{
250
    qtimer++;
251
    if ((qtimer % 90) == 0)
252
    {
253
        if (qplay == 1)
254
            snd_play(correctsnd1);
255
        if (qplay == 2)
256
            snd_play(correctsnd2);
257
    }
258
}
259
if (qcon == 1)
260
{
261
    if (qtimer == 1)
262
        global.flag[7 disable_menu?] = 1;
263
    if (qtimer == 105)
264
        global.interact = 1;
265
    if (qtimer > 180 && !d_ex())
266
    {
267
        qcon = 2;
268
        qx = obj_mainchara.x;
269
        qy = obj_mainchara.y;
270
        global.interact = 1;
271
        global.msc = -99;
272
        global.choice = -1;
273
        global.choicemsg[0] = stringsetloc(
#Hear it
"#Hear it", "obj_dw_churchb_gersonchase_slash_Step_0_gml_318_0"
);
274
        global.choicemsg[1] = stringsetloc(
#I can't#hear it
"#I can't#hear it", "obj_dw_churchb_gersonchase_slash_Step_0_gml_319_0"
);
275
        
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");
276
        msgsetloc(0, 
Face 0* Hey Kris,Delay 11 wait a sec.Wait for input
"\\E0* Hey Kris^1, wait a sec./", "obj_dw_churchb_gersonchase_slash_Step_0_gml_322_0"
);
277
        msgnextloc(
Face 1* Do you hear that noise...?Wait for input
"\\E1* Do you hear that noise...?/", "obj_dw_churchb_gersonchase_slash_Step_0_gml_323_0"
);
278
        msgnext("\\C2 ");
279
        d_make(undefined, undefined, undefined, 1);
280
        qcon = 1.1;
281
    }
282
}
283
if (qcon == 1.1 && global.choice != -1)
284
{
285
    k_d(1);
286
    if (global.choice == 0)
287
        qcon = 2;
288
    if (global.choice == 1)
289
    {
290
        global.msc = -99;
291
        global.choice = -1;
292
        global.choicemsg[0] = stringsetloc(
Honestly,#I can
"Honestly,#I can", "obj_dw_churchb_gersonchase_slash_Step_0_gml_343_0"
);
293
        global.choicemsg[1] = stringsetloc(
Honestly,#I can't
"Honestly,#I can't", "obj_dw_churchb_gersonchase_slash_Step_0_gml_344_0"
);
294
        msgsetloc(0, 
Face C* ...Delay 11 what? You honestly can't hear it?Wait for input
"\\EC* ..^1. what? You honestly can't hear it?/", "obj_dw_churchb_gersonchase_slash_Step_0_gml_346_0"
);
295
        msgnext("\\C2 ");
296
        d_make();
297
        qcon = 1.2;
298
    }
299
}
300
if (qcon == 1.2 && global.choice != -1)
301
{
302
    k_d(1);
303
    if (global.choice == 0)
304
        qcon = 2;
305
    if (global.choice == 1)
306
    {
307
        qplay = 0;
308
        
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");
309
        msgsetloc(0, 
Face K* ...Delay 11 huh. Well,Delay 11 I can...Wait for inputClose Message
"\\EK* ..^1. huh. Well^1, I can.../%", "obj_dw_churchb_gersonchase_slash_Step_0_gml_364_0"
);
310
        d_make(undefined, undefined, 5);
311
        qcon = 1.3;
312
    }
313
}
314
if (qcon == 1.3 && !d_ex())
315
    qcon = 41;
316
if (qcon == 2)
317
{
318
    global.msc = -99;
319
    global.choice = -1;
320
    global.choicemsg[0] = stringsetsubloc("#~1", str_left, "obj_dw_churchb_gersonchase_slash_Step_0_gml_378_0");
321
    global.choicemsg[1] = stringsetsubloc("#~1", str_right, "obj_dw_churchb_gersonchase_slash_Step_0_gml_379_0");
322
    global.choicemsg[2] = str_up;
323
    global.choicemsg[3] = str_down;
324
    
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");
325
    if (quizindex == 0)
326
    {
327
        msgsetloc(0, 
Face 1* It sounds like it was coming from...Wait for input
"\\E1* It sounds like it was coming from.../", "obj_dw_churchb_gersonchase_slash_Step_0_gml_385_0"
);
328
    }
329
    else
330
    {
331
        
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");
332
        msgsetloc(0, 
Face 0* Another noise...Delay 11 sounded like it was coming from...Wait for input
"\\E0* Another noise..^1. sounded like it was coming from.../", "obj_dw_churchb_gersonchase_slash_Step_0_gml_389_0"
);
333
    }
334
    msgnext("\\C4 ");
335
    var runcheck = 0;
336
    if (quizindex == 1)
337
        runcheck = 1;
338
    d_make(undefined, undefined, undefined, runcheck);
339
    qcon = 2.1;
340
}
341
if (qcon == 2.1 && global.choice != -1)
342
{
343
    var correctanswer = -1;
344
    var correctstring = "";
345
    var correctdir = correctdir1;
346
    if (quizindex == 1)
347
        correctdir = correctdir2;
348
    switch (correctdir)
349
    {
350
        case 0:
351
            correctanswer = 0;
352
            correctstring = str_left;
353
            break;
354
        case 1:
355
            correctanswer = 1;
356
            correctstring = str_right;
357
            break;
358
    }
359
    k_d(1);
360
    if (global.choice == correctanswer)
361
    {
362
        qcon = 3;
363
        correctscore++;
364
    }
365
    else
366
    {
367
        qplay = 0;
368
        
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");
369
        msgsetsubloc(0, "\\EK* Huh? No^1, it was ~1^1, right?/%", correctstring, "obj_dw_churchb_gersonchase_slash_Step_0_gml_423_0");
370
        d_make(undefined, undefined, 1);
371
        qcon = 5.1;
372
    }
373
}
374
if (qcon == 3)
375
{
376
    global.msc = -99;
377
    global.choice = -1;
378
    global.choicemsg[0] = stringsetsubloc("#~1", str_hisound, "obj_dw_churchb_gersonchase_slash_Step_0_gml_434_0");
379
    global.choicemsg[1] = stringsetsubloc("#~1", str_losound, "obj_dw_churchb_gersonchase_slash_Step_0_gml_435_0");
380
    global.choicemsg[2] = str_dogcat;
381
    global.choicemsg[3] = str_laser;
382
    
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");
383
    msgsetloc(0, 
Face A* Yeah!Delay 11 It totally sounds like...Wait for input
"\\EA* Yeah^1! It totally sounds like.../", "obj_dw_churchb_gersonchase_slash_Step_0_gml_440_0"
);
384
    msgnext("\\C4 ");
385
    d_make();
386
    qcon = 3.1;
387
}
388
if (qcon == 3.1 && global.choice != -1)
389
{
390
    k_d(1);
391
    var correctanswer = -1;
392
    var correctsnd = correctsnd1;
393
    if (quizindex == 1)
394
        correctsnd = correctsnd2;
395
    var correctstring;
396
    switch (correctsnd)
397
    {
398
        case 80:
399
        case 20:
400
            correctanswer = 0;
401
            correctstring = str_hisound;
402
            break;
403
        case 164:
404
        case 144:
405
            correctanswer = 1;
406
            correctstring = str_losound;
407
            break;
408
    }
409
    if (global.choice == correctanswer)
410
    {
411
        correctscore++;
412
        if (quizindex == 0)
413
        {
414
            
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");
415
            msgsetloc(0, 
Face A* Yeah,Delay 11 this way!Wait for inputClose Message
"\\EA* Yeah^1, this way!/%", "obj_dw_churchb_gersonchase_slash_Step_0_gml_467_0"
);
416
            d_make();
417
            qcon = 3.9;
418
            timer = 0;
419
        }
420
        else
421
        {
422
            qplay = 0;
423
            qcon = 40;
424
            timer = 0;
425
            qx = obj_mainchara.x;
426
            qy = obj_mainchara.y;
427
        }
428
    }
429
    else
430
    {
431
        qplay = 0;
432
        
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");
433
        msgsetsubloc(0, "\\EK* Huh? No^1, it was ~1..^1. right?/%", correctstring, "obj_dw_churchb_gersonchase_slash_Step_0_gml_486_0");
434
        d_make();
435
        qcon = 5.1;
436
    }
437
}
438
if (qcon == 3.9)
439
{
440
    timer++;
441
    if (timer == 1)
442
    {
443
        qplay = 0;
444
        qtimer = 0;
445
    }
446
    if (timer == 15)
447
    {
448
        obj_caterpillarchara.visible = false;
449
        sumark = 
scr_marker_ext
scr_marker_ext

function
scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{ var thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { depth = arg8; sprite_index = arg2; image_speed = arg5; image_xscale = arg3; image_yscale = arg4; image_index = arg6; image_blend = arg7; image_alpha = arg11; if (arg9)
scr_depth_alt();
} if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker; } function scr_marker_fromasset(arg0, arg1 = depth, arg2 = false) { if (is_undefined(arg0)) { debug_message("Warning: scr_marker_fromasset() sprite_instance didn't exist"); return -4; } var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var imagespeed = layer_sprite_get_speed(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var thismarker = instance_create_depth(xloc, yloc, arg1, obj_marker); with (thismarker) { sprite_index = sprite; image_index = index; image_speed = imagespeed; image_xscale = xscale; image_yscale = yscale; image_angle = angle; image_blend = blend; image_alpha = alpha; if (arg2)
scr_depth_alt(id, arg2);
} return thismarker; } function scr_assetgetinfo(arg0) { var sprite = layer_sprite_get_sprite(arg0); var index = layer_sprite_get_index(arg0); var xloc = layer_sprite_get_x(arg0); var yloc = layer_sprite_get_y(arg0); var xscale = layer_sprite_get_xscale(arg0); var yscale = layer_sprite_get_yscale(arg0); var angle = layer_sprite_get_angle(arg0); var blend = layer_sprite_get_blend(arg0); var alpha = layer_sprite_get_alpha(arg0); var imagespeed = layer_sprite_get_speed(arg0); return [sprite, index, xloc, yloc, xscale, yscale, angle, blend, alpha, imagespeed]; }
(obj_caterpillarchara.x, obj_caterpillarchara.y, spr_susie_walk_right_dw, 2, 2, undefined, 0.125, c_black, undefined, 1);
450
        if (correctdir1 == 0)
451
        {
452
            sumark.sprite_index = spr_susie_walk_left_dw;
453
            sumark.hspeed = -8;
454
            sumark.image_speed = 0.25;
455
        }
456
        else
457
        {
458
            sumark.hspeed = 8;
459
            sumark.image_speed = 0.25;
460
        }
461
    }
462
    if (timer >= 15)
463
    {
464
        if ((timer % 15) == 0)
465
        {
466
            darkind = darkindex;
467
            with (sumark)
468
            {
469
                
scr_fancy_ripple
scr_fancy_ripple

function
scr_fancy_ripple(arg0, arg1, arg2 = 60, arg3 = 16159050, arg4 = 160, arg5 = 1, arg6 = 15, arg7 = 1999000, arg8 = 0, arg9 = 0, arg10 = 0.1, arg11 = 0)
{ if (!instance_exists(obj_fancy_ripples)) instance_create_depth(0, 0, arg7, obj_fancy_ripples); with (obj_fancy_ripples) { depth = arg7; MakeRipple(arg0, arg1, arg4, arg5, arg6, arg3, arg8, arg9, arg10, arg2, arg11); } } function scr_fancy_ripple_alt(arg0, arg1, arg2 = 60, arg3 = 16159050, arg4 = 160, arg5 = 1, arg6 = 15, arg7 = 1999000, arg8 = 0, arg9 = 0, arg10 = 0.1, arg11 = 0) { if (!instance_exists(obj_fancy_ripples_alt)) instance_create_depth(0, 0, arg7, obj_fancy_ripples_alt); with (obj_fancy_ripples_alt) { depth = arg7; MakeRipple(arg0, arg1, arg4, arg5, arg6, arg3, arg8, arg9, arg10, arg2, arg11); } }
(x + (sprite_width / 2), (y + sprite_height) - 12, 60, 15292879, 140, 1, 12, 1999000, clamp(hspeed * 1.05, -8, 8), 0, 0.1);
470
                var step1 = 25;
471
                var step2 = 504;
472
                if (other.correctdir1 == 1)
473
                {
474
                    step1 = 493;
475
                    step2 = 4;
476
                }
477
                var snd = step1;
478
                if ((other.timer - 1) == 0)
479
                    snd = step2;
480
                var ind = round(4 - (other.timer / 18)) / 4;
481
                snd_play(snd, ind);
482
            }
483
        }
484
        if (sumark.x < (camerax() - 80) || (sumark.x > (camerax() + 640 + 40) && !d_ex()))
485
        {
486
            sumark.image_speed = 0;
487
            sumark.hspeed = 0;
488
            sumark.image_index = 0;
489
            sumark.visible = false;
490
            timer = 0;
491
            global.interact = 0;
492
            qplay = 2;
493
            qtimer = 0;
494
            qcon = 10;
495
            qx = obj_mainchara.x;
496
            qy = obj_mainchara.y;
497
        }
498
    }
499
}
500
if (qcon == 5.1 && !d_ex())
501
    qcon = 41;
502
if (qcon == 5.5)
503
{
504
    qx = obj_mainchara.x;
505
    qy = obj_mainchara.y;
506
    qcon = 10;
507
    qplay = 2;
508
    global.interact = 0;
509
}
510
if (qcon == 10)
511
{
512
    var dist = 600;
513
    if (qtimer == 105)
514
        global.interact = 1;
515
    if (qtimer > 180 && !d_ex())
516
    {
517
        global.interact = 1;
518
        qcon = 2;
519
        quizindex = 1;
520
        qx = obj_mainchara.x;
521
        qy = obj_mainchara.y;
522
    }
523
}
524
if (qcon == 40)
525
{
526
    global.interact = 0;
527
    timer = 0;
528
    qx = obj_mainchara.x;
529
    qy = obj_mainchara.y;
530
    qcon = 41;
531
}
532
if (qcon == 41)
533
{
534
    timer++;
535
    if (timer == 1)
536
    {
537
        with (obj_caterpillarchara)
538
            visible = false;
539
    }
540
    if (timer == 60)
541
    {
542
        global.interact = 1;
543
        snd_play(correctsnd2);
544
        snd_play(correctsnd2, 0.6, 0.4);
545
    }
546
    if (timer == 70)
547
    {
548
        
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");
549
        msgsetloc(0, 
Face 6* Hey!Delay 11 I heard something again!Wait for inputClose Message
"\\E6* Hey^1! I heard something again!/%", "obj_dw_churchb_gersonchase_slash_Step_0_gml_638_0"
);
550
        msgnextloc(
Face A* Quick,Delay 11 over here!Wait for inputClose Message
"\\EA* Quick^1, over here!/%", "obj_dw_churchb_gersonchase_slash_Step_0_gml_639_0"
);
551
        d_make(undefined, undefined, undefined, 1);
552
        timer = 0;
553
        qcon = 42;
554
    }
555
}
556
if (qcon == 42 && !d_ex())
557
{
558
    timer++;
559
    if (timer == 10)
560
    {
561
        var step1 = 25;
562
        var step2 = 504;
563
        if (correctdir2 == 1)
564
        {
565
            step1 = 493;
566
            step2 = 4;
567
        }
568
        var timedelay = 8;
569
        var count = 0;
570
        snd_play(step1);
571
        count++;
572
        snd_play_delay(step2, count * timedelay, 1 - (count / 9));
573
        count++;
574
        snd_play_delay(step1, count * timedelay, 1 - (count / 9));
575
        count++;
576
        snd_play_delay(step2, count * timedelay, 1 - (count / 9));
577
        count++;
578
        snd_play_delay(step1, count * timedelay, 1 - (count / 9));
579
        count++;
580
        snd_play_delay(step2, count * timedelay, 1 - (count / 9));
581
        count++;
582
        snd_play_delay(step1, count * timedelay, 1 - (count / 9));
583
        count++;
584
        snd_play_delay(step2, count * timedelay, 1 - (count / 9));
585
        count++;
586
        snd_play_delay(step1, count * timedelay, 1 - (count / 9));
587
        count++;
588
        count++;
589
        count++;
590
        qcon = 42.1;
591
        scr_delay_var("qcon", 42.2, count * timedelay);
592
        timer = 0;
593
    }
594
}
595
if (qcon == 42.2)
596
{
597
    timer++;
598
    if (timer == 15)
599
    {
600
        var surprise = 123;
601
        if (correctdir2 == 1)
602
            surprise = 18;
603
        snd_play(surprise);
604
    }
605
    if (timer == 75)
606
    {
607
        var impact = 527;
608
        if (correctdir2 == 1)
609
            impact = 120;
610
        snd_play(impact);
611
        snd_play_delay(impact, 2, 1/3);
612
        snd_play_delay(impact, 4, 0.16666666666666666);
613
    }
614
    if (timer == 135)
615
    {
616
        
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");
617
        msgsetloc(0, 
Face V* D-dammit...Wait for input
"\\EV* D-dammit.../", "obj_dw_churchb_gersonchase_slash_Step_0_gml_703_0"
);
618
        msgnextloc(
Face l* Kris,Delay 11 I slipped and fell down somewhere!Wait for input
"\\El* Kris^1, I slipped and fell down somewhere!/", "obj_dw_churchb_gersonchase_slash_Step_0_gml_704_0"
);
619
        msgnextloc(
Face l* Stay there,Delay 11 okay? I'm gonna look for a way back...Wait for inputClose Message
"\\El* Stay there^1, okay? I'm gonna look for a way back.../%", "obj_dw_churchb_gersonchase_slash_Step_0_gml_705_0"
);
620
        d_make();
621
        qcon = 42.3;
622
        timer = 0;
623
        qx = obj_mainchara.x;
624
        qy = obj_mainchara.y;
625
    }
626
}
627
if (qcon == 42.3 && !d_ex())
628
{
629
    timer++;
630
    if (timer == 15)
631
    {
632
        var step1 = 25;
633
        var step2 = 504;
634
        if (correctdir2 == 1)
635
        {
636
            step1 = 493;
637
            step2 = 4;
638
        }
639
        var timedelay = 15;
640
        var count = 0;
641
        snd_play(step1, 0.5);
642
        count++;
643
        snd_play_delay(step2, count * timedelay, 0.5 - (count / 9));
644
        count++;
645
        snd_play_delay(step1, count * timedelay, 0.5 - (count / 9));
646
        count++;
647
        snd_play_delay(step2, count * timedelay, 0.5 - (count / 9));
648
        count++;
649
        snd_play_delay(step1, count * timedelay, 0.5 - (count / 9));
650
        count++;
651
    }
652
    if (timer == 90)
653
    {
654
        global.flag[7 disable_menu?] = 1;
655
        darkcount = 6.9;
656
        global.interact = 0;
657
    }
658
    if (timer >= 300 || point_distance(qx, qy, obj_mainchara.x, obj_mainchara.y) >= 600)
659
    {
660
        global.interact = 1;
661
        global.flag[7 disable_menu?] = 0;
662
        
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; ...
("no_name");
663
        msgsetloc(0, 
* (Left in complete darkness...)Wait for input
"* (Left in complete darkness...)/", "obj_dw_churchb_gersonchase_slash_Step_0_gml_752_0"
);
664
        msgnextloc(
* (Seems there's nothing left to do but close your eyes.)Wait for input
"* (Seems there's nothing left to do but close your eyes.)/", "obj_dw_churchb_gersonchase_slash_Step_0_gml_753_0"
);
665
        msgnextloc(
* (And think about how Susie is doing now.)Wait for inputClose Message
"* (And think about how Susie is doing now.)/%", "obj_dw_churchb_gersonchase_slash_Step_0_gml_754_0"
);
666
        d_make(undefined, undefined, undefined, 1);
667
        qcon = 42.4;
668
        timer = 0;
669
    }
670
}
671
if (qcon == 42.4 && !d_ex())
672
{
673
    global.tempflag[57] = correctscore;
674
    debug_message("global.tempflag[57]=" + string(global.tempflag[57]) + "| <--- How Many Right out of 4, to use in battle");
675
    snd_free_all();
676
    room_goto(room_dw_churchb_nongerson);
677
    global.flag[7 disable_menu?] = 0;
678
    qcon = 50;
679
}
680
var darkind = darkindex;
681
var ripstepregularity = 15;
682
var ripcount = 5;
683
if (i_ex(germark1))
684
{
685
    with (germark1)
686
    {
687
        if (con == 1)
688
        {
689
            timer++;
690
            if ((timer % ripstepregularity) == 0)
691
            {
692
                var targx = x + 40;
693
                var targy = y + 76;
694
                
scr_fancy_ripple
scr_fancy_ripple

function
scr_fancy_ripple(arg0, arg1, arg2 = 60, arg3 = 16159050, arg4 = 160, arg5 = 1, arg6 = 15, arg7 = 1999000, arg8 = 0, arg9 = 0, arg10 = 0.1, arg11 = 0)
{ if (!instance_exists(obj_fancy_ripples)) instance_create_depth(0, 0, arg7, obj_fancy_ripples); with (obj_fancy_ripples) { depth = arg7; MakeRipple(arg0, arg1, arg4, arg5, arg6, arg3, arg8, arg9, arg10, arg2, arg11); } } function scr_fancy_ripple_alt(arg0, arg1, arg2 = 60, arg3 = 16159050, arg4 = 160, arg5 = 1, arg6 = 15, arg7 = 1999000, arg8 = 0, arg9 = 0, arg10 = 0.1, arg11 = 0) { if (!instance_exists(obj_fancy_ripples_alt)) instance_create_depth(0, 0, arg7, obj_fancy_ripples_alt); with (obj_fancy_ripples_alt) { depth = arg7; MakeRipple(arg0, arg1, arg4, arg5, arg6, arg3, arg8, arg9, arg10, arg2, arg11); } }
(targx, targy, 60, 16776960, 120, 1, 12, 1999000, clamp(hspeed * 1.05, -8, 8), clamp(vspeed * 1.05, -8, 8), 0.1);
695
                var snd = 348;
696
                if ((other.timer - 1) == 0)
697
                    snd = 349;
698
                var ind = round(ripcount - (timer / ripstepregularity)) / ripcount;
699
                snd_play(snd, ind);
700
            }
701
            var trig = 0;
702
            with (obj_trigger)
703
            {
704
                if (extflag == "killger")
705
                {
706
                    if (place_meeting(x, y, other))
707
                        trig = 1;
708
                }
709
            }
710
            if (trig)
711
                instance_destroy();
712
        }
713
    }
714
}
715
if (i_ex(germark2))
716
{
717
    with (germark2)
718
    {
719
        if (con == 1)
720
        {
721
            timer++;
722
            if ((timer % ripstepregularity) == 0)
723
            {
724
                var targx = x + 40;
725
                var targy = y + 76;
726
                
scr_fancy_ripple
scr_fancy_ripple

function
scr_fancy_ripple(arg0, arg1, arg2 = 60, arg3 = 16159050, arg4 = 160, arg5 = 1, arg6 = 15, arg7 = 1999000, arg8 = 0, arg9 = 0, arg10 = 0.1, arg11 = 0)
{ if (!instance_exists(obj_fancy_ripples)) instance_create_depth(0, 0, arg7, obj_fancy_ripples); with (obj_fancy_ripples) { depth = arg7; MakeRipple(arg0, arg1, arg4, arg5, arg6, arg3, arg8, arg9, arg10, arg2, arg11); } } function scr_fancy_ripple_alt(arg0, arg1, arg2 = 60, arg3 = 16159050, arg4 = 160, arg5 = 1, arg6 = 15, arg7 = 1999000, arg8 = 0, arg9 = 0, arg10 = 0.1, arg11 = 0) { if (!instance_exists(obj_fancy_ripples_alt)) instance_create_depth(0, 0, arg7, obj_fancy_ripples_alt); with (obj_fancy_ripples_alt) { depth = arg7; MakeRipple(arg0, arg1, arg4, arg5, arg6, arg3, arg8, arg9, arg10, arg2, arg11); } }
(targx, targy, 60, 16776960, 120, 1, 12, 1999000, clamp(hspeed * 1.05, -8, 8), 0, 0.1);
727
                var snd = 348;
728
                if ((other.timer - 1) == 0)
729
                    snd = 349;
730
                var ind = round(ripcount - (timer / ripstepregularity)) / ripcount;
731
                snd_play(snd, ind);
732
            }
733
        }
734
    }
735
}
736
if (pitch > 0)
737
{
738
    playdist = point_distance(obj_mainchara.x, obj_mainchara.y, endx, endy);
739
    var newpitch = lerp(0.54, 0.05, clamp(1 - (playdist / 1587), 0, 1));
740
    if (newpitch < pitch)
741
        pitch = lerp(pitch, newpitch, 0.02);
742
    audio_sound_pitch(global.currentsong[1], pitch);
743
}
744
with (obj_fancy_ripples)
745
    image_alpha = 1 - other.darkindex;
746
with (obj_fancy_ripples_alt)
747
    image_alpha = 1 - other.darkindex;