Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_spawner_asgore_sinusoid_Create_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
alarm[0] = 10;
gml_Object_obj_battle_enemy_attack_spawner_asgore_sinusoid_Alarm_0.gml

if (live_call()) return global.live_result; var battle_box = 3154; var type = choose(1, 2, 3); switch (type) { case 1: instance_create_depth(battle_box.bbox_left + 60, -50, -100, obj_battle_enemy_attack_asgore_sinusoid); instance_create_depth(battle_box.bbox_right - 60, -120, -100, obj_battle_enemy_attack_asgore_sinusoid); break; case 2: instance_create_depth(battle_box.bbox_left + 40, battle_box.bbox_top - 60, -100, obj_battle_enemy_attack_asgore_sinusoid); instance_create_depth(battle_box.x, battle_box.bbox_top - 100, -100, obj_battle_enemy_attack_asgore_sinusoid); instance_create_depth(battle_box.bbox_right - 40, battle_box.bbox_top - 140, -100, obj_battle_enemy_attack_asgore_sinusoid); break; case 3: instance_create_depth(battle_box.bbox_right - 40, battle_box.bbox_top - 60, -100, obj_battle_enemy_attack_asgore_sinusoid); instance_create_depth(battle_box.x, battle_box.bbox_top - 100, -100, obj_battle_enemy_attack_asgore_sinusoid); instance_create_depth(battle_box.bbox_left + 40, battle_box.bbox_top - 140, -100, obj_battle_enemy_attack_asgore_sinusoid); break; } attack_count--; if (attack_count > 0) { alarm[0] = 80; } else { obj_battle_enemy_attack_asgore_checker.alarm[0] = 60; instance_destroy(); }
4
attack_count = 2;