Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_preshadowmantle_Step_0

(view raw script w/o annotations or w/e)
1
if (kris == 0)
2
{
3
    with (obj_mainchara_board)
4
    {
5
        if (name == "kris")
6
            other.kris = id;
7
    }
8
}
9
if (roomstartMusic == false)
10
{
11
    mus_play_ext("glacier.ogg", 1, 0.7, 0.07);
12
    roomstartMusic = true;
13
}
14
if (active == true)
15
{
16
    if (con == 0)
17
    {
18
        with (instance_create(1056, 320, obj_board_solid))
19
        {
20
            
scr_size
scr_size

function
scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{ with (arg2) { image_xscale = arg0; image_yscale = arg1; } }
(20, 2);
21
            setxy_board();
22
        }
23
        snd_free_all();
24
        kris.cantleave = true;
25
        con = 1;
26
    }
27
    if (con >= 1 && obj_board_camera.con == 0 && i_ex(obj_board_shadowspotlight))
28
        safe_delete(obj_board_shadowspotlight);
29
    if (con == 1)
30
    {
31
        if (place_meeting(x, y, kris))
32
        {
33
            kris.y = 256;
34
            for (var i = 0; i < 2; i++)
35
            {
36
                block[i] = instance_create_board(5 + i, 7, obj_board_solid);
37
                block[i].sprite_index = spr_shadow_mantle_new_tiles;
38
                block[i].image_index = 1;
39
                block[i].image_speed = 0;
40
                with (block[i])
41
                {
42
                    visible = true;
43
                    depth = other.depth + 1;
44
                }
45
            }
46
            con = -1;
47
            if (global.flag[1002 fought_shadowmantle] == 0)
48
                scr_delay_var("con", 1.5, 20);
49
            else
50
                con = 2.5;
51
            global.interact = 1;
52
            kris.facing = 2;
53
        }
54
    }
55
    if (con == 1.5)
56
    {
57
        con = -1;
58
        scr_delay_var("con", 2, 60);
59
    }
60
    if (con == 2)
61
    {
62
        global.interact = 1;
63
        kris.facing = 2;
64
        startmusic = 1;
65
        
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 == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } 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; ...
("no_name");
66
        msgsetloc(0, 
Kris...Delay 11 oh...Delay 11 Kris...Wait for input
"Kris..^1. oh..^1. Kris.../", "obj_board_preshadowmantle_slash_Step_0_gml_79_0"
);
67
        msgnextloc(
Is it fun,Delay 11 Kris?Wait for input
"Is it fun^1, Kris?/", "obj_board_preshadowmantle_slash_Step_0_gml_80_0"
);
68
        msgnextloc(
Playing around like this...Wait for input
"Playing around like this.../", "obj_board_preshadowmantle_slash_Step_0_gml_81_0"
);
69
        msgnextloc(
That's why you're searching for them,Delay 11 aren't you?Wait for input
"That's why you're searching for them^1, aren't you?/", "obj_board_preshadowmantle_slash_Step_0_gml_82_0"
);
70
        msgnextloc(
The SHADOW CRYSTALs...Wait for input
"The SHADOW CRYSTALs.../", "obj_board_preshadowmantle_slash_Step_0_gml_83_0"
);
71
        msgnextloc(
...Delay 11 and the SHADOW MANTLE that I'm holding!Wait for input
"..^1. and the SHADOW MANTLE that I'm holding!/", "obj_board_preshadowmantle_slash_Step_0_gml_84_0_b"
);
72
        msgnextloc(
Do you honestly think it'll get you what you want...?Wait for input
"Do you honestly think it'll get you what you want...?/", "obj_board_preshadowmantle_slash_Step_0_gml_84_0"
);
73
        msgnextloc(
...Delay 11 no,Delay 11 part of you is just...Delay 11 enjoying this,Delay 11 isn't it?Wait for input
"..^1. no^1, part of you is just..^1. enjoying this^1, isn't it?/", "obj_board_preshadowmantle_slash_Step_0_gml_85_0"
);
74
        if (
scr_sideb_get_phase
scr_sideb_get_phase

function
scr_sideb_get_phase()
{ var phase = 0; if (global.flag[916 snowgrave_fail] == 0) { if (global.flag[915 snowgrave_plot] > 0 && global.flag[915 snowgrave_plot] < 4) phase = 1; if (global.flag[915 snowgrave_plot] >= 4 && global.flag[915 snowgrave_plot] < 7) phase = 2; if (global.flag[915 snowgrave_plot] >= 7 && global.flag[915 snowgrave_plot] < 20) phase = 3; if (global.flag[915 snowgrave_plot] >= 20) phase = 4; } return phase; } function scr_sideb_active() { return
scr_sideb_get_phase() >= 3;
}
() > 0)
75
        {
76
            msgnextloc(
The same part of you that enjoyed yesterday.Wait for input
"The same part of you that enjoyed yesterday./", "obj_board_preshadowmantle_slash_Step_0_gml_90_0"
);
77
            msgnextloc(
Knowing you could say it wasn't really you.Wait for input
"Knowing you could say it wasn't really you./", "obj_board_preshadowmantle_slash_Step_0_gml_91_0"
);
78
        }
79
        msgnextloc(
Oh,Delay 11 don't make that sour face.Wait for input
"Oh^1, don't make that sour face./", "obj_board_preshadowmantle_slash_Step_0_gml_94_0"
);
80
        msgnextloc(
I can see in the dark,Delay 11 you know!Wait for input
"I can see in the dark^1, you know!/", "obj_board_preshadowmantle_slash_Step_0_gml_95_0"
);
81
        msgnextloc(
The question is...Wait for input
"The question is.../", "obj_board_preshadowmantle_slash_Step_0_gml_96_0"
);
82
        msgnextloc(
Can you?Wait for inputClose Message
"Can you?/%", "obj_board_preshadowmantle_slash_Step_0_gml_97_0"
);
83
        bw_make();
84
        global.flag[1002 fought_shadowmantle] = 1;
85
        
scr_tempsave
scr_tempsave

function
scr_tempsave()
{ filechoicebk2 = global.filechoice; global.filechoice = 9;
scr_saveprocess(global.filechoice);
global.filechoice = filechoicebk2; }
();
86
        con = 2.5;
87
    }
88
    if (con == 2.5 && !bw_ex())
89
    {
90
        intro = instance_create(304, 176, obj_shadow_mantle_enemy_intro);
91
        var fadespeed = 10;
92
        scr_delay_var("darknessamt", 0.75, fadespeed * 0);
93
        scr_delay_var("darknessamt", 0.5, fadespeed * 1);
94
        scr_delay_var("darknessamt", 0.25, fadespeed * 2);
95
        scr_delay_var("darknessamt", 0, fadespeed * 3);
96
        with (obj_gameshow_swordroute)
97
        {
98
            scr_delay_var("screencolor", merge_color(#002DFF, c_black, 0.75), fadespeed * 0);
99
            scr_delay_var("screencolor", merge_color(#002DFF, c_black, 0.5), fadespeed * 1);
100
            scr_delay_var("screencolor", merge_color(#002DFF, c_black, 0.25), fadespeed * 2);
101
            scr_delay_var("screencolor", merge_color(#002DFF, c_black, 0), fadespeed * 3);
102
            global.swordscreencolor = #002DFF;
103
        }
104
        with (intro)
105
            scr_delay_var("laugh", 1, fadespeed * 5);
106
        snd_free_all();
107
        mus_volume(global.currentsong[1], 0, fadespeed * 1);
108
        scr_delay_var("con", 3, fadespeed * 13);
109
        con = -1;
110
    }
111
    if (con == 3 && !bw_ex())
112
    {
113
        snd_free_all();
114
        
scr_board_instawarp
scr_board_instawarp

function
scr_board_instawarp(arg0, arg1, arg2, arg3, arg4)
{ with (obj_board_camera) { instawarp = true; if (argument_count == 6) { instawarproomgoto = argument5; camsavex = arg0; camsavey = arg1; } if (arg4 == "left" || arg4 == "right")
scr_quickwarp(arg0, arg1, arg2, arg3 + (obj_board_controller.kris_object.y - 144));
else if (arg4 == "up" || arg4 == "down")
scr_quickwarp(arg0, arg1, arg2 + (obj_board_controller.kris_object.x - 288), arg3);
else
scr_quickwarp(arg0, arg1, arg2, arg3);
} }
(128, 64, kris.x, kris.y, "none", 118);
115
    }
116
}
117
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
118
{
119
}
120
if (startmusic == 1)
121
{
122
    startmusic = 0;
123
    global.currentsong[0] = snd_init("nightmare_nes.ogg");
124
    global.currentsong[1] = mus_loop(global.currentsong[0]);
125
    mus_volume(global.currentsong[1], 0, 0);
126
    mus_volume(global.currentsong[1], 1, 30);
127
}