Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_overworldc_Step_0

related scripts: Create_0 • Draw_0 • Step_0

(view raw script w/o annotations or w/e)
1
hasitems = global.litem[0] != 0;
2
if (_toast_timer)
3
{
4
    if (global.flag[1745] < 300)
5
        global.flag[1745]++;
6
}
7
if (global.interact == 5)
8
{
9
    currentmenu = global.menuno;
10
    if (global.menuno < 6)
11
        currentspot = global.menucoord[global.menuno];
12
    if (button1_p())
13
    {
14
        if (global.menuno == 5)
15
        {
16
            if (global.menucoord[5] == 0)
17
            {
18
                global.menuno = 9;
19
                script_execute(scr_litemuseb, global.menucoord[1], global.litem[global.menucoord[1]]);
20
            }
21
            if (global.menucoord[5] == 1)
22
            {
23
                global.menuno = 9;
24
                script_execute(scr_litemdesc, global.litem[global.menucoord[1]]);
25
                script_execute(scr_writetext, 0, "x", 0, 0);
26
            }
27
            if (global.menucoord[5] == 2)
28
            {
29
                dontthrow = 0;
30
                dontthrowtype = 0;
31
                global.menuno = 9;
32
                if (global.litem[global.menucoord[1]] == 5)
33
                    dontthrow = 1;
34
                if (global.litem[global.menucoord[1]] == 9)
35
                {
36
                    dontthrow = 1;
37
                    dontthrowtype = 1;
38
                }
39
                if (global.litem[global.menucoord[1]] == 11)
40
                {
41
                    dontthrow = 1;
42
                    dontthrowtype = 2;
43
                }
44
                if (global.litem[global.menucoord[1]] == 21)
45
                {
46
                    dontthrow = 1;
47
                    dontthrowtype = 3;
48
                }
49
                var is_weapon_type = is_lw_item_weapon_type(global.litem[global.menucoord[1]]);
50
                if (is_weapon_type)
51
                {
52
                    dontthrow = 1;
53
                    dontthrowtype = 5;
54
                }
55
                if (scr_sideb_active())
56
                {
57
                    dontthrow = 1;
58
                    dontthrowtype = 4;
59
                }
60
                if (dontthrow == 0)
61
                {
62
                    i = round(random(30));
63
                    if (i == 0)
64
                        global.msg[0] = stringsetsubloc(
* You bid a quiet farewell to the Argument №11.
"* You bid a quiet farewell to the ~1.", global.litemname[global.menucoord[1]], "obj_overworldc_slash_Step_0_gml_34_0_b"
);
65
                    if (i == 1)
66
                        global.msg[0] = stringsetsubloc(
* You put the Argument №11 on the ground and gave it a little pat.
"* You put the ~1 on the ground and gave it a little pat.", global.litemname[global.menucoord[1]], "obj_overworldc_slash_Step_0_gml_34_0"
);
67
                    if (i == 2)
68
                        global.msg[0] = stringsetsubloc(
* You threw the Argument №11 on the ground like the piece of trash it is.
"* You threw the ~1 on the ground like the piece of trash it is.", global.litemname[global.menucoord[1]], "obj_overworldc_slash_Step_0_gml_36_0"
);
69
                    if (i == 3)
70
                        global.msg[0] = stringsetsubloc(
* You abandoned the Argument №11.
"* You abandoned the ~1.", global.litemname[global.menucoord[1]], "obj_overworldc_slash_Step_0_gml_38_0_b"
);
71
                    if (i > 3)
72
                        global.msg[0] = stringsetsubloc(
* The Argument №11 was thrown away.
"* The ~1 was thrown away.", global.litemname[global.menucoord[1]], "obj_overworldc_slash_Step_0_gml_38_0"
);
73
                    global.msg[0] += "/%";
74
                    if (global.litem[global.menucoord[1]] == 8)
75
                    {
76
                        global.msg[0] = stringsetloc(
* What Egg?Wait for inputClose Message
"* What Egg?/%", "obj_overworldc_slash_Step_0_gml_42_0"
);
77
                        if (global.flag[263 fridge_egg_status] == 0)
78
                            global.flag[263 fridge_egg_status] = 1;
79
                    }
80
                    if (global.litem[global.menucoord[1]] == 19)
81
                        
scr_flag_set
scr_flag_set

function
scr_flag_set(arg0, arg1)
{ global.flag[arg0] = arg1; } function scr_flag_set_ext(arg0, arg1, arg2, arg3 = 1) { if (arg1 < 0)
scr_flag_set(arg0, arg2);
else global.flag[arg0] = scr_set_bitmask_value(global.flag[arg0], arg1, arg2, arg3); }
(1710, 1)
;
82
                    script_execute(scr_writetext, 0, "x", 0, 0);
83
                    script_execute(scr_litemshift, global.menucoord[1], 0);
84
                }
85
                if (dontthrow == 1)
86
                {
87
                    if (dontthrowtype == 0)
88
                    {
89
                        global.msc = 10;
90
                        
scr_text
scr_text

function
scr_text(arg0)
{ switch (arg0) { case 0: break; case 10: global.choicemsg[0] = stringsetloc(
#Yes
"#Yes", "scr_text_slash_scr_text_gml_8_0"
);
global.choicemsg[1] = stringsetloc(
#No
"#No", "scr_text_slash_scr_text_gml_9_0"
);
global.choicemsg[2] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_12_0_b"
);
global.choicemsg[3] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_13_0_b"
);
global.msg[0] = stringsetloc(
* You really didn't want to throw it away.Wait for input
"* You really didn't want to throw it away./", "scr_text_slash_scr_text_gml_12_0"
);
global.msg[1] = stringsetloc(
* Throw it away anyway?Wait for input
"* Throw it away anyway?/", "scr_text_slash_scr_text_gml_13_0"
);
global.msg[2] = stringsetloc(
Choice type 2
"\\C2 ", "scr_text_slash_scr_text_gml_14_0"
);
if (global.chapter >= 2) msgsetloc(0,
* You took it from your pocket.Delay 11
* You have a very,Delay 11 very,Delay 11 bad feeling about throwing it away.Wait for input
"* You took it from your pocket^1.&* You have a \\cYvery^1, very^1, bad feeling\\c0 about throwing it away./", "scr_text_slash_scr_text_gml_19_0"
);
break; case 11: if (global.choice == 0) { global.flag[466 junkball_dropped] = 1; snd_play(snd_bageldefeat); global.msg[0] = stringsetloc(
* Hand shaking,Delay 11 you dropped the ball of junk on the ground.Wait for input
"* Hand shaking^1, you dropped the ball of junk on the ground./", "scr_text_slash_scr_text_gml_20_0"
);
global.msg[1] = stringsetloc(
* It broke into pieces.Wait for input
"* It broke into pieces./", "scr_text_slash_scr_text_gml_21_0"
);
global.msg[2] = stringsetloc(
* You felt bitter.Wait for inputClose Message
"* You felt bitter./%", "scr_text_slash_scr_text_gml_22_0"
);
script_execute(scr_litemshift, global.menucoord[1], 0); for (var i = 0; i < 12; i += 1) global.item[i] = 0; for (var i = 0; i < 48; i += 1) { global.armor[i] = 0; global.weapon[i] = 0; } } else { global.msg[0] = stringsetloc(
* You felt a feeling of relief.Wait for inputClose Message
"* You felt a feeling of relief./%", "scr_text_slash_scr_text_gml_34_0"
);
} break; case 100: global.msg[0] = stringsetloc(
* Hey, Kris!Delay 11 What's up?Delay 11
* Didja lose your pencil again?Wait for input
"* Hey, Kris^1! What's up^1?&* Didja lose your pencil again?/", "scr_text_slash_scr_text_gml_39_0"
);
global.msg[1] = stringsetloc(
Face 4* Here,Delay 11 you want the candy-cane one or the one with lights on it?Wait for input
"\\E4* Here^1, you want the candy-cane one or the one with lights on it?/", "scr_text_slash_scr_text_gml_40_0"
);
global.msg[2] = stringsetloc(
Face 1* Huh?Delay 11
* You want to be partners?Wait for input
"\\E1* Huh^1?&* You want to be partners?/", "scr_text_slash_scr_text_gml_41_0"
);
global.msg[3] = stringsetloc(
Face 4* Ummm...Delay 11 sorry...Delay 11
* Berdly already asked me...Wait for input
"\\E4* Ummm..^1. sorry..^1.&* Berdly already asked me.../", "scr_text_slash_scr_text_gml_42_0"
);
global.msg[4] = stringsetloc(
Face 0* But I could ask Ms. Alphys if we could make a group of 3!Wait for input
"\\E0* But I could ask Ms. Alphys if we could make a group of 3!/", "scr_text_slash_scr_text_gml_43_0"
);
global.msg[5] = stringsetloc(
Face 4* I'll ask if you're sure!

Not yet Yes. Ask.Choice type 1
"\\E4* I'll ask if you're sure!& &Not yet Yes. Ask.\\C1 ", "scr_text_slash_scr_text_gml_44_0"
);
global.msg[6] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_47_0"
);
break; case 101: if (global.choice == 1) { global.msg[0] = stringsetloc(
Face 0* OK,Delay 11 I'll ask!Wait for input
"\\E0* OK^1, I'll ask!/", "scr_text_slash_scr_text_gml_51_0"
);
global.msg[1] = stringsetloc(
* Miss Alphys!Delay 11
* Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message
"* Miss Alphys^1!&* Umm^1, is it OK if we have a group of 3?/%", "scr_text_slash_scr_text_gml_52_0"
);
with (obj_classscene) con = 20; } if (global.choice == 0) global.msg[0] = stringsetloc(
Face 4* Yeah,Delay 11 I'm sure there's someone else you can ask!Wait for inputClose Message
"\\E4* Yeah^1, I'm sure there's someone else you can ask!/%", "scr_text_slash_scr_text_gml_57_0"
);
break; case 102: global.msg[0] = stringsetloc(
Face 0* Do you wanna be partners?
Not yet YesChoice type 1
"\\E0* Do you wanna be partners?&Not yet Yes\\C1 ", "scr_text_slash_scr_text_gml_62_0"
);
global.msg[1] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_65_0"
);
break; case 103: if (global.choice == 1) { global.msg[0] = stringsetloc(
Face 0* OK,Delay 11 I'll ask!Wait for input
"\\E0* OK^1, I'll ask!/", "scr_text_slash_scr_text_gml_69_0"
);
global.msg[1] = stringsetloc(
* Miss Alphys!Delay 11
* Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message
"* Miss Alphys^1!&* Umm^1, is it OK if we have a group of 3?/%", "scr_text_slash_scr_text_gml_70_0"
);
with (obj_classscene) con = 20; } if (global.choice == 0) global.msg[0] = stringsetloc(
Face 4* Umm,Delay 11 OK.Delay 11
* You just keep doing your thing,Delay 11 Kris.Wait for inputClose Message
"\\E4* Umm^1, OK^1.&* You just keep doing your thing^1, Kris./%", "scr_text_slash_scr_text_gml_75_0"
);
break; case 104: global.msg[0] = stringsetloc(
Face 0* Alright.Delay 11
* Let's get this over with.Wait for input
"\\E0* Alright^1.&* Let's get this over with./", "scr_text_slash_scr_text_gml_80_0"
);
global.msg[1] = stringsetloc(
* We'll get more chalk.Delay 11
* Mosey back to class.Delay 11
* And then,Delay 11 Kris...Wait for input
"* We'll get more chalk^1.&* Mosey back to class^1.&* And then^1, Kris.../", "scr_text_slash_scr_text_gml_81_0"
);
global.msg[2] = stringsetloc(
Face 2* YOU'LL do our project.Wait for input
"\\E2* YOU'LL do our project./", "scr_text_slash_scr_text_gml_82_0"
);
global.msg[3] = stringsetloc(
* How's that sound?

Good BadChoice type 1
"* How's that sound?& &Good Bad\\C1 ", "scr_text_slash_scr_text_gml_83_0"
);
global.msg[4] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_86_0"
);
break; case 105: global.msg[0] = stringsetloc(
Close MessageClose Message
" %%", "scr_text_slash_scr_text_gml_90_0"
);
break; case 110: global.choicemsg[0] = stringsetloc(
#Yes
"#Yes", "scr_text_slash_scr_text_gml_92_0"
);
global.choicemsg[1] = stringsetloc(
#No
"#No", "scr_text_slash_scr_text_gml_93_0"
);
global.choicemsg[2] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_96_0"
);
global.choicemsg[3] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_97_0"
);
if (global.flag[100 got_glowshard] == 0) { global.msg[0] = stringsetloc(
* (There's something glowing inside.)Wait for input
"* (There's something glowing inside.)/", "scr_text_slash_scr_text_gml_98_0"
);
global.msg[1] = stringsetloc(
* (Take it?)Wait for input
"* (Take it?)/ ", "scr_text_slash_scr_text_gml_99_0"
);
global.msg[2] = stringsetloc(
Choice type 2
" \\C2", "scr_text_slash_scr_text_gml_100_0"
);
} else { global.msg[0] = stringsetloc(
* (It's dark inside.)Wait for inputClose Message
"* (It's dark inside.)/%", "scr_text_slash_scr_text_gml_104_0"
);
} break; case 111: ...
(global.msc);
91
                        script_execute(scr_writetext, 10, "x", 0, 0);
92
                    }
93
                    else if (dontthrowtype == 1)
94
                    {
95
                        msgsetloc(0, 
* (You fumbled and caught them.Delay 11 You can't throw these away!)Wait for inputClose Message
"* (You fumbled and caught them^1. You can't throw these away!)/%", "obj_overworldc_slash_Step_0_gml_61_0"
);
96
                        script_execute(scr_writetext, 0, "x", 0, 0);
97
                    }
98
                    else if (dontthrowtype == 2)
99
                    {
100
                        msgsetloc(0, 
* (For some reason you felt like if you throw it away...)Wait for input
"* (For some reason you felt like if you throw it away...)/", "obj_overworldc_slash_Step_0_gml_77_0"
);
101
                        msgnextloc(
* (It would be like throwing away someone's...Delay 11 ???)Wait for input
"* (It would be like throwing away someone's..^1. ???)/", "obj_overworldc_slash_Step_0_gml_78_0"
);
102
                        msgnextloc(
* (...Delay 11 but you didn't fully understand it.)Wait for inputClose Message
"* (..^1. but you didn't fully understand it.)/%", "obj_overworldc_slash_Step_0_gml_79_0_b"
);
103
                        script_execute(scr_writetext, 0, "x", 0, 0);
104
                    }
105
                    else if (dontthrowtype == 3)
106
                    {
107
                        
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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
108
                        msgsetloc(0, 
* (The seeds stick to everything and cannot be thrown away.)Wait for inputClose Message
"* (The seeds stick to everything and cannot be thrown away.)/%", "obj_overworldc_slash_Step_0_gml_85_0"
);
109
                        script_execute(scr_writetext, 0, "x", 0, 0);
110
                    }
111
                    else if (dontthrowtype == 4)
112
                    {
113
                        
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 (global.darkzone == 1) global.typer = 89; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("no_name");
114
                        if (global.litem[global.menucoord[1]] == 20)
115
                            msgsetloc(0, 
* (Couldn't.)Wait for inputClose Message
"* (Couldn't.)/%", "obj_overworldc_slash_Step_0_gml_101_0"
);
116
                        else
117
                            
scr_text
scr_text

function
scr_text(arg0)
{ switch (arg0) { case 0: break; case 10: global.choicemsg[0] = stringsetloc(
#Yes
"#Yes", "scr_text_slash_scr_text_gml_8_0"
);
global.choicemsg[1] = stringsetloc(
#No
"#No", "scr_text_slash_scr_text_gml_9_0"
);
global.choicemsg[2] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_12_0_b"
);
global.choicemsg[3] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_13_0_b"
);
global.msg[0] = stringsetloc(
* You really didn't want to throw it away.Wait for input
"* You really didn't want to throw it away./", "scr_text_slash_scr_text_gml_12_0"
);
global.msg[1] = stringsetloc(
* Throw it away anyway?Wait for input
"* Throw it away anyway?/", "scr_text_slash_scr_text_gml_13_0"
);
global.msg[2] = stringsetloc(
Choice type 2
"\\C2 ", "scr_text_slash_scr_text_gml_14_0"
);
if (global.chapter >= 2) msgsetloc(0,
* You took it from your pocket.Delay 11
* You have a very,Delay 11 very,Delay 11 bad feeling about throwing it away.Wait for input
"* You took it from your pocket^1.&* You have a \\cYvery^1, very^1, bad feeling\\c0 about throwing it away./", "scr_text_slash_scr_text_gml_19_0"
);
break; case 11: if (global.choice == 0) { global.flag[466 junkball_dropped] = 1; snd_play(snd_bageldefeat); global.msg[0] = stringsetloc(
* Hand shaking,Delay 11 you dropped the ball of junk on the ground.Wait for input
"* Hand shaking^1, you dropped the ball of junk on the ground./", "scr_text_slash_scr_text_gml_20_0"
);
global.msg[1] = stringsetloc(
* It broke into pieces.Wait for input
"* It broke into pieces./", "scr_text_slash_scr_text_gml_21_0"
);
global.msg[2] = stringsetloc(
* You felt bitter.Wait for inputClose Message
"* You felt bitter./%", "scr_text_slash_scr_text_gml_22_0"
);
script_execute(scr_litemshift, global.menucoord[1], 0); for (var i = 0; i < 12; i += 1) global.item[i] = 0; for (var i = 0; i < 48; i += 1) { global.armor[i] = 0; global.weapon[i] = 0; } } else { global.msg[0] = stringsetloc(
* You felt a feeling of relief.Wait for inputClose Message
"* You felt a feeling of relief./%", "scr_text_slash_scr_text_gml_34_0"
);
} break; case 100: global.msg[0] = stringsetloc(
* Hey, Kris!Delay 11 What's up?Delay 11
* Didja lose your pencil again?Wait for input
"* Hey, Kris^1! What's up^1?&* Didja lose your pencil again?/", "scr_text_slash_scr_text_gml_39_0"
);
global.msg[1] = stringsetloc(
Face 4* Here,Delay 11 you want the candy-cane one or the one with lights on it?Wait for input
"\\E4* Here^1, you want the candy-cane one or the one with lights on it?/", "scr_text_slash_scr_text_gml_40_0"
);
global.msg[2] = stringsetloc(
Face 1* Huh?Delay 11
* You want to be partners?Wait for input
"\\E1* Huh^1?&* You want to be partners?/", "scr_text_slash_scr_text_gml_41_0"
);
global.msg[3] = stringsetloc(
Face 4* Ummm...Delay 11 sorry...Delay 11
* Berdly already asked me...Wait for input
"\\E4* Ummm..^1. sorry..^1.&* Berdly already asked me.../", "scr_text_slash_scr_text_gml_42_0"
);
global.msg[4] = stringsetloc(
Face 0* But I could ask Ms. Alphys if we could make a group of 3!Wait for input
"\\E0* But I could ask Ms. Alphys if we could make a group of 3!/", "scr_text_slash_scr_text_gml_43_0"
);
global.msg[5] = stringsetloc(
Face 4* I'll ask if you're sure!

Not yet Yes. Ask.Choice type 1
"\\E4* I'll ask if you're sure!& &Not yet Yes. Ask.\\C1 ", "scr_text_slash_scr_text_gml_44_0"
);
global.msg[6] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_47_0"
);
break; case 101: if (global.choice == 1) { global.msg[0] = stringsetloc(
Face 0* OK,Delay 11 I'll ask!Wait for input
"\\E0* OK^1, I'll ask!/", "scr_text_slash_scr_text_gml_51_0"
);
global.msg[1] = stringsetloc(
* Miss Alphys!Delay 11
* Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message
"* Miss Alphys^1!&* Umm^1, is it OK if we have a group of 3?/%", "scr_text_slash_scr_text_gml_52_0"
);
with (obj_classscene) con = 20; } if (global.choice == 0) global.msg[0] = stringsetloc(
Face 4* Yeah,Delay 11 I'm sure there's someone else you can ask!Wait for inputClose Message
"\\E4* Yeah^1, I'm sure there's someone else you can ask!/%", "scr_text_slash_scr_text_gml_57_0"
);
break; case 102: global.msg[0] = stringsetloc(
Face 0* Do you wanna be partners?
Not yet YesChoice type 1
"\\E0* Do you wanna be partners?&Not yet Yes\\C1 ", "scr_text_slash_scr_text_gml_62_0"
);
global.msg[1] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_65_0"
);
break; case 103: if (global.choice == 1) { global.msg[0] = stringsetloc(
Face 0* OK,Delay 11 I'll ask!Wait for input
"\\E0* OK^1, I'll ask!/", "scr_text_slash_scr_text_gml_69_0"
);
global.msg[1] = stringsetloc(
* Miss Alphys!Delay 11
* Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message
"* Miss Alphys^1!&* Umm^1, is it OK if we have a group of 3?/%", "scr_text_slash_scr_text_gml_70_0"
);
with (obj_classscene) con = 20; } if (global.choice == 0) global.msg[0] = stringsetloc(
Face 4* Umm,Delay 11 OK.Delay 11
* You just keep doing your thing,Delay 11 Kris.Wait for inputClose Message
"\\E4* Umm^1, OK^1.&* You just keep doing your thing^1, Kris./%", "scr_text_slash_scr_text_gml_75_0"
);
break; case 104: global.msg[0] = stringsetloc(
Face 0* Alright.Delay 11
* Let's get this over with.Wait for input
"\\E0* Alright^1.&* Let's get this over with./", "scr_text_slash_scr_text_gml_80_0"
);
global.msg[1] = stringsetloc(
* We'll get more chalk.Delay 11
* Mosey back to class.Delay 11
* And then,Delay 11 Kris...Wait for input
"* We'll get more chalk^1.&* Mosey back to class^1.&* And then^1, Kris.../", "scr_text_slash_scr_text_gml_81_0"
);
global.msg[2] = stringsetloc(
Face 2* YOU'LL do our project.Wait for input
"\\E2* YOU'LL do our project./", "scr_text_slash_scr_text_gml_82_0"
);
global.msg[3] = stringsetloc(
* How's that sound?

Good BadChoice type 1
"* How's that sound?& &Good Bad\\C1 ", "scr_text_slash_scr_text_gml_83_0"
);
global.msg[4] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_86_0"
);
break; case 105: global.msg[0] = stringsetloc(
Close MessageClose Message
" %%", "scr_text_slash_scr_text_gml_90_0"
);
break; case 110: global.choicemsg[0] = stringsetloc(
#Yes
"#Yes", "scr_text_slash_scr_text_gml_92_0"
);
global.choicemsg[1] = stringsetloc(
#No
"#No", "scr_text_slash_scr_text_gml_93_0"
);
global.choicemsg[2] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_96_0"
);
global.choicemsg[3] = stringsetloc(
" ", "scr_text_slash_scr_text_gml_97_0"
);
if (global.flag[100 got_glowshard] == 0) { global.msg[0] = stringsetloc(
* (There's something glowing inside.)Wait for input
"* (There's something glowing inside.)/", "scr_text_slash_scr_text_gml_98_0"
);
global.msg[1] = stringsetloc(
* (Take it?)Wait for input
"* (Take it?)/ ", "scr_text_slash_scr_text_gml_99_0"
);
global.msg[2] = stringsetloc(
Choice type 2
" \\C2", "scr_text_slash_scr_text_gml_100_0"
);
} else { global.msg[0] = stringsetloc(
* (It's dark inside.)Wait for inputClose Message
"* (It's dark inside.)/%", "scr_text_slash_scr_text_gml_104_0"
);
} break; case 111: ...
(1455);
118
                        script_execute(scr_writetext, 0, "x", 0, 0);
119
                    }
120
                    else if (dontthrowtype == 5)
121
                    {
122
                        msgsetloc(0, 
* (Recently, seems like weapons can't be thrown away so easily.)Wait for inputClose Message
"* (Recently, seems like weapons can't be thrown away so easily.)/%", "obj_overworldc_slash_Step_0_gml_107_0"
);
123
                        script_execute(scr_writetext, 0, "x", 0, 0);
124
                    }
125
                }
126
            }
127
        }
128
        if (global.menuno == 3)
129
        {
130
            global.menuno = 9;
131
            script_execute(scr_litemuseb, global.menucoord[3], global.phone[global.menucoord[3]]);
132
        }
133
        if (global.menuno == 1)
134
        {
135
            global.menuno = 5;
136
            global.menucoord[5] = 0;
137
        }
138
        if (global.menuno == 0)
139
            global.menuno += (global.menucoord[0] + 1);
140
        if (global.menuno == 3)
141
        {
142
            if (_weird_mode)
143
            {
144
                global.menuno = 0;
145
            }
146
            else if (global.plot >= 550)
147
            {
148
                if (!i_ex(obj_ch5_LWF_town_cell))
149
                    instance_create(0, 0, obj_ch5_LWF_town_cell);
150
                with (obj_ch5_LWF_town_cell)
151
                    call();
152
                global.menuno = -1;
153
            }
154
            else
155
            {
156
                script_execute(scr_phonename);
157
                global.menucoord[3] = 0;
158
            }
159
        }
160
        if (global.menuno == 1)
161
        {
162
            if (hasitems)
163
            {
164
                if (global.litem[0] != 0)
165
                {
166
                    global.menucoord[1] = 0;
167
                    script_execute(scr_litemname);
168
                }
169
                else
170
                {
171
                    global.menuno = 0;
172
                }
173
            }
174
            else
175
            {
176
                global.menuno = 0;
177
            }
178
        }
179
    }
180
    if (up_p())
181
    {
182
        if (global.menuno == 0)
183
        {
184
            if (global.menucoord[0] != 0)
185
                global.menucoord[0] -= 1;
186
        }
187
        if (global.menuno == 1)
188
        {
189
            if (global.menucoord[1] != 0)
190
                global.menucoord[1] -= 1;
191
        }
192
        if (global.menuno == 3)
193
        {
194
            if (global.menucoord[3] != 0)
195
                global.menucoord[3] -= 1;
196
        }
197
    }
198
    if (down_p())
199
    {
200
        if (global.menuno == 0)
201
        {
202
            if (global.menucoord[0] != 2)
203
                global.menucoord[0] += 1;
204
        }
205
        if (global.menuno == 1)
206
        {
207
            if (global.menucoord[1] != 7)
208
            {
209
                if (global.litem[global.menucoord[1] + 1] != 0)
210
                    global.menucoord[1] += 1;
211
            }
212
        }
213
        if (global.menuno == 3)
214
        {
215
            if (global.menucoord[3] != 7)
216
            {
217
                if (global.phone[global.menucoord[3] + 1] != 0)
218
                    global.menucoord[3] += 1;
219
            }
220
        }
221
    }
222
    if (button2_p() && buffer >= 0)
223
    {
224
        if (global.menuno == 0)
225
        {
226
            global.menuno = -1;
227
            global.interact = 0;
228
        }
229
        else if (global.menuno <= 3)
230
        {
231
            global.menuno = 0;
232
        }
233
        if (global.menuno == 5)
234
            global.menuno = 1;
235
    }
236
    if (right_p())
237
    {
238
        if (global.menuno == 5)
239
        {
240
            if (global.menucoord[5] != 2)
241
                global.menucoord[5] += 1;
242
        }
243
    }
244
    if (left_p())
245
    {
246
        if (global.menuno == 5)
247
        {
248
            if (global.menucoord[5] != 0)
249
                global.menucoord[5] -= 1;
250
        }
251
    }
252
    if (button3_p() && threebuffer <= 0)
253
    {
254
        if (global.menuno == 0)
255
        {
256
            global.menuno = -1;
257
            global.interact = 0;
258
            with (obj_mainchara)
259
                threebuffer = 2;
260
        }
261
    }
262
    if (currentmenu < global.menuno && global.menuno != 9)
263
    {
264
        selnoise = 1;
265
    }
266
    else if (global.menuno >= 0 && global.menuno < 6)
267
    {
268
        if (currentspot != global.menucoord[global.menuno])
269
            movenoise = 1;
270
    }
271
}
272
if (global.menuno == 9 && instance_exists(obj_dialoguer) == false)
273
{
274
    global.menuno = -1;
275
    global.interact = 0;
276
}
277
if (selnoise == 1)
278
{
279
    snd_play(snd_select);
280
    selnoise = 0;
281
}
282
if (movenoise == 1)
283
{
284
    snd_play(snd_menumove);
285
    movenoise = 0;
286
}
287
if (
scr_debug
scr_debug

function
scr_debug()
{ return global.debug == 1; }
())
288
{
289
    if (sunkus_kb_check_pressed(ord("S")))
290
        instance_create(0, 0, obj_savemenu);
291
    if (sunkus_kb_check_pressed(ord("F")))
292
        room_speed = 58;
293
    if (sunkus_kb_check_pressed(ord("L")))
294
        
scr_load
scr_load

function
scr_load()
{ snd_free_all(); filechoicebk = global.filechoice;
scr_gamestart();
global.filechoice = filechoicebk; file = "filech" + string(global.chapter) + "_" + string(global.filechoice); myfileid = ossafe_file_text_open_read(file); global.truename = ossafe_file_text_read_string(myfileid); ossafe_file_text_readln(myfileid); if (global.is_console) { var othername_list =
scr_ds_list_read(myfileid);
for (var i = 0; i < ds_list_size(othername_list); i += 1) global.othername[i] = ds_list_find_value(othername_list, i); ds_list_destroy(othername_list); ossafe_file_text_readln(myfileid); } else { for (var i = 0; i < 6; i += 1) { global.othername[i] = ossafe_file_text_read_string(myfileid); ossafe_file_text_readln(myfileid); } } global.char[0] = ossafe_file_text_read_real(myfileid); ossafe_file_text_readln(myfileid); global.char[1] = ossafe_file_text_read_real(myfileid); ossafe_file_text_readln(myfileid); global.char[2] = ossafe_file_text_read_real(myfileid); ossafe_file_text_readln(myfileid); global.gold = ossafe_file_text_read_real(myfileid); ossafe_file_text_readln(myfileid); global.xp = ossafe_file_text_read_real(myfileid); ossafe_file_text_readln(myfileid); global.lv = ossafe_file_text_read_real(myfileid); ossafe_file_text_readln(myfileid); global.inv = ossafe_file_text_read_real(myfileid); ossafe_file_text_readln(myfileid); global.invc = ossafe_file_text_read_real(myfileid); ossafe_file_text_readln(myfileid); global.darkzone = ossafe_file_text_read_real(myfileid); ossafe_file_text_readln(myfileid); if (global.is_console) { var hp_list =
scr_ds_list_read(myfileid);
for (var i = 0; i < ds_list_size(hp_list); i += 1) global.hp[i] = ds_list_find_value(hp_list, i); ds_list_destroy(hp_list); ossafe_file_text_readln(myfileid); var maxhp_list =
scr_ds_list_read(myfileid);
for (var i = 0; i < ds_list_size(maxhp_list); i += 1) global.maxhp[i] = ds_list_find_value(maxhp_list, i); ds_list_destroy(maxhp_list); ossafe_file_text_readln(myfileid); var at_list =
scr_ds_list_read(myfileid);
for (var i = 0; i < ds_list_size(at_list); i += 1) global.at[i] = ds_list_find_value(at_list, i); ds_list_destroy(at_list); ossafe_file_text_readln(myfileid); var df_list =
scr_ds_list_read(myfileid);
for (var i = 0; i < ds_list_size(df_list); i += 1) global.df[i] = ds_list_find_value(df_list, i); ds_list_destroy(df_list); ossafe_file_text_readln(myfileid); var mag_list =
scr_ds_list_read(myfileid);
for (var i = 0; i < ds_list_size(mag_list); i += 1) global.mag[i] = ds_list_find_value(mag_list, i); ds_list_destroy(mag_list); ossafe_file_text_readln(myfileid); var guts_list =
scr_ds_list_read(myfileid);
for (var i = 0; i < ds_list_size(guts_list); i += 1) global.guts[i] = ds_list_find_value(guts_list, i); ds_list_destroy(guts_list); ossafe_file_text_readln(myfileid); var charweapon_list =
scr_ds_list_read(myfileid);
for (var i = 0; i < ds_list_size(charweapon_list); i += 1) global.charweapon[i] = ds_list_find_value(charweapon_list, i); ds_list_destroy(charweapon_list); ossafe_file_text_readln(myfileid); var chararmor1_list =
scr_ds_list_read(myfileid);
for (var i = 0; i < ds_list_size(chararmor1_list); i += 1) global.chararmor1[i] = ds_list_find_value(chararmor1_list, i); ds_list_destroy(chararmor1_list); ossafe_file_text_readln(myfileid); var chararmor2_list =
scr_ds_list_read(myfileid);
for (var i = 0; i < ds_list_size(chararmor2_list); i += 1) global.chararmor2[i] = ds_list_find_value(chararmor2_list, i); ds_list_destroy(chararmor2_list); ossafe_file_text_readln(myfileid); var weaponstyle_list =
scr_ds_list_read(myfileid);
for (var i = 0; i < ds_list_size(weaponstyle_list); i += 1) global.weaponstyle[i] = ds_list_find_value(weaponstyle_list, i); ds_list_destroy(weaponstyle_list); ossafe_file_text_readln(myfileid); } for (var i = 0; i < 5; i += 1) { if (!global.is_console) { ...
();
295
    if (sunkus_kb_check_pressed(ord("R")) && sunkus_kb_check(vk_backspace))
296
        game_restart_true();
297
    if (sunkus_kb_check_pressed(ord("R")))
298
    {
299
        room_restart();
300
        global.interact = 0;
301
    }
302
}
303
threebuffer--;