Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_tv_curtain_tennanpc_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    tenna.image_speed = lerp(tenna.image_speed, 2, 0.05);
4
    tenna.sprite_index = spr_tenna_dance_cabbage;
5
    if (trig.myinteract == 3)
6
    {
7
        con = 1;
8
        timer = 0;
9
    }
10
}
11
if (con == 1)
12
{
13
    global.interact = 1;
14
    global.msc = -99;
15
    global.choice = -1;
16
    global.choicemsg[0] = stringsetloc(
#Ready
"#Ready", "obj_dw_tv_curtain_tennanpc_slash_Step_0_gml_21_0"
);
17
    global.choicemsg[1] = stringsetloc(
#Not Ready
"#Not Ready", "obj_dw_tv_curtain_tennanpc_slash_Step_0_gml_22_0"
);
18
    
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");
19
    msgsetloc(0, 
* Everyone got their snacks and drinks?Wait for input
"* Everyone got their snacks and drinks?/", "obj_dw_tv_curtain_tennanpc_slash_Step_0_gml_27_0"
);
20
    msgnextloc(
* Once the show starts there will be NO bathroom breaks!Wait for input
"* Once the show starts there will be NO bathroom breaks!/", "obj_dw_tv_curtain_tennanpc_slash_Step_0_gml_28_0"
);
21
    msgnextloc(
* Are we all ready to begin the show?!Wait for input
"* Are we all ready to begin the show?!/", "obj_dw_tv_curtain_tennanpc_slash_Step_0_gml_29_0"
);
22
    msgnext("\\C2 ");
23
    con = 2;
24
    if (talked)
25
    {
26
        tenna.preset = 21;
27
        
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");
28
        msgsetloc(0, 
* Are we ready now?Wait for input
"* Are we ready now?/", "obj_dw_tv_curtain_tennanpc_slash_Step_0_gml_37_0"
);
29
        msgnext("\\C2 ");
30
        con = 5;
31
    }
32
    with (d_make())
33
        side = 1;
34
}
35
if (con == 2)
36
{
37
    timer++;
38
    if (
scr_getmsgno_d
scr_getmsgno_d

function
scr_getmsgno_d()
{ if (instance_exists(obj_dialoguer) && instance_exists(obj_dialoguer.writer)) return obj_dialoguer.writer.msgno; }
() == 0 || timer > 5)
39
    {
40
        timer = 0;
41
        tenna.bounce = 1;
42
        tenna.preset = 21;
43
        con = 3;
44
    }
45
}
46
if (con == 3)
47
{
48
    if (
scr_getmsgno_d
scr_getmsgno_d

function
scr_getmsgno_d()
{ if (instance_exists(obj_dialoguer) && instance_exists(obj_dialoguer.writer)) return obj_dialoguer.writer.msgno; }
() == 1 || timer > 5)
49
    {
50
        timer = 0;
51
        tenna.bounce = 1;
52
        tenna.preset = 8;
53
        tenna.sprite_index = spr_tenna_tie_adjust_a;
54
        con = 4;
55
    }
56
}
57
if (con == 4)
58
{
59
    if (
scr_getmsgno_d
scr_getmsgno_d

function
scr_getmsgno_d()
{ if (instance_exists(obj_dialoguer) && instance_exists(obj_dialoguer.writer)) return obj_dialoguer.writer.msgno; }
() == 2 || timer > 5)
60
    {
61
        tenna.preset = 22;
62
        timer = 0;
63
        con = 5;
64
    }
65
}
66
if (con == 5 && i_ex(obj_choicer_neo))
67
{
68
    talked = 1;
69
    tenna.preset = 3;
70
    con = 6;
71
}
72
if (con == 6 && global.choice != -1)
73
{
74
    if (global.choice == 0)
75
        k_d(1);
76
    else
77
        k_d();
78
    if (global.choice == 0)
79
        con = 72;
80
    if (global.choice == 1)
81
    {
82
        con = 0;
83
        trig.myinteract = 0;
84
        global.interact = 0;
85
        tenna.preset = 0;
86
        tenna.image_speed = 0;
87
        tenna.bounce = 1;
88
    }
89
}
90
if (con == 72)
91
{
92
    tenna.preset = 34;
93
    
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");
94
    msgsetloc(0, 
* Great!Delay 11 Mike,Delay 11 hit it!Wait for inputClose Message
"* Great^1! Mike^1, hit it!/%", "obj_dw_tv_curtain_tennanpc_slash_Step_0_gml_116_0"
);
95
    with (d_make())
96
        side = 1;
97
    con = 73;
98
    timer = 0;
99
}
100
if (con == 73 && !d_ex())
101
{
102
    timer++;
103
    if (timer == 15)
104
    {
105
        snd_free_all();
106
        snd_play(snd_impact);
107
        snd_play(snd_locker);
108
        room_goto(room_ch3_gameshowroom);
109
    }
110
}