Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_churchc_prophecies_Step_0

(view raw script w/o annotations or w/e)
1
if (triginit == 0)
2
{
3
    with (obj_trigger)
4
    {
5
        if (extflag == "starttrig")
6
            other.wallswitch = 
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]; }
(x, y, spr_dw_church_climb_wallswitch, 2, 2, 0, undefined, undefined, 99990);
7
    }
8
    with (obj_climb_destructableclimbarea)
9
    {
10
        array_push(other.destructableblockpos, [x, y, sprite]);
11
        safe_delete(climbarea);
12
        instance_destroy();
13
    }
14
    with (obj_climb_watergenerator)
15
    {
16
        if (!place_meeting(x, y, obj_floorTrigger))
17
        {
18
            array_push(other.water, id);
19
            remote = true;
20
            activetime = 30;
21
            watermoverate = 3;
22
        }
23
    }
24
    with (obj_floorTrigger)
25
        instance_destroy();
26
    array_sort(water, compare_by_x);
27
    triginit = 1;
28
}
29
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; } } }
();
30
if (!init)
31
{
32
    with (obj_roomglow)
33
    {
34
        create_highlight(obj_treasure_room, true, true, -12);
35
        create_highlight(obj_climb_mover, true, false);
36
        create_highlight(other.wallswitch, true, false);
37
    }
38
    var prop = scr_genmarker("prop1");
39
    with (instance_create(prop.x + 150, prop.y + 90, obj_dw_church_prophecy))
40
    {
41
        extflag = "heavenandhell1";
42
        fade_edges = true;
43
    }
44
    prop = scr_genmarker("prop2");
45
    with (instance_create(prop.x + 150, prop.y + 90, obj_dw_church_prophecy))
46
    {
47
        extflag = "heavenandhell2";
48
        fade_edges = true;
49
    }
50
    prop = scr_genmarker("prop3");
51
    with (instance_create(prop.x + 150, prop.y + 90, obj_dw_church_prophecy))
52
    {
53
        extflag = "joke1";
54
        fade_edges = true;
55
    }
56
    with (roomglow)
57
        create_highlight(other.npc.marker, true, true, -16);
58
    init = 1;
59
}
60
if (con == 0)
61
{
62
    with (obj_climb_kris)
63
    {
64
        if (y >= (room_height + 40))
65
        {
66
            var proceed = 0;
67
            var mytrig = instance_place(x, y, obj_trigger);
68
            if (i_ex(mytrig))
69
            {
70
                proceed = 1;
71
                if (mytrig.extflag == "return")
72
                {
73
                    global.flag[1611] = 1;
74
                    proceed = 2;
75
                }
76
            }
77
            if (proceed == 0)
78
            {
79
                var pos = 
scr_heromarker
scr_heromarker

function
scr_heromarker(arg0 = "", arg1 = "")
{ var ____foundmarker = -4; var xpos = -1; var ypos = -1; var objindextocheck = 1365; if (string_pos("kr", arg0) != 0) objindextocheck = 544; if (string_pos("su", arg0) != 0) objindextocheck = 522; if (string_pos("ra", arg0) != 0) objindextocheck = 75; if (string_pos("no", arg0) != 0) objindextocheck = 933; if (string_pos("gen", arg0) != 0) objindextocheck = 1365; with (objindextocheck) { if (variable_instance_exists(id, "extflag")) { if (extflag == arg1) ____foundmarker = id; } } if (instance_exists(____foundmarker)) { xpos = ____foundmarker.x; ypos = ____foundmarker.y; } if (____foundmarker == -4) { debug_message("
scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4]; } return [xpos, ypos, ____foundmarker]; } function scr_genmarker(arg0 = "") { var marker = -4; with (obj_genmarker) { if (extflag == arg0) marker = id; } return marker; }
("kris", "loc1_fall");
80
                setxy(pos[0], pos[1]);
81
            }
82
            if (proceed == 1)
83
            {
84
                other.timer = 0;
85
                other.con = 1;
86
            }
87
            if (proceed == 2)
88
            {
89
                other.timer = 0;
90
                other.con = 5;
91
            }
92
        }
93
    }
94
}
95
if (con == 1)
96
{
97
    timer++;
98
    if (timer == 1)
99
    {
100
        with (
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]; }
(0, 0, spr_pxwhite, room_width, room_height, 0, undefined, c_black, -99))
101
        {
102
            image_alpha = 0;
103
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("image_alpha", 0, 1, 15);
104
            extflag = "fade";
105
        }
106
    }
107
    if (timer == 16)
108
    {
109
        var pos = 
scr_heromarker
scr_heromarker

function
scr_heromarker(arg0 = "", arg1 = "")
{ var ____foundmarker = -4; var xpos = -1; var ypos = -1; var objindextocheck = 1365; if (string_pos("kr", arg0) != 0) objindextocheck = 544; if (string_pos("su", arg0) != 0) objindextocheck = 522; if (string_pos("ra", arg0) != 0) objindextocheck = 75; if (string_pos("no", arg0) != 0) objindextocheck = 933; if (string_pos("gen", arg0) != 0) objindextocheck = 1365; with (objindextocheck) { if (variable_instance_exists(id, "extflag")) { if (extflag == arg1) ____foundmarker = id; } } if (instance_exists(____foundmarker)) { xpos = ____foundmarker.x; ypos = ____foundmarker.y; } if (____foundmarker == -4) { debug_message("
scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4]; } return [xpos, ypos, ____foundmarker]; } function scr_genmarker(arg0 = "") { var marker = -4; with (obj_genmarker) { if (extflag == arg0) marker = id; } return marker; }
("kris", "loc3_fall");
110
        setxy(pos[0], pos[1], 27);
111
    }
112
    if (timer == 24)
113
    {
114
        with (obj_marker)
115
        {
116
            if (variable_instance_exists(id, "extflag"))
117
            {
118
                if (extflag == "fade")
119
                {
120
                    
scr_lerpvar
scr_lerpvar

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

function
scr_doom(arg0 = id, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; persistent = arg0.persistent; } }
(id, 15);
122
                }
123
            }
124
        }
125
        con = 0;
126
    }
127
}
128
if (con == 5)
129
{
130
    timer++;
131
    if (timer == 1)
132
    {
133
        with (
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]; }
(0, 0, spr_pxwhite, room_width, room_height, 0, undefined, c_black, -99))
134
        {
135
            image_alpha = 0;
136
            
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("image_alpha", 0, 1, 8);
137
            extflag = "fade";
138
        }
139
    }
140
    if (timer == 9)
141
    {
142
        var pos = 
scr_heromarker
scr_heromarker

function
scr_heromarker(arg0 = "", arg1 = "")
{ var ____foundmarker = -4; var xpos = -1; var ypos = -1; var objindextocheck = 1365; if (string_pos("kr", arg0) != 0) objindextocheck = 544; if (string_pos("su", arg0) != 0) objindextocheck = 522; if (string_pos("ra", arg0) != 0) objindextocheck = 75; if (string_pos("no", arg0) != 0) objindextocheck = 933; if (string_pos("gen", arg0) != 0) objindextocheck = 1365; with (objindextocheck) { if (variable_instance_exists(id, "extflag")) { if (extflag == arg1) ____foundmarker = id; } } if (instance_exists(____foundmarker)) { xpos = ____foundmarker.x; ypos = ____foundmarker.y; } if (____foundmarker == -4) { debug_message("
scr_heromarker(" + arg0 + "," + arg1 + ") Object Not Found");
return [-4, -4, -4]; } return [xpos, ypos, ____foundmarker]; } function scr_genmarker(arg0 = "") { var marker = -4; with (obj_genmarker) { if (extflag == arg0) marker = id; } return marker; }
("kris", "loc1_fall_notransition");
143
        setxy(pos[0], pos[1], 27);
144
    }
145
    if (timer == 17)
146
    {
147
        with (obj_marker)
148
        {
149
            if (variable_instance_exists(id, "extflag"))
150
            {
151
                if (extflag == "fade")
152
                {
153
                    
scr_lerpvar
scr_lerpvar

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

function
scr_doom(arg0 = id, arg1)
{ with (instance_create_depth(0, 0, 0, obj_doom)) { alarm[0] target = arg0; persistent = arg0.persistent; } }
(id, 8);
155
                }
156
            }
157
        }
158
        con = 0;
159
    }
160
}
161
var propact = 
scr_trigcheck
scr_trigcheck

function
scr_trigcheck(arg0)
{ var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, obj_mainchara)) ____trig++; } } } return ____trig; } function scr_trigcheck_ext(arg0, arg1 = id) { var ____trig = 0; if (is_string(arg0)) { with (obj_trigger) { if (extflag == arg0) { if (place_meeting(x, y, arg1)) ____trig++; } } } return ____trig; }
("proptrig");
162
roomglow.active = propact;
163
with (obj_dw_church_prophecy)
164
    active = propact;
165
with (npc)
166
{
167
    if (myinteract == 3)
168
    {
169
        global.interact = 1;
170
        
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");
171
        msgsetloc(0, 
* Before the clock strikes midnight,Delay 11 the shadow will grow!Wait for input
"* Before the clock strikes midnight^1, the shadow will grow!/", "obj_dw_churchc_prophecies_slash_Step_0_gml_209_0"
);
172
        msgnextloc(
* O,Delay 11 the shadow will grow,Delay 11 serpentine!Wait for inputClose Message
"* O^1, the shadow will grow^1, serpentine!/%", "obj_dw_churchc_prophecies_slash_Step_0_gml_210_0"
);
173
        if (talked)
174
        {
175
            
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");
176
            msgsetloc(0, 
* Even when the clock ran back,Delay 11 the shadow was growing!Wait for input
"* Even when the clock ran back^1, the shadow was growing!/", "obj_dw_churchc_prophecies_slash_Step_0_gml_215_0"
);
177
            msgnextloc(
* A patch of shadow,Delay 11 slithering on,Delay 11 slithering on,Delay 11 serpentine!Wait for input
"* A patch of shadow^1, slithering on^1, slithering on^1, serpentine!/", "obj_dw_churchc_prophecies_slash_Step_0_gml_216_0"
);
178
            msgnextloc(
* ...Delay 11 So sayeth our ancestors. Crazy fellows,Delay 11 the lot!Wait for inputClose Message
"* ..^1. So sayeth our ancestors. Crazy fellows^1, the lot!/%", "obj_dw_churchc_prophecies_slash_Step_0_gml_217_0"
);
179
        }
180
        d_make();
181
        myinteract = 999;
182
        talked++;
183
    }
184
    if (myinteract > 3 && d_ex())
185
    {
186
        var trig = 0;
187
        if (!i_ex(obj_writer))
188
            trig = 1;
189
        with (obj_writer)
190
        {
191
            if (halt)
192
                trig = 1;
193
        }
194
        if (!trig)
195
            marker.image_index += 0.25;
196
    }
197
    if (myinteract == 999 && !d_ex())
198
    {
199
        myinteract = 0;
200
        marker.image_index = 0;
201
        global.interact = 0;
202
    }
203
}
204
if (climbcon == 0)
205
{
206
    if (scr_trigcheck_ext("starttrig", 27))
207
    {
208
        climbcon = 1;
209
        var snd = snd_play_complex(0, 0, -1);
210
        snd_add_complex(snd, 0, 267, 0.85, 1, 0, -1, 0);
211
        snd_add_complex(snd, 1, 336, 1.3, 1, 0, -1, 0);
212
        with (obj_climb_destructableclimbarea)
213
        {
214
            safe_delete(climbarea);
215
            instance_destroy();
216
        }
217
        for (var i = 0; i < array_length(destructableblockpos); i++)
218
        {
219
            var block = instance_create(destructableblockpos[i][0], destructableblockpos[i][1], obj_climb_destructableclimbarea);
220
            block.sprite_index = spr_dw_church_climb_brittle;
221
            with (block)
222
            {
223
                dangerous = true;
224
                dangertime = 60;
225
                var lifetime = i + 4;
226
                image_alpha = 0;
227
                
scr_lerpvar
scr_lerpvar

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

function
scr_oflash_ext(arg0 = sprite_index, arg1 = image_index, arg2 = x, arg3 = y, arg4 = image_xscale, arg5 = image_yscale, arg6 = image_speed, arg7 = 15, arg8 = 0, arg9 = 16777215, arg10 = -4)
{ var _oflash = instance_create(arg2, arg3, obj_oflash_ext); _oflash.sprite_index = arg0; _oflash.image_index = arg1; _oflash.image_xscale = arg4; _oflash.image_yscale = arg5; _oflash.image_speed = arg6; _oflash.fadetime = arg7; _oflash.myblend = arg8; _oflash.image_blend = arg9; _oflash.target = arg10; return _oflash; }
(undefined, undefined, undefined, undefined, 2, 2, undefined, -1, 1, 15381248))
229
                {
230
                    
scr_lerpvar
scr_lerpvar

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

function
scr_lerp_imageblend()
{ var lerpblend = instance_create(x, y, obj_lerpimageblend); lerpblend.target = argument0; lerpblend.color1 = argument1; lerpblend.color2 = argument2; var ___time = argument3; if (argument_count > 4) { var _style = argument4; var _ease = argument5; lerpblend.mylerp = scr_lerp_var_instance(lerpblend, "blendindex", 0, 1, ___time, _style, _ease); } else { lerpblend.mylerp = scr_lerp_var_instance(lerpblend, "blendindex", 0, 1, ___time); } with (lerpblend) alarm_set(0, ___time + 1); return lerpblend; }
(id, image_blend, c_white, lifetime);
232
                }
233
            }
234
        }
235
    }
236
}
237
wallswitch.image_index = 0;
238
if (climbcon == 1)
239
{
240
    wallswitch.image_index = 1;
241
    if (!scr_trigcheck_ext("starttrig", 27))
242
        climbcon = 0;
243
}
244
if (i_ex(obj_climb_kris))
245
{
246
    if (scr_trigcheck_ext("resetmover", 27))
247
    {
248
        with (obj_climb_mover)
249
        {
250
            if (!
scr_checklocation
scr_checklocation

function
scr_checklocation(arg0 = id, arg1, arg2, arg3 = 0)
{ if (!i_ex(arg0)) { debug_message("target instance does not exist"); return false; } if (abs(arg0.x - arg1) <= arg3 && abs(arg0.y - arg2) <= arg3) return true; else return false; }
(undefined, xstart, ystart, 4))
251
            {
252
                debug_print("move me!");
253
                setxy(xstart, ystart);
254
            }
255
        }
256
    }
257
    if (scr_trigcheck_ext("watertelegraph", 27))
258
        water[0].makewater = 7;
259
    if (scr_trigcheck_ext("waterstart", 27))
260
    {
261
        var count = 0;
262
        water[count].makewater = 2;
263
        count++;
264
        water[count].makewater = 11;
265
        count++;
266
        water[count].makewater = 20;
267
        count++;
268
        water[count].makewater = 40;
269
        count++;
270
        water[count].makewater = 49;
271
        count++;
272
        water[count].makewater = 58;
273
        count++;
274
        water[count].makewater = 78;
275
        count++;
276
        water[count].makewater = 86;
277
        count++;
278
        water[count].makewater = 94;
279
        count++;
280
        water[count].makewater = 114;
281
        count++;
282
        water[count].makewater = 122;
283
        count++;
284
        water[count].makewater = 140;
285
        count++;
286
        water[count].makewater = 148;
287
        count++;
288
        water[count].makewater = 168;
289
        count++;
290
        water[count].makewater = 188;
291
        count++;
292
        water[count].makewater = 220;
293
        count++;
294
    }
295
}