Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_tem_school_Other_10

(view raw script w/o annotations or w/e)
1
global.msc = 0;
2
global.typer = 5;
3
global.fc = 0;
4
global.fe = 0;
5
global.interact = 1;
6
image_speed = 0.2;
7
if (global.chapter == 1)
8
{
9
    global.msg[0] = stringsetloc(
* KRISP!!Delay 11
* awa...Delay 11 ver sorz...Delay 11
* tem already have partner...Wait for inputClose Message
"* KRISP!^1!&* awa..^1. ver sorz..^1.&* tem already have partner.../%", "obj_tem_school_slash_Other_10_gml_10_0"
);
10
    if (egcon == 0 && global.plot < 3)
11
        egcon = 1;
12
    if (talked >= 1)
13
    {
14
        global.msg[0] = stringsetloc(
* tem partner with...Delay 11
* EG!!!Wait for inputClose Message
"* tem partner with..^1.&* EG!!!/%", "obj_tem_school_slash_Other_10_gml_15_0"
);
15
        if (global.facing == 3)
16
        {
17
            image_speed = 0;
18
            facing = 0;
19
            dfacing = 0;
20
            global.msg[0] = stringsetloc(
* (It's a black-and-white hardboiled egg.)Wait for input
"* (It's a black-and-white hardboiled egg.)/", "obj_tem_school_slash_Other_10_gml_22_0"
);
21
            global.msg[1] = stringsetloc(
* (Sadly, seems like it already has a partner.)Wait for inputClose Message
"* (Sadly, seems like it already has a partner.)/%", "obj_tem_school_slash_Other_10_gml_23_0"
);
22
        }
23
    }
24
    if (global.plot == 3)
25
    {
26
        if (egcon == 0)
27
        {
28
            global.msg[0] = stringsetloc(
* suz... VER MEAN!!!Delay 11
* said tem talk stupid...Wait for input
"* suz... VER MEAN!!^1!&* said tem talk stupid.../", "obj_tem_school_slash_Other_10_gml_31_0"
);
29
            global.msg[1] = stringsetloc(
* WRON!Delay 11 tem a SMART!!!Delay 11
* tem study hard and go to COLLEGE!!!Wait for inputClose Message
"* WRON^1! tem a SMART!!^1!&* tem study hard and go to COLLEGE!!!/%", "obj_tem_school_slash_Other_10_gml_32_0"
);
30
        }
31
        if (egcon == 3)
32
        {
33
            global.msg[0] = stringsetloc(
* suz... VER MEAN!!!Delay 11
* said eg...Delay 11
* NEVER HATCH!!!Wait for inputClose Message
"* suz... VER MEAN!!^1!&* said eg..^1.&* NEVER HATCH!!!/%", "obj_tem_school_slash_Other_10_gml_36_0"
);
34
            if (global.facing == 3)
35
            {
36
                image_speed = 0;
37
                facing = 0;
38
                dfacing = 0;
39
                global.msg[0] = stringsetloc(
* (The hardboiled egg emanates a feeling of pity towards you.)Wait for inputClose Message
"* (The hardboiled egg emanates a feeling of pity towards you.)/%", "obj_tem_school_slash_Other_10_gml_43_0"
);
40
            }
41
        }
42
    }
43
}
44
if (global.chapter == 2)
45
{
46
    if (global.facing == 3 && scr_litemcheck
scr_litemcheck

function scr_litemcheck(arg0) { haveit = 0; itemcount = 0; for (i = 0; i < 8; i += 1) { if (global.litem[i] == arg0) haveit = 1; if (global.litem[i] == arg0) itemcount += 1; } return haveit; }
(8) && talked >= 1)
47
    {
48
        image_speed = 0;
49
        facing = 0;
50
        dfacing = 0;
51
        var egg_amount = global.flag[911 got_ch1_egg] + global.flag[918 got_ch2_egg];
52
        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 == "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; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("no_name");
53
        msgsetsubloc(0, "* (The eggs you have collected so far. There's ~1.)/%", egg_amount, "obj_tem_school_slash_Other_10_gml_66_0");
54
    }
55
    else
56
    {
57
        if (scr_litemcheck
scr_litemcheck

function scr_litemcheck(arg0) { haveit = 0; itemcount = 0; for (i = 0; i < 8; i += 1) { if (global.litem[i] == arg0) haveit = 1; if (global.litem[i] == arg0) itemcount += 1; } return haveit; }
(8))
58
        {
59
            if (egcon == 0)
60
                egcon = 1;
61
        }
62
        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 == "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; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("no_name");
63
        msgsetloc(0, 
* tem still study...Delay 11 study harb!!!Wait for input
"* tem still study..^1. study harb!!!/", "obj_tem_school_slash_Other_10_gml_59_0"
);
64
        msgnextloc(
* tem get a SMART!Delay 11 go to COLLEG!!Delay 11 achieve DREAM!!Wait for input
"* tem get a SMART^1! go to COLLEG!^1! achieve DREAM!!/", "obj_tem_school_slash_Other_10_gml_60_0"
);
65
        msgnextloc(
* then tem become...Delay 11 TEM BECOME....!!Wait for input
"* then tem become..^1. TEM BECOME....!!/", "obj_tem_school_slash_Other_10_gml_61_0"
);
66
        msgnextloc(
* Hahaha...Delay 11 As if you could even envision it.Wait for inputClose Message
"* Hahaha..^1. As if you could even envision it./%", "obj_tem_school_slash_Other_10_gml_62_0"
);
67
    }
68
}
69
myinteract = 3;
70
mydialoguer = instance_create(0, 0, obj_dialoguer);
71
if (global.darkzone == 1)
72
    image_speed = 0.1;
73
talked += 1;