Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_turrets_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var battle_box = obj_dialogue_box_battle_transformation_any
4
var distance = 80
5
var dir = irandom_range(0, 359)
6
instance_create_depth((battle_box.x + (lengthdir_x(distance, dir))), (battle_box.y + (lengthdir_y(distance, dir))), -100, obj_battle_enemy_attack_axis_turret_twinkle)
7
alarm[0] = attack_interval
alarm[0]

if live_call() return global.live_result; var battle_box = obj_dialogue_box_battle_transformation_any var distance = 80 var dir = irandom_range(0, 359) instance_create_depth((battle_box.x + (lengthdir_x(distance, dir))), (battle_box.y + (lengthdir_y(distance, dir))), -100, obj_battle_enemy_attack_axis_turret_twinkle) alarm[0] = attack_interval turret_count-- if (turret_count <= 0) { alarm[0] = attack_interval_big turret_count = turret_count_max turret_wave-- } if (turret_wave <= 0) instance_destroy()
8
turret_count--
9
if (turret_count <= 0)
10
{
11
    alarm[0] = attack_interval_big
alarm[0]

if live_call() return global.live_result; var battle_box = obj_dialogue_box_battle_transformation_any var distance = 80 var dir = irandom_range(0, 359) instance_create_depth((battle_box.x + (lengthdir_x(distance, dir))), (battle_box.y + (lengthdir_y(distance, dir))), -100, obj_battle_enemy_attack_axis_turret_twinkle) alarm[0] = attack_interval turret_count-- if (turret_count <= 0) { alarm[0] = attack_interval_big turret_count = turret_count_max turret_wave-- } if (turret_wave <= 0) instance_destroy()
12
    turret_count = turret_count_max
13
    turret_wave--
14
}
15
if (turret_wave <= 0)
16
    instance_destroy()