Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_gameover_chef_Step_0

(view raw script w/o annotations or w/e)
1
if (is_replay_gameover)
2
{
3
    if (con == -1)
4
        con = 0;
5
    if (con == 0 && !d_ex())
6
    {
7
        con = 1;
8
        alarm[0]
 = 60;
gml_Object_obj_gameover_chef_Alarm_0.gml

con++;
9
        with (gameover_parent)
10
            
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; }
("blackalpha", 0, 1, 30);
11
    }
12
    if (con == 2 && !d_ex())
13
    {
14
        con = -1;
15
        snd_free_all();
16
        inst = instance_create(0, 0, obj_persistentfadein);
17
        global.interact = 3;
18
        global.facing = 0;
19
        global.entrance = 3;
20
        room_goto(room_dw_ranking_a);
21
    }
22
}
23
if (is_replay_gameover)
24
    exit;
25
if (tenna == -4)
26
{
27
    if (i_ex(obj_actor_tenna))
28
    {
29
        tenna = instance_find(obj_actor_tenna, 0);
30
        if (gameover_sequence == 2)
31
            tenna.sprite_index = spr_tenna_grasp;
32
        gameover_parent.tenna_arrive = true;
33
        init = true;
34
        alarm[0]
 = 30;
gml_Object_obj_gameover_chef_Alarm_0.gml

con++;
35
    }
36
}
37
if (!init)
38
    exit;
39
if (gameover_sequence == 1)
40
{
41
    if (con == 0)
42
    {
43
        con = 1;
44
        alarm[0]
 = 30;
gml_Object_obj_gameover_chef_Alarm_0.gml

con++;
45
        
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; ...
("tenna");
46
        msgsetloc(0, 
* Hey,Delay 11 you know those famous STARS they award to incredible restaurants...?Wait for inputClose Message
"* Hey^1, you know those famous STARS they award to incredible restaurants...?/%", "obj_gameover_chef_slash_Step_0_gml_32_0"
);
47
        var d = d_make();
48
        d.stay = 5;
49
        d.side = 0;
50
    }
51
    if (con == 2 && !d_ex())
52
    {
53
        con = 3;
54
        alarm[0]
 = 30;
gml_Object_obj_gameover_chef_Alarm_0.gml

con++;
55
        tenna.preset = 0;
56
        tenna.sprite_index = spr_tenna_grasp;
57
        with (tenna)
58
            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
59
        
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; ...
("tenna");
60
        msgsetloc(0, 
* You just got a NEGATIVE ONE!!Delay 11 The world's first Anti-Good Restaurant!!Wait for inputClose Message
"* You just got a NEGATIVE ONE!^1! The world's first Anti-Good Restaurant!!/%", "obj_gameover_chef_slash_Step_0_gml_49_0"
);
61
        var d = d_make();
62
        d.stay = 5;
63
        d.side = 0;
64
    }
65
    if (con == 4 && !d_ex())
66
    {
67
        con = 5;
68
        alarm[0]
 = 30;
gml_Object_obj_gameover_chef_Alarm_0.gml

con++;
69
        tenna.preset = 2;
70
        tenna.bounce = 1;
71
        tenna.sprite_index = spr_tenna_whisper;
72
        
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; ...
("tenna");
73
        msgsetloc(0, 
* Gotta give it to ya,Delay 11 you're trailblazers!Wait for inputClose Message
"* Gotta give it to ya^1, you're trailblazers!/%", "obj_gameover_chef_slash_Step_0_gml_66_0"
);
74
        var d = d_make();
75
        d.stay = 5;
76
        d.side = 0;
77
    }
78
    if (con == 6 && !d_ex())
79
    {
80
        con = 7;
81
        alarm[0]
 = 30;
gml_Object_obj_gameover_chef_Alarm_0.gml

con++;
82
        tenna.bounce = 1;
83
        tenna.sprite_index = spr_tenna_point_at_screen;
84
        
scr_funnytext_init
scr_funnytext_init

function
scr_funnytext_init()
{ global.writerobj[argument0] = obj_funnytext; global.writerobjx[argument0] = argument1; global.writerobjy[argument0] = argument2; global.writerimg[argument0] = argument3; global.writerobjsettinga[argument0] = argument4; global.writerobjsettingb[argument0] = argument5; } function scr_funnytext_init_sounds() { global.funnytext_sounds = [scr_funnytext_new_sound(snd_crowd_cheer_single, [spr_funnytext_fun_loop]), scr_funnytext_new_sound(snd_ftext_bounce, [spr_funnytext_big, spr_funnytext_physical_challenge, spr_funnytext_physical_challenges]), scr_funnytext_new_sound(snd_ftext_woodblock, [spr_funnytext_board, spr_funnytext_challenge]), scr_funnytext_new_sound(snd_ftext_prize, [spr_funnytext_bonus_round, spr_funnytext_word, spr_funnytext_hall_of_fame, spr_funnytext_amazing_01]), scr_funnytext_new_sound(snd_whip_crack_only, [spr_funnytext_breaking_news]), scr_funnytext_new_sound(snd_badexplosion, [spr_funnytext_flames]), scr_funnytext_new_sound(snd_ftext_enter, [spr_funnytext_fun_o_meter, spr_funnytext_special]), scr_funnytext_new_sound(snd_ftext_susiezilla, [spr_funnytext_susiezilla]), scr_funnytext_new_sound(snd_ftext_dark_fountain, [spr_funnytext_dark_fountain]), scr_funnytext_new_sound(snd_ftext_brother, [spr_funnytext_brother]), scr_funnytext_new_sound(snd_ftext_gunshot, [spr_funnytext_grand_prize, spr_funnytext_prizes, spr_funnytext_round, spr_funnytext_round_1, spr_funnytext_rounds, spr_funnytext_game_over, spr_funnytext_game, spr_funnytext_over]), scr_funnytext_new_sound(snd_ftext_names, [spr_funnytext_names]), scr_funnytext_new_sound(snd_ftext_toriel, [spr_funnytext_toriel]), scr_funnytext_new_sound(snd_ftext_vibraphones, [spr_funnytext_green_room, spr_funnytext_quizzes]), scr_funnytext_new_sound(snd_audience_aww, [spr_funnytext_love, spr_funnytext_lovely, spr_funnytext_lovers]), scr_funnytext_new_sound(snd_sparkle_glock, [spr_funnytext_star, spr_funnytext_stars]), scr_funnytext_new_sound(snd_locker, [spr_funnytext_stop]), scr_funnytext_new_sound(snd_splat, [spr_funnytext_tears]), scr_funnytext_new_sound(snd_carhonk, [spr_funnytext_win_big])]; } function scr_funnytext_get_sound(arg0) { if (!variable_global_exists("funnytext_sounds")) scr_funnytext_init_sounds(); var sound_file = -4; for (var i = 0; i < array_length(global.funnytext_sounds); i++) { var sprite_list = global.funnytext_sounds[i][1]; for (var j = 0; j < array_length(sprite_list); j++) { var sprite =
scr_84_get_sprite(sprite_list[j]);
if (arg0 != sprite) continue; sound_file = global.funnytext_sounds[i][0]; break; } if (sound_file != -4) break; } return sound_file; } function scr_funnytext_new_sound(arg0, arg1) { var sound_file = arg0; var sprite_list = []; for (var i = 0; i < array_length(arg1); i++) sprite_list[array_length(sprite_list)] = sprite_get_name(arg1[i]); var funnytext_sound = []; funnytext_sound[0] = sound_file; funnytext_sound[1] = sprite_list; return funnytext_sound; }
(0, 0, 0,
scr_84_get_sprite
scr_84_get_sprite

function
scr_84_get_sprite(arg0)
{ return ds_map_find_value(global.chemg_sprite_map, arg0); }
("spr_funnytext_challenge"), 0, 0);
85
        
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; ...
("tenna");
86
        msgsetloc(0, 
* Alright,Delay 11 one more try!Delay 11 Let's
0 again!!Delay 11Wait for inputClose Message
"* Alright^1, one more try^1! Let's&\\O0 again!^1!/%", "obj_gameover_chef_slash_Step_0_gml_84_0"
);
87
        var d = d_make();
88
        d.side = 0;
89
    }
90
    if (con == 8 && !d_ex())
91
    {
92
        con = 9;
93
        alarm[0]
 = 30;
gml_Object_obj_gameover_chef_Alarm_0.gml

con++;
94
        scr_lerp_instance_var(tenna, "x", tenna.x, camerax() + view_wport[0] + 200, 40, 4, "in");
95
        gameover_parent.con = 1;
96
        gameover_parent.timer = 0;
97
    }
98
    if (con == 10 && !d_ex())
99
    {
100
        con = 99;
101
        instance_destroy();
102
    }
103
}
104
if (gameover_sequence == 2)
105
{
106
    if (con == 0)
107
    {
108
        con = 1;
109
        alarm[0]
 = 30;
gml_Object_obj_gameover_chef_Alarm_0.gml

con++;
110
        
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; ...
("tenna");
111
        msgsetsubloc(0, "* You lost ~1 TIMES?!/", times_lost, "obj_gameover_chef_slash_Step_0_gml_121_0");
112
        switch (times_lost)
113
        {
114
            case 2:
115
                msgnextloc(
* Can someone go check if the fire is defective!?Wait for inputClose Message
"* Can someone go check if the fire is defective!?/%", "obj_gameover_chef_slash_Step_0_gml_126_0"
);
116
                break;
117
            case 3:
118
                msgnextloc(
* The audience is starting to question the quality of the popcorn!Wait for inputClose Message
"* The audience is starting to question the quality of the popcorn!/%", "obj_gameover_chef_slash_Step_0_gml_129_0"
);
119
                break;
120
            case 4:
121
                msgnextloc(
* If that famous angry chef gets here,Delay 11 we're gonna get shut down!Wait for inputClose Message
"* If that famous angry chef gets here^1, we're gonna get shut down!/%", "obj_gameover_chef_slash_Step_0_gml_132_0"
);
122
                break;
123
            case 5:
124
                msgnextloc(
* The food is going cold!Delay 11 The actor's union isn't gonna like this!Wait for inputClose Message
"* The food is going cold^1! The actor's union isn't gonna like this!/%", "obj_gameover_chef_slash_Step_0_gml_135_0"
);
125
                break;
126
            case 6:
127
                msgnextloc(
* I'll admit it!Delay 11 I'm using imitation fire!Delay 11 But you can do it!Wait for inputClose Message
"* I'll admit it^1! I'm using imitation fire^1! But you can do it!/%", "obj_gameover_chef_slash_Step_0_gml_138_0"
);
128
                break;
129
            case 7:
130
                msgnextloc(
* With the screen going so grey I thought this was an infomercial!Wait for inputClose Message
"* With the screen going so grey I thought this was an infomercial!/%", "obj_gameover_chef_slash_Step_0_gml_141_0"
);
131
                break;
132
            case 8:
133
                msgnextloc(
* One more loss and Susie will be replaced with a paid actor!Wait for inputClose Message
"* One more loss and Susie will be replaced with a paid actor!/%", "obj_gameover_chef_slash_Step_0_gml_144_0"
);
134
                break;
135
            default:
136
                msgnextloc(
* All right,Delay 11 that's it. We're turning off the lose condition.Wait for input
"* All right^1, that's it. We're turning off the lose condition./", "obj_gameover_chef_slash_Step_0_gml_147_0"
);
137
                msgnextloc(
* You happy!?Wait for inputClose Message
"* You happy!?/%", "obj_gameover_chef_slash_Step_0_gml_148_0"
);
138
        }
139
        var d = d_make();
140
        d.stay = 5;
141
        d.side = 0;
142
    }
143
    if (con == 2 && !d_ex())
144
    {
145
        con = 7;
146
        alarm[0]
 = 30;
gml_Object_obj_gameover_chef_Alarm_0.gml

con++;
147
        tenna.bounce = 1;
148
        tenna.sprite_index = spr_tenna_point_at_screen;
149
        
scr_funnytext_init
scr_funnytext_init

function
scr_funnytext_init()
{ global.writerobj[argument0] = obj_funnytext; global.writerobjx[argument0] = argument1; global.writerobjy[argument0] = argument2; global.writerimg[argument0] = argument3; global.writerobjsettinga[argument0] = argument4; global.writerobjsettingb[argument0] = argument5; } function scr_funnytext_init_sounds() { global.funnytext_sounds = [scr_funnytext_new_sound(snd_crowd_cheer_single, [spr_funnytext_fun_loop]), scr_funnytext_new_sound(snd_ftext_bounce, [spr_funnytext_big, spr_funnytext_physical_challenge, spr_funnytext_physical_challenges]), scr_funnytext_new_sound(snd_ftext_woodblock, [spr_funnytext_board, spr_funnytext_challenge]), scr_funnytext_new_sound(snd_ftext_prize, [spr_funnytext_bonus_round, spr_funnytext_word, spr_funnytext_hall_of_fame, spr_funnytext_amazing_01]), scr_funnytext_new_sound(snd_whip_crack_only, [spr_funnytext_breaking_news]), scr_funnytext_new_sound(snd_badexplosion, [spr_funnytext_flames]), scr_funnytext_new_sound(snd_ftext_enter, [spr_funnytext_fun_o_meter, spr_funnytext_special]), scr_funnytext_new_sound(snd_ftext_susiezilla, [spr_funnytext_susiezilla]), scr_funnytext_new_sound(snd_ftext_dark_fountain, [spr_funnytext_dark_fountain]), scr_funnytext_new_sound(snd_ftext_brother, [spr_funnytext_brother]), scr_funnytext_new_sound(snd_ftext_gunshot, [spr_funnytext_grand_prize, spr_funnytext_prizes, spr_funnytext_round, spr_funnytext_round_1, spr_funnytext_rounds, spr_funnytext_game_over, spr_funnytext_game, spr_funnytext_over]), scr_funnytext_new_sound(snd_ftext_names, [spr_funnytext_names]), scr_funnytext_new_sound(snd_ftext_toriel, [spr_funnytext_toriel]), scr_funnytext_new_sound(snd_ftext_vibraphones, [spr_funnytext_green_room, spr_funnytext_quizzes]), scr_funnytext_new_sound(snd_audience_aww, [spr_funnytext_love, spr_funnytext_lovely, spr_funnytext_lovers]), scr_funnytext_new_sound(snd_sparkle_glock, [spr_funnytext_star, spr_funnytext_stars]), scr_funnytext_new_sound(snd_locker, [spr_funnytext_stop]), scr_funnytext_new_sound(snd_splat, [spr_funnytext_tears]), scr_funnytext_new_sound(snd_carhonk, [spr_funnytext_win_big])]; } function scr_funnytext_get_sound(arg0) { if (!variable_global_exists("funnytext_sounds")) scr_funnytext_init_sounds(); var sound_file = -4; for (var i = 0; i < array_length(global.funnytext_sounds); i++) { var sprite_list = global.funnytext_sounds[i][1]; for (var j = 0; j < array_length(sprite_list); j++) { var sprite =
scr_84_get_sprite(sprite_list[j]);
if (arg0 != sprite) continue; sound_file = global.funnytext_sounds[i][0]; break; } if (sound_file != -4) break; } return sound_file; } function scr_funnytext_new_sound(arg0, arg1) { var sound_file = arg0; var sprite_list = []; for (var i = 0; i < array_length(arg1); i++) sprite_list[array_length(sprite_list)] = sprite_get_name(arg1[i]); var funnytext_sound = []; funnytext_sound[0] = sound_file; funnytext_sound[1] = sprite_list; return funnytext_sound; }
(0, 0, 0,
scr_84_get_sprite
scr_84_get_sprite

function
scr_84_get_sprite(arg0)
{ return ds_map_find_value(global.chemg_sprite_map, arg0); }
("spr_funnytext_challenge"), 0, 0);
150
        
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; ...
("tenna");
151
        msgsetloc(0, 
* Alright,Delay 11 one more try!Delay 11 Let's
0 again!!Delay 11Wait for inputClose Message
"* Alright^1, one more try^1! Let's&\\O0 again!^1!/%", "obj_gameover_chef_slash_Step_0_gml_168_0"
);
152
        var d = d_make();
153
        d.side = 0;
154
    }
155
    if (con == 8 && !d_ex())
156
    {
157
        con = 9;
158
        alarm[0]
 = 30;
gml_Object_obj_gameover_chef_Alarm_0.gml

con++;
159
        scr_lerp_instance_var(tenna, "x", tenna.x, camerax() + view_wport[0] + 200, 40, 4, "in");
160
        gameover_parent.con = 1;
161
        gameover_parent.timer = 0;
162
    }
163
    if (con == 10 && !d_ex())
164
    {
165
        con = 99;
166
        instance_destroy();
167
    }
168
}