Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_battle_draw_item_names

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

function scr_battle_draw_item_names() { var item_object_hold = global.item_object_hold; var draw_x_disjoint = item_object_hold.draw_x_disjoint; var draw_y_disjoint = item_object_hold.draw_y_disjoint; var item_slot = item_object_hold.item_slot; if (global.game_mode == "customs") { if (item_slot == "Hot Dog...?") battle_menu_option_string = "* Hot Dog"; } else if (global.game_mode == "yellow") { if (item_slot == "Missing Poster") battle_menu_option_string = "* Poster"; else if (item_slot == "Snowdin Map") battle_menu_option_string = "* Snowdin Map"; else if (item_slot == "Matches") battle_menu_option_string = "* Matches"; else if (item_slot == "Lukewarm Coffee") battle_menu_option_string = "* Lukewarm Cff"; else if (item_slot == "Soggy Mitten") battle_menu_option_string = "* Soggy Mitten"; else if (item_slot == "Lemonade") battle_menu_option_string = "* Lemonade"; else if (item_slot == "Candy Corn") battle_menu_option_string = "* Candy Corn"; else if (item_slot == "Corn Dog") battle_menu_option_string = "* Corn Dog"; else if (item_slot == "Sponge Cake") battle_menu_option_string = "* Sponge Cake"; else if (item_slot == "Homemade Cookie") battle_menu_option_string = "* Cookie"; else if (item_slot == "Hot Pop") battle_menu_option_string = "* Hot Pop"; else if (item_slot == "Lukewarm Pop") battle_menu_option_string = "* Lukewarm Pop"; else if (item_slot == "Cold Pop") battle_menu_option_string = "* Cold Pop"; else if (item_slot == "Coffee") battle_menu_option_string = "* Coffee"; else if (item_slot == "Pancake") battle_menu_option_string = "* Pancake"; else if (item_slot == "G.B. Bear") battle_menu_option_string = "* G.B. Bear"; else if (item_slot == "Packing Peanuts") battle_menu_option_string = "* Peanuts"; else if (item_slot == "Moss Salad") battle_menu_option_string = "* Moss Salad"; else if (item_slot == "Dihydrogen Monoxide") battle_menu_option_string = "* H2O"; else if (item_slot == "Gravity Granola") battle_menu_option_string = "* G Granola"; else if (item_slot == "Floral Cupcake") battle_menu_option_string = "* Fl Cupcake"; else if (item_slot == "Popato Chisps") battle_menu_option_string = "* Chisps"; else if (item_slot == "Monster Candy") battle_menu_option_string = "* MnstrCndy"; else if (item_slot == "Monster Candy+") battle_menu_option_string = "* MnstrCndy+"; else if (item_slot == "Feisty Slider") battle_menu_option_string = "* F Slider"; else if (item_slot == "G. Pear") battle_menu_option_string = "* Pear"; else if (item_slot == "G. Coffee") battle_menu_option_string = "* G. Coffee"; else if (item_slot == "Toy Gun") battle_menu_option_string = "* Toy Gun"; else if (item_slot == "Wild Revolver") battle_menu_option_string = "* W. Revolver"; else if (item_slot == "Worn Hat") battle_menu_option_string = "* Worn Hat"; else if (item_slot == "Rubber Ammo") battle_menu_option_string = "* Rubber"; else if (item_slot == "Pebble Ammo") battle_menu_option_string = "* Pebbles"; else if (item_slot == "Ice Pellets") battle_menu_option_string = "* Ice Ammo"; else if (item_slot == "Cff Bean Ammo") battle_menu_option_string = "* Coffee Ammo"; else if (item_slot == "Glass Ammo") battle_menu_option_string = "* Glass Ammo"; else if (item_slot == "Flint") battle_menu_option_string = "* Flint Ammo"; else if (item_slot == "Silver Ammo") battle_menu_option_string = "* Silver Ammo"; else if (item_slot == "Super Ammo") battle_menu_option_string = "* Super Ammo"; else if (item_slot == "Friendliness Pellets") battle_menu_option_string = "* F Pellets"; else if (item_slot == "Patch") battle_menu_option_string = "* Patch"; else if (item_slot == "Feather") battle_menu_option_string = "* Feather"; else if (item_slot == "Honeydew Pin") battle_menu_option_string = "* Honeydew Pin"; else if (item_slot == "Band Merch Pin") battle_menu_option_string = "* Band Pin"; else if (item_slot == "Fancy Holster") battle_menu_option_string = "* F Holster"; ...
()
2
{
3
    var item_object_hold = global.item_object_hold;
4
    var draw_x_disjoint = item_object_hold.draw_x_disjoint;
5
    var draw_y_disjoint = item_object_hold.draw_y_disjoint;
6
    var item_slot = item_object_hold.item_slot;
7
    if (global.game_mode == "customs")
8
    {
9
        if (item_slot == "Hot Dog...?")
10
            battle_menu_option_string = "* Hot Dog";
11
    }
12
    else if (global.game_mode == "yellow")
13
    {
14
        if (item_slot == "Missing Poster")
15
            battle_menu_option_string = "* Poster";
16
        else if (item_slot == "Snowdin Map")
17
            battle_menu_option_string = "* Snowdin Map";
18
        else if (item_slot == "Matches")
19
            battle_menu_option_string = "* Matches";
20
        else if (item_slot == "Lukewarm Coffee")
21
            battle_menu_option_string = "* Lukewarm Cff";
22
        else if (item_slot == "Soggy Mitten")
23
            battle_menu_option_string = "* Soggy Mitten";
24
        else if (item_slot == "Lemonade")
25
            battle_menu_option_string = "* Lemonade";
26
        else if (item_slot == "Candy Corn")
27
            battle_menu_option_string = "* Candy Corn";
28
        else if (item_slot == "Corn Dog")
29
            battle_menu_option_string = "* Corn Dog";
30
        else if (item_slot == "Sponge Cake")
31
            battle_menu_option_string = "* Sponge Cake";
32
        else if (item_slot == "Homemade Cookie")
33
            battle_menu_option_string = "* Cookie";
34
        else if (item_slot == "Hot Pop")
35
            battle_menu_option_string = "* Hot Pop";
36
        else if (item_slot == "Lukewarm Pop")
37
            battle_menu_option_string = "* Lukewarm Pop";
38
        else if (item_slot == "Cold Pop")
39
            battle_menu_option_string = "* Cold Pop";
40
        else if (item_slot == "Coffee")
41
            battle_menu_option_string = "* Coffee";
42
        else if (item_slot == "Pancake")
43
            battle_menu_option_string = "* Pancake";
44
        else if (item_slot == "G.B. Bear")
45
            battle_menu_option_string = "* G.B. Bear";
46
        else if (item_slot == "Packing Peanuts")
47
            battle_menu_option_string = "* Peanuts";
48
        else if (item_slot == "Moss Salad")
49
            battle_menu_option_string = "* Moss Salad";
50
        else if (item_slot == "Dihydrogen Monoxide")
51
            battle_menu_option_string = "* H2O";
52
        else if (item_slot == "Gravity Granola")
53
            battle_menu_option_string = "* G Granola";
54
        else if (item_slot == "Floral Cupcake")
55
            battle_menu_option_string = "* Fl Cupcake";
56
        else if (item_slot == "Popato Chisps")
57
            battle_menu_option_string = "* Chisps";
58
        else if (item_slot == "Monster Candy")
59
            battle_menu_option_string = "* MnstrCndy";
60
        else if (item_slot == "Monster Candy+")
61
            battle_menu_option_string = "* MnstrCndy+";
62
        else if (item_slot == "Feisty Slider")
63
            battle_menu_option_string = "* F Slider";
64
        else if (item_slot == "G. Pear")
65
            battle_menu_option_string = "* Pear";
66
        else if (item_slot == "G. Coffee")
67
            battle_menu_option_string = "* G. Coffee";
68
        else if (item_slot == "Toy Gun")
69
            battle_menu_option_string = "* Toy Gun";
70
        else if (item_slot == "Wild Revolver")
71
            battle_menu_option_string = "* W. Revolver";
72
        else if (item_slot == "Worn Hat")
73
            battle_menu_option_string = "* Worn Hat";
74
        else if (item_slot == "Rubber Ammo")
75
            battle_menu_option_string = "* Rubber";
76
        else if (item_slot == "Pebble Ammo")
77
            battle_menu_option_string = "* Pebbles";
78
        else if (item_slot == "Ice Pellets")
79
            battle_menu_option_string = "* Ice Ammo";
80
        else if (item_slot == "Cff Bean Ammo")
81
            battle_menu_option_string = "* Coffee Ammo";
82
        else if (item_slot == "Glass Ammo")
83
            battle_menu_option_string = "* Glass Ammo";
84
        else if (item_slot == "Flint")
85
            battle_menu_option_string = "* Flint Ammo";
86
        else if (item_slot == "Silver Ammo")
87
            battle_menu_option_string = "* Silver Ammo";
88
        else if (item_slot == "Super Ammo")
89
            battle_menu_option_string = "* Super Ammo";
90
        else if (item_slot == "Friendliness Pellets")
91
            battle_menu_option_string = "* F Pellets";
92
        else if (item_slot == "Patch")
93
            battle_menu_option_string = "* Patch";
94
        else if (item_slot == "Feather")
95
            battle_menu_option_string = "* Feather";
96
        else if (item_slot == "Honeydew Pin")
97
            battle_menu_option_string = "* Honeydew Pin";
98
        else if (item_slot == "Band Merch Pin")
99
            battle_menu_option_string = "* Band Pin";
100
        else if (item_slot == "Fancy Holster")
101
            battle_menu_option_string = "* F Holster";
102
        else if (item_slot == "Safety Goggles")
103
            battle_menu_option_string = "* Goggles";
104
        else if (item_slot == "Delta Rune Patch")
105
            battle_menu_option_string = "* DR Patch";
106
        else if (item_slot == "Golden Scarf")
107
            battle_menu_option_string = "* G Scarf";
108
        else
109
            battle_menu_option_string = "* " + item_slot;
110
    }
111
    battle_menu_option_x = obj_dialogue_box_battle.x + draw_x_disjoint;
112
    battle_menu_option_y = obj_dialogue_box_battle.y + draw_y_disjoint;
113
    script_execute(scr_draw_text_effect_twitchy_textbox_battle_menu_options);
114
}