Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_litemname

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

function
scr_litemname()
{ global.litemname[0] = " "; for (i = 0; i < 8; i += 1) { itemid = global.litem[i]; if (itemid == 0) global.litemname[i] = " "; if (itemid == 1) global.litemname[i] = stringsetloc(
Hot Chocolate
"Hot Chocolate", "scr_litemname_slash_scr_litemname_gml_6_0"
);
if (itemid == 2) global.litemname[i] = stringsetloc(
Pencil
"Pencil", "scr_litemname_slash_scr_litemname_gml_7_0"
);
if (itemid == 3) global.litemname[i] = stringsetloc(
Bandage
"Bandage", "scr_litemname_slash_scr_litemname_gml_8_0"
);
if (itemid == 4) global.litemname[i] = stringsetloc(
Bouquet
"Bouquet", "scr_litemname_slash_scr_litemname_gml_9_0"
);
if (itemid == 5) global.litemname[i] = stringsetloc(
Ball of Junk
"Ball of Junk", "scr_litemname_slash_scr_litemname_gml_10_0"
);
if (itemid == 6) global.litemname[i] = stringsetloc(
Halloween Pencil
"Halloween Pencil", "scr_litemname_slash_scr_litemname_gml_11_0"
);
if (itemid == 7) global.litemname[i] = stringsetloc(
Lucky Pencil
"Lucky Pencil", "scr_litemname_slash_scr_litemname_gml_12_0"
);
if (itemid == 8) global.litemname[i] = stringsetloc(
Egg
"Egg", "scr_litemname_slash_scr_litemname_gml_13_0"
);
if (itemid == 9) global.litemname[i] = stringsetloc(
Cards
"Cards", "scr_litemname_slash_scr_litemname_gml_14_0"
);
if (itemid == 10) global.litemname[i] = stringsetloc(
Box of Heart Candy
"Box of Heart Candy", "scr_litemname_slash_scr_litemname_gml_15_0"
);
if (itemid == 11) global.litemname[i] = stringsetloc(
Glass
"Glass", "scr_litemname_slash_scr_litemname_gml_16_0"
);
if (itemid == 12) global.litemname[i] = stringsetloc(
Eraser
"Eraser", "scr_litemname_slash_scr_litemname_gml_17_0"
);
if (itemid == 13) global.litemname[i] = stringsetloc(
Mech. Pencil
"Mech. Pencil", "scr_litemname_slash_scr_litemname_gml_18_0"
);
if (itemid == 14) global.litemname[i] = stringsetloc(
Wristwatch
"Wristwatch", "scr_litemname_slash_scr_litemname_gml_19_0"
);
if (itemid == 15) global.litemname[i] = stringsetloc(
Holiday Pencil
"Holiday Pencil", "scr_litemname_slash_scr_litemname_gml_21_0"
);
if (itemid == 16) global.litemname[i] = stringsetloc(
CactusNeedle
"CactusNeedle", "scr_litemname_slash_scr_litemname_gml_22_0"
);
if (itemid == 17) global.litemname[i] = stringsetloc(
BlackShard
"BlackShard", "scr_litemname_slash_scr_litemname_gml_23_0"
);
if (itemid == 18) global.litemname[i] = stringsetloc(
QuillPen
"QuillPen", "scr_litemname_slash_scr_litemname_gml_24_0"
);
} }
()
2
{
3
    global.litemname[0] = " ";
4
    for (i = 0; i < 8; i += 1)
5
    {
6
        itemid = global.litem[i];
7
        if (itemid == 0)
8
            global.litemname[i] = " ";
9
        if (itemid == 1)
10
            global.litemname[i] = stringsetloc(
Hot Chocolate
"Hot Chocolate", "scr_litemname_slash_scr_litemname_gml_6_0"
);
11
        if (itemid == 2)
12
            global.litemname[i] = stringsetloc(
Pencil
"Pencil", "scr_litemname_slash_scr_litemname_gml_7_0"
);
13
        if (itemid == 3)
14
            global.litemname[i] = stringsetloc(
Bandage
"Bandage", "scr_litemname_slash_scr_litemname_gml_8_0"
);
15
        if (itemid == 4)
16
            global.litemname[i] = stringsetloc(
Bouquet
"Bouquet", "scr_litemname_slash_scr_litemname_gml_9_0"
);
17
        if (itemid == 5)
18
            global.litemname[i] = stringsetloc(
Ball of Junk
"Ball of Junk", "scr_litemname_slash_scr_litemname_gml_10_0"
);
19
        if (itemid == 6)
20
            global.litemname[i] = stringsetloc(
Halloween Pencil
"Halloween Pencil", "scr_litemname_slash_scr_litemname_gml_11_0"
);
21
        if (itemid == 7)
22
            global.litemname[i] = stringsetloc(
Lucky Pencil
"Lucky Pencil", "scr_litemname_slash_scr_litemname_gml_12_0"
);
23
        if (itemid == 8)
24
            global.litemname[i] = stringsetloc(
Egg
"Egg", "scr_litemname_slash_scr_litemname_gml_13_0"
);
25
        if (itemid == 9)
26
            global.litemname[i] = stringsetloc(
Cards
"Cards", "scr_litemname_slash_scr_litemname_gml_14_0"
);
27
        if (itemid == 10)
28
            global.litemname[i] = stringsetloc(
Box of Heart Candy
"Box of Heart Candy", "scr_litemname_slash_scr_litemname_gml_15_0"
);
29
        if (itemid == 11)
30
            global.litemname[i] = stringsetloc(
Glass
"Glass", "scr_litemname_slash_scr_litemname_gml_16_0"
);
31
        if (itemid == 12)
32
            global.litemname[i] = stringsetloc(
Eraser
"Eraser", "scr_litemname_slash_scr_litemname_gml_17_0"
);
33
        if (itemid == 13)
34
            global.litemname[i] = stringsetloc(
Mech. Pencil
"Mech. Pencil", "scr_litemname_slash_scr_litemname_gml_18_0"
);
35
        if (itemid == 14)
36
            global.litemname[i] = stringsetloc(
Wristwatch
"Wristwatch", "scr_litemname_slash_scr_litemname_gml_19_0"
);
37
        if (itemid == 15)
38
            global.litemname[i] = stringsetloc(
Holiday Pencil
"Holiday Pencil", "scr_litemname_slash_scr_litemname_gml_21_0"
);
39
        if (itemid == 16)
40
            global.litemname[i] = stringsetloc(
CactusNeedle
"CactusNeedle", "scr_litemname_slash_scr_litemname_gml_22_0"
);
41
        if (itemid == 17)
42
            global.litemname[i] = stringsetloc(
BlackShard
"BlackShard", "scr_litemname_slash_scr_litemname_gml_23_0"
);
43
        if (itemid == 18)
44
            global.litemname[i] = stringsetloc(
QuillPen
"QuillPen", "scr_litemname_slash_scr_litemname_gml_24_0"
);
45
    }
46
}