Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_lantern_hallway_Step_0

(view raw script w/o annotations or w/e)
1
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
2
{
3
    if (keyboard_check(ord("W")) && keyboard_check_pressed(ord("V")))
4
    {
5
        safe_delete(walkgerson);
6
        con = 5.1;
7
        roomloop = 1;
8
        roomglowactive = true;
9
        var spot = 
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", "loopleft");
10
        setxy(spot[0], spot[1], kris);
11
        setxy(spot[0], spot[1], ralsei);
12
        setxy(spot[0], spot[1], susie);
13
        scr_caterinterp("all");
14
    }
15
}
16
if (!init)
17
{
18
    with (obj_genmarker)
19
    {
20
        if (extflag == "prop1" || extflag == "prop2")
21
        {
22
            with (instance_create(x, y, obj_dw_church_prophecy))
23
            {
24
                extflag = "heroes1";
25
                bonus = 0;
26
                if (other.extflag == "prop1")
27
                    bonus = 1;
28
            }
29
        }
30
    }
31
    var startmark = 
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", "loopleft");
32
    var endmark = 
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", "loopright");
33
    leftx = startmark[0];
34
    rightx = endmark[0];
35
    heightdiffer = startmark[1] - endmark[1];
36
    
scr_populatechars
scr_populatechars

function
scr_populatechars()
{ if (!variable_instance_exists(id, "kris")) kris = 0; if (!variable_instance_exists(id, "ralsei")) ralsei = 0; if (!variable_instance_exists(id, "susie")) susie = 0; if (!variable_instance_exists(id, "noelle")) noelle = 0; if (kris == 0) { with (obj_mainchara) other.kris = id; } if (susie == 0) { with (obj_caterpillarchara) { if (name == "susie") other.susie = id; } } if (ralsei == 0) { with (obj_caterpillarchara) { if (name == "ralsei") other.ralsei = id; } } if (noelle == 0) { with (obj_caterpillarchara) { if (name == "noelle") other.noelle = id; } } }
();
37
    init = 1;
38
}
39
if (con == 0)
40
{
41
    var trig = 0;
42
    with (obj_trigger)
43
    {
44
        if (extflag == "proptrig1")
45
        {
46
            if (place_meeting(x, y, obj_mainchara))
47
                trig = 1;
48
        }
49
    }
50
    if (trig)
51
    {
52
        loopwatch = 1;
53
        
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; }
("roomglowactive", 0, 1, 30, 2, "out");
54
        con = 1;
55
        nogobackplz = instance_create(2320, 1460, obj_solidblock);
56
        with (nogobackplz)
57
        {
58
            image_blend = c_black;
59
            sprite_index = spr_pxwhite;
60
            
scr_size
scr_size

function
scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{ with (arg2) { image_xscale = arg0; image_yscale = arg1; } }
(80, 400);
61
            visible = true;
62
            depth = 900000;
63
        }
64
    }
65
}
66
if (con == 1)
67
{
68
    global.flag[7 disable_menu?] = 1;
69
    
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");
70
    msgsetloc(0, 
Face 7* Hey!Delay 11 It's us again!Wait for input
"\\E7* Hey^1! It's us again!/", "obj_dw_church_lantern_hallway_slash_Step_0_gml_74_0"
);
71
    msgnextloc(
Face L* Guess there was a backup.Wait for input
"\\EL* Guess there was a backup./", "obj_dw_church_lantern_hallway_slash_Step_0_gml_75_0"
);
72
    
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("ralsei", "A");
73
    msgnextloc(
Face A* ...Delay 11 Even if it's broken,Delay 11 it always appears somewhere else.Wait for input
"\\EA* ..^1. Even if it's broken^1, it always appears somewhere else./", "obj_dw_church_lantern_hallway_slash_Step_0_gml_77_0"
);
74
    msgnextloc(
Face 4* The prophecy can't be changed,Delay 11 after all.Wait for inputClose Message
"\\E4* The prophecy can't be changed^1, after all./%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_78_0"
);
75
    scr_walkntalk_start();
76
    con = 2;
77
}
78
if (con == 2 && !d_ex())
79
{
80
    scr_walkntalk_stop();
81
    con = 3;
82
    curcount = loopcount;
83
}
84
if (con == 3)
85
{
86
    if (abs(loopcount - curcount) >= 1)
87
        con = 5.1;
88
}
89
if (con == 5.1)
90
{
91
    var trig = 0;
92
    with (obj_trigger)
93
    {
94
        if (extflag == "destroyprop")
95
        {
96
            if (place_meeting(x, y, obj_mainchara))
97
            {
98
                trig = 1;
99
                k_d();
100
                auto_talk = 0;
101
                global.flag[7 disable_menu?] = 0;
102
            }
103
        }
104
    }
105
    if (trig)
106
    {
107
        global.interact = 1;
108
        with (obj_dw_church_prophecy)
109
        {
110
            if (bonus)
111
                destroy = 1;
112
            else
113
                instance_destroy();
114
        }
115
        con = -1;
116
        var susiedelay = 25;
117
        scr_delay_var("con", 5.8, susiedelay + 5);
118
        with (susie)
119
        {
120
            fun = 1;
121
            var newsprite = 717;
122
            if (x < 1350)
123
                newsprite = 719;
124
            scr_delay_var("sprite_index", newsprite, susiedelay);
125
            
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_shakeobj, susiedelay);
126
            snd_play_delay(snd_wing, susiedelay);
127
        }
128
        with (ralsei)
129
        {
130
            fun = 1;
131
            var newsprite = 4939;
132
            if (x < 1350)
133
                newsprite = 2674;
134
            scr_delay_var("sprite_index", newsprite, susiedelay);
135
            
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; }
(scr_shakeobj, susiedelay);
136
        }
137
    }
138
}
139
if (con == 5.8)
140
{
141
    safe_delete(nogobackplz);
142
    
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; }
("roomglowactive", 1, 0, 30, -1, "out");
143
    layer_set_visible("TILES_2", 1);
144
    layer_set_visible("HIDDEN_DOOR", 1);
145
    gerson = 
scr_makenpc
scr_makenpc

function
scr_makenpc(arg0 = "", arg1 = "", arg2 = false)
{ var _mylayer = layer_get_id(arg0); if (_mylayer == -1) { debug_print("Warning: Check Output Console"); debug_message("
scr_makenpc(" + arg0 + "," + arg1 + ") Result: Layer Not Found");
return -4; } var sourcenpc = layer_sprite_get_id(_mylayer, arg1); if (sourcenpc == -1) { var _result = "
scr_makenpc(\"" + arg0 + "\",\"" + arg1 + "\") Result: Sprite Not Found";
debug_message(_result); debug_print("Warning: Check Output Console"); return -4; } var _mysprite = layer_sprite_get_sprite(sourcenpc); var _myx = layer_sprite_get_x(sourcenpc); var _myy = layer_sprite_get_y(sourcenpc); var _myxscale = layer_sprite_get_xscale(sourcenpc); var _myyscale = layer_sprite_get_yscale(sourcenpc); var _myalpha = layer_sprite_get_alpha(sourcenpc); var _myangle = layer_sprite_get_angle(sourcenpc); var _myblend = layer_sprite_get_blend(sourcenpc); var _myspeed = layer_sprite_get_speed(sourcenpc); var _myindex = layer_sprite_get_index(sourcenpc); var _npc = instance_create_depth(0, 0, 0, obj_trigger_interact); _npc.marker =
scr_marker_ext(_myx, _myy, _mysprite, _myxscale, _myyscale, 0, _myindex, _myblend, undefined, undefined, undefined, _myalpha);
var truex = _npc.marker.bbox_left; var truey = _npc.marker.bbox_top; var truexscale = _npc.marker.bbox_right - _npc.marker.bbox_left; var trueyscale = _npc.marker.bbox_bottom - _npc.marker.bbox_top; setxy(truex, truey, _npc); _npc.markerxoffset = truex - _npc.marker.x; _npc.markeryoffset = truey - _npc.marker.y; _npc.markerstick = true;
scr_sizeexact(truexscale, trueyscale, _npc);
if (arg2) { _npc.visible = true; _npc.image_alpha = 1; } _npc.strict = true; _npc.issolid = true; _npc.talked = 0;
scr_depth_alt(_npc.marker);
return _npc; } function scr_makenpc_fromasset(arg0, arg1 = false) { var sourcenpc = arg0; var _mysprite = layer_sprite_get_sprite(sourcenpc); var _myx = layer_sprite_get_x(sourcenpc); var _myy = layer_sprite_get_y(sourcenpc); var _myxscale = layer_sprite_get_xscale(sourcenpc); var _myyscale = layer_sprite_get_yscale(sourcenpc); var _myalpha = layer_sprite_get_alpha(sourcenpc); var _myangle = layer_sprite_get_angle(sourcenpc); var _myblend = layer_sprite_get_blend(sourcenpc); var _myspeed = layer_sprite_get_speed(sourcenpc); var _myindex = layer_sprite_get_index(sourcenpc); var _npc = instance_create_depth(0, 0, 0, obj_trigger_interact); _npc.marker =
scr_marker_ext(_myx, _myy, _mysprite, _myxscale, _myyscale, 0, _myindex, _myblend, undefined, undefined, undefined, _myalpha);
var truex = _npc.marker.bbox_left; var truey = _npc.marker.bbox_top; var truexscale = _npc.marker.bbox_right - _npc.marker.bbox_left; var trueyscale = _npc.marker.bbox_bottom - _npc.marker.bbox_top; setxy(truex, truey, _npc); _npc.markerxoffset = truex - _npc.marker.x; _npc.markeryoffset = truey - _npc.marker.y; _npc.markerstick = true;
scr_sizeexact(truexscale, trueyscale, _npc);
if (arg1) { _npc.visible = true; _npc.image_alpha = 1; } _npc.strict = true; _npc.issolid = true; _npc.talked = 0;
scr_depth_alt(_npc.marker);
return _npc; }
("GERSON_LOCS", "dspr_gersonrascal", 0);
146
    
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");
147
    msgsetloc(0, 
Face 5* H...Delay 11 hey!Delay 11 What gives!?Wait for inputClose Message
"\\E5* H..^1. hey^1! What gives!?/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_213_0"
);
148
    d_make(undefined, undefined, undefined, 1);
149
    global.plot++;
150
    layer_set_visible("TILES_2", 1);
151
    layer_set_visible("HIDDEN_DOOR", 1);
152
    safe_delete(fakeblock);
153
    con = 6;
154
}
155
if (con == 6 && !d_ex())
156
{
157
    with (obj_caterpillarchara)
158
        fun = 0;
159
    global.interact = 0;
160
    con = 7;
161
}
162
if (con == 7)
163
{
164
    var trig = 0;
165
    with (gerson)
166
    {
167
        if (myinteract == 3)
168
            trig = 1;
169
    }
170
    with (obj_trigger)
171
    {
172
        if (extflag == "proptrig2")
173
        {
174
            if (place_meeting(x, y, obj_mainchara))
175
                trig = 1;
176
        }
177
    }
178
    if (trig)
179
    {
180
        roomloop = false;
181
        con = 8;
182
        global.interact = 1;
183
        gerson.myinteract = 0;
184
    }
185
}
186
if (con == 8)
187
{
188
    con = 9;
189
    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; }
();
190
    global.facing = 0;
191
    
scr_maincharacters_actors
scr_maincharacters_actors

function
scr_maincharacters_actors()
{ actor_count = 0; kr = 0; kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index; kr_actor.depth = obj_mainchara.depth; with (obj_mainchara) visible = 0; for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++) { if (i_ex(global.cinstance[__jj])) { if (global.cinstance[__jj].name == "susie") { actor_count++; su = __jj + 1; su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index; su_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "ralsei") { actor_count++; ra = __jj + 1; ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index; ra_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "noelle") { actor_count++; no = __jj + 1; no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index; no_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } } } }
();
192
    var walkspeed = 6;
193
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
194
    var supos = 
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; }
("su", "cut1");
195
    var suwalktime = round(point_distance(susie.x, susie.y, supos[0], supos[1]) / walkspeed);
196
    
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(supos[0], supos[1], suwalktime);
197
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
198
    var krpos = 
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; }
("kr", "cut1");
199
    var krwalktime = round(point_distance(kris.x, kris.y, krpos[0], krpos[1]) / walkspeed);
200
    
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(krpos[0], krpos[1], krwalktime);
201
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
202
    var rapos = 
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; }
("ra", "cut1");
203
    var rawalktime = round(point_distance(ralsei.x, ralsei.y, rapos[0], rapos[1]) / walkspeed);
204
    
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(rapos[0], rapos[1], rawalktime);
205
    var wait = max(suwalktime, rawalktime, krwalktime);
206
    
c_pannable
c_pannable

function
c_pannable(arg0)
{
c_cmd("pannable", arg0, 0, 0, 0);
}
(1);
207
    var camfind = 
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; }
("gen", "cut1");
208
    
c_pan
c_pan

function
c_pan(arg0, arg1, arg2)
{
c_cmd("pan", arg0, arg1, arg2, 0);
}
(camfind[0], camfind[1], round(wait / 2));
209
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(wait);
210
    
c_sel
c_sel

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

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("u");
212
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
213
    
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("u");
214
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
215
    
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("u");
216
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(15);
217
    
c_msgstay
c_msgstay

function
c_msgstay(arg0)
{
c_cmd("msgstay", arg0, 0, 0, 0);
}
(10);
218
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("gerson");
219
    
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,
* Oopsy daisy!Delay 11 Darn my clumsiness,Delay 11 geheh...Wait for input
"* Oopsy daisy^1! Darn my clumsiness^1, geheh.../", "obj_dw_church_lantern_hallway_slash_Step_0_gml_312_0"
);
220
    
c_facenext
c_facenext

function
c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
}
("susie", "5");
221
    
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 5* Damn it!Delay 11 You broke it again,Delay 11 didn't you...?Wait for inputClose Message
"\\E5* Damn it^1! You broke it again^1, didn't you...?/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_314_0"
);
222
    
c_talk
c_talk

function
c_talk()
{
c_cmd("talk", 0, 0, 0, 0);
}
();
223
    
c_wait_box
c_wait_box

function
c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
(0);
224
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(gerson.marker, "sprite_index", spr_gerson_outfit_walk_up);
225
    
c_wait_box
c_wait_box

function
c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
(1);
226
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(gerson.marker, "sprite_index", spr_gerson_outfit_walk_cane_right);
227
    
c_wait_talk
c_wait_talk

function
c_wait_talk()
{
c_cmd("waitdialoguer", 0, 0, 0, 0);
}
();
228
    
c_msgstay
c_msgstay

function
c_msgstay(arg0)
{
c_cmd("msgstay", arg0, 0, 0, 0);
}
(0);
229
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("gerson");
230
    
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,
* Well,Delay 11 we were following that Prophecy so closely...Wait for input
"* Well^1, we were following that Prophecy so closely.../", "obj_dw_church_lantern_hallway_slash_Step_0_gml_325_0"
);
231
    
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);
}
(
* I couldn't see quite where I was going,Delay 11 geh-heh!!Wait for inputClose Message
"* I couldn't see quite where I was going^1, geh-heh!!/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_326_0"
);
232
    
c_talk
c_talk

function
c_talk()
{
c_cmd("talk", 0, 0, 0, 0);
}
();
233
    
c_wait_box
c_wait_box

function
c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
(0);
234
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(gerson.marker, "sprite_index", spr_gerson_look_diagonal);
235
    
c_wait_box
c_wait_box

function
c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
(1);
236
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(gerson.marker, "sprite_index", spr_gerson_outfit_laugh_right);
237
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(gerson.marker, "image_speed", 0.2);
238
    c_snd_play(snd_gerlaugh);
239
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(54);
240
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(gerson.marker, "image_speed", 0);
241
    
c_wait_talk
c_wait_talk

function
c_wait_talk()
{
c_cmd("waitdialoguer", 0, 0, 0, 0);
}
();
242
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(gerson.marker, "image_index", 0);
243
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(gerson.marker, "sprite_index", spr_gerson_outfit_walk_cane_right);
244
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
245
    
c_sprite
c_sprite

function
c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
}
(spr_susie_point);
246
    
c_shakeobj
c_shakeobj

function
c_shakeobj()
{
c_cmd("shakeobj", 0, 0, 0, 0);
}
();
247
    c_snd_play(snd_wing);
248
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(8);
249
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("susie");
250
    
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 7* ...Delay 11 hey,Delay 11 guys!Delay 11 There's another way here!!!Wait for inputClose Message
"\\E7* ..^1. hey^1, guys^1! There's another way here!!!/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_346_0"
);
251
    
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
} function c_talkwait() {
c_talk_wait();
}
();
252
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("susie");
253
    
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 H* Out of the way,Delay 11 old man!Wait for inputClose Message
"\\EH* Out of the way^1, old man!/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_350_0"
);
254
    
c_talk
c_talk

function
c_talk()
{
c_cmd("talk", 0, 0, 0, 0);
}
();
255
    
c_wait_box_end
c_wait_box_end

function
c_wait_box_end(arg0 = 0)
{
c_cmd("waitboxend", arg0, 0, 0, 0);
}
(0);
256
    supos = 
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; }
("su", "suexit");
257
    suwalktime = round(point_distance(susie.x, susie.y, supos[0], supos[1]) / 12);
258
    
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(supos[0], supos[1], suwalktime);
259
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(6);
260
    var ger1 = 
scr_assetloc
scr_assetloc

function
scr_assetloc(arg0 = "", arg1 = "")
{ var _mylayer = layer_get_id(arg0); if (_mylayer == -1) { debug_print("Warning: Check Output Console"); debug_message("
scr_makenpc(" + arg0 + "," + arg1 + ") Result: Layer Not Found");
return -4; } var sourceAsset = layer_sprite_get_id(_mylayer, arg1); if (sourceAsset == -1) { var _result = "
scr_makenpc(\"" + arg0 + "\",\"" + arg1 + "\") Result: Sprite Not Found";
debug_message(_result); debug_print("Warning: Check Output Console"); return -4; } var _myx = layer_sprite_get_x(sourceAsset); var _myy = layer_sprite_get_y(sourceAsset); var _mysprite = layer_sprite_get_sprite(sourceAsset); var _myxscale = layer_sprite_get_xscale(sourceAsset); var _myyscale = layer_sprite_get_yscale(sourceAsset); var _myalpha = layer_sprite_get_alpha(sourceAsset); var _myangle = layer_sprite_get_angle(sourceAsset); var _myblend = layer_sprite_get_blend(sourceAsset); var _myspeed = layer_sprite_get_speed(sourceAsset); var _myindex = layer_sprite_get_index(sourceAsset); return [_myx, _myy, _mysprite, _myxscale, _myyscale, _myalpha, _myblend, _myspeed, _myindex]; }
(
GERSON_LOCS
"GERSON_LOCS", "dspr_gersonrascal"
);
261
    var ger2 = 
scr_assetloc
scr_assetloc

function
scr_assetloc(arg0 = "", arg1 = "")
{ var _mylayer = layer_get_id(arg0); if (_mylayer == -1) { debug_print("Warning: Check Output Console"); debug_message("
scr_makenpc(" + arg0 + "," + arg1 + ") Result: Layer Not Found");
return -4; } var sourceAsset = layer_sprite_get_id(_mylayer, arg1); if (sourceAsset == -1) { var _result = "
scr_makenpc(\"" + arg0 + "\",\"" + arg1 + "\") Result: Sprite Not Found";
debug_message(_result); debug_print("Warning: Check Output Console"); return -4; } var _myx = layer_sprite_get_x(sourceAsset); var _myy = layer_sprite_get_y(sourceAsset); var _mysprite = layer_sprite_get_sprite(sourceAsset); var _myxscale = layer_sprite_get_xscale(sourceAsset); var _myyscale = layer_sprite_get_yscale(sourceAsset); var _myalpha = layer_sprite_get_alpha(sourceAsset); var _myangle = layer_sprite_get_angle(sourceAsset); var _myblend = layer_sprite_get_blend(sourceAsset); var _myspeed = layer_sprite_get_speed(sourceAsset); var _myindex = layer_sprite_get_index(sourceAsset); return [_myx, _myy, _mysprite, _myxscale, _myyscale, _myalpha, _myblend, _myspeed, _myindex]; }
(
GERSON_LOCS
"GERSON_LOCS", "dspr_gerson_outoftheway"
);
262
    
c_var_lerp_instance
c_var_lerp_instance

function
c_var_lerp_instance()
{ if (argument_count < 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], 0);
else if (argument_count == 6)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
else if (argument_count == 7)
c_cmd_x("var", argument[0], argument[1], argument[2], argument[3], argument[4], string(argument[5]) + string(argument[6]));
} function c_lerp_var_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
} function c_lerpvar_instance() { if (argument_count >= 6)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
c_var_lerp_instance(argument0, argument1, argument2, argument3, argument4);
}
(gerson, "x", gerson.x, gerson.x - 24, 12, -1, "out");
263
    c_sound_play(snd_wing);
264
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(12);
265
    
c_wait_talk
c_wait_talk

function
c_wait_talk()
{
c_cmd("waitdialoguer", 0, 0, 0, 0);
}
();
266
    
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("ralsei");
267
    
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 C* S-Susie!Delay 11 Don't run ahead so fast!Wait for inputClose Message
"\\EC* S-Susie^1! Don't run ahead so fast!/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_368_0"
);
268
    
c_talk
c_talk

function
c_talk()
{
c_cmd("talk", 0, 0, 0, 0);
}
();
269
    rapos = 
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; }
("ra", "raexit1");
270
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
271
    
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(rapos[0], rapos[1], 6);
272
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(6);
273
    rapos = 
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; }
("ra", "raexit2");
274
    
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(rapos[0], rapos[1], 32);
275
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(32);
276
    
c_wait_talk
c_wait_talk

function
c_wait_talk()
{
c_cmd("waitdialoguer", 0, 0, 0, 0);
}
();
277
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
278
    
c_setxy
c_setxy

function
c_setxy(arg0, arg1)
{
c_cmd("setxy", arg0, arg1, 0, 0);
}
(room_width, room_height);
279
    
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
280
    
c_setxy
c_setxy

function
c_setxy(arg0, arg1)
{
c_cmd("setxy", arg0, arg1, 0, 0);
}
(room_width, room_height);
281
    
c_panobj
c_panobj

function
c_panobj(arg0, arg1)
{
c_cmd("panobj", arg0, arg1, 0, 0);
}
(kr_actor, 15);
282
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(15);
283
    
c_pannable
c_pannable

function
c_pannable(arg0)
{
c_cmd("pannable", arg0, 0, 0, 0);
}
(0);
284
    hidecater = true;
285
    
c_actortokris
c_actortokris

function
c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
}
();
286
    
c_actortocaterpillar
c_actortocaterpillar

function
c_actortocaterpillar()
{
c_cmd("actortocaterpillar", 0, 0, 0, 0);
}
();
287
    
c_terminatekillactors
c_terminatekillactors

function
c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
}
();
288
}
289
if (con == 9 && !i_ex(cutscene_master))
290
{
291
    con = 10;
292
    global.facing = 0;
293
    global.interact = 0;
294
    gerson.myinteract = 0;
295
}
296
if (con == 10)
297
{
298
    with (gerson)
299
    {
300
        if (myinteract == 3)
301
        {
302
            global.interact = 1;
303
            global.msc = -99;
304
            global.choice = -1;
305
            global.choicemsg[0] = stringsetloc(
#You broke it#on purpose
"#You broke it#on purpose", "obj_dw_church_lantern_hallway_slash_Step_0_gml_421_0"
);
306
            global.choicemsg[1] = stringsetloc(
#You broke it#on accident
"#You broke it#on accident", "obj_dw_church_lantern_hallway_slash_Step_0_gml_422_0"
);
307
            global.choicemsg[2] = stringset("");
308
            global.choicemsg[3] = stringset("");
309
            
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; ...
("gerson");
310
            msgsetloc(0, 
* ...Delay 11 hmm? Got somethin' to say to me?Wait for input
"* ..^1. hmm? Got somethin' to say to me?/", "obj_dw_church_lantern_hallway_slash_Step_0_gml_428_0"
);
311
            msgnext("\\C2 ");
312
            d_make();
313
            myinteract = 4;
314
            marker.sprite_index = spr_gerson_beard_thinking;
315
        }
316
        if (myinteract == 4 && global.choice != -1)
317
        {
318
            k_d(1);
319
            if (global.choice == 0)
320
            {
321
                global.choice = -1;
322
                global.choicemsg[0] = stringsetloc(
#Don't like#prophecies
"#Don't like#prophecies", "obj_dw_church_lantern_hallway_slash_Step_0_gml_448_0"
);
323
                global.choicemsg[1] = stringsetloc(
#Annoy Susie
"#Annoy Susie", "obj_dw_church_lantern_hallway_slash_Step_0_gml_449_0"
);
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; ...
("gerson");
325
                msgsetloc(0, 
* Ah...Delay 11 me? Why do you suppose I would do that?Wait for input
"* Ah..^1. me? Why do you suppose I would do that?/", "obj_dw_church_lantern_hallway_slash_Step_0_gml_451_0"
);
326
                msgnext("\\C2 ");
327
                myinteract = 5;
328
            }
329
            if (global.choice == 1)
330
            {
331
                global.choice = 3;
332
                
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; ...
("gerson");
333
                msgsetloc(0, 
* ...Delay 11 ah,Delay 11 I'm flattered!Delay 11 Yes siree,Delay 11 I'm flattered.Wait for inputClose Message
"* ..^1. ah^1, I'm flattered^1! Yes siree^1, I'm flattered./%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_459_0"
);
334
                myinteract = 99;
335
            }
336
            d_make();
337
        }
338
        if (myinteract == 5 && d_ex())
339
        {
340
            if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 0)
341
                marker.sprite_index = spr_gerson_look_diagonal;
342
        }
343
        if (myinteract == 5 && global.choice != -1)
344
        {
345
            k_d(1);
346
            if (global.choice == 0)
347
            {
348
                
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; ...
("gerson");
349
                msgsetloc(0, 
* Well now,Delay 11 a fairytale is a pretty little thing.Wait for input
"* Well now^1, a fairytale is a pretty little thing./", "obj_dw_church_lantern_hallway_slash_Step_0_gml_480_0"
);
350
                msgnextloc(
* Ain't it nice to believe a glimmer here and there...?Wait for input
"* Ain't it nice to believe a glimmer here and there...?/", "obj_dw_church_lantern_hallway_slash_Step_0_gml_481_0"
);
351
                msgnextloc(
* I jus' think,Delay 11 those words shine a bit too bright.Wait for input
"* I jus' think^1, those words shine a bit too bright./", "obj_dw_church_lantern_hallway_slash_Step_0_gml_482_0"
);
352
                msgnextloc(
* A path so blue,Delay 11 it's all you can see.Wait for input
"* A path so blue^1, it's all you can see./", "obj_dw_church_lantern_hallway_slash_Step_0_gml_483_0"
);
353
                msgnextloc(
* So I say...Delay 11 why don't we go between the lines?Wait for input
"* So I say..^1. why don't we go between the lines?/", "obj_dw_church_lantern_hallway_slash_Step_0_gml_484_0"
);
354
                msgnextloc(
* It's darker there...Delay 11 Geheh...Delay 11 geheheh!Wait for inputClose Message
"* It's darker there..^1. Geheh..^1. geheheh!/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_485_0"
);
355
            }
356
            if (global.choice == 1)
357
            {
358
                
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; ...
("gerson");
359
                msgsetloc(0, 
* Susie,Delay 11 eh? ...Delay 11 is that what she thinks?Wait for input
"* Susie^1, eh? ..^1. is that what she thinks?/", "obj_dw_church_lantern_hallway_slash_Step_0_gml_490_0"
);
360
                msgnextloc(
* Oh,Delay 11 I'm flattered!Delay 11 Yes siree,Delay 11 I'm flattered...Delay 11 geh heh!Wait for inputClose Message
"* Oh^1, I'm flattered^1! Yes siree^1, I'm flattered..^1. geh heh!/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_491_0"
);
361
            }
362
            d_make();
363
            myinteract = 99;
364
        }
365
        if (myinteract == 99 && d_ex())
366
        {
367
            if (global.choice == 0)
368
            {
369
                if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 0)
370
                    marker.sprite_index = spr_gerson_head_tilt_back;
371
                if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 1)
372
                    marker.sprite_index = spr_gerson_outfit_walk_cane;
373
                if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 2)
374
                {
375
                    marker.sprite_index = spr_gerson_beard_thinking_neutral;
376
                    marker.image_index += 0.125;
377
                }
378
                if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 3)
379
                {
380
                    marker.sprite_index = spr_gerson_head_tilt_back;
381
                    marker.image_index = 0;
382
                }
383
                if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 4)
384
                    marker.sprite_index = spr_gerson_outfit_walk_cane;
385
                if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 5)
386
                    marker.sprite_index = spr_gerson_head_tilt_forward;
387
            }
388
            if (global.choice == 1)
389
            {
390
                if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 0)
391
                    marker.sprite_index = spr_gerson_outfit_walk_cane;
392
                if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 1)
393
                {
394
                    snd_play(snd_gerlaugh);
395
                    marker.sprite_index = spr_gerson_outfit_laugh_left;
396
                    marker.image_speed = 0.2;
397
                    myinteract = -1;
398
                    with (marker)
399
                        scr_delay_var("image_speed", 0, 53);
400
                    scr_delay_var("myinteract", 100, 54);
401
                }
402
            }
403
            if (global.choice == 3)
404
            {
405
                if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 0)
406
                    marker.sprite_index = spr_gerson_look_diagonal;
407
            }
408
        }
409
        if (!d_ex() && (myinteract == 99 || myinteract == 100))
410
        {
411
            other.con = 20;
412
            myinteract = 999;
413
        }
414
    }
415
}
416
if (con == 20)
417
{
418
    con = 21;
419
    var xoff = gerson.x - gerson.marker.x;
420
    var yoff = gerson.y - gerson.marker.y;
421
    var gerxpos = gerson.x;
422
    var gerypos = gerson.y;
423
    var leavepos = 
scr_assetloc
scr_assetloc

function
scr_assetloc(arg0 = "", arg1 = "")
{ var _mylayer = layer_get_id(arg0); if (_mylayer == -1) { debug_print("Warning: Check Output Console"); debug_message("
scr_makenpc(" + arg0 + "," + arg1 + ") Result: Layer Not Found");
return -4; } var sourceAsset = layer_sprite_get_id(_mylayer, arg1); if (sourceAsset == -1) { var _result = "
scr_makenpc(\"" + arg0 + "\",\"" + arg1 + "\") Result: Sprite Not Found";
debug_message(_result); debug_print("Warning: Check Output Console"); return -4; } var _myx = layer_sprite_get_x(sourceAsset); var _myy = layer_sprite_get_y(sourceAsset); var _mysprite = layer_sprite_get_sprite(sourceAsset); var _myxscale = layer_sprite_get_xscale(sourceAsset); var _myyscale = layer_sprite_get_yscale(sourceAsset); var _myalpha = layer_sprite_get_alpha(sourceAsset); var _myangle = layer_sprite_get_angle(sourceAsset); var _myblend = layer_sprite_get_blend(sourceAsset); var _myspeed = layer_sprite_get_speed(sourceAsset); var _myindex = layer_sprite_get_index(sourceAsset); return [_myx, _myy, _mysprite, _myxscale, _myyscale, _myalpha, _myblend, _myspeed, _myindex]; }
(
GERSON_LOCS
"GERSON_LOCS", "dspr_gleave2"
);
424
    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; }
();
425
    gerson.marker.sprite_index = spr_gerson_outfit_walk_cane_right;
426
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(15);
427
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(gerson.marker, "image_speed", 0.25);
428
    var horizontaltime = round(abs(gerxpos - (leavepos[0] + xoff)) / 4);
429
    c_lerp_var_instance(gerson, "x", gerxpos, leavepos[0] + xoff, horizontaltime);
430
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(horizontaltime);
431
    
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(gerson.marker, "sprite_index", spr_gerson_outfit_walk_up);
432
    var verttime = round(abs(gerypos - (leavepos[1] + yoff)) / 6);
433
    c_lerp_var_instance(gerson, "y", gerypos, leavepos[1] + yoff, verttime);
434
    
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(verttime);
435
    
c_terminatekillactors
c_terminatekillactors

function
c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
}
();
436
}
437
if (con == 21 && !i_ex(cutscene_master))
438
{
439
    gerson.x = room_width * 4;
440
    global.facing = 0;
441
    global.interact = 0;
442
    con = 22;
443
}
444
if (hidecater == true)
445
{
446
    with (obj_caterpillarchara)
447
        visible = false;
448
}
449
scr_walkntalk_action();
450
if (loopwatch == 1)
451
{
452
    if (kris.x <= leftx)
453
    {
454
        showloopprophecies = true;
455
        safe_delete(walkgerson);
456
        roomloop = true;
457
        loopwatch = 0;
458
    }
459
}
460
if (i_ex(roomglow))
461
    roomglow.active = roomglowactive;
462
if (i_ex(obj_dw_church_prophecy))
463
{
464
    with (obj_dw_church_prophecy)
465
    {
466
        active = other.roomglowactive;
467
        if (!bonus)
468
        {
469
            if (other.showloopprophecies == 0)
470
                visible = false;
471
            else
472
                visible = true;
473
        }
474
    }
475
}
476
if (noleave == 1)
477
{
478
    with (obj_doorAny)
479
    {
480
        if (x >= 2240)
481
            instance_destroy();
482
    }
483
    if (obj_mainchara.y > 1674)
484
    {
485
        global.interact = 1;
486
        obj_mainchara.y = 1674;
487
        noleave = 2;
488
        if (global.plot == 145)
489
        {
490
            
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");
491
            msgsetloc(0, 
Face H* Kris,Delay 11 don't make me babysit this guy by myself.Wait for inputClose Message
"\\EH* Kris^1, don't make me babysit this guy by myself./%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_666_0"
);
492
        }
493
        else
494
        {
495
            
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");
496
            msgsetloc(0, 
* (Some red cups are blocking the path.)Wait for inputClose Message
"* (Some red cups are blocking the path.)/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_671_0"
);
497
        }
498
        d_make(undefined, undefined, undefined, 1);
499
    }
500
}
501
if (noleave == 2 && !d_ex())
502
{
503
    global.interact = 0;
504
    global.facing = 2;
505
    noleave = 1;
506
}
507
with (wafernpc)
508
{
509
    if (myinteract == 3)
510
    {
511
        global.interact = 1;
512
        
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");
513
        msgsetloc(0, 
* Ah,Delay 11 the terrible witches. They rang curses with bladed familiars...Wait for input
"* Ah^1, the terrible witches. They rang curses with bladed familiars.../", "obj_dw_church_lantern_hallway_slash_Step_0_gml_694_0"
);
514
        msgnextloc(
* They were sealed away,Delay 11 for being too fun. I mean,Delay 11 evil.Wait for inputClose Message
"* They were sealed away^1, for being too fun. I mean^1, evil./%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_695_0"
);
515
        if (talked)
516
        {
517
            
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");
518
            msgsetloc(0, 
* Good thing they are statues for all eternity.Wait for inputClose Message
"* Good thing they are statues for all eternity./%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_700_0"
);
519
        }
520
        if (global.plot >= 242)
521
        {
522
            
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");
523
            msgsetloc(0, 
* Oh,Delay 11 she awakened...Delay 11 how unfortunate.Wait for input
"* Oh^1, she awakened..^1. how unfortunate./", "obj_dw_church_lantern_hallway_slash_Step_0_gml_706_0"
);
524
            msgnextloc(
* Seems fun...Delay 11 I mean,Delay 11 unfortunate.Wait for inputClose Message
"* Seems fun..^1. I mean^1, unfortunate./%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_707_0"
);
525
            if (talked)
526
            {
527
                
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");
528
                msgsetloc(0, 
* I don't really mind her song.Wait for input
"* I don't really mind her song./", "obj_dw_church_lantern_hallway_slash_Step_0_gml_712_0"
);
529
                msgnextloc(
* It's a bit pleasant,Delay 11 actually.Wait for inputClose Message
"* It's a bit pleasant^1, actually./%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_713_0"
);
530
            }
531
        }
532
        d_make();
533
        myinteract = 999;
534
        talked++;
535
    }
536
    if (myinteract > 3 && d_ex())
537
    {
538
        var trig = 0;
539
        if (!i_ex(obj_writer))
540
            trig = 1;
541
        with (obj_writer)
542
        {
543
            if (halt)
544
                trig = 1;
545
        }
546
        if (!trig)
547
            marker.image_index += 0.25;
548
    }
549
    if (myinteract == 999 && !d_ex())
550
    {
551
        myinteract = 0;
552
        marker.image_index = 0;
553
        global.interact = 0;
554
    }
555
}
556
with (bellstatue)
557
{
558
    var bellvol = 0.7;
559
    if (myinteract == 3)
560
    {
561
        timer = 0;
562
        global.interact = 1;
563
        if (global.plot <= 242)
564
        {
565
            
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");
566
            msgsetloc(0, 
* (It's some sort of statue.)Wait for inputClose Message
"* (It's some sort of statue.)/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_751_0"
);
567
            d_make();
568
            myinteract = 999;
569
            talked++;
570
        }
571
        else if (!talked)
572
        {
573
            
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");
574
            msgsetloc(0, 
* Trembell,Delay 11 crumbell!Delay 11 I have awakened!Wait for input
"* Trembell^1, crumbell^1! I have awakened!/", "obj_dw_church_lantern_hallway_slash_Step_0_gml_761_0"
);
575
            msgnextloc(
* Nobellperson!Delay 11 You shall be the first victim of my song!Wait for inputClose Message
"* Nobellperson^1! You shall be the first victim of my song!/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_762_0"
);
576
            d_make();
577
            myinteract = 40;
578
            talked = 1;
579
        }
580
        else
581
        {
582
            myinteract = 43;
583
            global.interact = 0;
584
            talked = 2;
585
        }
586
    }
587
    if (myinteract == 40 && !d_ex())
588
    {
589
        timer++;
590
        if (timer == 1)
591
        {
592
            snd_stop(snd_musicbox);
593
            snd_play(snd_musicbox, bellvol, 0.7 + random(0.6));
594
        }
595
        if (timer == 9)
596
        {
597
            snd_stop(snd_musicbox);
598
            snd_play(snd_musicbox, bellvol, 0.7 + random(0.6));
599
        }
600
        if (timer == 17)
601
        {
602
            snd_stop(snd_musicbox);
603
            snd_play(snd_musicbox, bellvol, 0.7 + random(0.6));
604
        }
605
        if (timer == 25)
606
        {
607
            timer = 0;
608
            myinteract = 42;
609
        }
610
    }
611
    if (myinteract == 42)
612
    {
613
        
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");
614
        msgsetloc(0, 
* Ring,Delay 11 bell of disaster!Delay 11 Ring!Delay 11 Ha ha,Delay 11 any moment now you shall crumbell!Wait for inputClose Message
"* Ring^1, bell of disaster^1! Ring^1! Ha ha^1, any moment now you shall crumbell!/%", "obj_dw_church_lantern_hallway_slash_Step_0_gml_806_0"
);
615
        d_make();
616
        myinteract = 43;
617
    }
618
    if (myinteract == 43 && !d_ex())
619
    {
620
        timer++;
621
        if (timer == 1)
622
        {
623
            snd_stop(snd_musicbox);
624
            snd_play(snd_musicbox, bellvol, 0.7 + random(0.6));
625
        }
626
        if (timer == 9)
627
        {
628
            snd_stop(snd_musicbox);
629
            snd_play(snd_musicbox, bellvol, 0.7 + random(0.6));
630
        }
631
        if (timer == 17)
632
        {
633
            snd_stop(snd_musicbox);
634
            snd_play(snd_musicbox, bellvol, 0.7 + random(0.6));
635
        }
636
        if (timer == 25)
637
        {
638
            timer = 0;
639
            myinteract = 999;
640
        }
641
    }
642
    if (myinteract == 999 && !d_ex())
643
    {
644
        myinteract = 0;
645
        marker.image_index = 0;
646
        global.interact = 0;
647
    }
648
}
649
if (global.plot >= 242)
650
{
651
    with (bellmarker)
652
    {
653
        siner++;
654
        y = (ystart + (cos(siner / 12) * 8)) - 8;
655
        x = xstart + (sin(siner / 24) * 4);
656
    }
657
}