Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_battle_menu_item_Create_0

(view raw script w/o annotations or w/e)
1
image_speed = 0
2
image_index = 0
3
var player_character = global.player_character
4
switch player_character
5
{
6
    case "CLOVER":
7
        sprite_index = spr_heart_yellow_down
8
        break
9
    default:
10
        var soul_mode = global.soul_mode
11
        if (soul_mode == "Red")
12
        {
13
            sprite_index = spr_heart_red
14
            break
15
        }
16
        else if (soul_mode == "Blue")
17
        {
18
            sprite_index = spr_heart_blue_down
19
            break
20
        }
21
        else if (soul_mode == "Green")
22
        {
23
            sprite_index = spr_heart_green
24
            break
25
        }
26
        else if (soul_mode == "Purple")
27
        {
28
            sprite_index = spr_heart_purple
29
            break
30
        }
31
        else if (soul_mode == "Yellow")
32
        {
33
            sprite_index = spr_heart_yellow_up_original
34
            break
35
        }
36
        else if (soul_mode == "Yellow Rhythm")
37
            sprite_index = spr_heart_yellow_down
38
}