Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_bullet_2_Create_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
damage_number = scr_determine_damage_number_enemy
scr_determine_damage_number_enemy

function scr_determine_damage_number_enemy(arg0, arg1, arg2) { var enemy_count = global.enemy_count; if (global.battle_enemy_name_1 == arg0) return 1; else if (enemy_count >= 2 && global.battle_enemy_name_2 == arg1) return 2; else if (enemy_count >= 3 && global.battle_enemy_name_3 == arg2) return 3; else return 0; }
("ceroba", "void", "void");
4
image_alpha = 1;
5
target_x = obj_heart_battle_fighting_parent.x;
6
target_y = obj_heart_battle_fighting_parent.y;
7
turn_rate = 0.06;
8
destroy_on_contact = true;
9
speed = 9;
10
speed_inc = 0.05;
11
speed_max = 20;
12
direction = 270;
13
image_angle = direction;
14
aim = 12;