Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_battle_menu_mercy_Create_0

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