Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_item_Step_2

(view raw script w/o annotations or w/e)
1
if (global.item_slot[1] == "Nothing" && global.item_slot[2] == "Nothing" && global.item_slot[3] == "Nothing" && global.item_slot[4] == "Nothing")
2
{
3
    if (place_meeting(x, y, obj_heart_battle_menu) && obj_heart_battle_menu.image_alpha == 1)
4
        image_index = 3;
5
    else
6
        image_index = 2;
7
}
8
else if (place_meeting(x, y, obj_heart_battle_menu) && obj_heart_battle_menu.image_alpha == 1)
9
{
10
    image_index = 1;
11
}
12
else if (place_meeting(x, y, obj_heart_battle_menu) && instance_exists(obj_heart_battle_menu_item))
13
{
14
    image_index = 1;
15
}
16
else
17
{
18
    image_index = 0;
19
}