Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_npc_ramb_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (board_talk && !d_ex() && global.interact == 0)
3
{
4
    board_talk = false;
5
    global.interact = 1;
6
    board_con = 1;
7
    board_talk_count++;
8
    
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");
9
    msgsetloc(0, 
Face 2* Time flies...Delay 11 Seems like just yesterday you and that girl had everyone here lined up.Wait for input
"\\M2* Time flies..^1. Seems like just yesterday you and that girl had everyone here lined up./", "obj_npc_ramb_slash_Step_0_gml_15_0"
);
10
    msgnextloc(
* Queen on her side,Delay 11 King on your side,Delay 11 Tenna in back...Delay 11 Oh,Delay 11 it was chaos,Delay 11 CHAOS!Wait for input
"* Queen on her side^1, King on your side^1, Tenna in back..^1. Oh^1, it was chaos^1, CHAOS!/", "obj_npc_ramb_slash_Step_0_gml_16_0"
);
11
    msgnextloc(
Face 0* Heh,Delay 11 only kids like you two would take a laptop home just to play make believe.Wait for input
"\\M0* Heh^1, only kids like you two would take a laptop home just to play make believe./", "obj_npc_ramb_slash_Step_0_gml_17_0"
);
12
    msgnextloc(
Face 1* ...Delay 11 how is she,Delay 11 Kris? Are you two...? Well,Delay 11 it's alright. Everyone changes. 'cept us.Wait for inputClose Message
"\\M1* ..^1. how is she^1, Kris? Are you two...? Well^1, it's alright. Everyone changes. 'cept us./%", "obj_npc_ramb_slash_Step_0_gml_18_0"
);
13
    if (board_talk_count > 1)
14
    {
15
        
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");
16
        msgsetloc(0, 
* Kris,Delay 11 luv,Delay 11 don't you got better to do than talking to little ol' me?Wait for inputClose Message
"* Kris^1, luv^1, don't you got better to do than talking to little ol' me?/%", "obj_npc_ramb_slash_Step_0_gml_40_0"
);
17
    }
18
    d_make();
19
}
20
if (board_con == 1 && !d_ex() && global.interact == 1)
21
{
22
    global.interact = 0;
23
    board_con = 99;
24
}
25
if (get_prize_sequence)
26
{
27
    if (get_prize_con == 0 && !d_ex())
28
    {
29
        global.interact = 1;
30
        get_prize_con = 1;
31
        
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
("get_prize_con", 2, 30);
32
        snd_play(snd_item);
33
        with (prize_marker)
34
            instance_destroy();
35
    }
36
    if (get_prize_con == 2 && !d_ex())
37
    {
38
        get_prize_con = 3;
39
        
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");
40
        msgset(0, prize_text);
41
        d_make();
42
    }
43
    if (get_prize_con == 3 && !d_ex())
44
    {
45
        global.interact = 0;
46
        get_prize_con = -1;
47
        get_prize_sequence = false;
48
        has_prize = false;
49
        
scr_flag_set
scr_flag_set

function
scr_flag_set(arg0, arg1)
{ global.flag[arg0] = arg1; }
(prize_flag, 1);
50
    }
51
    if (get_prize_con == 10 && !d_ex())
52
    {
53
        global.interact = 1;
54
        get_prize_con = 11;
55
        
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");
56
        msgsetloc(0, 
Face 1* Kris!Delay 11 Your rank...Delay 11 Z-Rank. Well,Delay 11 I suppose you gave it a good try!Wait for input
"\\M1* Kris^1! Your rank..^1. Z-Rank. Well^1, I suppose you gave it a good try!/", "obj_npc_ramb_slash_Step_0_gml_95_0"
);
57
        msgnextloc(
* Here,Delay 11 the gift...Wait for inputClose Message
"* Here^1, the gift.../%", "obj_npc_ramb_slash_Step_0_gml_96_0"
);
58
        d_make();
59
    }
60
    if (get_prize_con == 11 && !d_ex())
61
    {
62
        get_prize_con = 12;
63
        
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
("get_prize_con", 13, 30);
64
        snd_play(snd_item);
65
        with (prize_marker)
66
            instance_destroy();
67
    }
68
    if (get_prize_con == 13)
69
    {
70
        get_prize_con = 14;
71
        
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");
72
        msgsetloc(0, 
* (The giftbox was empty.)Wait for input
"* (The giftbox was empty.)/", "obj_npc_ramb_slash_Step_0_gml_118_0"
);
73
        msgnextloc(
Face 1* That's right,Delay 11 Kris. Tenna's not too keen on that behavior...Wait for input
"\\M1* That's right^1, Kris. Tenna's not too keen on that behavior.../", "obj_npc_ramb_slash_Step_0_gml_119_0"
);
74
        msgnextloc(
Face 2* Reminds him of a certain...Delay 11 y'know.Wait for input
"\\M2* Reminds him of a certain..^1. y'know./", "obj_npc_ramb_slash_Step_0_gml_120_0"
);
75
        msgnextloc(
Face 2* ...Delay 11 that's why HIS game's a bit of a bust,Delay 11 y'see?Wait for input
"\\M2* ..^1. that's why HIS game's a bit of a bust^1, y'see?/", "obj_npc_ramb_slash_Step_0_gml_121_0"
);
76
        msgnextloc(
Face 0* (Just wait...Delay 11 I'll show you something electrifying,Delay 11 I will...)Wait for inputClose Message
"\\M0* (Just wait..^1. I'll show you something electrifying^1, I will...)/%", "obj_npc_ramb_slash_Step_0_gml_122_0"
);
77
        d_make();
78
    }
79
    if (get_prize_con == 14 && !d_ex())
80
    {
81
        global.interact = 0;
82
        get_prize_con = -1;
83
        get_prize_sequence = false;
84
        has_prize = false;
85
        
scr_flag_set
scr_flag_set

function
scr_flag_set(arg0, arg1)
{ global.flag[arg0] = arg1; }
(prize_flag, 2);
86
    }
87
}
88
if (room == room_dw_green_room && global.flag[20 other_text_command] == 0)
89
    body_anim += 0.1;
90
if (!d_ex() && global.interact == 0)
91
{
92
    global.flag[20 other_text_command] = 0;
93
    head_sprite = head_sprite_default;
94
    head_sprite_index = 0;
95
    current_state = global.flag[20 other_text_command];
96
}
97
if (global.flag[20 other_text_command] == current_state)
98
    exit;
99
if (!load_sprite)
100
{
101
    load_sprite = true;
102
    anim_timer = 0;
103
    head_sprite = head_sprites[global.flag[20 other_text_command]];
104
    head_sprite_index = 0;
105
}
106
if (load_sprite)
107
{
108
    anim_timer++;
109
    head_sprite_index += 0.3;
110
    if (head_sprite_index > 3)
111
    {
112
        load_sprite = false;
113
        current_state = global.flag[20 other_text_command];
114
    }
115
}