Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_pause_menu_Create_0

(view raw script w/o annotations or w/e)
1
xs = 1
2
ys = 1
3
sizex = 1
4
sizey = 1
5
enlarge = 0
6
image_index = 0
7
image_speed = 0
8
selection = 1
9
stats_open = false
10
choice[1] = "ITEM"
11
choice[2] = "STATS"
12
choice[3] = "MAIL"
13
choice[4] = "NOTHING"
14
choice[5] = "NOTHING"
15
item_selected = 1
16
item_inspect = false
17
inventory_open = false
18
item_drop = false
19
mail_selected = 0
20
mail_inspect = false
21
mail_check = false
22
mail_open = false
23
mail_offset = 0
24
mail_display_count = 8
25
audio_play_sound(snd_mainmenu_select, 1, 0)
26
selection_max = 3
27
if (global.player_has_satchel == true)
28
{
29
    var i = 1
30
    while (i <= 5)
31
    {
32
        if (choice[i] == "NOTHING")
33
        {
34
            choice[i] = "BAG"
35
            break
36
        }
37
        else
38
        {
39
            i++
40
            continue
41
        }
42
    }
43
    selection_max += 1
44
}
45
if (global.party_member != -4)
46
{
47
    i = 1
48
    while (i <= 5)
49
    {
50
        if (choice[i] == "NOTHING")
51
        {
52
            choice[i] = "TALK"
53
            break
54
        }
55
        else
56
        {
57
            i++
58
            continue
59
        }
60
    }
61
    selection_max += 1
62
}