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