Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_take_aim_slow_checker_Draw_0

(view raw script w/o annotations or w/e)
1
object[0] = obj_battle_hp_max_self
2
object[1] = obj_battle_hp_current_self
3
object[2] = obj_fight
4
object[3] = obj_act
5
object[4] = obj_item
6
object[5] = obj_mercy
7
object[6] = obj_background_enemy_battle_dunes_yellow
8
object[7] = obj_starlo_boss_body
9
object[8] = obj_starlo_boss_head
10
var alpha_new = starlo_take_aim_overlay_alpha
11
var alpha_id = shader_alpha
12
for (var i = 0; i < array_length_1d(object); i++)
13
{
14
    with (object[i])
15
    {
16
        shader_set(sh_grayscale)
17
        shader_set_uniform_f(alpha_id, alpha_new)
18
        draw_self()
19
        shader_reset()
20
    }
21
}