Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_macro_frog_choir_conductor_Other_76

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var battle_box = obj_dialogue_box_battle_transformation_any
4
if (ds_map_find_value(event_data, "event_type") == "sprite event")
5
{
6
    switch ds_map_find_value(event_data, "message")
7
    {
8
        case "conductor_left":
9
            instance_create_depth((battle_box.bbox_left + 30), (battle_box.bbox_bottom + 20), -100, obj_battle_enemy_attack_macro_choir_note)
10
            break
11
        case "conductor_mid":
12
            instance_create_depth(battle_box.x, (battle_box.bbox_bottom + 20), -100, obj_battle_enemy_attack_macro_choir_note)
13
            break
14
        case "conductor_right":
15
            instance_create_depth((battle_box.bbox_right - 30), (battle_box.bbox_bottom + 20), -100, obj_battle_enemy_attack_macro_choir_note)
16
            break
17
    }
18
19
}