Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_dalv_lightning_spinner_Create_0

(view raw script w/o annotations or w/e)
1
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; }
("dalv", "void", "void");
2
image_speed = 0.6;
3
image_index = 0;
4
image_alpha = 0;
5
draw_position_x = x;
6
draw_position_y = y;
7
spin_speed = 0;
8
spin_speed_increase = 1;
9
spin_speed_max = 60;
10
spin_speed_divider = 2;
11
move_random_number = irandom_range(0, 1);
12
move = false;
13
sign_modifier = -1;
14
time_elapsed = 0;
15
time_max = 360;
16
time_increase = 1;
17
max_rise = abs(x - obj_dialogue_box_battle_transformation_any.bbox_left - 10);