Deltarune script viewer

← back to main script listing

gml_GlobalScript_scr_litemdesc

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

function scr_litemdesc(arg0) { global.msg[0] = stringsetloc(
* Your eyesight became blurry.Wait for inputClose Message
"* Your eyesight became blurry./%", "scr_litemdesc_slash_scr_litemdesc_gml_1_0"
); switch (arg0) { case 0: global.msg[0] = stringsetloc(
* Your heartbeat quickened.Wait for inputClose Message
"* Your heartbeat quickened./%", "scr_litemdesc_slash_scr_litemdesc_gml_5_0"
); break; case 1: global.msg[0] = stringsetloc(
* "Hot Chocolate" - Topped with home-made marshmallows in the shape of bunnies.Wait for inputClose Message
"* \"Hot Chocolate\" - Topped with home-made marshmallows in the shape of bunnies./%", "scr_litemdesc_slash_scr_litemdesc_gml_8_0"
); break; case 2: global.msg[0] = stringsetloc(
* "Pencil" - Weapon 1 AT
* Mightier than a sword?
* Maybe equal at best.Wait for inputClose Message
"* \"Pencil\" - Weapon 1 AT&* Mightier than a sword?&* Maybe equal at best./%", "scr_litemdesc_slash_scr_litemdesc_gml_11_0"
); break; case 3: global.msg[0] = stringsetloc(
* "Bandage" - Heals 10 HP
* It has cartoon characters on it.Wait for inputClose Message
"* \"Bandage\" - Heals 10 HP&* It has cartoon characters on it./%", "scr_litemdesc_slash_scr_litemdesc_gml_14_0"
); break; case 4: global.msg[0] = stringsetloc(
* "Bouquet" - A bouquet of beautiful flowers in many colors.Wait for input
"* \"Bouquet\" - A bouquet of beautiful flowers in many colors./", "scr_litemdesc_slash_scr_litemdesc_gml_17_0"
); global.msg[1] = stringsetloc(
* Perhaps it could be offered to someone.Wait for inputClose Message
"* Perhaps it could be offered to someone./%", "scr_litemdesc_slash_scr_litemdesc_gml_18_0"
); break; case 5: global.msg[0] = stringsetloc(
* "Ball of Junk" - A small ball of accumulated things in your pocket.Wait for inputClose Message
"* \"Ball of Junk\" - A small ball of accumulated things in your pocket./%", "scr_litemdesc_slash_scr_litemdesc_gml_21_0"
); if (scr_itemcheck(1)) { global.msg[0] = stringsetloc(
* "Ball of Junk" - A small ball of accumulated things in your pocket.Wait for input
"* \"Ball of Junk\" - A small ball of accumulated things in your pocket./", "scr_litemdesc_slash_scr_litemdesc_gml_25_0"
); global.msg[1] = stringsetloc(
* It smells like scratch'n'sniff marshmallow stickers.Wait for inputClose Message
"* It smells like scratch'n'sniff marshmallow stickers./%", "scr_litemdesc_slash_scr_litemdesc_gml_26_0"
); } break; case 6: global.msg[0] = stringsetloc(
* "Halloween Pencil" - Weapon 1 AT
* Orange with black bats on it.Wait for inputClose Message
"* \"Halloween Pencil\" - Weapon 1 AT&* Orange with black bats on it./%", "scr_litemdesc_slash_scr_litemdesc_gml_30_0"
); break; case 7: global.msg[0] = stringsetloc(
* "Lucky Pencil" - Weapon 1 AT
* Covered in green clovers and rainbows.Wait for inputClose Message
"* \"Lucky Pencil\" - Weapon 1 AT&* Covered in green clovers and rainbows./%", "scr_litemdesc_slash_scr_litemdesc_gml_33_0"
); break; case 8: global.msg[0] = stringsetloc(
* "Egg" - Not too important,Delay 11 not too unimportant.Wait for inputClose Message
"* \"Egg\" - Not too important^1, not too unimportant./%", "scr_litemdesc_slash_scr_litemdesc_gml_36_0"
); break; case 9: global.msg[0] = stringsetloc(
* "Cards" - The Jack of Spades,Delay 11 and the Rules Card.Wait for inputClose Message
"* \"Cards\" - The Jack of Spades^1, and the Rules Card./%", "scr_litemdesc_slash_scr_litemdesc_gml_39_0"
); break; case 10: global.msg[0] = stringsetloc(
* "Box of Heart Candy" - It's not yours.Delay 11 Will that stop you?Wait for inputClose Message
"* \"Box of Heart Candy\" - It's not yours^1. Will that stop you?/%", "scr_litemdesc_slash_scr_litemdesc_gml_42_0"
); break; case 11: global.msg[0] = stringsetloc(
* There is a small shard of something in your pocket.Wait for input
"* There is a small shard of something in your pocket./", "scr_litemdesc_slash_scr_litemdesc_gml_45_0"
); global.msg[1] = stringsetloc(
* It feels like glass, but...Wait for inputClose Message
"* It feels like glass, but.../%", "scr_litemdesc_slash_scr_litemdesc_gml_46_0"
); break; case 12: global.msg[0] = stringsetloc(
* "Eraser" - Weapon 1 AT
* Pink,Delay 11 it bounces when thrown on the ground.Wait for inputClose Message
"* \"Eraser\" - Weapon 1 AT&* Pink^1, it bounces when thrown on the ground./%", "scr_litemdesc_slash_scr_litemdesc_gml_49_0"
); break; case 13: global.msg[0] = stringsetloc(
* "Mechanical Pencil" - 1 AT
* It's tempting to click it repeatedly.Wait for inputClose Message
"* \"Mechanical Pencil\" - 1 AT&* It's tempting to click it repeatedly./%", "scr_litemdesc_slash_scr_litemdesc_gml_52_0"
); break; case 14: global.msg[0] = stringsetloc(
* "Wristwatch" - Armor 1 DF
* Maybe an expensive antique.
* Stuck before half past noon.Wait for inputClose Message
"* \"Wristwatch\" - Armor 1 DF&* Maybe an expensive antique.&* Stuck before half past noon./%", "scr_litemdesc_slash_scr_litemdesc_gml_55_0"
); break; } }
(arg0)
2
{
3
    global.msg[0] = stringsetloc(
* Your eyesight became blurry.Wait for inputClose Message
"* Your eyesight became blurry./%", "scr_litemdesc_slash_scr_litemdesc_gml_1_0"
);
4
    switch (arg0)
5
    {
6
        case 0:
7
            global.msg[0] = stringsetloc(
* Your heartbeat quickened.Wait for inputClose Message
"* Your heartbeat quickened./%", "scr_litemdesc_slash_scr_litemdesc_gml_5_0"
);
8
            break;
9
        case 1:
10
            global.msg[0] = stringsetloc(
* "Hot Chocolate" - Topped with home-made marshmallows in the shape of bunnies.Wait for inputClose Message
"* \"Hot Chocolate\" - Topped with home-made marshmallows in the shape of bunnies./%", "scr_litemdesc_slash_scr_litemdesc_gml_8_0"
);
11
            break;
12
        case 2:
13
            global.msg[0] = stringsetloc(
* "Pencil" - Weapon 1 AT
* Mightier than a sword?
* Maybe equal at best.Wait for inputClose Message
"* \"Pencil\" - Weapon 1 AT&* Mightier than a sword?&* Maybe equal at best./%", "scr_litemdesc_slash_scr_litemdesc_gml_11_0"
);
14
            break;
15
        case 3:
16
            global.msg[0] = stringsetloc(
* "Bandage" - Heals 10 HP
* It has cartoon characters on it.Wait for inputClose Message
"* \"Bandage\" - Heals 10 HP&* It has cartoon characters on it./%", "scr_litemdesc_slash_scr_litemdesc_gml_14_0"
);
17
            break;
18
        case 4:
19
            global.msg[0] = stringsetloc(
* "Bouquet" - A bouquet of beautiful flowers in many colors.Wait for input
"* \"Bouquet\" - A bouquet of beautiful flowers in many colors./", "scr_litemdesc_slash_scr_litemdesc_gml_17_0"
);
20
            global.msg[1] = stringsetloc(
* Perhaps it could be offered to someone.Wait for inputClose Message
"* Perhaps it could be offered to someone./%", "scr_litemdesc_slash_scr_litemdesc_gml_18_0"
);
21
            break;
22
        case 5:
23
            global.msg[0] = stringsetloc(
* "Ball of Junk" - A small ball of accumulated things in your pocket.Wait for inputClose Message
"* \"Ball of Junk\" - A small ball of accumulated things in your pocket./%", "scr_litemdesc_slash_scr_litemdesc_gml_21_0"
);
24
            if (scr_itemcheck
scr_itemcheck

function scr_itemcheck(arg0) { haveit = 0; itemcount = 0; for (var __i = 0; __i < 12; __i += 1) { if (global.item[__i] == arg0) haveit = 1; if (global.item[__i] == arg0) itemcount += 1; } return haveit; }
(1))
25
            {
26
                global.msg[0] = stringsetloc(
* "Ball of Junk" - A small ball of accumulated things in your pocket.Wait for input
"* \"Ball of Junk\" - A small ball of accumulated things in your pocket./", "scr_litemdesc_slash_scr_litemdesc_gml_25_0"
);
27
                global.msg[1] = stringsetloc(
* It smells like scratch'n'sniff marshmallow stickers.Wait for inputClose Message
"* It smells like scratch'n'sniff marshmallow stickers./%", "scr_litemdesc_slash_scr_litemdesc_gml_26_0"
);
28
            }
29
            break;
30
        case 6:
31
            global.msg[0] = stringsetloc(
* "Halloween Pencil" - Weapon 1 AT
* Orange with black bats on it.Wait for inputClose Message
"* \"Halloween Pencil\" - Weapon 1 AT&* Orange with black bats on it./%", "scr_litemdesc_slash_scr_litemdesc_gml_30_0"
);
32
            break;
33
        case 7:
34
            global.msg[0] = stringsetloc(
* "Lucky Pencil" - Weapon 1 AT
* Covered in green clovers and rainbows.Wait for inputClose Message
"* \"Lucky Pencil\" - Weapon 1 AT&* Covered in green clovers and rainbows./%", "scr_litemdesc_slash_scr_litemdesc_gml_33_0"
);
35
            break;
36
        case 8:
37
            global.msg[0] = stringsetloc(
* "Egg" - Not too important,Delay 11 not too unimportant.Wait for inputClose Message
"* \"Egg\" - Not too important^1, not too unimportant./%", "scr_litemdesc_slash_scr_litemdesc_gml_36_0"
);
38
            break;
39
        case 9:
40
            global.msg[0] = stringsetloc(
* "Cards" - The Jack of Spades,Delay 11 and the Rules Card.Wait for inputClose Message
"* \"Cards\" - The Jack of Spades^1, and the Rules Card./%", "scr_litemdesc_slash_scr_litemdesc_gml_39_0"
);
41
            break;
42
        case 10:
43
            global.msg[0] = stringsetloc(
* "Box of Heart Candy" - It's not yours.Delay 11 Will that stop you?Wait for inputClose Message
"* \"Box of Heart Candy\" - It's not yours^1. Will that stop you?/%", "scr_litemdesc_slash_scr_litemdesc_gml_42_0"
);
44
            break;
45
        case 11:
46
            global.msg[0] = stringsetloc(
* There is a small shard of something in your pocket.Wait for input
"* There is a small shard of something in your pocket./", "scr_litemdesc_slash_scr_litemdesc_gml_45_0"
);
47
            global.msg[1] = stringsetloc(
* It feels like glass, but...Wait for inputClose Message
"* It feels like glass, but.../%", "scr_litemdesc_slash_scr_litemdesc_gml_46_0"
);
48
            break;
49
        case 12:
50
            global.msg[0] = stringsetloc(
* "Eraser" - Weapon 1 AT
* Pink,Delay 11 it bounces when thrown on the ground.Wait for inputClose Message
"* \"Eraser\" - Weapon 1 AT&* Pink^1, it bounces when thrown on the ground./%", "scr_litemdesc_slash_scr_litemdesc_gml_49_0"
);
51
            break;
52
        case 13:
53
            global.msg[0] = stringsetloc(
* "Mechanical Pencil" - 1 AT
* It's tempting to click it repeatedly.Wait for inputClose Message
"* \"Mechanical Pencil\" - 1 AT&* It's tempting to click it repeatedly./%", "scr_litemdesc_slash_scr_litemdesc_gml_52_0"
);
54
            break;
55
        case 14:
56
            global.msg[0] = stringsetloc(
* "Wristwatch" - Armor 1 DF
* Maybe an expensive antique.
* Stuck before half past noon.Wait for inputClose Message
"* \"Wristwatch\" - Armor 1 DF&* Maybe an expensive antique.&* Stuck before half past noon./%", "scr_litemdesc_slash_scr_litemdesc_gml_55_0"
);
57
            break;
58
    }
59
}