Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_spawner_asgore_sinusoid_Alarm_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
var battle_box = 3154;
4
var type = choose(1, 2, 3);
5
switch (type)
6
{
7
    case 1:
8
        instance_create_depth(battle_box.bbox_left + 60, -50, -100, obj_battle_enemy_attack_asgore_sinusoid);
9
        instance_create_depth(battle_box.bbox_right - 60, -120, -100, obj_battle_enemy_attack_asgore_sinusoid);
10
        break;
11
    case 2:
12
        instance_create_depth(battle_box.bbox_left + 40, battle_box.bbox_top - 60, -100, obj_battle_enemy_attack_asgore_sinusoid);
13
        instance_create_depth(battle_box.x, battle_box.bbox_top - 100, -100, obj_battle_enemy_attack_asgore_sinusoid);
14
        instance_create_depth(battle_box.bbox_right - 40, battle_box.bbox_top - 140, -100, obj_battle_enemy_attack_asgore_sinusoid);
15
        break;
16
    case 3:
17
        instance_create_depth(battle_box.bbox_right - 40, battle_box.bbox_top - 60, -100, obj_battle_enemy_attack_asgore_sinusoid);
18
        instance_create_depth(battle_box.x, battle_box.bbox_top - 100, -100, obj_battle_enemy_attack_asgore_sinusoid);
19
        instance_create_depth(battle_box.bbox_left + 40, battle_box.bbox_top - 140, -100, obj_battle_enemy_attack_asgore_sinusoid);
20
        break;
21
}
22
attack_count--;
23
if (attack_count > 0)
24
{
25
    alarm[0] = 80;
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(); }
26
}
27
else
28
{
29
    obj_battle_enemy_attack_asgore_checker.alarm[0] = 60;
30
    instance_destroy();
31
}