Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_item_use_text_yellow

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

function scr_item_use_text_yellow() //gml_Script_scr_item_use_text_yellow { if live_call() return global.live_result; var item_use_hold = global.item_use_hold var item_slot = item_use_hold.item_slot var current_hp_self = global.current_hp_self var max_hp_self = global.max_hp_self var current_pp_self = global.current_pp_self var max_pp_self = global.max_pp_self var current_sp_self = global.current_sp_self var max_sp_self = global.max_sp_self var current_rp_self = global.current_rp_self var max_rp_self = global.max_rp_self var execute_hp = false var execute_pp = false var execute_sp = false var execute_rp = false if (item_slot == "Missing Poster" || item_slot == "Necklace") { message[0] = "* (You cannot use this item.)" item_use_hold.item_category = "nonconsumable" item_use_hold.item_type = "story" } else if (item_slot == "Snowdin Map") { message[0] = "* (Its accuracy seems# compromised.)" message[1] = "* (You aren't sure how to use# it.)" item_use_hold.item_category = "nonconsumable" item_use_hold.item_type = "story" } else if (item_slot == "Matches") { message[0] = "* (You aren't sure how to start a# fire with these safely.)" message[1] = "* (They'd probably work in an# emergency.)" item_use_hold.item_category = "nonconsumable" item_use_hold.item_type = "story" } else if (item_slot == "Lukewarm Coffee") { message[0] = "* (Better not drink it.)" message[1] = "* (You could get hotter coffee# elsewhere.)" item_use_hold.item_category = "nonconsumable" item_use_hold.item_type = "story" } else if (item_slot == "Soggy Mitten" || item_slot == "Pickaxe") { message[0] = "* (You can't think of a possible# use for it.)" item_use_hold.item_category = "nonconsumable" item_use_hold.item_type = "story" } else if (item_slot == "Videotape") message[0] = "* (You can't think of a use for# this.)" else if (item_slot == "Lemonade") { message[0] = "* (You drink the " + string(item_slot) + ".)" message[1] = "* (It's very sour.)" item_use_hold.item_category = "consumable" item_use_hold.item_type = "healing" item_use_hold.item_number = scr_item_stats_heal(item_slot) item_use_hold.item_sound = 390 item_use_hold.con_keep_previous = true item_use_hold.con_message_number = 2 execute_hp = true } else if (item_slot == "Candy Corn") { message[0] = "* (You eat the " + string(item_slot) + ".)" message[1] = "* (You now know why it was# discarded.)" item_use_hold.item_category = "consumable" item_use_hold.item_type = "healing" item_use_hold.item_number = scr_item_stats_heal(item_slot) item_use_hold.item_sound = 390 item_use_hold.con_keep_previous = true item_use_hold.con_message_number = 2 execute_hp = true } else if (item_slot == "Corn Dog") { message[0] = "* (You scarf down the " + string(item_slot) + ".)" message[1] = "* (You can't help but feel bad# for doing it.)" item_use_hold.item_category = "consumable" item_use_hold.item_type = "healing" item_use_hold.item_number = scr_item_stats_heal(item_slot) item_use_hold.item_sound = 390 item_use_hold.con_keep_previous = true item_use_hold.con_message_number = 2 execute_hp = true } else if (item_slot == "Sponge Cake") { message[0] = "* (You lick the frosting off of# the sponge.)" message[1] = "* (Your mouth feels squeaky# clean!)" item_use_hold.item_category = "consumable" item_use_hold.item_type = "healing" item_use_hold.item_number = scr_item_stats_heal(item_slot) item_use_hold.item_sound = 390 item_use_hold.con_keep_previous = true item_use_hold.con_message_number = 2 execute_hp = true } ...
() //gml_Script_scr_item_use_text_yellow
2
{
3
    if live_call()
4
        return global.live_result;
5
    var item_use_hold = global.item_use_hold
6
    var item_slot = item_use_hold.item_slot
7
    var current_hp_self = global.current_hp_self
8
    var max_hp_self = global.max_hp_self
9
    var current_pp_self = global.current_pp_self
10
    var max_pp_self = global.max_pp_self
11
    var current_sp_self = global.current_sp_self
12
    var max_sp_self = global.max_sp_self
13
    var current_rp_self = global.current_rp_self
14
    var max_rp_self = global.max_rp_self
15
    var execute_hp = false
16
    var execute_pp = false
17
    var execute_sp = false
18
    var execute_rp = false
19
    if (item_slot == "Missing Poster" || item_slot == "Necklace")
20
    {
21
        message[0] = "* (You cannot use this item.)"
22
        item_use_hold.item_category = "nonconsumable"
23
        item_use_hold.item_type = "story"
24
    }
25
    else if (item_slot == "Snowdin Map")
26
    {
27
        message[0] = "* (Its accuracy seems#  compromised.)"
28
        message[1] = "* (You aren't sure how to use#  it.)"
29
        item_use_hold.item_category = "nonconsumable"
30
        item_use_hold.item_type = "story"
31
    }
32
    else if (item_slot == "Matches")
33
    {
34
        message[0] = "* (You aren't sure how to start a#  fire with these safely.)"
35
        message[1] = "* (They'd probably work in an#  emergency.)"
36
        item_use_hold.item_category = "nonconsumable"
37
        item_use_hold.item_type = "story"
38
    }
39
    else if (item_slot == "Lukewarm Coffee")
40
    {
41
        message[0] = "* (Better not drink it.)"
42
        message[1] = "* (You could get hotter coffee#  elsewhere.)"
43
        item_use_hold.item_category = "nonconsumable"
44
        item_use_hold.item_type = "story"
45
    }
46
    else if (item_slot == "Soggy Mitten" || item_slot == "Pickaxe")
47
    {
48
        message[0] = "* (You can't think of a possible#  use for it.)"
49
        item_use_hold.item_category = "nonconsumable"
50
        item_use_hold.item_type = "story"
51
    }
52
    else if (item_slot == "Videotape")
53
        message[0] = "* (You can't think of a use for#  this.)"
54
    else if (item_slot == "Lemonade")
55
    {
56
        message[0] = "* (You drink the " + string(item_slot) + ".)"
57
        message[1] = "* (It's very sour.)"
58
        item_use_hold.item_category = "consumable"
59
        item_use_hold.item_type = "healing"
60
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
61
        item_use_hold.item_sound = 390
62
        item_use_hold.con_keep_previous = true
63
        item_use_hold.con_message_number = 2
64
        execute_hp = true
65
    }
66
    else if (item_slot == "Candy Corn")
67
    {
68
        message[0] = "* (You eat the " + string(item_slot) + ".)"
69
        message[1] = "* (You now know why it was#  discarded.)"
70
        item_use_hold.item_category = "consumable"
71
        item_use_hold.item_type = "healing"
72
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
73
        item_use_hold.item_sound = 390
74
        item_use_hold.con_keep_previous = true
75
        item_use_hold.con_message_number = 2
76
        execute_hp = true
77
    }
78
    else if (item_slot == "Corn Dog")
79
    {
80
        message[0] = "* (You scarf down the " + string(item_slot) + ".)"
81
        message[1] = "* (You can't help but feel bad#  for doing it.)"
82
        item_use_hold.item_category = "consumable"
83
        item_use_hold.item_type = "healing"
84
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
85
        item_use_hold.item_sound = 390
86
        item_use_hold.con_keep_previous = true
87
        item_use_hold.con_message_number = 2
88
        execute_hp = true
89
    }
90
    else if (item_slot == "Sponge Cake")
91
    {
92
        message[0] = "* (You lick the frosting off of#  the sponge.)"
93
        message[1] = "* (Your mouth feels squeaky#  clean!)"
94
        item_use_hold.item_category = "consumable"
95
        item_use_hold.item_type = "healing"
96
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
97
        item_use_hold.item_sound = 390
98
        item_use_hold.con_keep_previous = true
99
        item_use_hold.con_message_number = 2
100
        execute_hp = true
101
    }
102
    else if (item_slot == "Homemade Cookie")
103
    {
104
        message[0] = "* (You scarf down the " + string(item_slot) + ".)"
105
        item_use_hold.item_category = "consumable"
106
        item_use_hold.item_type = "healing"
107
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
108
        item_use_hold.item_sound = 390
109
        item_use_hold.con_keep_previous = true
110
        item_use_hold.con_message_number = 1
111
        execute_hp = true
112
    }
113
    else if (item_slot == "Hot Pop")
114
    {
115
        message[0] = "* (You eat the Hot Chocolate Pop.)"
116
        message[1] = "* (It has the distinct flavor of#  something that was once hot.)"
117
        item_use_hold.item_category = "consumable"
118
        item_use_hold.item_type = "healing"
119
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
120
        item_use_hold.item_sound = 390
121
        item_use_hold.con_keep_previous = true
122
        item_use_hold.con_message_number = 2
123
        execute_hp = true
124
    }
125
    else if (item_slot == "Lukewarm Pop")
126
    {
127
        message[0] = "* (You eat the Lukewarm Chocolate#  Pop.)"
128
        message[1] = "* (It has the distinct flavor of#  something that was once hot#  then left to sit for too long.)"
129
        message[2] = "* (It isn't great.)"
130
        item_use_hold.item_category = "consumable"
131
        item_use_hold.item_type = "healing"
132
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
133
        item_use_hold.item_sound = 390
134
        item_use_hold.con_keep_previous = true
135
        item_use_hold.con_message_number = 3
136
        execute_hp = true
137
    }
138
    else if (item_slot == "Cold Pop")
139
    {
140
        message[0] = "* (You eat the Cold Chocolate Pop.)"
141
        message[1] = "* (It has the distinct flavor only#  possessed by truly cold things.)"
142
        item_use_hold.item_category = "consumable"
143
        item_use_hold.item_type = "healing"
144
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
145
        item_use_hold.item_sound = 390
146
        item_use_hold.con_keep_previous = true
147
        item_use_hold.con_message_number = 2
148
        execute_hp = true
149
    }
150
    else if (item_slot == "Hndw Coffee")
151
    {
152
        message[0] = "* (You brave the hot Honeydew#  Coffee.)"
153
        message[1] = "* (You can feel your taste buds#  burning off.)"
154
        item_use_hold.item_category = "consumable"
155
        item_use_hold.item_type = "healing"
156
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
157
        item_use_hold.item_sound = 390
158
        item_use_hold.con_keep_previous = true
159
        item_use_hold.con_message_number = 2
160
        execute_hp = true
161
    }
162
    else if (item_slot == "Adult Soda")
163
    {
164
        message[0] = "* (You take a sip out of#  the adult soda.)"
165
        message[1] = "* (...)"
166
        message[2] = "* (Tastes like water.)"
167
        item_use_hold.item_category = "consumable"
168
        item_use_hold.item_type = "healing"
169
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
170
        item_use_hold.item_sound = 390
171
        item_use_hold.con_keep_previous = true
172
        item_use_hold.con_message_number = 3
173
        execute_hp = true
174
    }
175
    else if (item_slot == "Hndw Pancake")
176
    {
177
        message[0] = "* (You eat the pancake.)"
178
        message[1] = "* (The syrup is very sweet!)"
179
        item_use_hold.item_category = "consumable"
180
        item_use_hold.item_type = "healing"
181
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
182
        item_use_hold.item_sound = 390
183
        item_use_hold.con_keep_previous = true
184
        item_use_hold.con_message_number = 2
185
        execute_hp = true
186
    }
187
    else if (item_slot == "G.B. Bear")
188
    {
189
        message[0] = "* (You eat the cookie.)"
190
        message[1] = "* (It feels like it is watching#  you eat it.)"
191
        item_use_hold.item_category = "consumable"
192
        item_use_hold.item_type = "healing"
193
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
194
        item_use_hold.item_sound = 390
195
        item_use_hold.con_keep_previous = true
196
        item_use_hold.con_message_number = 2
197
        execute_hp = true
198
    }
199
    else if (item_slot == "Packing Peanuts")
200
    {
201
        message[0] = "* (You eat the Packing Peanuts.)"
202
        message[1] = "* (Aside from the taste, texture,#  and potential health risk,#  they're not that bad.)"
203
        item_use_hold.item_category = "consumable"
204
        item_use_hold.item_type = "healing"
205
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
206
        item_use_hold.item_sound = 390
207
        item_use_hold.con_keep_previous = false
208
        item_use_hold.con_message_number = 2
209
        execute_hp = true
210
    }
211
    else if (item_slot == "Trail Mix")
212
    {
213
        message[0] = "* (You down the bag of Trail Mix.)"
214
        message[1] = "* (All you taste are dried#  grapes.)"
215
        item_use_hold.item_category = "consumable"
216
        item_use_hold.item_type = "healing"
217
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
218
        item_use_hold.item_sound = 390
219
        item_use_hold.con_keep_previous = false
220
        item_use_hold.con_message_number = 2
221
        execute_hp = true
222
    }
223
    else if (item_slot == "Ice Tea")
224
    {
225
        message[0] = "* (You drink the glass of tea.#  It's very watered down.)"
226
        item_use_hold.item_category = "consumable"
227
        item_use_hold.item_type = "healing"
228
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
229
        item_use_hold.item_sound = 390
230
        item_use_hold.con_keep_previous = false
231
        item_use_hold.con_message_number = 1
232
        execute_hp = true
233
    }
234
    else if (item_slot == "Green Tea")
235
    {
236
        message[0] = "* (You drink the Green Tea.#  Tastes toxic.)"
237
        item_use_hold.item_category = "consumable"
238
        item_use_hold.item_type = "healing"
239
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
240
        item_use_hold.item_sound = 390
241
        item_use_hold.con_keep_previous = false
242
        item_use_hold.con_message_number = 1
243
        execute_hp = true
244
    }
245
    else if (item_slot == "Sea Tea")
246
    {
247
        message[0] = "* (You drink the Sea Tea. Your#  SOUL speed increases!)"
248
        item_use_hold.item_category = "consumable"
249
        item_use_hold.item_type = "healing"
250
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
251
        item_use_hold.item_sound = 390
252
        item_use_hold.con_keep_previous = false
253
        item_use_hold.con_message_number = 1
254
        execute_hp = true
255
        global.current_sp_self += 1
256
    }
257
    else if (item_slot == "Fruitcake")
258
    {
259
        message[0] = "* (You scarf down the Fruitcake.#  The Swealterstones burn your#  throat!)"
260
        item_use_hold.item_category = "consumable"
261
        item_use_hold.item_type = "healing"
262
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
263
        item_use_hold.item_sound = 390
264
        item_use_hold.con_keep_previous = false
265
        item_use_hold.con_message_number = 1
266
        execute_hp = true
267
    }
268
    else if (item_slot == "Spider Donut")
269
    {
270
        message[0] = "* (Don't worry, spider didn't.)"
271
        item_use_hold.item_category = "consumable"
272
        item_use_hold.item_type = "healing"
273
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
274
        item_use_hold.item_sound = 390
275
        item_use_hold.con_keep_previous = false
276
        item_use_hold.con_message_number = 1
277
        execute_hp = true
278
    }
279
    else if (item_slot == "Icewater")
280
    {
281
        message[0] = "* (You drink the Icewater.#  Definitely has a taste but you#  can't describe it.)"
282
        item_use_hold.item_category = "consumable"
283
        item_use_hold.item_type = "healing"
284
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
285
        item_use_hold.item_sound = 390
286
        item_use_hold.con_keep_previous = false
287
        item_use_hold.con_message_number = 1
288
        execute_hp = true
289
    }
290
    else if (item_slot == "Oasis Latte")
291
    {
292
        message[0] = "* (You drink the Latte...)"
293
        item_use_hold.item_category = "consumable"
294
        item_use_hold.item_type = "healing"
295
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
296
        item_use_hold.item_sound = 390
297
        item_use_hold.con_keep_previous = false
298
        item_use_hold.con_message_number = 1
299
        execute_hp = true
300
    }
301
    else if (item_slot == "Cnm. Cookie")
302
    {
303
        message[0] = "* (You eat the cookie...)"
304
        item_use_hold.item_category = "consumable"
305
        item_use_hold.item_type = "healing"
306
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
307
        item_use_hold.item_sound = 390
308
        item_use_hold.con_keep_previous = false
309
        item_use_hold.con_message_number = 1
310
        execute_hp = true
311
    }
312
    else if (item_slot == "Root Beer")
313
    {
314
        message[0] = "* (You down the Root Beer. The#  carbonation tingles!)"
315
        item_use_hold.item_category = "consumable"
316
        item_use_hold.item_type = "healing"
317
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
318
        item_use_hold.item_sound = 390
319
        item_use_hold.con_keep_previous = false
320
        item_use_hold.con_message_number = 1
321
        execute_hp = true
322
    }
323
    else if (item_slot == "Feisty Slider")
324
    {
325
        message[0] = "* (You eat the Feisty Slider.#  Much like the team, its flavor#  is... ambitious.)"
326
        item_use_hold.item_category = "consumable"
327
        item_use_hold.item_type = "healing"
328
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
329
        item_use_hold.item_sound = 390
330
        item_use_hold.con_keep_previous = false
331
        item_use_hold.con_message_number = 1
332
        execute_hp = true
333
    }
334
    else if (item_slot == "Gunpowder")
335
    {
336
        message[0] = "* (You put the gunpowder in your#  mouth and nearly choke to#  death.) "
337
        message[1] = "* (...HP fully restored.)"
338
        item_use_hold.item_category = "consumable"
339
        item_use_hold.item_type = "healing"
340
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
341
        item_use_hold.item_sound = 390
342
        item_use_hold.con_keep_previous = false
343
        item_use_hold.con_message_number = 2
344
        execute_hp = true
345
    }
346
    else if (item_slot == "G. Pear")
347
    {
348
        message[0] = "* (You eat the Golden Pear.)"
349
        message[1] = "* (The immense flavor hugs your#  tastebuds.)"
350
        message[2] = "* (Overall... Not bad.)"
351
        item_use_hold.item_category = "consumable"
352
        item_use_hold.item_type = "protection"
353
        item_use_hold.item_number = scr_item_stats_protection
scr_item_stats_protection

function scr_item_stats_protection(argument0) //gml_Script_scr_item_stats_protection { switch argument0 { case "G. Pear": return 2; default: return 0; } }
(item_slot)
354
        item_use_hold.item_sound = 390
355
        item_use_hold.con_keep_previous = true
356
        item_use_hold.con_message_number = 3
357
        execute_pp = true
358
    }
359
    else if (item_slot == "G. Coffee")
360
    {
361
        message[0] = "* (You chug the Half N' Half#  Golden Coffee.)"
362
        message[1] = "* (It tastes like... regular#  coffee.)"
363
        item_use_hold.item_category = "consumable"
364
        item_use_hold.item_type = "speed"
365
        item_use_hold.item_number = scr_item_stats_speed
scr_item_stats_speed

function scr_item_stats_speed(argument0) //gml_Script_scr_item_stats_speed { switch argument0 { case "G. Coffee": return 3; case "Sea Tea": return 1; default: return 0; } }
(item_slot)
366
        item_use_hold.item_sound = 390
367
        item_use_hold.con_keep_previous = true
368
        item_use_hold.con_message_number = 2
369
        execute_sp = true
370
    }
371
    else if (item_slot == "G. Cactus")
372
    {
373
        message[0] = "* (You take a huge bite out#  of the cactus.)"
374
        message[1] = "* (...)"
375
        message[2] = "* (It bites back.)"
376
        item_use_hold.item_category = "consumable"
377
        item_use_hold.item_type = "restore"
378
        item_use_hold.item_number = scr_item_stats_restore
scr_item_stats_restore

function scr_item_stats_restore(argument0) //gml_Script_scr_item_stats_restore { switch argument0 { case "G. Cactus": return 3; default: return 0; } }
(item_slot)
379
        item_use_hold.item_sound = 390
380
        item_use_hold.con_keep_previous = true
381
        item_use_hold.con_message_number = 3
382
        execute_rp = true
383
    }
384
    else if (item_slot == "Moss Salad")
385
    {
386
        message[0] = "* (You brace yourself and eat#  the Moss Salad.)"
387
        message[1] = "* (The texture can only be#  described as \"insolation#  esque.\")"
388
        item_use_hold.item_category = "consumable"
389
        item_use_hold.item_type = "healing"
390
        item_use_hold.item_sound = 390
391
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
392
        item_use_hold.con_keep_previous = false
393
        item_use_hold.con_message_number = 2
394
        execute_hp = true
395
    }
396
    else if (item_slot == "Grassy Fries")
397
    {
398
        message[0] = "* (You plug your nose and down#  the Grassy Fries.)"
399
        message[1] = "* (Is this what life has really#  come to?)"
400
        item_use_hold.item_category = "consumable"
401
        item_use_hold.item_type = "healing"
402
        item_use_hold.item_sound = 390
403
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
404
        item_use_hold.con_keep_previous = false
405
        item_use_hold.con_message_number = 2
406
        execute_hp = true
407
    }
408
    else if (item_slot == "Flower Stew")
409
    {
410
        message[0] = "* (You make sure Flowey isn't#  watching before trying it.)"
411
        message[1] = "* (Mmm... chunky...)"
412
        item_use_hold.item_category = "consumable"
413
        item_use_hold.item_type = "healing"
414
        item_use_hold.item_sound = 390
415
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
416
        item_use_hold.con_keep_previous = true
417
        item_use_hold.con_message_number = 2
418
        execute_hp = true
419
    }
420
    else if (item_slot == "Gravity Granola")
421
    {
422
        message[0] = "* (You snack on the Gravity#  Granola.)"
423
        message[1] = "* (You can really taste all 9.8#  meters!)"
424
        item_use_hold.item_category = "consumable"
425
        item_use_hold.item_type = "healing"
426
        item_use_hold.item_sound = 390
427
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
428
        item_use_hold.con_keep_previous = false
429
        item_use_hold.con_message_number = 2
430
        execute_hp = true
431
    }
432
    else if (item_slot == "Dihydrogen Monoxide")
433
    {
434
        message[0] = "* (You drink the H2O. Kinda#  tastes like window cleaner...)"
435
        item_use_hold.item_category = "consumable"
436
        item_use_hold.item_type = "healing"
437
        item_use_hold.item_sound = 390
438
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
439
        item_use_hold.con_keep_previous = false
440
        item_use_hold.con_message_number = 1
441
        execute_hp = true
442
    }
443
    else if (item_slot == "Popato Chisps")
444
    {
445
        message[0] = "* (You eat the Popato Chisps.#  The crunch is deafening.)"
446
        item_use_hold.item_category = "consumable"
447
        item_use_hold.item_type = "healing"
448
        item_use_hold.item_sound = 390
449
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
450
        item_use_hold.con_keep_previous = false
451
        item_use_hold.con_message_number = 1
452
        execute_hp = true
453
    }
454
    else if (item_slot == "Beef Jerky")
455
    {
456
        message[0] = "* (You scarf down the Beef#  Jerky.)"
457
        message[1] = "* (What a classic flavor.)"
458
        item_use_hold.item_category = "consumable"
459
        item_use_hold.item_type = "healing"
460
        item_use_hold.item_sound = 390
461
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
462
        item_use_hold.con_keep_previous = true
463
        item_use_hold.con_message_number = 1
464
        execute_hp = true
465
    }
466
    else if (item_slot == "Cake")
467
    {
468
        message[0] = "* (You enjoy several slices of#  cake.)"
469
        message[1] = "* (Delicious!)"
470
        item_use_hold.item_category = "consumable"
471
        item_use_hold.item_type = "healing"
472
        item_use_hold.item_sound = 390
473
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
474
        item_use_hold.con_keep_previous = true
475
        item_use_hold.con_message_number = 1
476
        execute_hp = true
477
    }
478
    else if (item_slot == "Floral Cupcake")
479
    {
480
        message[0] = "* (You enjoy the Floral#  Cupcake.)"
481
        message[1] = "* (What a rich flavor!)"
482
        item_use_hold.item_category = "consumable"
483
        item_use_hold.item_type = "healing"
484
        item_use_hold.item_sound = 390
485
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
486
        item_use_hold.con_keep_previous = true
487
        item_use_hold.con_message_number = 2
488
        execute_hp = true
489
    }
490
    else if (item_slot == "Monster Candy")
491
    {
492
        message[0] = "* (You eat the Monster Candy.)"
493
        message[1] = "* (The taste is faintly#  familiar...)"
494
        item_use_hold.item_category = "consumable"
495
        item_use_hold.item_type = "healing"
496
        item_use_hold.item_sound = 390
497
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
498
        item_use_hold.con_keep_previous = true
499
        item_use_hold.con_message_number = 2
500
        execute_hp = true
501
    }
502
    else if (item_slot == "Monster Candy+")
503
    {
504
        message[0] = "* (You pop the Monster Candy+ in#  your mouth.)"
505
        message[1] = "* (The overwhelming sweetness is#  at war with your taste buds.)"
506
        item_use_hold.item_category = "consumable"
507
        item_use_hold.item_type = "healing"
508
        item_use_hold.item_sound = 390
509
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
510
        item_use_hold.con_keep_previous = true
511
        item_use_hold.con_message_number = 2
512
        execute_hp = true
513
    }
514
    else if (item_slot == "C-B Strudel")
515
    {
516
        message[0] = "* (You savor the C-B Strudel.)"
517
        message[1] = "* (The taste is strangely#  familiar...)"
518
        item_use_hold.item_category = "consumable"
519
        item_use_hold.item_type = "healing"
520
        item_use_hold.item_sound = 390
521
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
522
        item_use_hold.con_keep_previous = true
523
        item_use_hold.con_message_number = 2
524
        execute_hp = true
525
    }
526
    else if (item_slot == "Hot Dog")
527
    {
528
        message[0] = "* (You scarf down the 'dog.)#  (Mmm, hits the spot!)"
529
        item_use_hold.item_category = "consumable"
530
        item_use_hold.item_type = "healing"
531
        item_use_hold.item_sound = 390
532
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
533
        item_use_hold.con_keep_previous = true
534
        item_use_hold.con_message_number = 1
535
        execute_hp = true
536
    }
537
    else if (item_slot == "Corn Chowder")
538
    {
539
        message[0] = "* (You nervously drink the Corn#  Chowder.)"
540
        message[1] = "* (...Could've been worse.)"
541
        item_use_hold.item_category = "consumable"
542
        item_use_hold.item_type = "healing"
543
        item_use_hold.item_sound = 390
544
        item_use_hold.item_number = scr_item_stats_heal
scr_item_stats_heal

function scr_item_stats_heal(argument0) //gml_Script_scr_item_stats_heal { switch argument0 { case "Lemonade": return 7; case "Candy Corn": return 9; case "Corn Dog": return 12; case "Sponge Cake": return 14; case "Homemade Cookie": return 20; case "Hot Pop": return 14; case "Lukewarm Pop": return 8; case "Cold Pop": return 12; case "Hndw Coffee": return 14; case "Hndw Pancake": return 16; case "G.B. Bear": return 20; case "Packing Peanuts": return 10; case "Trail Mix": return 13; case "Ice Tea": return 20; case "Green Tea": return 21; case "Sea Tea": return 10; case "Fruitcake": return 25; case "Spider Donut": return 12; case "Icewater": return 15; case "Root Beer": return 18; case "Feisty Slider": return 30; case "Gunpowder": return (global.max_hp_self - global.current_hp_self); case "Adult Soda": return 20; case "Moss Salad": return 17; case "Grassy Fries": return 14; case "Flower Stew": return 20; case "Gravity Granola": return 30; case "Dihydrogen Monoxide": return 20; case "Popato Chisps": return 13; case "Beef Jerky": return 16; case "Cake": return 30; case "Monster Candy": return 10; case "Monster Candy+": return 15; case "Corn Chowder": return 15; case "Hot Dog": return 20; case "C-B Strudel": return 30; case "Floral Cupcake": return 50; case "Cnm. Cookie": return 35; case "Oasis Latte": return 25; default: return 0; } }
(item_slot)
545
        item_use_hold.con_keep_previous = true
546
        item_use_hold.con_message_number = 2
547
        execute_hp = true
548
    }
549
    else if (item_slot == "Toy Gun")
550
    {
551
        message[0] = "* (You equipped the " + string(item_slot) + ".)"
552
        item_use_hold.item_category = "equip"
553
        item_use_hold.item_type = "weapon"
554
        item_use_hold.item_sound = 388
555
    }
556
    else if (item_slot == "Wild Revolver")
557
    {
558
        message[0] = "* (You equipped the " + string(item_slot) + ".)"
559
        item_use_hold.item_category = "equip"
560
        item_use_hold.item_type = "weapon"
561
        item_use_hold.item_sound = 388
562
    }
563
    else if (item_slot == "Worn Hat")
564
    {
565
        message[0] = "* (You equipped the " + string(item_slot) + ".)"
566
        item_use_hold.item_category = "equip"
567
        item_use_hold.item_type = "armor"
568
        item_use_hold.item_sound = 388
569
    }
570
    else if (item_slot == "Rubber Ammo")
571
    {
572
        message[0] = "* (You load the rubber ammo into#  your weapon.)"
573
        item_use_hold.item_category = "equip"
574
        item_use_hold.item_type = "ammo"
575
        item_use_hold.item_sound = 388
576
    }
577
    else if (item_slot == "Pebble Ammo")
578
    {
579
        message[0] = "* (You load the pebbles into your#  gun.)"
580
        message[1] = "* (It feels a little heavier#  now.)"
581
        item_use_hold.item_category = "equip"
582
        item_use_hold.item_type = "ammo"
583
        item_use_hold.item_sound = 388
584
    }
585
    else if (item_slot == "Silver Ammo")
586
    {
587
        message[0] = "* (You load the Silver Ammo#  into your gun.)"
588
        message[1] = "* (The pellets shimmer#  in the light.)"
589
        item_use_hold.item_category = "equip"
590
        item_use_hold.item_type = "ammo"
591
        item_use_hold.item_sound = 388
592
    }
593
    else if (item_slot == "Ice Pellets")
594
    {
595
        message[0] = "* (You load the Ice Pellet Ammo.)"
596
        message[1] = "* (Your gun is now cold to the#  touch.)"
597
        item_use_hold.item_category = "equip"
598
        item_use_hold.item_type = "ammo"
599
        item_use_hold.item_sound = 388
600
    }
601
    else if (item_slot == "Cff Bean Ammo")
602
    {
603
        message[0] = "* (You load the Coffee Beans.)"
604
        message[1] = "* (Your gun now smells#  delightful.)"
605
        item_use_hold.item_category = "equip"
606
        item_use_hold.item_type = "ammo"
607
        item_use_hold.item_sound = 388
608
    }
609
    else if (item_slot == "Glass Ammo")
610
    {
611
        message[0] = "* (You cautiously load the Glass#  into your gun.)"
612
        message[1] = "* (Phew! No cuts!)"
613
        item_use_hold.item_category = "equip"
614
        item_use_hold.item_type = "ammo"
615
        item_use_hold.item_sound = 388
616
    }
617
    else if (item_slot == "Flint")
618
    {
619
        message[0] = "* (You load the Flint#  into your gun.)"
620
        message[1] = "* (Might start some fire#   with this one!)"
621
        item_use_hold.item_category = "equip"
622
        item_use_hold.item_type = "ammo"
623
        item_use_hold.item_sound = 388
624
    }
625
    else if (item_slot == "Nails")
626
    {
627
        message[0] = "* (You load the Nails#  into your gun.)"
628
        item_use_hold.item_category = "equip"
629
        item_use_hold.item_type = "ammo"
630
        item_use_hold.item_sound = 388
631
    }
632
    else if (item_slot == "Friendliness Pellets")
633
    {
634
        message[0] = "* (You load the Friendliness#  Pellets into your gun.)"
635
        item_use_hold.item_category = "equip"
636
        item_use_hold.item_type = "ammo"
637
        item_use_hold.item_sound = 388
638
    }
639
    else if (item_slot == "Super Ammo")
640
    {
641
        message[0] = "* (You load the Super Ammo.)"
642
        message[1] = "* (Your gun now feels lighter#  than your conscience.)"
643
        item_use_hold.item_category = "equip"
644
        item_use_hold.item_type = "ammo"
645
        item_use_hold.item_sound = 388
646
    }
647
    else if (item_slot == "Patch")
648
    {
649
        message[0] = "* (You are unable to sew the#  Patch back on your hat.)"
650
        item_use_hold.item_category = "nonconsumable"
651
        item_use_hold.item_type = "story"
652
    }
653
    else if (item_slot == "Feather")
654
    {
655
        message[0] = "* (You stick the " + string(item_slot) + " into#  your hat.)"
656
        message[1] = "* (It gives you a proud feeling.)"
657
        item_use_hold.item_category = "equip"
658
        item_use_hold.item_type = "accessory"
659
        item_use_hold.item_sound = 388
660
    }
661
    else if (item_slot == "G. Bandana")
662
    {
663
        message[0] = "* (With a shimmer, you tie the#  Golden Bandana around your#  neck.)"
664
        message[1] = "* (You feel like you can take on#  anything now.)"
665
        item_use_hold.item_category = "equip"
666
        item_use_hold.item_type = "accessory"
667
        item_use_hold.item_sound = 388
668
    }
669
    else if (item_slot == "Honeydew Pin")
670
    {
671
        message[0] = "* (You pin the " + string(item_slot) + "#  to your hat.)"
672
        item_use_hold.item_category = "equip"
673
        item_use_hold.item_type = "accessory"
674
        item_use_hold.item_sound = 388
675
    }
676
    else if (item_slot == "Band Merch Pin")
677
    {
678
        message[0] = "* (You pin the Merch Pin to your#  hat.)"
679
        item_use_hold.item_category = "equip"
680
        item_use_hold.item_type = "accessory"
681
        item_use_hold.item_sound = 388
682
    }
683
    else if (item_slot == "Fancy Holster")
684
    {
685
        message[0] = "* (You proudly equip the Fancy#  Holster.)"
686
        message[1] = "* (You're ready for anything#  now!)"
687
        item_use_hold.item_category = "equip"
688
        item_use_hold.item_type = "accessory"
689
        item_use_hold.item_sound = 388
690
    }
691
    else if (item_slot == "Steel Buckle")
692
    {
693
        message[0] = "* (You attach the Steel Buckle#  to your belt.)"
694
        message[1] = "* (Your pants feel sturdier than#  ever!)"
695
        item_use_hold.item_category = "equip"
696
        item_use_hold.item_type = "accessory"
697
        item_use_hold.item_sound = 388
698
    }
699
    else if (item_slot == "Safety Jacket")
700
    {
701
        message[0] = "* (You don the stunning#  highlighter yellow jacket.)"
702
        message[1] = "* (You're all ready to take care#  of business!)"
703
        item_use_hold.item_category = "equip"
704
        item_use_hold.item_type = "accessory"
705
        item_use_hold.item_sound = 388
706
    }
707
    else if (item_slot == "Golden Scarf")
708
    {
709
        message[0] = "* (You put the Golden Scarf on.#* Your tremendous taste for fashion#  makes monsters go easy on you.)"
710
        item_use_hold.item_category = "equip"
711
        item_use_hold.item_type = "accessory"
712
        item_use_hold.item_sound = 388
713
    }
714
    else if (item_slot == "Safety Goggles")
715
    {
716
        message[0] = "* (You wrap the Safety Goggles#  around your hat.)"
717
        message[1] = "* (It looks like it has eyes#  now.)"
718
        item_use_hold.item_category = "equip"
719
        item_use_hold.item_type = "accessory"
720
        item_use_hold.item_sound = 388
721
    }
722
    else if (item_slot == "Delta Rune Patch")
723
    {
724
        message[0] = "* (You attach the Patch to your#  vest and begin to feel#  something.)"
725
        message[1] = "* (The unwavering hopes and#  dreams of Monsterkind.)"
726
        item_use_hold.item_category = "equip"
727
        item_use_hold.item_type = "accessory"
728
        item_use_hold.item_sound = 388
729
    }
730
    else if (item_slot == "Silver Scarf")
731
    {
732
        message[0] = "* (You wrap the Silver Scarf#  around your neck.)"
733
        message[1] = "* (So cozy!)"
734
        item_use_hold.item_category = "equip"
735
        item_use_hold.item_type = "accessory"
736
        item_use_hold.item_sound = 388
737
    }
738
    else if (item_slot == "H. Acid")
739
    {
740
        audio_stop_all()
741
        global.sworks_flag[45] = 1
742
        global.heart_battle_fighting_x = 320
743
        global.heart_battle_fighting_y = 240
744
        room_goto(rm_death_screen Death screen)
745
        message[0] = "* (You cannot use this item.)"
746
        item_use_hold.item_category = "nonconsumable"
747
        item_use_hold.item_type = "story"
748
        item_use_hold.item_sound = 388
749
    }
750
    if (global.route == 3)
751
    {
752
        message = 0
753
        message[0] = ""
754
        if (item_type == "accessory" || item_type == "ammo")
755
            message[0] = "You equip the " + item_slot + "."
756
        item_use_hold.con_message_number = 1
757
    }
758
    if (item_use_hold.con_keep_previous == true && global.route != 3)
759
        message_add = "##"
760
    else
761
        message_add = ""
762
    if (execute_hp == true)
763
    {
764
        var cmsgn = item_use_hold.con_message_number
765
        if ((current_hp_self + item_use_hold.item_number) < max_hp_self)
766
            message[cmsgn] = message_add + "* (You recovered " + string(item_use_hold.item_number) + " HP!)"
767
        else
768
            message[cmsgn] = message_add + "* (Your HP was maxed out.)"
769
    }
770
    if (execute_pp == true)
771
    {
772
        cmsgn = item_use_hold.con_message_number
773
        if ((current_pp_self + item_use_hold.item_number) < max_pp_self)
774
            message[cmsgn] = message_add + "* (You gained " + string(item_use_hold.item_number) + " PP!)"
775
        else
776
            message[cmsgn] = message_add + "* (Your PP was maxed out.)"
777
    }
778
    if (execute_sp == true)
779
    {
780
        cmsgn = item_use_hold.con_message_number
781
        if ((current_sp_self + item_use_hold.item_number) < max_sp_self)
782
            message[cmsgn] = message_add + "* (You gained " + string(item_use_hold.item_number) + " SP!)"
783
        else
784
            message[cmsgn] = message_add + "* (Your SP was maxed out.)"
785
    }
786
    if (execute_rp == true)
787
    {
788
        cmsgn = item_use_hold.con_message_number
789
        if ((current_rp_self + item_use_hold.item_number) < max_rp_self)
790
            message[cmsgn] = message_add + "* You will heal for " + string(item_use_hold.item_number) + " turns!"
791
        else
792
            message[cmsgn] = message_add + "* (Your RP was maxed out.)"
793
    }
794
}