Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_start_enemy_attacking_trihecta_together

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

function scr_start_enemy_attacking_trihecta_together() //gml_Script_scr_start_enemy_attacking_trihecta_together { instance_create(319, 320, obj_dialogue_box_battle_transformation_any) var quote_position = irandom_range(0, 2) if (quote_position == 0) instance_create(366, 136, obj_quote_bubble_battle_yellow_2) else if (quote_position == 1) instance_create(84, 70, obj_quote_bubble_battle_yellow_2_reverse) else if (quote_position == 2) { if (obj_trihecta_together.sprite_index == spr_trihecta_tipping) instance_create(386, 10, obj_quote_bubble_battle_yellow_2) else instance_create(366, 10, obj_quote_bubble_battle_yellow_2) } obj_quote_bubble_battle.position = quote_position instance_create(0, 0, obj_quote_battle_trihecta) instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red) }
() //gml_Script_scr_start_enemy_attacking_trihecta_together
2
{
3
    instance_create(319, 320, obj_dialogue_box_battle_transformation_any)
4
    var quote_position = irandom_range(0, 2)
5
    if (quote_position == 0)
6
        instance_create(366, 136, obj_quote_bubble_battle_yellow_2)
7
    else if (quote_position == 1)
8
        instance_create(84, 70, obj_quote_bubble_battle_yellow_2_reverse)
9
    else if (quote_position == 2)
10
    {
11
        if (obj_trihecta_together.sprite_index == spr_trihecta_tipping)
12
            instance_create(386, 10, obj_quote_bubble_battle_yellow_2)
13
        else
14
            instance_create(366, 10, obj_quote_bubble_battle_yellow_2)
15
    }
16
    obj_quote_bubble_battle.position = quote_position
17
    instance_create(0, 0, obj_quote_battle_trihecta)
18
    instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), round(obj_dialogue_box_battle_transformation_any.bbox_top + (obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2), obj_heart_battle_fighting_red)
19
}