Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_trihecta_circle_stack

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

function scr_enemy_attack_trihecta_circle_stack() //gml_Script_scr_enemy_attack_trihecta_circle_stack { if (!instance_exists(obj_battle_enemy_attack_trihecta_circle_stack_lead)) { var green = 0 var random_pos = irandom_range(0, 2) var random_side = irandom_range(0, 1) if (random_side == 0) var x_side = obj_dialogue_box_battle_transformation_any.bbox_left + 5 + 21 else x_side = obj_dialogue_box_battle_transformation_any.bbox_right - 5 - 20 if (random_pos == 0) { if (green == 1) { } instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5 + 42), obj_battle_enemy_attack_trihecta_circle_stack_lead) instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5 + 84), obj_battle_enemy_attack_trihecta_circle_stack_white) } else if (random_pos == 1) { if (green == 1) { } instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5), obj_battle_enemy_attack_trihecta_circle_stack_lead) instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5 + 84), obj_battle_enemy_attack_trihecta_circle_stack_white) } else if (random_pos == 2) { if (green == 1) { } instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5), obj_battle_enemy_attack_trihecta_circle_stack_lead) instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5 + 42), obj_battle_enemy_attack_trihecta_circle_stack_white) } } }
() //gml_Script_scr_enemy_attack_trihecta_circle_stack
2
{
3
    if (!instance_exists(obj_battle_enemy_attack_trihecta_circle_stack_lead))
4
    {
5
        var green = 0
6
        var random_pos = irandom_range(0, 2)
7
        var random_side = irandom_range(0, 1)
8
        if (random_side == 0)
9
            var x_side = obj_dialogue_box_battle_transformation_any.bbox_left + 5 + 21
10
        else
11
            x_side = obj_dialogue_box_battle_transformation_any.bbox_right - 5 - 20
12
        if (random_pos == 0)
13
        {
14
            if (green == 1)
15
            {
16
            }
17
            instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5 + 42), obj_battle_enemy_attack_trihecta_circle_stack_lead)
18
            instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5 + 84), obj_battle_enemy_attack_trihecta_circle_stack_white)
19
        }
20
        else if (random_pos == 1)
21
        {
22
            if (green == 1)
23
            {
24
            }
25
            instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5), obj_battle_enemy_attack_trihecta_circle_stack_lead)
26
            instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5 + 84), obj_battle_enemy_attack_trihecta_circle_stack_white)
27
        }
28
        else if (random_pos == 2)
29
        {
30
            if (green == 1)
31
            {
32
            }
33
            instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5), obj_battle_enemy_attack_trihecta_circle_stack_lead)
34
            instance_create(x_side, (obj_dialogue_box_battle_transformation_any.bbox_top + 5 + 42), obj_battle_enemy_attack_trihecta_circle_stack_white)
35
        }
36
    }
37
}