Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_pianopiece_right_Step_0

(view raw script w/o annotations or w/e)
1
with (obj_caterpillarchara)
2
    visible = false;
3
if (!init)
4
    init = 1;
5
if (global.interact == 0)
6
{
7
    with (obj_floorTrigger)
8
    {
9
        if (place_meeting(x, y, obj_mainchara))
10
        {
11
            var checkflag = extflag;
12
            with (obj_solid_temp)
13
            {
14
                if (extflag == checkflag)
15
                    active = true;
16
                else
17
                    active = false;
18
            }
19
            if (extflag == "FLOOR1")
20
                other.flooractive = 1;
21
            else
22
                other.flooractive = 2;
23
        }
24
    }
25
}
26
var doupdate = true;
27
with (obj_dw_church_remote_piano)
28
{
29
    if (engaged)
30
        doupdate = false;
31
}
32
if (doupdate)
33
{
34
    if (flooractive != wasactive)
35
    {
36
        for (var i = 0; i < array_length(layersprite); i++)
37
        {
38
            with (layersprite[i])
39
            {
40
                
scr_depth_alt
scr_depth_alt

function
scr_depth_alt(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10) + (arg1 * 10)); }
(undefined, -40);
41
                if (other.flooractive == 2)
42
                    depth += 10000;
43
                if (sprite_index == spr_church_ladder)
44
                    depth -= 4;
45
            }
46
        }
47
        with (obj_dw_church_remote_piano)
48
        {
49
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
50
            if (other.flooractive == 1)
51
                depth -= 1000;
52
        }
53
    }
54
}
55
with (obj_bookshelf_moveable2x2)
56
{
57
    depth = 100000 - ((y * 10) + 1600);
58
    if (doupdate)
59
    {
60
        if (other.flooractive == 2)
61
            depth += 10000;
62
    }
63
}
64
var visit = 0;
65
if (global.flag[886])
66
    visit = 1;
67
with (sunpc)
68
{
69
    if (myinteract == 3)
70
    {
71
        var sawralseiroom = 0;
72
        if (global.flag[710] >= 2)
73
            sawralseiroom = 1;
74
        if (sawralseiroom && !global.flag[866])
75
            myinteract = 10;
76
        else
77
            myinteract = 50;
78
        global.interact = 1;
79
        timer = 0;
80
    }
81
    if (myinteract == 10)
82
    {
83
        global.interact = 1;
84
        global.msc = -99;
85
        global.choice = -1;
86
        global.choicemsg[0] = stringsetloc(
#Take it
"#Take it", "obj_dw_church_pianopiece_right_slash_Step_0_gml_90_0"
);
87
        global.choicemsg[1] = stringsetloc(
#Don't take it
"#Don't take it", "obj_dw_church_pianopiece_right_slash_Step_0_gml_91_0"
);
88
        global.choicemsg[2] = stringset("");
89
        global.choicemsg[3] = stringset("");
90
        if (!sitting)
91
        {
92
            var face = direction_to_object_bbox(undefined, 1049, 1);
93
            switch (face)
94
            {
95
                case 3:
96
                    marker.sprite_index = spr_susie_walk_left_dw;
97
                    break;
98
                case 1:
99
                    marker.sprite_index = spr_susie_walk_right_dw;
100
                    break;
101
                case 0:
102
                    marker.sprite_index = spr_susie_walk_down_dw;
103
                    break;
104
            }
105
        }
106
        
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");
107
        msgsetloc(0, 
Face 7* Hey,Delay 11 don't you think this would be sweet for Ralsei's room?Wait for input
"\\E7* Hey^1, don't you think this would be sweet for Ralsei's room?/", "obj_dw_church_pianopiece_right_slash_Step_0_gml_109_0"
);
108
        msgnextloc(
Face N* He won't have to like...Delay 11 Sleep on the floor.Wait for input
"\\EN* He won't have to like..^1. Sleep on the floor./", "obj_dw_church_pianopiece_right_slash_Step_0_gml_110_0"
);
109
        msgnext("\\C2 ");
110
        if (!global.flag[865])
111
        {
112
            myinteract = 11;
113
            d_make();
114
        }
115
        else
116
        {
117
            
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");
118
            msgsetloc(0, 
Face 3* Maybe we can just give him our pillows too.Wait for input
"\\E3* Maybe we can just give him our pillows too./", "obj_dw_church_pianopiece_right_slash_Step_0_gml_121_0"
);
119
            msgnextloc(
Face L* Not like we really sleep there that much...Wait for input
"\\EL* Not like we really sleep there that much.../", "obj_dw_church_pianopiece_right_slash_Step_0_gml_122_0"
);
120
            msgnextloc(
Face 7* Maybe he can have some of my bed spikes too?Wait for inputClose Message
"\\E7* Maybe he can have some of my bed spikes too?/%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_123_0"
);
121
            d_make();
122
            myinteract = 999;
123
        }
124
    }
125
    if (myinteract == 11)
126
    {
127
        if (global.choice != -1)
128
        {
129
            k_d(1);
130
            if (global.choice == 0)
131
                myinteract = 12;
132
            if (global.choice == 1)
133
            {
134
                
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");
135
                msgsetloc(0, 
Face K* You want him to sleep on the floor?Wait for input
"\\EK* You want him to sleep on the floor?/", "obj_dw_church_pianopiece_right_slash_Step_0_gml_141_0"
);
136
                msgnextloc(
Face 6* ...Delay 11 actually,Delay 11 does he even sleep...?Wait for inputClose Message
"\\E6* ..^1. actually^1, does he even sleep...?/%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_142_0"
);
137
                d_make();
138
                myinteract = 999;
139
            }
140
        }
141
    }
142
    if (myinteract == 12)
143
    {
144
        myinteract = 13;
145
        cutscene_master = 
scr_cutscene_make
scr_cutscene_make

function
scr_cutscene_make()
{ _cutscene_master = instance_create(0, 0, obj_cutscene_master); _cutscene_master.master_object = id; return _cutscene_master; }
();
146
        actor_count = 0;
147
        kr = 0;
148
        kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
149
        
scr_actor_setup
scr_actor_setup

function
scr_actor_setup(arg0, arg1, arg2)
{ _actorid = arg0; _actorinstance = arg1; _actorname = arg2; obj_cutscene_master.actor_id[_actorid] = _actorinstance; obj_cutscene_master.actor_name[_actorid] = _actorname; with (_actorinstance) { number = arg0;
scr_set_facing_sprites(arg2);
} }
(kr, kr_actor, "kris");
150
        kr_actor.sprite_index = obj_mainchara.sprite_index;
151
        kr_actor.depth = obj_mainchara.depth;
152
        with (obj_mainchara)
153
            visible = 0;
154
        global.facing = 0;
155
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("susie");
156
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face 9* Hell yeah!Delay 11 Gimme a hand!Wait for inputClose Message
"\\E9* Hell yeah^1! Gimme a hand!/%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_164_0"
);
157
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
} function c_talkwait() {
c_talk_wait();
}
();
158
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
159
        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; }
("kris", "krishelps");
160
        var dist = clamp(round(point_distance(obj_mainchara.x, obj_mainchara.y, pos[0], pos[1]) / 8), 1, 30);
161
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(pos[0], pos[1], dist);
162
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(dist + 1);
163
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("u");
164
        
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(marker, "sprite_index", spr_susie_walk_up_dw);
165
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(30);
166
        
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(marker, "sprite_index", spr_susie_walk_right_dw);
167
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
168
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("l");
169
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(15);
170
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("susie");
171
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face B* ...Wait for input
"\\EB* .../", "obj_dw_church_pianopiece_right_slash_Step_0_gml_179_0"
);
172
        
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face K* Okay damn it's heavy. Let's just take like...Wait for inputClose Message
"\\EK* Okay damn it's heavy. Let's just take like.../%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_180_0"
);
173
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
} function c_talkwait() {
c_talk_wait();
}
();
174
        
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(marker, "sprite_index", spr_susie_walk_up_dw);
175
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(5);
176
        
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(other.couchmarker, "image_index", 1);
177
        c_sndplay(snd_item);
178
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(5);
179
        
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(marker, "sprite_index", spr_susie_walk_right_dw);
180
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("susie");
181
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face 2* Yeah,Delay 11 that's good enough. He can make a pillow fort.Wait for input
"\\E2* Yeah^1, that's good enough. He can make a pillow fort./", "obj_dw_church_pianopiece_right_slash_Step_0_gml_189_0"
);
182
        
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face L* That's better than a bed anyway. More defense.Wait for inputClose Message
"\\EL* That's better than a bed anyway. More defense./%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_190_0"
);
183
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
} function c_talkwait() {
c_talk_wait();
}
();
184
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
185
        
c_pannable
c_pannable

function
c_pannable(arg0)
{
c_cmd("pannable", arg0, 0, 0, 0);
}
(1);
186
        
c_pan
c_pan

function
c_pan(arg0, arg1, arg2)
{
c_cmd("pan", arg0, arg1, arg2, 0);
}
(120, 506, 4);
187
        
c_walk
c_walk

function
c_walk(arg0, arg1, arg2)
{
c_cmd("walk", arg0, arg1, arg2, 0);
}
("d", 4, 4);
188
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(5);
189
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("d");
190
        
c_pannable
c_pannable

function
c_pannable(arg0)
{
c_cmd("pannable", arg0, 0, 0, 0);
}
(0);
191
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
192
        
c_actortokris
c_actortokris

function
c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
}
();
193
        
c_terminatekillactors
c_terminatekillactors

function
c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
}
();
194
    }
195
    if (myinteract == 13 && !i_ex(obj_cutscene_master))
196
    {
197
        global.flag[865] = 1;
198
        myinteract = 0;
199
        global.interact = 0;
200
    }
201
    if (myinteract == 50)
202
    {
203
        
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");
204
        msgsetloc(0, 
Face 2* Yeah,Delay 11 you know I'm not messing with that puzzle.Wait for input
"\\E2* Yeah^1, you know I'm not messing with that puzzle./", "obj_dw_church_pianopiece_right_slash_Step_0_gml_224_0"
);
205
        msgnextloc(
Face N* ...Delay 11 I...Delay 11 probably wouldn't be able to help anyway.Wait for input
"\\EN* ..^1. I..^1. probably wouldn't be able to help anyway./", "obj_dw_church_pianopiece_right_slash_Step_0_gml_225_0"
);
206
        msgnextloc(
Face D* Don't have a great track record with pianos.Wait for inputClose Message
"\\ED* Don't have a great track record with pianos./%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_226_0"
);
207
        if (global.flag[886])
208
        {
209
            
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");
210
            msgsetloc(0, 
Face 2* What? Wanted the couch,Delay 11 shoulda called shotgun first.Wait for inputClose Message
"\\E2* What? Wanted the couch^1, shoulda called shotgun first./%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_231_0"
);
211
        }
212
        if (global.plot > 240)
213
        {
214
            
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");
215
            msgsetloc(0, 
Face 0* Kris,Delay 11 if there's another puzzle like this...Wait for input
"\\E0* Kris^1, if there's another puzzle like this.../", "obj_dw_church_pianopiece_right_slash_Step_0_gml_238_0"
);
216
            msgnextloc(
Face L* We should,Delay 11 like...Delay 11 do it halfsies next time.Wait for input
"\\EL* We should^1, like..^1. do it halfsies next time./", "obj_dw_church_pianopiece_right_slash_Step_0_gml_239_0"
);
217
            msgnextloc(
Face 2* OR I could crawl down and mess with the pedal.Wait for inputClose Message
"\\E2* OR I could crawl down and mess with the pedal./%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_240_0"
);
218
            if (talked)
219
            {
220
                
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");
221
                msgsetloc(0, 
Face 0* Wonder how Noelle's sofa is doing.Wait for input
"\\E0* Wonder how Noelle's sofa is doing./", "obj_dw_church_pianopiece_right_slash_Step_0_gml_245_0"
);
222
                msgnextloc(
Face A* ...Delay 11 and Noelle.Wait for inputClose Message
"\\EA* ..^1. and Noelle./%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_246_0"
);
223
            }
224
        }
225
        if (!sitting)
226
        {
227
            var face = direction_to_object_bbox(undefined, 1049, 1);
228
            switch (face)
229
            {
230
                case 3:
231
                    marker.sprite_index = spr_susie_walk_left_dw;
232
                    break;
233
                case 1:
234
                    marker.sprite_index = spr_susie_walk_right_dw;
235
                    break;
236
                case 0:
237
                    marker.sprite_index = spr_susie_walk_down_dw;
238
                    break;
239
            }
240
        }
241
        d_make();
242
        talked++;
243
        myinteract = 999;
244
    }
245
    if (myinteract == 999 && !d_ex())
246
    {
247
        myinteract = 0;
248
        global.interact = 0;
249
    }
250
}
251
with (ranpc)
252
{
253
    if (myinteract == 3)
254
    {
255
        global.interact = 1;
256
        if (global.flag[866])
257
        {
258
            if (other.sunpc.sitting == false)
259
                other.sunpc.marker.sprite_index = spr_susie_walk_right_dw;
260
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("ralsei");
261
            msgsetloc(0, 
Face K* I...Delay 11 I think I'm parked.Wait for input
"\\EK* I..^1. I think I'm parked./", "obj_dw_church_pianopiece_right_slash_Step_0_gml_287_0"
);
262
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("susie", "2");
263
            msgnextloc(
Face 2* Parallel parked?Wait for input
"\\E2* Parallel parked?/", "obj_dw_church_pianopiece_right_slash_Step_0_gml_289_0"
);
264
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("ralsei", "X");
265
            msgnextloc(
Face X* As far as I know,Delay 11 I'm within the lines.Wait for inputClose Message
"\\EX* As far as I know^1, I'm within the lines./%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_291_0"
);
266
            d_make();
267
            myinteract = 999;
268
        }
269
        else
270
        {
271
            switch (direction_to_object_bbox(undefined, 1049, 1))
272
            {
273
                case 2:
274
                    marker.sprite_index = spr_ralsei_walk_up;
275
                    break;
276
                case 3:
277
                    marker.sprite_index = spr_ralsei_walk_left;
278
                    break;
279
                case 1:
280
                    marker.sprite_index = spr_ralsei_walk_right;
281
                    break;
282
                case 0:
283
                    marker.sprite_index = spr_ralsei_walk_down;
284
                    break;
285
            }
286
            global.msc = -99;
287
            global.choice = -1;
288
            if (global.plot < 242)
289
            {
290
                global.choicemsg[0] = stringsetloc(
#Yes Please
"#Yes Please", "obj_dw_church_pianopiece_right_slash_Step_0_gml_313_0"
);
291
                global.choicemsg[1] = stringsetloc(
#No Please
"#No Please", "obj_dw_church_pianopiece_right_slash_Step_0_gml_314_0"
);
292
                global.choicemsg[2] = stringsetloc(
Park your butt, mister
"Park your butt, mister", "obj_dw_church_pianopiece_right_slash_Step_0_gml_315_0"
);
293
                global.choicemsg[3] = stringset("");
294
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("ralsei");
295
                msgsetloc(0, 
Face 0* Oh,Delay 11 Kris!Delay 11 This seems like a complicated puzzle...Wait for input
"\\E0* Oh^1, Kris^1! This seems like a complicated puzzle.../", "obj_dw_church_pianopiece_right_slash_Step_0_gml_319_0"
);
296
                msgnextloc(
Face Q* Would you like any advice to,Delay 11 um,Delay 11 speed up solving it?Wait for input
"\\EQ* Would you like any advice to^1, um^1, speed up solving it?/", "obj_dw_church_pianopiece_right_slash_Step_0_gml_320_0"
);
297
                msgnext("\\C3 ");
298
                d_make();
299
                myinteract = 10;
300
            }
301
            else if (!talked)
302
            {
303
                global.choicemsg[0] = stringsetloc(
#Hear it
"#Hear it", "obj_dw_church_pianopiece_right_slash_Step_0_gml_330_0"
);
304
                global.choicemsg[1] = stringsetloc(
#Not now
"#Not now", "obj_dw_church_pianopiece_right_slash_Step_0_gml_331_0"
);
305
                global.choicemsg[2] = "";
306
                global.choicemsg[3] = "";
307
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("ralsei");
308
                msgsetloc(0, 
Face 2* Haha,Delay 11 Kris,Delay 11 Susie taught me something nice!Wait for input
"\\E2* Haha^1, Kris^1, Susie taught me something nice!/", "obj_dw_church_pianopiece_right_slash_Step_0_gml_335_0"
);
309
                msgnext("\\C2 ");
310
                d_make();
311
                myinteract = 74;
312
            }
313
            else
314
            {
315
                var sutext = stringsetloc(
AND ME???
"AND ME???", "obj_dw_church_pianopiece_right_slash_Step_0_gml_343_0"
);
316
                
scr_smallface
scr_smallface

function
scr_smallface(arg0, arg1, arg2, arg3, arg4, arg5)
{
scr_smallface_reset(arg0);
global.smsprite[arg0] = spr_face_susie_alt; if (is_string(arg1)) { if (arg1 == "susie") global.smsprite[arg0] = spr_face_susie_alt; if (arg1 == "ralsei") global.smsprite[arg0] = spr_face_r_nohat; if (arg1 == "lancer") global.smsprite[arg0] = spr_face_l0; if (arg1 == "noelle") global.smsprite[arg0] = spr_face_n_matome; if (arg1 == "noelle_cropped") global.smsprite[arg0] = spr_face_n_matome_cropped; if (arg1 == "queen") global.smsprite[arg0] =
scr_84_get_sprite("spr_face_queen");
if (arg1 == "rouxls") global.smsprite[arg0] = spr_face_rurus; if (arg1 == "berdly") global.smsprite[arg0] = spr_face_berdly_dark; if (arg1 == "rudy") global.smsprite[arg0] = spr_face_rudy; if (arg1 == "toriel") global.smsprite[arg0] = asset_get_index("spr_face_t" + string(arg2)); if (arg1 == "none" || arg1 == "empty") global.smsprite[arg0] = spr_empty; } else { global.smsprite[arg0] = arg1; if (arg1 == 0) global.smsprite[arg0] = spr_empty; } global.smimage[arg0] = arg2; if (is_string(arg3)) { if (global.fighting == 1) { if (arg3 == "left") global.smxx[arg0] = 60; if (arg3 == "leftmid") global.smxx[arg0] = 160; if (arg3 == "mid" || arg3 == "middle") global.smxx[arg0] = 260; if (arg3 == "rightmid") global.smxx[arg0] = 360; if (arg3 == "right") global.smxx[arg0] = 460; } else { if (arg3 == "left") global.smxx[arg0] = 70; if (arg3 == "leftmid") global.smxx[arg0] = 160; if (arg3 == "mid" || arg3 == "middle") global.smxx[arg0] = 260; if (arg3 == "rightmid") global.smxx[arg0] = 360; if (arg3 == "right") global.smxx[arg0] = 400; } } else { global.smxx[arg0] = arg3; } if (is_string(arg4)) { if (global.fighting == 1) { if (arg4 == "top") global.smyy[arg0] = -10; if (arg4 == "mid" || arg4 == "middle") global.smyy[arg0] = 30; if (arg4 == "bottommid") global.smyy[arg0] = 45; if (arg4 == "bottom") global.smyy[arg0] = 56; if (arg4 == "bottom" || arg4 == "bottommid") { global.smdir[arg0] = 90; global.smspeed[arg0] = 4; global.smalarm[arg0] = 10; global.smyy[arg0] += 40; global.smxx[arg0] -= 40; } } else { if (arg4 == "top") global.smyy[arg0] = -10; if (arg4 == "mid" || arg4 == "middle") global.smyy[arg0] = 30; if (arg4 == "bottommid") global.smyy[arg0] = 50; if (arg4 == "bottom") global.smyy[arg0] = 68; if (global.darkzone == 0) ...
(1, "susie", 17, "right", "bottom", sutext);
317
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("ralsei");
318
                msgsetloc(0, 
Face K* Sorry for calling you a noob,Delay 11 Kris!Mini text 1 Wait for inputClose Message
"\\EK* Sorry for calling you a noob^1, Kris!\\f1/%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_347_0"
);
319
                d_make();
320
                myinteract = 999;
321
            }
322
        }
323
    }
324
    if (myinteract == 74 && global.choice != -1)
325
    {
326
        if (global.choice == 0)
327
        {
328
            k_d(1);
329
            var sutext = stringsetloc(
HEY!!!
"HEY!!!", "obj_dw_church_pianopiece_right_slash_Step_0_gml_361_0"
);
330
            
scr_smallface
scr_smallface

function
scr_smallface(arg0, arg1, arg2, arg3, arg4, arg5)
{
scr_smallface_reset(arg0);
global.smsprite[arg0] = spr_face_susie_alt; if (is_string(arg1)) { if (arg1 == "susie") global.smsprite[arg0] = spr_face_susie_alt; if (arg1 == "ralsei") global.smsprite[arg0] = spr_face_r_nohat; if (arg1 == "lancer") global.smsprite[arg0] = spr_face_l0; if (arg1 == "noelle") global.smsprite[arg0] = spr_face_n_matome; if (arg1 == "noelle_cropped") global.smsprite[arg0] = spr_face_n_matome_cropped; if (arg1 == "queen") global.smsprite[arg0] =
scr_84_get_sprite("spr_face_queen");
if (arg1 == "rouxls") global.smsprite[arg0] = spr_face_rurus; if (arg1 == "berdly") global.smsprite[arg0] = spr_face_berdly_dark; if (arg1 == "rudy") global.smsprite[arg0] = spr_face_rudy; if (arg1 == "toriel") global.smsprite[arg0] = asset_get_index("spr_face_t" + string(arg2)); if (arg1 == "none" || arg1 == "empty") global.smsprite[arg0] = spr_empty; } else { global.smsprite[arg0] = arg1; if (arg1 == 0) global.smsprite[arg0] = spr_empty; } global.smimage[arg0] = arg2; if (is_string(arg3)) { if (global.fighting == 1) { if (arg3 == "left") global.smxx[arg0] = 60; if (arg3 == "leftmid") global.smxx[arg0] = 160; if (arg3 == "mid" || arg3 == "middle") global.smxx[arg0] = 260; if (arg3 == "rightmid") global.smxx[arg0] = 360; if (arg3 == "right") global.smxx[arg0] = 460; } else { if (arg3 == "left") global.smxx[arg0] = 70; if (arg3 == "leftmid") global.smxx[arg0] = 160; if (arg3 == "mid" || arg3 == "middle") global.smxx[arg0] = 260; if (arg3 == "rightmid") global.smxx[arg0] = 360; if (arg3 == "right") global.smxx[arg0] = 400; } } else { global.smxx[arg0] = arg3; } if (is_string(arg4)) { if (global.fighting == 1) { if (arg4 == "top") global.smyy[arg0] = -10; if (arg4 == "mid" || arg4 == "middle") global.smyy[arg0] = 30; if (arg4 == "bottommid") global.smyy[arg0] = 45; if (arg4 == "bottom") global.smyy[arg0] = 56; if (arg4 == "bottom" || arg4 == "bottommid") { global.smdir[arg0] = 90; global.smspeed[arg0] = 4; global.smalarm[arg0] = 10; global.smyy[arg0] += 40; global.smxx[arg0] -= 40; } } else { if (arg4 == "top") global.smyy[arg0] = -10; if (arg4 == "mid" || arg4 == "middle") global.smyy[arg0] = 30; if (arg4 == "bottommid") global.smyy[arg0] = 50; if (arg4 == "bottom") global.smyy[arg0] = 68; if (global.darkzone == 0) ...
(1, "susie", 17, "right", "bottom", sutext);
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; ...
("ralsei");
332
            msgsetloc(0, 
Face 1* She said I should call you,Delay 11 um...Delay 11 a "noob."Wait for input
"\\E1* She said I should call you^1, um..^1. a \"noob.\"/", "obj_dw_church_pianopiece_right_slash_Step_0_gml_365_0"
);
333
            msgnextloc(
Face 2* Apparently,Delay 11 it means...Delay 11 your favorite person!Wait for input
"\\E2* Apparently^1, it means..^1. your favorite person!/", "obj_dw_church_pianopiece_right_slash_Step_0_gml_366_0"
);
334
            msgnextloc(
Face J* That means both you and Susie are noobs!Wait for input
"\\EJ* That means both you and Susie are noobs!/", "obj_dw_church_pianopiece_right_slash_Step_0_gml_367_0"
);
335
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("susie", "5");
336
            msgnextloc(
Face 5* Hey,Delay 11 NO,Delay 11 only you and Kris are noobs.Wait for input
"\\E5* Hey^1, NO^1, only you and Kris are noobs./", "obj_dw_church_pianopiece_right_slash_Step_0_gml_369_0"
);
337
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("ralsei", "D");
338
            msgnextloc(
Face D* S-Susie...? You mean we're your...Wait for input
"\\ED* S-Susie...? You mean we're your.../", "obj_dw_church_pianopiece_right_slash_Step_0_gml_371_0"
);
339
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("susie", "M");
340
            msgnextloc(
Face M* Huh!? No,Delay 11 I mean,Delay 11 uh...Wait for input
"\\EM* Huh!? No^1, I mean^1, uh.../", "obj_dw_church_pianopiece_right_slash_Step_0_gml_373_0"
);
341
            msgnextloc(
Face 5* Look,Delay 11 it actually means you're bad at games!Wait for input
"\\E5* Look^1, it actually means you're bad at games!/", "obj_dw_church_pianopiece_right_slash_Step_0_gml_374_0"
);
342
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("ralsei", "d");
343
            msgnextloc(
Face d* Oh.Wait for input
"\\Ed* Oh./", "obj_dw_church_pianopiece_right_slash_Step_0_gml_376_0"
);
344
            msgnextloc(
Face H* ...Delay 11 So,Delay 11 only Susie is a noob?Mini text 1 Wait for inputClose Message
"\\EH* ..^1. So^1, only Susie is a noob?\\f1/%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_377_0"
);
345
            talked = 1;
346
            d_make(1);
347
            myinteract = 999;
348
        }
349
        if (global.choice == 1)
350
        {
351
            k_d();
352
            myinteract = 999;
353
        }
354
    }
355
    if (myinteract == 10 && global.choice != -1)
356
    {
357
        k_d(1);
358
        if (global.choice == 0)
359
        {
360
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("ralsei");
361
            msgsetloc(0, 
Face 2* As you know,Delay 11 you can play the piano...Wait for input
"\\E2* As you know^1, you can play the piano.../", "obj_dw_church_pianopiece_right_slash_Step_0_gml_395_0"
);
362
            var linever = 0;
363
            if (global.lang == "ja")
364
            {
365
                if (global.is_console && (os_type == os_ps4 || os_type == os_ps5))
366
                    linever = 1;
367
            }
368
            if (linever == 0)
369
                msgnextsubloc("\\EJ* By holding directions and pressing ~1!/", 
scr_get_input_name
scr_get_input_name

function
scr_get_input_name(arg0)
{ var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == gp_padu) return "\\*W "; if (_control == gp_padd) return "\\*S "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(4), "obj_dw_church_pianopiece_right_slash_Step_0_gml_396_0");
370
            if (linever == 1)
371
                msgnextsub("\\EJ* 方向キーと~1で\n  ピアノを弾けるよ!/", 
scr_get_input_name
scr_get_input_name

function
scr_get_input_name(arg0)
{ var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == gp_padu) return "\\*W "; if (_control == gp_padd) return "\\*S "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(4));
372
            msgnextloc(
Face 2* However,Delay 11 on this piano,Delay 11 you also can swap colors...Wait for input
"\\E2* However^1, on this piano^1, you also can swap colors.../", "obj_dw_church_pianopiece_right_slash_Step_0_gml_397_0"
);
373
            msgnextsubloc("\\EJ* By pressing ~1^1! I hope this helps you!/", 
scr_get_input_name
scr_get_input_name

function
scr_get_input_name(arg0)
{ var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == gp_padu) return "\\*W "; if (_control == gp_padd) return "\\*S "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(6), "obj_dw_church_pianopiece_right_slash_Step_0_gml_398_0");
374
            msgnextloc(
Face Q* It would be...Delay 11 Great if we could hurry,Delay 11 to the fountain.Wait for inputClose Message
"\\EQ* It would be..^1. Great if we could hurry^1, to the fountain./%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_399_0"
);
375
            d_make();
376
            myinteract = 999;
377
        }
378
        if (global.choice == 1)
379
        {
380
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("ralsei");
381
            msgsetloc(0, 
Face 2* Haha,Delay 11 no thank you!Delay 11 I mean,Delay 11 um,Delay 11 you're welcome?Wait for input
"\\E2* Haha^1, no thank you^1! I mean^1, um^1, you're welcome?/", "obj_dw_church_pianopiece_right_slash_Step_0_gml_406_0"
);
382
            msgnextloc(
Face D* I mean,Delay 11 no welcome? ...Delay 11 um? Anyway,Delay 11 good luck!Wait for inputClose Message
"\\ED* I mean^1, no welcome? ..^1. um? Anyway^1, good luck!/%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_407_0"
);
383
            d_make();
384
            myinteract = 999;
385
        }
386
        if (global.choice == 2)
387
        {
388
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("ralsei");
389
            msgsetloc(0, 
Face K* Umm...Delay 11 okay!Wait for inputClose Message
"\\EK* Umm..^1. okay!/%", "obj_dw_church_pianopiece_right_slash_Step_0_gml_414_0"
);
390
            d_make();
391
            myinteract = 15;
392
        }
393
    }
394
    if (myinteract == 15 && !d_ex())
395
    {
396
        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; }
("ralsei", "hoptocouch");
397
        var dist = round(point_distance(marker.x, marker.y, pos[0], pos[1]) / 6);
398
        with (marker)
399
        {
400
            
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; }
("x", x, pos[0], dist);
401
            
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", y, pos[1], dist);
402
            sprite_index = spr_ralsei_walk_left;
403
            image_speed = 0.25;
404
        }
405
        myinteract = 16;
406
        scr_delay_var("myinteract", 17, dist);
407
        timer = 0;
408
    }
409
    if (myinteract == 16)
410
    {
411
        
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
(marker);
412
        if (marker.x < obj_mainchara.x)
413
            global.facing = 3;
414
    }
415
    if (myinteract == 17)
416
    {
417
        var happyval = 658;
418
        var sadval = 666;
419
        var targval = happyval;
420
        var happy = true;
421
        if (global.flag[865])
422
        {
423
            happy = false;
424
            targval = sadval;
425
        }
426
        timer++;
427
        if (timer == 1)
428
        {
429
            if (other.sunpc.sitting == false)
430
                other.sunpc.marker.sprite_index = spr_susie_walk_right_dw;
431
            marker.sprite_index = spr_ralsei_walk_down;
432
            marker.image_index = 0;
433
            marker.image_speed = 0;
434
        }
435
        if (timer == 15)
436
        {
437
            marker.vspeed = -10;
438
            marker.gravity = 1.25;
439
        }
440
        if (timer > 24 && marker.y >= targval)
441
        {
442
            marker.vspeed = 0;
443
            marker.gravity = 0;
444
            if (happy)
445
            {
446
                marker.sprite_index = spr_ralsei_darkchurch_sit_happy;
447
                marker.y = happyval;
448
                snd_play(snd_wing);
449
            }
450
            else
451
            {
452
                snd_play(snd_noise);
453
                marker.sprite_index = spr_ralsei_darkchurch_sit_sad;
454
                marker.y = sadval;
455
            }
456
            timer = 0;
457
            setxy(368, 738);
458
            myinteract = 999;
459
            global.facing = 0;
460
            global.flag[866] = 1;
461
        }
462
    }
463
    if (myinteract == 999 && !d_ex())
464
    {
465
        global.interact = 0;
466
        myinteract = 0;
467
    }
468
}