Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b3bs_rabbick_a_Step_0

(view raw script w/o annotations or w/e)
1
if (i_ex(knockdoor))
2
{
3
    with (knockdoor)
4
    {
5
        if (myinteract == 3)
6
        {
7
            global.interact = 1;
8
            global.msc = -99;
9
            global.choice = -1;
10
            global.choicemsg[0] = stringsetloc(
#Yes
"#Yes", "obj_b3bs_rabbick_a_slash_Step_0_gml_14_0"
);
11
            global.choicemsg[1] = stringsetloc(
#No
"#No", "obj_b3bs_rabbick_a_slash_Step_0_gml_15_0"
);
12
            global.choicemsg[2] = stringset("");
13
            global.choicemsg[3] = stringset("");
14
            
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");
15
            msgsetloc(0, 
* The sign on the door reads "knock for assistance."Wait for input
"* The sign on the door reads \"knock for assistance.\"/", "obj_b3bs_rabbick_a_slash_Step_0_gml_19_0"
);
16
            msgnextloc(
* Knock?Wait for input
"* Knock?/", "obj_b3bs_rabbick_a_slash_Step_0_gml_20_0"
);
17
            msgnext("\\C2 ");
18
            d_make();
19
            myinteract = 4;
20
        }
21
        if (myinteract == 4 && global.choice != -1)
22
        {
23
            k_d(1);
24
            if (global.choice == 0)
25
            {
26
                other.con = 1;
27
                myinteract = 10;
28
            }
29
            if (global.choice == 1)
30
            {
31
                myinteract = 0;
32
                global.interact = 0;
33
            }
34
        }
35
    }
36
}
37
if (con == 1)
38
{
39
    timer++;
40
    if (timer == 3)
41
    {
42
        endy = obj_mainchara.bbox_bottom - 80 - 57;
43
        snd_play(snd_knock);
44
    }
45
    if (timer == 15)
46
    {
47
        zap = 
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();
} if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker; }
(obj_mainchara.x - 30, cameray() - 200, spr_zapper_jump_noshadow, -2, 2, 0, 5);
48
        zap.gravity = 2;
49
        snd_play(snd_fall);
50
        scr_limitval_upper(zap, "y", endy);
51
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
(zap);
52
    }
53
    if (timer > 15)
54
    {
55
        if (zap.y >= endy)
56
        {
57
            con = -1;
58
            timer = 0;
59
            scr_delay_var("con", 2, 1);
60
        }
61
    }
62
}
63
if (con == 2)
64
{
65
    timer++;
66
    if (timer == 1)
67
    {
68
        global.facing = 3;
69
        snd_play(snd_noise);
70
        zap.image_index = 6;
71
    }
72
    if (timer == 2)
73
        zap.image_index = 7;
74
    if (timer == 4)
75
        zap.image_index = 8;
76
    if (timer == 15)
77
    {
78
        
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");
79
        msgsetloc(0, 
* I'm here to assist youse.Wait for inputClose Message
"* I'm here to assist youse./%", "obj_b3bs_rabbick_a_slash_Step_0_gml_89_0"
);
80
        d_make();
81
        con = 3;
82
        timer = 0;
83
    }
84
}
85
if (con == 3 && !d_ex())
86
{
87
    timer++;
88
    if (timer == 5)
89
    {
90
        change = instance_create(x, y, obj_tvturnoff_manager);
91
        change.kind = 1;
92
        change.roomtarg = 181;
93
        con++;
94
    }
95
}