Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_church_bookshelfpuzzle_Step_0

(view raw script w/o annotations or w/e)
1
if (!init)
2
{
3
    init = 1;
4
    var ramark = 
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", "ladder");
5
    ranpc = instance_create(ramark[0], ramark[1], obj_trigger_interact);
6
    ranpc.talked = 0;
7
    ranpc.strict = true;
8
    ranpc.marker = 
scr_marker_ext
scr_marker_ext

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

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
(ranpc.marker, -10);
10
    
scr_sizeexact
scr_sizeexact

function
scr_sizeexact(arg0, arg1, arg2 = id)
{ with (arg2) { if (!sprite_exists(sprite_index)) { debug_message("Can't size, no sprite"); exit; } var _w = sprite_get_width(sprite_index); var _h = sprite_get_width(sprite_index); image_xscale = arg0 / _w; image_yscale = arg1 / _h; } }
(ramark[2].bbox_right - ramark[2].bbox_left, ramark[2].bbox_bottom - ramark[2].bbox_top, ranpc);
11
    setxy(ramark[2].bbox_left, ramark[2].bbox_top, ranpc);
12
    var sumark = 
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; }
("susie", "ladder");
13
    sunpc = instance_create(sumark[0], sumark[1], obj_trigger_interact);
14
    sunpc.talked = 0;
15
    sunpc.strict = true;
16
    sunpc.susprite = 436;
17
    if (global.flag[710] >= 2)
18
        sunpc.susprite = 433;
19
    sunpc.marker = 
scr_marker_ext
scr_marker_ext

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

function
scr_sizeexact(arg0, arg1, arg2 = id)
{ with (arg2) { if (!sprite_exists(sprite_index)) { debug_message("Can't size, no sprite"); exit; } var _w = sprite_get_width(sprite_index); var _h = sprite_get_width(sprite_index); image_xscale = arg0 / _w; image_yscale = arg1 / _h; } }
(sumark[2].bbox_right - sumark[2].bbox_left, sumark[2].bbox_bottom - sumark[2].bbox_top, sunpc);
21
    setxy(sumark[2].bbox_left, sumark[2].bbox_top, sunpc);
22
}
23
if (global.interact == 0)
24
{
25
    with (obj_floorTrigger)
26
    {
27
        if (place_meeting(x, y, obj_mainchara))
28
        {
29
            var checkflag = extflag;
30
            with (obj_solid_temp)
31
            {
32
                if (extflag == checkflag)
33
                    active = true;
34
                else
35
                    active = false;
36
            }
37
            if (extflag == "FLOOR1")
38
                other.flooractive = 1;
39
            else
40
                other.flooractive = 2;
41
        }
42
    }
43
}
44
var doupdate = true;
45
with (obj_dw_church_remote_piano)
46
{
47
    if (engaged)
48
        doupdate = false;
49
}
50
if (doupdate)
51
{
52
    if (flooractive != wasactive)
53
    {
54
        for (var i = 0; i < array_length(layersprite); i++)
55
        {
56
            with (layersprite[i])
57
            {
58
                
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);
59
                if (other.flooractive == 2)
60
                    depth += 10000;
61
                if (sprite_index == spr_church_ladder)
62
                    depth -= 4;
63
            }
64
        }
65
        with (ranpc.marker)
66
        {
67
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
(undefined, -10);
68
            if (other.flooractive == 2)
69
                depth += 10000;
70
        }
71
        with (obj_dw_church_remote_piano)
72
        {
73
            
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
74
            if (other.flooractive == 1)
75
                depth -= 2000;
76
        }
77
    }
78
}
79
with (obj_bookshelf_moveable2x2)
80
{
81
    depth = 100000 - ((y * 10) + 1600);
82
    if (doupdate)
83
    {
84
        if (other.flooractive == 2)
85
            depth += 10000;
86
    }
87
}
88
if (treasuremarker.myinteract == 3)
89
{
90
    if (flooractive == 2)
91
        treasuremarker.myinteract = 4;
92
    else
93
        treasuremarker.myinteract = 0;
94
}
95
if (treasuremarker.myinteract == 4)
96
{
97
    with (obj_treasure_room)
98
    {
99
        event_user(0);
100
        with (other.treasuremarker)
101
        {
102
            myinteract = 5;
103
            scr_delay_var("myinteract", 6, 1);
104
        }
105
    }
106
}
107
if (treasuremarker.myinteract == 6 && !d_ex())
108
    treasuremarker.myinteract = 0;
109
with (treasuremarker)
110
{
111
    visible = true;
112
    sprite_index = obj_treasure_room.sprite_index;
113
    image_index = obj_treasure_room.image_index;
114
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
115
    depth = 100000 - ((y * 10) + 1600);
116
    if (doupdate)
117
    {
118
        if (other.flooractive == 2)
119
            depth += 10000;
120
    }
121
}
122
with (ranpc)
123
{
124
    if (other.flooractive == 2)
125
        myinteract = 0;
126
    if (myinteract == 3)
127
    {
128
        if (global.plot < 242)
129
        {
130
            global.interact = 1;
131
            if (talked == 0)
132
            {
133
                
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");
134
                msgsetloc(0, 
Face 8* ...Delay 11 I wonder...Delay 11 if it's in here,Delay 11 too...?Wait for input
"\\E8* ..^1. I wonder..^1. if it's in here^1, too...?/", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_140_0"
);
135
                msgnextloc(
Face Q* Huh? Sorry,Delay 11 Kris. Just,Delay 11 um...Wait for input
"\\EQ* Huh? Sorry^1, Kris. Just^1, um.../", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_141_0"
);
136
                msgnextloc(
Face K* Looking for something we could use as a scrapbook!Wait for inputClose Message
"\\EK* Looking for something we could use as a scrapbook!/%", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_142_0"
);
137
                d_make();
138
                myinteract = 5;
139
                talked = 1;
140
            }
141
            else
142
            {
143
                
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");
144
                msgsetloc(0, 
Face 8* ...Wait for inputClose Message
"\\E8* .../%", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_150_0"
);
145
                d_make();
146
                myinteract = 99;
147
            }
148
        }
149
        else
150
        {
151
            global.interact = 1;
152
            global.msc = -99;
153
            global.choice = -1;
154
            global.choicemsg[0] = stringsetloc(
#Read to#Ralsei
"#Read to#Ralsei", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_161_0"
);
155
            global.choicemsg[1] = stringsetloc(
#Ralsei reads#to you
"#Ralsei reads#to you", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_162_0"
);
156
            global.choicemsg[2] = stringset("");
157
            global.choicemsg[3] = stringset("");
158
            
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");
159
            msgsetloc(0, 
Face 1* (Umm...Delay 11 I wonder which book Kris would like...?)Wait for input
"\\E1* (Umm..^1. I wonder which book Kris would like...?)/", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_166_0"
);
160
            msgnext("\\C2 ");
161
            myinteract = 10;
162
            if (talked)
163
            {
164
                
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");
165
                msgsetloc(0, 
Face K* There sure are,Delay 11 books here!Wait for inputClose Message
"\\EK* There sure are^1, books here!/%", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_173_0"
);
166
                myinteract = 99;
167
            }
168
            d_make();
169
            talked = 1;
170
        }
171
    }
172
    if (myinteract == 5)
173
    {
174
        if (d_ex())
175
        {
176
            if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 1)
177
            {
178
                var raface = direction_to_object_bbox(undefined, 1049, 1);
179
                switch (raface)
180
                {
181
                    case 3:
182
                        marker.sprite_index = spr_ralsei_walk_left_unhappy;
183
                        break;
184
                    case 1:
185
                        marker.sprite_index = spr_ralsei_walk_right_unhappy;
186
                        break;
187
                    case 0:
188
                        marker.sprite_index = spr_ralsei_walk_down_unhappy;
189
                        break;
190
                }
191
                myinteract = 99;
192
            }
193
        }
194
        if (!d_ex())
195
            myinteract = 99;
196
    }
197
    if (myinteract == 10 && global.choice != -1)
198
    {
199
        var raface = direction_to_object_bbox(undefined, 1049, 1);
200
        switch (raface)
201
        {
202
            case 3:
203
                marker.sprite_index = spr_ralsei_walk_left;
204
                break;
205
            case 1:
206
                marker.sprite_index = spr_ralsei_walk_right;
207
                break;
208
            case 0:
209
                marker.sprite_index = spr_ralsei_walk_down;
210
                break;
211
        }
212
        k_d(1);
213
        if (global.choice == 0)
214
        {
215
            
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");
216
            msgsetloc(0, 
Face 1* Oh,Delay 11 Kris!Delay 11 You want to...Delay 11 read to me...?Wait for input
"\\E1* Oh^1, Kris^1! You want to..^1. read to me...?/", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_219_0"
);
217
            msgnextloc(
Face 2* Why,Delay 11 of course!Delay 11 I'll give you my rapt attention!Wait for input
"\\E2* Why^1, of course^1! I'll give you my rapt attention!/", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_220_0"
);
218
            msgnextloc(
Face J* Just,Delay 11 um,Delay 11 let me know when I should applaud...Wait for input
"\\EJ* Just^1, um^1, let me know when I should applaud.../", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_221_0"
);
219
            msgnextloc(
Face L* ...Wait for input
"\\EL* .../", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_222_0"
);
220
            msgnextloc(
Face K* Um,Delay 11 Kris? Doesn't that book only have pictures...?Wait for inputClose Message
"\\EK* Um^1, Kris? Doesn't that book only have pictures...?/%", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_223_0"
);
221
        }
222
        if (global.choice == 1)
223
        {
224
            
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");
225
            msgsetloc(0, 
Face D* Kris...? You want me to read this book to you?Wait for input
"\\ED* Kris...? You want me to read this book to you?/", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_228_0"
);
226
            msgnextloc(
Face 2* Umm,Delay 11 gladly!Delay 11 Just give me a second...Wait for input
"\\E2* Umm^1, gladly^1! Just give me a second.../", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_229_0"
);
227
            msgnextloc(
Face 1* Ahem!Wait for input
"\\E1* Ahem!/", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_230_0"
);
228
            msgnextloc(
Face 1* ...Wait for input
"\\E1* .../", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_231_0"
);
229
            msgnextloc(
Face 2* This book,Delay 11 seems to,Delay 11 haha,Delay 11 only have pictures.Wait for input
"\\E2* This book^1, seems to^1, haha^1, only have pictures./", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_232_0"
);
230
            msgnextloc(
Face L* ...Wait for input
"\\EL* .../", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_233_0"
);
231
            msgnextloc(
Face K* ...Delay 11 and,Delay 11 um...Delay 11 swears.Wait for input
"\\EK* ..^1. and^1, um..^1. swears./", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_234_0"
);
232
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("susie", "H");
233
            msgnextloc(
Face H* The hell are you guys doing with my book?Wait for inputClose Message
"\\EH* The hell are you guys doing with my book?/%", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_236_0"
);
234
        }
235
        d_make();
236
        myinteract = 99;
237
    }
238
    if (myinteract == 99 && !d_ex())
239
    {
240
        marker.sprite_index = spr_ralsei_walk_up;
241
        global.interact = 0;
242
        myinteract = 0;
243
    }
244
}
245
with (sunpc)
246
{
247
    if (other.flooractive == 2)
248
        myinteract = 0;
249
    if (myinteract == 3)
250
    {
251
        playsound = false;
252
        var sawralseiroom = 0;
253
        if (global.flag[710] >= 2)
254
            sawralseiroom = 1;
255
        if (sawralseiroom)
256
            myinteract = 10;
257
        else
258
            myinteract = 40;
259
    }
260
    if (myinteract == 40)
261
    {
262
        
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");
263
        msgsetloc(0, 
Face C* Dude...Delay 11 these books are really weird.Wait for input
"\\EC* Dude..^1. these books are really weird./", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_271_0"
);
264
        msgnextloc(
Face 1* All the pages are just eyes...Wait for input
"\\E1* All the pages are just eyes.../", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_272_0"
);
265
        msgnextloc(
Face 0* ...Delay 11 and I think one of them just talked to me.Wait for input
"\\E0* ..^1. and I think one of them just talked to me./", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_273_0"
);
266
        var endstring = stringsetloc(
Face 7* Damn,Delay 11 I'd read at school if it was like this.Wait for inputClose Message
"\\E7* Damn^1, I'd read at school if it was like this./%", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_274_0"
);
267
        msgnext(endstring);
268
        myinteract = 45;
269
        if (talked)
270
        {
271
            msgset(0, endstring);
272
            myinteract = 999;
273
        }
274
        talked++;
275
        global.interact = 1;
276
        d_make();
277
    }
278
    if (myinteract == 45)
279
    {
280
        if (d_ex())
281
        {
282
            if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 0)
283
            {
284
                var suface = direction_to_object_bbox(undefined, 1049, 1);
285
                switch (suface)
286
                {
287
                    case 3:
288
                        marker.sprite_index = spr_susie_left_dw;
289
                        break;
290
                    case 1:
291
                        marker.sprite_index = spr_susie_right_dw;
292
                        break;
293
                    case 0:
294
                        marker.sprite_index = spr_susie_down_dw;
295
                        break;
296
                }
297
                myinteract = 999;
298
            }
299
        }
300
        if (!d_ex())
301
            myinteract = 999;
302
    }
303
    if (myinteract == 10)
304
    {
305
        global.interact = 1;
306
        global.msc = -99;
307
        global.choice = -1;
308
        global.choicemsg[0] = stringsetloc(
#Yes
"#Yes", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_319_0"
);
309
        global.choicemsg[1] = stringsetloc(
#No
"#No", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_320_0"
);
310
        global.choicemsg[2] = stringset("");
311
        global.choicemsg[3] = stringset("");
312
        
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");
313
        msgsetloc(0, 
Face 7* ...Delay 11 Dude,Delay 11 this ladder could be cool for Ralsei's room.Wait for input
"\\E7* ..^1. Dude^1, this ladder could be cool for Ralsei's room./", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_326_0"
);
314
        msgnextloc(
Face 2* Then we can put furniture on his ceiling. Climb to it.Wait for input
"\\E2* Then we can put furniture on his ceiling. Climb to it./", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_327_0"
);
315
        msgnextloc(
Face A* More room for partying on the floor.Wait for input
"\\EA* More room for partying on the floor./", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_328_0"
);
316
        msgnext("\\C2 ");
317
        if (!global.flag[864])
318
        {
319
            myinteract = 11;
320
        }
321
        else
322
        {
323
            
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");
324
            msgsetloc(0, 
Face 2* Now THIS is gonna tie the goddamn room together.Wait for inputClose Message
"\\E2* Now THIS is gonna tie the goddamn room together./%", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_339_0"
);
325
            myinteract = 999;
326
        }
327
        d_make();
328
    }
329
    if (myinteract == 11 && global.choice == -1)
330
    {
331
        if (d_ex())
332
        {
333
            if (
scr_getmsgno
scr_getmsgno

function
scr_getmsgno()
{ if (instance_exists(obj_writer)) return obj_writer.msgno; }
() == 0)
334
            {
335
                var suface = direction_to_object_bbox(undefined, 1049, 1);
336
                switch (suface)
337
                {
338
                    case 3:
339
                        marker.sprite_index = spr_susie_left_dw;
340
                        break;
341
                    case 1:
342
                        marker.sprite_index = spr_susie_right_dw;
343
                        break;
344
                    case 0:
345
                        marker.sprite_index = spr_susie_down_dw;
346
                        break;
347
                }
348
            }
349
        }
350
    }
351
    if (myinteract == 11 && global.choice != -1)
352
    {
353
        k_d(1);
354
        if (global.choice == 0)
355
        {
356
            
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");
357
            msgsetloc(0, 
Face L* Sweet,Delay 11 marked. I'll swipe it when he isn't looking.Wait for inputClose Message
"\\EL* Sweet^1, marked. I'll swipe it when he isn't looking./%", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_369_0"
);
358
            global.flag[864] = 1;
359
            playsound = true;
360
        }
361
        if (global.choice == 1)
362
        {
363
            
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");
364
            msgsetloc(0, 
Face K* Okay,Delay 11 enjoy crawling up his wall instead?Wait for input
"\\EK* Okay^1, enjoy crawling up his wall instead?/", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_376_0"
);
365
            msgnextloc(
Face L* Your dumb ass is gonna look like a spider.Wait for inputClose Message
"\\EL* Your dumb ass is gonna look like a spider./%", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_377_0"
);
366
        }
367
        d_make();
368
        myinteract = 999;
369
    }
370
    if (myinteract == 999 && !d_ex())
371
    {
372
        if (playsound)
373
        {
374
            snd_play(snd_item);
375
            playsound = 0;
376
        }
377
        global.interact = 0;
378
        marker.sprite_index = susprite;
379
        myinteract = 0;
380
    }
381
}
382
with (telescope)
383
{
384
    if (other.flooractive != 2)
385
        myinteract = 0;
386
    if (global.facing != 0)
387
        myinteract = 0;
388
    if (myinteract == 3)
389
    {
390
        myinteract = 99;
391
        if (other.telecon == 0)
392
        {
393
            other.telecon = 1;
394
            other.teletimer = 0;
395
        }
396
        else
397
        {
398
            myinteract = 99;
399
        }
400
    }
401
}
402
if (telecon == 1)
403
{
404
    global.interact = 1;
405
    global.msc = -99;
406
    global.choice = -1;
407
    global.choicemsg[0] = stringsetloc(
#Observe Susie
"#Observe Susie", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_426_0"
);
408
    global.choicemsg[1] = stringsetloc(
#Observe Ralsei
"#Observe Ralsei", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_427_0"
);
409
    global.choicemsg[2] = stringsetloc(
Observe Kris
"Observe Kris", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_428_0"
);
410
    global.choicemsg[3] = stringsetloc(
Do Not
"Do Not", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_429_0"
);
411
    
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");
412
    msgsetloc(0, 
* (It's a telescope.)Wait for input
"* (It's a telescope.)/", "obj_dw_church_bookshelfpuzzle_slash_Step_0_gml_431_0"
);
413
    msgnext("\\C4 ");
414
    d_make();
415
    telecon = 2;
416
}
417
if (telecon == 2 && global.choice != -1)
418
{
419
    k_d();
420
    teletimer = 0;
421
    if (global.choice == 0 || global.choice == 1 || global.choice == 2)
422
    {
423
        snd_play(snd_item);
424
        drawspotlight = true;
425
        obj_mainchara.cutscene = true;
426
        var pos = scr_genmarker("telera");
427
        if (global.choice == 0)
428
            pos = scr_genmarker("telesu");
429
        s_remsprite = sunpc.marker.sprite_index;
430
        r_remsprite = ranpc.marker.sprite_index;
431
        if (global.choice == 0)
432
        {
433
            sunpc.marker.image_index = 0;
434
            sunpc.marker.image_speed = 0;
435
            sunpc.marker.sprite_index = spr_susie_dark_practice_heal_telescope;
436
            if (tele_ssaw == false)
437
            {
438
                tele_ssaw = true;
439
                tele_stimer = 0;
440
                tele_scon = 1;
441
            }
442
            else
443
            {
444
                tele_scon = 99;
445
                sunpc.marker.image_index = 33;
446
            }
447
        }
448
        if (global.choice == 1)
449
        {
450
            ranpc.marker.image_speed = 0;
451
            ranpc.marker.image_index = 0;
452
            ranpc.marker.sprite_index = spr_ralsei_book_look;
453
            if (tele_rsaw == false)
454
            {
455
                tele_rcon = 1;
456
                tele_rtimer = 0;
457
                tele_rsaw = true;
458
            }
459
            else
460
            {
461
                ranpc.marker.image_index = 5;
462
                tele_rcon = 2;
463
            }
464
        }
465
        if (global.choice != 2)
466
            camera_setxy(pos.x, pos.y);
467
        telecon = 3;
468
    }
469
    if (global.choice == 3)
470
    {
471
        telecon = 0;
472
        telescope.myinteract = 0;
473
        global.interact = 0;
474
    }
475
}
476
if (telecon == 3)
477
{
478
    teletimer++;
479
    if (tele_rcon == 1)
480
    {
481
        tele_rtimer++;
482
        if (tele_rtimer == 1)
483
            ranpc.marker.image_speed = 0;
484
        if (tele_rtimer == 30)
485
            ranpc.marker.image_speed = 0.25;
486
        if (ranpc.marker.image_index == 2)
487
            ranpc.marker.image_speed = 0.020833333333333332;
488
        if (ranpc.marker.image_index == 3)
489
            ranpc.marker.image_speed = 0.25;
490
        if (ranpc.marker.image_index == 5)
491
        {
492
            tele_rcon = 2;
493
            ranpc.marker.image_speed = 0;
494
        }
495
    }
496
    if (tele_rcon == 2)
497
    {
498
        with (ranpc.marker)
499
        {
500
            image_speed = 0;
501
            image_index += 0.25;
502
            if (image_index == 9)
503
                image_index = 5;
504
        }
505
    }
506
    if (tele_scon == 1)
507
    {
508
        tele_stimer++;
509
        if (tele_stimer == 2)
510
        {
511
            with (sunpc.marker)
512
                image_speed = 0.020833333333333332;
513
        }
514
        if (sunpc.marker.image_index == 3)
515
        {
516
            with (sunpc.marker)
517
                image_speed = 0.25;
518
        }
519
        if (sunpc.marker.image_index == 6)
520
        {
521
            with (sunpc.marker)
522
                image_speed = 0.020833333333333332;
523
        }
524
        if (sunpc.marker.image_index == 7)
525
        {
526
            with (sunpc.marker)
527
                image_speed = 0.25;
528
            snd_play(snd_ghostappear, 0.7, 1.4);
529
            var snd = snd_play(snd_stardrop, 0, 1.2);
530
            snd_volume(snd, 1, 15);
531
        }
532
        if (sunpc.marker.image_index == 33)
533
        {
534
            snd_play(snd_board_lift, 0.7, 1.3);
535
            sunpc.marker.image_speed = 0;
536
            sunpc.marker.image_index = 33;
537
            tele_scon = 2;
538
        }
539
    }
540
    if (teletimer > 5)
541
    {
542
        if (button2_p() || button1_p() || button3_p())
543
        {
544
            sunpc.marker.sprite_index = s_remsprite;
545
            sunpc.marker.image_speed = 0;
546
            sunpc.marker.image_index = 0;
547
            ranpc.marker.sprite_index = r_remsprite;
548
            ranpc.marker.image_speed = 0;
549
            ranpc.marker.image_index = 0;
550
            teletimer = 0;
551
            drawspotlight = false;
552
            obj_mainchara.cutscene = false;
553
            snd_play(snd_item, undefined, 0.8);
554
            telecon = 20;
555
            telescope.myinteract = 0;
556
        }
557
    }
558
}
559
if (telecon == 20)
560
{
561
    teletimer++;
562
    if (teletimer == 2)
563
        global.interact = 0;
564
    if (teletimer >= 5)
565
    {
566
        if (!button1_h())
567
        {
568
            telecon = 0;
569
            teletimer = 0;
570
            telescope.myinteract = 0;
571
        }
572
    }
573
}