Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_goosic_disk_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; }
("goosic a", "goosic b", "void");
4
direction = 90;
5
image_alpha = 0;
6
spin_speed = 0;
7
slow_down_noloop = false;
8
scene = 0;
9
cutscene_timer = 0;
10
launch_timer = 1 * room_speed;
11
launch_timer_max = launch_timer;
12
disc_yoffset = 60;
13
vsp = 0;
14
arrow_alpha = 0;
15
alarm[0] = 2;
gml_Object_obj_battle_enemy_attack_goosic_disk_Alarm_0.gml

if (live_call()) return global.live_result; if (image_alpha < 1) { image_alpha += 0.2; alarm[0] = 2; } else { scene = 1; }
16
alarm[1] = room_speed * 10;