Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_litemuseb

(view raw script w/o annotations or w/e)
1
function 
scr_litemuseb
scr_litemuseb

function
scr_litemuseb(arg0, arg1)
{ var is_weapon = get_weapon_by_lw_id(arg1) != -4; if (is_weapon && !
scr_lweapon_can_equip(arg1))
{
scr_speaker("no_name");
msgsetloc(0,
* For some reason you couldn't equip it.Wait for inputClose Message
"* For some reason you couldn't equip it./%", "scr_litemuseb_slash_scr_litemuseb_gml_10_0"
);
scr_writetext(0, "x", 0, 0);
exit; } switch (arg1) { case 0: global.msg[0] = stringsetloc(
* You grasped at nothing.Wait for inputClose MessageClose Message
"* You grasped at nothing./%%", "scr_litemuseb_slash_scr_litemuseb_gml_6_0"
);
break; case 1: global.msg[0] = stringsetloc(
* You drank the hot chocolate.Delay 11
* It tasted wonderful.Delay 11
* Your throat tightened...Wait for inputClose Message
"* You drank the hot chocolate^1.&* It tasted wonderful^1.&* Your throat tightened.../%", "scr_litemuseb_slash_scr_litemuseb_gml_9_0"
);
snd_play(snd_swallow);
scr_writetext(0, "x", 0, 0);
script_execute(scr_litemshift, arg0, 0); with (obj_event_manager) trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_12); break; case 2: global.msg[0] = stringsetloc(
* You equipped the Pencil.Wait for inputClose Message
"* You equipped the Pencil./%", "scr_litemuseb_slash_scr_litemuseb_gml_18_0"
);
scr_lweaponeq(arg0, arg1);
snd_play(snd_item);
scr_writetext(0, "x", 0, 0);
break; case 3: global.msg[0] = stringsetloc(
* You re-applied the bandage.
"* You re-applied the bandage.", "scr_litemuseb_slash_scr_litemuseb_gml_26_0"
);
script_execute(scr_lrecoitem, 1); script_execute(scr_litemshift, arg0, 0); break; case 4: global.msg[0] = stringsetloc(
* You held out the flowers.Delay 11
* A floral scent fills the air.Delay 11
* Nothing happened.Wait for inputClose Message
"* You held out the flowers^1.&* A floral scent fills the air^1.&* Nothing happened./%", "scr_litemuseb_slash_scr_litemuseb_gml_34_0"
);
scr_writetext(0, "x", 0, 0);
break; case 5: global.msg[0] = stringsetloc(
* You looked at the junk ball in admiration.Delay 11
* Nothing happened.Wait for inputClose Message
"* You looked at the junk ball in admiration^1.&* Nothing happened./%", "scr_litemuseb_slash_scr_litemuseb_gml_42_0"
);
scr_writetext(0, "x", 0, 0);
break; case 6: global.msg[0] = stringsetloc(
* You equipped the Halloween Pencil.Wait for inputClose Message
"* You equipped the Halloween Pencil./%", "scr_litemuseb_slash_scr_litemuseb_gml_48_0"
);
scr_lweaponeq(arg0, arg1);
snd_play(snd_item);
scr_writetext(0, "x", 0, 0);
break; case 7: global.msg[0] = stringsetloc(
* You equipped the Lucky Pencil.Wait for inputClose Message
"* You equipped the Lucky Pencil./%", "scr_litemuseb_slash_scr_litemuseb_gml_56_0"
);
scr_lweaponeq(arg0, arg1);
snd_play(snd_item);
scr_writetext(0, "x", 0, 0);
break; case 8: global.msg[0] = stringsetloc(
* You used the Egg.Wait for inputClose Message
"* You used the Egg./%", "scr_litemuseb_slash_scr_litemuseb_gml_63_0"
);
snd_play(snd_egg);
scr_writetext(0, "x", 0, 0);
break; case 9: msgsetloc(0,
* You held the cards.Delay 11
* They felt flimsy between your fingers.Wait for inputClose Message
"* You held the cards^1.&* They felt flimsy between your fingers./%", "scr_litemuseb_slash_scr_litemuseb_gml_69_0"
);
scr_writetext(0, "x", 0, 0);
break; case 10: var consume_item = 0; var have_susie =
scr_havechar(2);
var sans_npc = 0; if (i_ex(obj_marker)) { with (obj_marker) { if (sprite_index == spr_sans_d && abs(obj_mainchara.x - x) <= 20 && abs(obj_mainchara.y - y) <= 40) sans_npc = 1; } } var alphys_npc = 0; if (i_ex(obj_npc_sign)) { with (obj_npc_sign) { if (sprite_index == spr_alphysd && abs(obj_mainchara.x - x) <= 20 && abs(obj_mainchara.y - y) <= 40) alphys_npc = 1; } } if (sans_npc) { consume_item = 1; global.lgold += 5; global.flag[342 chocolates_who_gave] = 4;
scr_speaker("sans");
msgsetloc(0,
* what? a heart shaped box of chocolates?Wait for input
"* what? a heart shaped box of chocolates?/", "scr_litemuseb_slash_scr_litemuseb_gml_107_0"
);
msgnextloc(
Face 3* oh,Delay 11 i get it.Wait for input
"\\E3* oh^1, i get it./", "scr_litemuseb_slash_scr_litemuseb_gml_108_0"
);
msgnextloc(
Face 2* heh.Wait for input
"\\E2* heh./", "scr_litemuseb_slash_scr_litemuseb_gml_109_0"
);
msgnextloc(
* wow.Wait for input
"* wow./", "scr_litemuseb_slash_scr_litemuseb_gml_110_0"
);
msgnextloc(
Face 0* you're really...Wait for input
"\\E0* you're really.../", "scr_litemuseb_slash_scr_litemuseb_gml_111_0"
);
msgnextloc(
* hm.Wait for input
"* hm./", "scr_litemuseb_slash_scr_litemuseb_gml_112_0"
);
msgnextloc(
Face 1* alright,Delay 11 alright.Wait for input
"\\E1* alright^1, alright./", "scr_litemuseb_slash_scr_litemuseb_gml_113_0"
);
msgnextloc(
Face 0* ...Delay 11 okay.Wait for input
"\\E0* ..^1. okay./", "scr_litemuseb_slash_scr_litemuseb_gml_114_0"
);
msgnextloc(
Face 3* you wanna make a return on these,Delay 11 don't you?Wait for input
"\\E3* you wanna make a return on these^1, don't you?/", "scr_litemuseb_slash_scr_litemuseb_gml_115_0"
);
msgnextloc(
Face 5* okay,Delay 11 okay,Delay 11 no need to break my heart.Wait for input
"\\E5* okay^1, okay^1, no need to break my heart./", "scr_litemuseb_slash_scr_litemuseb_gml_116_0_b"
);
msgnextloc(
Face 0* here's five dollars.Wait for input
"\\E0* here's five dollars./", "scr_litemuseb_slash_scr_litemuseb_gml_117_0_b"
);
...
(arg0, arg1)
2
{
3
    var is_weapon = get_weapon_by_lw_id(arg1) != -4;
4
    if (is_weapon && !
scr_lweapon_can_equip
scr_lweapon_can_equip

function
scr_lweapon_can_equip(arg0)
{ var weapon = get_weapon_by_lw_id(arg0); var have_dw_weapon = false; if (weapon == -4) show_debug_message("Error: couldn't find light world weapon by id " + string(arg0)); else have_dw_weapon =
scr_weaponcheck_inventory(weapon.dw_id) == 1 || 
scr_weaponcheck_equipped_any(weapon.dw_id) >= 1;
return have_dw_weapon; } function scr_equip_dw_weapon_by_lw_id(arg0) { var weapon = get_weapon_by_lw_id(arg0); var old_equip = global.charweapon[1]; global.charweapon[1] = weapon.dw_id; for (var i = 0; i < array_length_1d(global.weapon); i++) { if (global.weapon[i] == weapon.dw_id) { global.weapon[i] = old_equip; break; } }
scr_weaponinfo_mine();
scr_weaponinfo_all();
} function scr_equip_lw_weapon_by_dw_id(arg0) { var weapon = get_weapon_by_dw_id(arg0); global.lweapon = weapon.lw_id; var weapon_list = get_lw_dw_weapon_list(); for (var i = 0; i < array_length_1d(global.litem); i++) { for (var j = 0; j < array_length_1d(weapon_list); j++) { if (global.litem[i] == weapon_list[j].lw_id)
scr_litemremove(global.litem[i]);
} } } function get_weapon_by_lw_id(arg0) { var weapon = -4; var weapon_id = arg0; var weapon_list = get_lw_dw_weapon_list(); for (var i = 0; i < array_length_1d(weapon_list); i++) { if (weapon_id == weapon_list[i].lw_id) { weapon = weapon_list[i]; break; } } if (weapon == -4) weapon = weapon_list[0]; return weapon; } function get_weapon_by_dw_id(arg0) { var weapon = -4; var weapon_id = arg0; var weapon_list = get_lw_dw_weapon_list(); for (var i = 0; i < array_length_1d(weapon_list); i++) { if (weapon_id == weapon_list[i].dw_id) { weapon = weapon_list[i]; break; } } if (weapon == -4) weapon = weapon_list[0]; return weapon; } function get_lw_weapon_strength(arg0) { return get_weapon_by_lw_id(arg0).lw_strength; } function get_lw_dw_weapon_list() { var weapon_list = [new lw_dw_weapon(2, 1), new lw_dw_weapon(6, 5), new lw_dw_weapon(7, 8), new lw_dw_weapon(12, 14), new lw_dw_weapon(13, 16), new lw_dw_weapon(16, 23, 2), new lw_dw_weapon(17, 26, 16), new lw_dw_weapon(15, 50), new lw_dw_weapon(18, 53)]; return weapon_list; } function lw_dw_weapon(arg0, arg1, arg2 = 1) constructor { lw_id = arg0; dw_id = arg1; lw_strength = arg2; }
(arg1))
5
    {
6
        
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 == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; 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; ...
("no_name");
7
        msgsetloc(0, 
* For some reason you couldn't equip it.Wait for inputClose Message
"* For some reason you couldn't equip it./%", "scr_litemuseb_slash_scr_litemuseb_gml_10_0"
);
8
        
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
9
        exit;
10
    }
11
    switch (arg1)
12
    {
13
        case 0:
14
            global.msg[0] = stringsetloc(
* You grasped at nothing.Wait for inputClose MessageClose Message
"* You grasped at nothing./%%", "scr_litemuseb_slash_scr_litemuseb_gml_6_0"
);
15
            break;
16
        case 1:
17
            global.msg[0] = stringsetloc(
* You drank the hot chocolate.Delay 11
* It tasted wonderful.Delay 11
* Your throat tightened...Wait for inputClose Message
"* You drank the hot chocolate^1.&* It tasted wonderful^1.&* Your throat tightened.../%", "scr_litemuseb_slash_scr_litemuseb_gml_9_0"
);
18
            snd_play(snd_swallow);
19
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
20
            script_execute(scr_litemshift, arg0, 0);
21
            with (obj_event_manager)
22
                trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_12);
23
            break;
24
        case 2:
25
            global.msg[0] = stringsetloc(
* You equipped the Pencil.Wait for inputClose Message
"* You equipped the Pencil./%", "scr_litemuseb_slash_scr_litemuseb_gml_18_0"
);
26
            
scr_lweaponeq
scr_lweaponeq

function
scr_lweaponeq(arg0, arg1)
{ if (arg0 >= 0) global.litem[arg0] = global.lweapon; global.lweapon = arg1; global.lwstrength = get_lw_weapon_strength(global.lweapon); script_execute(scr_litemname); if (arg0 != -1) { with (obj_event_manager) trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_26); } } enum UnknownEnum { Value_0, Value_26 = 26 }
(arg0, arg1);
27
            snd_play(snd_item);
28
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
29
            break;
30
        case 3:
31
            global.msg[0] = stringsetloc(
* You re-applied the bandage.
"* You re-applied the bandage.", "scr_litemuseb_slash_scr_litemuseb_gml_26_0"
);
32
            script_execute(scr_lrecoitem, 1);
33
            script_execute(scr_litemshift, arg0, 0);
34
            break;
35
        case 4:
36
            global.msg[0] = stringsetloc(
* You held out the flowers.Delay 11
* A floral scent fills the air.Delay 11
* Nothing happened.Wait for inputClose Message
"* You held out the flowers^1.&* A floral scent fills the air^1.&* Nothing happened./%", "scr_litemuseb_slash_scr_litemuseb_gml_34_0"
);
37
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
38
            break;
39
        case 5:
40
            global.msg[0] = stringsetloc(
* You looked at the junk ball in admiration.Delay 11
* Nothing happened.Wait for inputClose Message
"* You looked at the junk ball in admiration^1.&* Nothing happened./%", "scr_litemuseb_slash_scr_litemuseb_gml_42_0"
);
41
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
42
            break;
43
        case 6:
44
            global.msg[0] = stringsetloc(
* You equipped the Halloween Pencil.Wait for inputClose Message
"* You equipped the Halloween Pencil./%", "scr_litemuseb_slash_scr_litemuseb_gml_48_0"
);
45
            
scr_lweaponeq
scr_lweaponeq

function
scr_lweaponeq(arg0, arg1)
{ if (arg0 >= 0) global.litem[arg0] = global.lweapon; global.lweapon = arg1; global.lwstrength = get_lw_weapon_strength(global.lweapon); script_execute(scr_litemname); if (arg0 != -1) { with (obj_event_manager) trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_26); } } enum UnknownEnum { Value_0, Value_26 = 26 }
(arg0, arg1);
46
            snd_play(snd_item);
47
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
48
            break;
49
        case 7:
50
            global.msg[0] = stringsetloc(
* You equipped the Lucky Pencil.Wait for inputClose Message
"* You equipped the Lucky Pencil./%", "scr_litemuseb_slash_scr_litemuseb_gml_56_0"
);
51
            
scr_lweaponeq
scr_lweaponeq

function
scr_lweaponeq(arg0, arg1)
{ if (arg0 >= 0) global.litem[arg0] = global.lweapon; global.lweapon = arg1; global.lwstrength = get_lw_weapon_strength(global.lweapon); script_execute(scr_litemname); if (arg0 != -1) { with (obj_event_manager) trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_26); } } enum UnknownEnum { Value_0, Value_26 = 26 }
(arg0, arg1);
52
            snd_play(snd_item);
53
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
54
            break;
55
        case 8:
56
            global.msg[0] = stringsetloc(
* You used the Egg.Wait for inputClose Message
"* You used the Egg./%", "scr_litemuseb_slash_scr_litemuseb_gml_63_0"
);
57
            snd_play(snd_egg);
58
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
59
            break;
60
        case 9:
61
            msgsetloc(0, 
* You held the cards.Delay 11
* They felt flimsy between your fingers.Wait for inputClose Message
"* You held the cards^1.&* They felt flimsy between your fingers./%", "scr_litemuseb_slash_scr_litemuseb_gml_69_0"
);
62
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
63
            break;
64
        case 10:
65
            var consume_item = 0;
66
            var have_susie = 
scr_havechar
scr_havechar

function
scr_havechar(arg0)
{ var checker = arg0; if (checker == "susie" || checker == "su" || checker == "s") checker = 2; if (checker == "ralsei" || checker == "ra" || checker == "r") checker = 3; if (checker == "noelle" || checker == "no" || checker == "n") checker = 4; _rreturn = 0; if (global.char[0] == checker) _rreturn = 1; if (global.char[1] == checker) _rreturn = 1; if (global.char[2] == checker) _rreturn = 1; return _rreturn; }
(2);
67
            var sans_npc = 0;
68
            if (i_ex(obj_marker))
69
            {
70
                with (obj_marker)
71
                {
72
                    if (sprite_index == spr_sans_d && abs(obj_mainchara.x - x) <= 20 && abs(obj_mainchara.y - y) <= 40)
73
                        sans_npc = 1;
74
                }
75
            }
76
            var alphys_npc = 0;
77
            if (i_ex(obj_npc_sign))
78
            {
79
                with (obj_npc_sign)
80
                {
81
                    if (sprite_index == spr_alphysd && abs(obj_mainchara.x - x) <= 20 && abs(obj_mainchara.y - y) <= 40)
82
                        alphys_npc = 1;
83
                }
84
            }
85
            if (sans_npc)
86
            {
87
                consume_item = 1;
88
                global.lgold += 5;
89
                global.flag[342 chocolates_who_gave] = 4;
90
                
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 == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; 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; ...
("sans");
91
                msgsetloc(0, 
* what? a heart shaped box of chocolates?Wait for input
"* what? a heart shaped box of chocolates?/", "scr_litemuseb_slash_scr_litemuseb_gml_107_0"
);
92
                msgnextloc(
Face 3* oh,Delay 11 i get it.Wait for input
"\\E3* oh^1, i get it./", "scr_litemuseb_slash_scr_litemuseb_gml_108_0"
);
93
                msgnextloc(
Face 2* heh.Wait for input
"\\E2* heh./", "scr_litemuseb_slash_scr_litemuseb_gml_109_0"
);
94
                msgnextloc(
* wow.Wait for input
"* wow./", "scr_litemuseb_slash_scr_litemuseb_gml_110_0"
);
95
                msgnextloc(
Face 0* you're really...Wait for input
"\\E0* you're really.../", "scr_litemuseb_slash_scr_litemuseb_gml_111_0"
);
96
                msgnextloc(
* hm.Wait for input
"* hm./", "scr_litemuseb_slash_scr_litemuseb_gml_112_0"
);
97
                msgnextloc(
Face 1* alright,Delay 11 alright.Wait for input
"\\E1* alright^1, alright./", "scr_litemuseb_slash_scr_litemuseb_gml_113_0"
);
98
                msgnextloc(
Face 0* ...Delay 11 okay.Wait for input
"\\E0* ..^1. okay./", "scr_litemuseb_slash_scr_litemuseb_gml_114_0"
);
99
                msgnextloc(
Face 3* you wanna make a return on these,Delay 11 don't you?Wait for input
"\\E3* you wanna make a return on these^1, don't you?/", "scr_litemuseb_slash_scr_litemuseb_gml_115_0"
);
100
                msgnextloc(
Face 5* okay,Delay 11 okay,Delay 11 no need to break my heart.Wait for input
"\\E5* okay^1, okay^1, no need to break my heart./", "scr_litemuseb_slash_scr_litemuseb_gml_116_0_b"
);
101
                msgnextloc(
Face 0* here's five dollars.Wait for input
"\\E0* here's five dollars./", "scr_litemuseb_slash_scr_litemuseb_gml_117_0_b"
);
102
                
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("no_name", 0);
103
                msgnextloc(
* (You traded the chocolates for 5 dollars.)Wait for inputClose Message
"* (You traded the chocolates for 5 dollars.)/%", "scr_litemuseb_slash_scr_litemuseb_gml_119_0"
);
104
            }
105
            else if (alphys_npc)
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 == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; 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; ...
("no_name");
108
                msgsetloc(0, 
* (You could give Alphys the chocolate if you talk to her.)Wait for inputClose Message
"* (You could give Alphys the chocolate if you talk to her.)/%", "scr_litemuseb_slash_scr_litemuseb_gml_123_0"
);
109
            }
110
            else if (have_susie)
111
            {
112
                consume_item = 1;
113
                global.lhp = 19;
114
                global.flag[342 chocolates_who_gave] = 2;
115
                
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 == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; 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; ...
("susie");
116
                msgsetloc(0, 
Face 7* Woah,Delay 11 Kris,Delay 11 where the hell'd you get that?Wait for input
"\\E7* Woah^1, Kris^1, where the hell'd you get that?/", "scr_litemuseb_slash_scr_litemuseb_gml_131_0"
);
117
                msgnextloc(
Face 6* ...Delay 11 someone gave it to you?Wait for input
"\\E6* ..^1. someone gave it to you?/", "scr_litemuseb_slash_scr_litemuseb_gml_132_0"
);
118
                msgnextloc(
Face Y* HAHAHA!!Delay 11 YEAH RIGHT!!!Delay 11 You stole it,Delay 11 didn't you!?Wait for input
"\\EY* HAHAHA!^1! YEAH RIGHT!!^1! You stole it^1, didn't you!?/", "scr_litemuseb_slash_scr_litemuseb_gml_133_0"
);
119
                msgnextloc(
Face 2* Well,Delay 11 c'mon!!Delay 11 Let's eat it and hide the evidence!!Wait for input
"\\E2* Well^1, c'mon!^1! Let's eat it and hide the evidence!!/", "scr_litemuseb_slash_scr_litemuseb_gml_134_0"
);
120
                
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("no_name", 0);
121
                msgnextloc(
* (You and Susie shared the heart-shaped box of candies.)Wait for input
"* (You and Susie shared the heart-shaped box of candies.)/", "scr_litemuseb_slash_scr_litemuseb_gml_136_0_b"
);
122
                msgnextloc(
* (Both of you had a feeling in your chest...)Wait for input
"* (Both of you had a feeling in your chest...)/", "scr_litemuseb_slash_scr_litemuseb_gml_137_0_b"
);
123
                
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("susie", 12);
124
                msgnextloc(
Face C* Ow,Delay 11 my stomach...Wait for input
"\\EC* Ow^1, my stomach.../", "scr_litemuseb_slash_scr_litemuseb_gml_139_0"
);
125
                
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("no_name", 0);
126
                msgnextloc(
* (...Delay 11 that you shouldn't have eaten all of it.)Wait for inputClose Message
"* (..^1. that you shouldn't have eaten all of it.)/%", "scr_litemuseb_slash_scr_litemuseb_gml_141_0"
);
127
            }
128
            else
129
            {
130
                consume_item = 1;
131
                global.lhp = 19;
132
                global.flag[342 chocolates_who_gave] = 1;
133
                
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 == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; 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; ...
("no_name");
134
                msgsetloc(0, 
* (You unhesitatingly devoured the box of heart shaped candies.)Wait for input
"* (You unhesitatingly devoured the box of heart shaped candies.)/", "scr_litemuseb_slash_scr_litemuseb_gml_149_0"
);
135
                msgnextloc(
* (Your guts are being destroyed.)Wait for input
"* (Your guts are being destroyed.)/", "scr_litemuseb_slash_scr_litemuseb_gml_150_0"
);
136
                msgnextloc(
* (You accept this destruction as part of life...)Wait for inputClose Message
"* (You accept this destruction as part of life...)/%", "scr_litemuseb_slash_scr_litemuseb_gml_151_0"
);
137
                
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
138
            }
139
            d_make();
140
            if (consume_item)
141
                script_execute(scr_litemshift, arg0, 0);
142
            break;
143
        case 11:
144
            
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 == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; 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; ...
("no_name");
145
            msgsetloc(0, 
* It doesn't seem very useful.Wait for inputClose Message
"* It doesn't seem very useful./%", "scr_itemuse_slash_scr_itemuse_gml_629_0"
);
146
            if (
scr_flag_get
scr_flag_get

function
scr_flag_get(arg0)
{ var flag_value = global.flag[arg0]; return flag_value; } function scr_flag_name_get(arg0) { if (!global.is_console) { var v = global.flagname[arg0]; return is_undefined(v) ? "*unknown flag*" : v; } else { return ""; } } function scr_getflag(arg0) { return
scr_flag_get(arg0);
}
(1623) == 0)
147
            {
148
                var holiday_rooms = [107, 48, 49, 50, 52, 53, 54];
149
                var is_holiday_room = false;
150
                for (var i = 0; i < array_length(holiday_rooms); i++)
151
                {
152
                    if (room == holiday_rooms[i])
153
                    {
154
                        is_holiday_room = true;
155
                        break;
156
                    }
157
                }
158
                if (is_holiday_room)
159
                {
160
                    
scr_flag_set
scr_flag_set

function
scr_flag_set(arg0, arg1)
{ global.flag[arg0] = arg1; if (
scr_debug())
show_debug_message("*** flag [" + string(arg0) + "] updated: " + string(arg1) + " | " + scr_flag_name_get(arg0)); } function scr_setflag(arg0, arg1) {
scr_flag_set(arg0, arg1);
}
(1623, 1);
161
                    
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 == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; 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; ...
("no_name");
162
                    msgsetloc(0, 
* You looked through the glass.Wait for input
"* You looked through the glass./", "scr_litemuseb_slash_scr_litemuseb_gml_209_0"
);
163
                    msgnextloc(
* For some strange reason,Delay 11 for just a brief moment...Wait for input
"* For some strange reason^1, for just a brief moment.../", "scr_litemuseb_slash_scr_litemuseb_gml_210_0"
);
164
                    msgnextloc(
* You thought you saw Noelle close against you,Delay 11 whispering.Wait for input
"* You thought you saw Noelle close against you^1, whispering./", "scr_litemuseb_slash_scr_litemuseb_gml_211_0"
);
165
                    msgnextloc(
* You put the glass to your ear...Wait for input
"* You put the glass to your ear.../", "scr_litemuseb_slash_scr_litemuseb_gml_212_0"
);
166
                    msgnextloc(
* ...Delay 11 of course,Delay 11 that didn't do anything...Wait for inputClose Message
"* ..^1. of course^1, that didn't do anything.../%", "scr_litemuseb_slash_scr_litemuseb_gml_213_0"
);
167
                }
168
            }
169
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
170
            break;
171
        case 12:
172
            global.msg[0] = stringsetloc(
* You equipped the Eraser.Wait for inputClose Message
"* You equipped the Eraser./%", "scr_litemuseb_slash_scr_litemuseb_gml_221_0"
);
173
            
scr_lweaponeq
scr_lweaponeq

function
scr_lweaponeq(arg0, arg1)
{ if (arg0 >= 0) global.litem[arg0] = global.lweapon; global.lweapon = arg1; global.lwstrength = get_lw_weapon_strength(global.lweapon); script_execute(scr_litemname); if (arg0 != -1) { with (obj_event_manager) trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_26); } } enum UnknownEnum { Value_0, Value_26 = 26 }
(arg0, arg1);
174
            snd_play(snd_item);
175
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
176
            break;
177
        case 13:
178
            global.msg[0] = stringsetloc(
* You equipped the Mech. Pencil.Wait for inputClose Message
"* You equipped the Mech. Pencil./%", "scr_litemuseb_slash_scr_litemuseb_gml_228_0"
);
179
            
scr_lweaponeq
scr_lweaponeq

function
scr_lweaponeq(arg0, arg1)
{ if (arg0 >= 0) global.litem[arg0] = global.lweapon; global.lweapon = arg1; global.lwstrength = get_lw_weapon_strength(global.lweapon); script_execute(scr_litemname); if (arg0 != -1) { with (obj_event_manager) trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_26); } } enum UnknownEnum { Value_0, Value_26 = 26 }
(arg0, arg1);
180
            snd_play(snd_item);
181
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
182
            break;
183
        case 15:
184
            global.msg[0] = stringsetloc(
* You equipped the Holiday Pencil.Wait for inputClose Message
"* You equipped the Holiday Pencil./%", "scr_litemuseb_slash_scr_litemuseb_gml_235_0"
);
185
            
scr_lweaponeq
scr_lweaponeq

function
scr_lweaponeq(arg0, arg1)
{ if (arg0 >= 0) global.litem[arg0] = global.lweapon; global.lweapon = arg1; global.lwstrength = get_lw_weapon_strength(global.lweapon); script_execute(scr_litemname); if (arg0 != -1) { with (obj_event_manager) trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_26); } } enum UnknownEnum { Value_0, Value_26 = 26 }
(arg0, arg1);
186
            snd_play(snd_item);
187
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
188
            break;
189
        case 16:
190
            global.msg[0] = stringsetloc(
* You equipped the CactusNeedle.Wait for inputClose Message
"* You equipped the CactusNeedle./%", "scr_litemuseb_slash_scr_litemuseb_gml_242_0"
);
191
            
scr_lweaponeq
scr_lweaponeq

function
scr_lweaponeq(arg0, arg1)
{ if (arg0 >= 0) global.litem[arg0] = global.lweapon; global.lweapon = arg1; global.lwstrength = get_lw_weapon_strength(global.lweapon); script_execute(scr_litemname); if (arg0 != -1) { with (obj_event_manager) trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_26); } } enum UnknownEnum { Value_0, Value_26 = 26 }
(arg0, arg1);
192
            snd_play(snd_item);
193
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
194
            break;
195
        case 17:
196
            global.msg[0] = stringsetloc(
* You equipped the BlackShard.Wait for inputClose Message
"* You equipped the BlackShard./%", "scr_litemuseb_slash_scr_litemuseb_gml_249_0"
);
197
            
scr_lweaponeq
scr_lweaponeq

function
scr_lweaponeq(arg0, arg1)
{ if (arg0 >= 0) global.litem[arg0] = global.lweapon; global.lweapon = arg1; global.lwstrength = get_lw_weapon_strength(global.lweapon); script_execute(scr_litemname); if (arg0 != -1) { with (obj_event_manager) trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_26); } } enum UnknownEnum { Value_0, Value_26 = 26 }
(arg0, arg1);
198
            snd_play(snd_item);
199
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
200
            break;
201
        case 18:
202
            global.msg[0] = stringsetloc(
* You equipped the QuillPen.Wait for inputClose Message
"* You equipped the QuillPen./%", "scr_litemuseb_slash_scr_litemuseb_gml_256_0"
);
203
            
scr_lweaponeq
scr_lweaponeq

function
scr_lweaponeq(arg0, arg1)
{ if (arg0 >= 0) global.litem[arg0] = global.lweapon; global.lweapon = arg1; global.lwstrength = get_lw_weapon_strength(global.lweapon); script_execute(scr_litemname); if (arg0 != -1) { with (obj_event_manager) trigger_event(UnknownEnum.Value_0, UnknownEnum.Value_26); } } enum UnknownEnum { Value_0, Value_26 = 26 }
(arg0, arg1);
204
            snd_play(snd_item);
205
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
206
            break;
207
        case 201:
208
            tempsaid = 0;
209
            snd_play_x(snd_phone, 0.7, 1);
210
            global.msg[0] = stringsetloc(
* Ring...Wait for input
"* Ring.../", "scr_litemuseb_slash_scr_litemuseb_gml_116_0"
);
211
            global.msg[1] = stringsetloc(
* No one picked up.Wait for inputClose Message
"* No one picked up./%", "scr_litemuseb_slash_scr_litemuseb_gml_117_0"
);
212
            if (global.chapter == 4)
213
            {
214
                if (global.plot >= 40)
215
                {
216
                    if (room == room_krisroom || room == room_krishallway || room == room_torbathroom)
217
                    {
218
                        tempsaid = 1;
219
                        global.flag[268 called_in_house] = 1;
220
                        
scr_torface
scr_torface

function
scr_torface(arg0, arg1)
{ global.msg[arg0] = stringsetsubloc("\\TX \\F0 \\E~1 \\FT \\TT %", string(arg1), "scr_torface_slash_scr_torface_gml_1_0"); }
(1, 0);
221
                        global.msg[2] = stringsetloc(
Face 0* Hello?
* Dreemurr residence...
* Who might this be...?Wait for input
"\\E0* Hello?&* Dreemurr residence...&* Who might this be...?/", "scr_litemuseb_slash_scr_litemuseb_gml_126_0"
);
222
                        global.msg[3] = stringsetloc(
Face 3* ... Kris?Wait for input
"\\E3* ... Kris?/", "scr_litemuseb_slash_scr_litemuseb_gml_127_0"
);
223
                        global.msg[4] = stringsetloc(
Face 5* Sigh... Do not make me come over there.Wait for input
"\\E5* Sigh... Do not make me come over there./", "scr_litemuseb_slash_scr_litemuseb_gml_128_0"
);
224
                        
scr_noface
scr_noface

function
scr_noface(arg0)
{ global.msg[arg0] = stringsetloc(
Sound X Char 0 Sound 0 Close Message
"\\TX \\F0 \\T0 %", "scr_noface_slash_scr_noface_gml_1_0"
);
}
(5);
225
                        global.msg[6] = stringsetloc(
* Click...Wait for inputClose Message
"* Click.../%", "scr_litemuseb_slash_scr_litemuseb_gml_130_0"
);
226
                    }
227
                    else
228
                    {
229
                        
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 == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; 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; ...
("no_name");
230
                        msgsetloc(0, 
* (Ring,Delay 11 ring...)Wait for input
"* (Ring^1, ring...)/", "scr_litemuseb_slash_scr_litemuseb_gml_389_0"
);
231
                        msgnextloc(
* (Everybody seems too busy to pick up the phone...)Wait for inputClose Message
"* (Everybody seems too busy to pick up the phone...)/%", "scr_litemuseb_slash_scr_litemuseb_gml_390_0"
);
232
                    }
233
                }
234
            }
235
            if (room == room_torhouse)
236
            {
237
                tempsaid = 1;
238
                global.msg[0] = stringsetloc(
* Ring...Wait for input
"* Ring.../", "scr_litemuseb_slash_scr_litemuseb_gml_136_0"
);
239
                global.msg[1] = stringsetloc(
* (The phone is ringing,Delay 11 but you can't get it.)Wait for input
"* (The phone is ringing^1, but you can't get it.)/", "scr_litemuseb_slash_scr_litemuseb_gml_137_0"
);
240
                global.msg[2] = stringsetloc(
* (You're already on the phone,Delay 11 after all...)Wait for inputClose Message
"* (You're already on the phone^1, after all...)/%", "scr_litemuseb_slash_scr_litemuseb_gml_138_0"
);
241
            }
242
            
scr_writetext
scr_writetext

function
scr_writetext(arg0, arg1, arg2, arg3)
{ global.fc = 0; global.msc = arg0; if (arg1 != "x") global.msg[0] = arg1; if (arg2 != 0) global.fc = arg2; global.typer = 5; if (arg3 != 0) global.typer = arg3; instance_create(0, 0, obj_dialoguer); }
(0, "x", 0, 0);
243
            break;
244
        case 202:
245
            global.msc = 375;
246
            
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);
247
            global.typer = 5;
248
            global.fc = 0;
249
            instance_create(0, 0, obj_dialoguer);
250
            break;
251
    }
252
}
253
254
enum UnknownEnum
255
{
256
    Value_0,
257
    Value_12 = 12
258
}