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
    image_index = 1
10
else if (place_meeting(x, y, obj_heart_battle_menu) && instance_exists(obj_heart_battle_menu_item))
11
    image_index = 1
12
else
13
    image_index = 0