Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_turrets_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
attack_interval = 25
4
attack_interval_big = 85
5
turret_count = 3
6
turret_count_max = 3
7
turret_wave = 3
8
alarm[0] = 15
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()
9
obj_heart_battle_fighting_parent.movement_mode = 2