Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_damage_special_condition_reticle_yellow

(view raw script w/o annotations or w/e)
1
function scr_damage_special_condition_reticle_yellow
scr_damage_special_condition_reticle_yellow

function scr_damage_special_condition_reticle_yellow() //gml_Script_scr_damage_special_condition_reticle_yellow { if (global.battling_boss == true) var battle_enemy_name = global.battle_enemy_name else { var act_number = global.act_number switch act_number { case 1: battle_enemy_name = global.battle_enemy_name_1 break case 2: battle_enemy_name = global.battle_enemy_name_2 break case 3: battle_enemy_name = global.battle_enemy_name_3 break default: battle_enemy_name = global.battle_enemy_name_1 } } if (battle_enemy_name == "micro froggit") { if (outline <= (small_circle * 0.25)) global.enemy_vulnerable = true else global.enemy_vulnerable = false } }
() //gml_Script_scr_damage_special_condition_reticle_yellow
2
{
3
    if (global.battling_boss == true)
4
        var battle_enemy_name = global.battle_enemy_name
5
    else
6
    {
7
        var act_number = global.act_number
8
        switch act_number
9
        {
10
            case 1:
11
                battle_enemy_name = global.battle_enemy_name_1
12
                break
13
            case 2:
14
                battle_enemy_name = global.battle_enemy_name_2
15
                break
16
            case 3:
17
                battle_enemy_name = global.battle_enemy_name_3
18
                break
19
            default:
20
                battle_enemy_name = global.battle_enemy_name_1
21
        }
22
23
    }
24
    if (battle_enemy_name == "micro froggit")
25
    {
26
        if (outline <= (small_circle * 0.25))
27
            global.enemy_vulnerable = true
28
        else
29
            global.enemy_vulnerable = false
30
    }
31
}