Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_battle_menu_fake_martlet_Other_10

(view raw script w/o annotations or w/e)
1
var special_effect_end_value = global.special_effect_end_value
2
var player_character = global.player_character
3
if (special_effect_end_value != "")
4
    scr_determine_special_effect_end_enemy
scr_determine_special_effect_end_enemy

function scr_determine_special_effect_end_enemy(argument0) //gml_Script_scr_determine_special_effect_end_enemy { var game_mode = global.game_mode var battle_enemy_name = global.battle_enemy_name if (global.game_mode == "customs") { } else if (global.game_mode == "yellow") { switch battle_enemy_name { case "martlet pacifist": scr_enemy_mode_shift_end_martlet_pacifist(argument0) break case "martlet genocide": scr_enemy_mode_shift_end_martlet_genocide(argument0) break } } global.special_effect_end_value = "" }
(special_effect_end_value)
5
switch player_character
6
{
7
    case "CLOVER":
8
        sprite_index = spr_heart_yellow_down
9
        break
10
    default:
11
        var soul_mode = global.soul_mode
12
        if (soul_mode == "Red")
13
        {
14
            sprite_index = spr_heart_red
15
            break
16
        }
17
        else if (soul_mode == "Blue")
18
        {
19
            sprite_index = spr_heart_blue_down
20
            break
21
        }
22
        else if (soul_mode == "Yellow")
23
            sprite_index = spr_heart_yellow_down
24
}