Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_battle_menu_Create_0

(view raw script w/o annotations or w/e)
1
moveable = false
2
no_loop = true
3
no_loop_moveable = false
4
if (global.battling_boss == true)
5
    no_loop_determine_sparing = true
6
else
7
    no_loop_determine_sparing = false
8
alarm[0] = 1
alarm[0]

moveable = true
9
image_speed = 0
10
image_index = 0
11
text_deadlock_1 = false
12
text_desdlock_contents_1 = 3016
13
var player_character = global.player_character
14
switch player_character
15
{
16
    case "CLOVER":
17
        sprite_index = spr_heart_yellow_down
18
        break
19
    default:
20
        var soul_mode = global.soul_mode
21
        if (soul_mode == "Red")
22
        {
23
            sprite_index = spr_heart_red
24
            break
25
        }
26
        else if (soul_mode == "Blue")
27
        {
28
            sprite_index = spr_heart_blue_down
29
            break
30
        }
31
        else if (soul_mode == "Green")
32
        {
33
            sprite_index = spr_heart_green
34
            break
35
        }
36
        else if (soul_mode == "Purple")
37
        {
38
            sprite_index = spr_heart_purple
39
            break
40
        }
41
        else if (soul_mode == "Yellow")
42
        {
43
            sprite_index = spr_heart_yellow_up_original
44
            break
45
        }
46
        else if (soul_mode == "Yellow Rhythm")
47
            sprite_index = spr_heart_yellow_down
48
}