Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_rorrim_sparkle

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

function scr_enemy_attack_rorrim_sparkle() //gml_Script_scr_enemy_attack_rorrim_sparkle { var distance = 20 global.attack_counter_max = 30 if (global.attack_counter == 0 && global.timer_attacks_counter < 5) { if (global.timer_attacks_counter == 0) instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance), obj_battle_enemy_attack_rorrim_sparkle) else if (global.timer_attacks_counter == 1) instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance), obj_battle_enemy_attack_rorrim_sparkle) else if (global.timer_attacks_counter == 2) instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance), obj_battle_enemy_attack_rorrim_sparkle) else if (global.timer_attacks_counter == 3) instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance), obj_battle_enemy_attack_rorrim_sparkle) global.timer_attacks_counter += 1 } }
() //gml_Script_scr_enemy_attack_rorrim_sparkle
2
{
3
    var distance = 20
4
    global.attack_counter_max = 30
5
    if (global.attack_counter == 0 && global.timer_attacks_counter < 5)
6
    {
7
        if (global.timer_attacks_counter == 0)
8
            instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance), obj_battle_enemy_attack_rorrim_sparkle)
9
        else if (global.timer_attacks_counter == 1)
10
            instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance), obj_battle_enemy_attack_rorrim_sparkle)
11
        else if (global.timer_attacks_counter == 2)
12
            instance_create((obj_dialogue_box_battle_transformation_any.bbox_left - distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance), obj_battle_enemy_attack_rorrim_sparkle)
13
        else if (global.timer_attacks_counter == 3)
14
            instance_create((obj_dialogue_box_battle_transformation_any.bbox_right + distance), (obj_dialogue_box_battle_transformation_any.bbox_top - distance), obj_battle_enemy_attack_rorrim_sparkle)
15
        global.timer_attacks_counter += 1
16
    }
17
}