Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_spawner_asgore_warning_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
turn_count = irandom_range(3, 4)
4
attack_offset = 30
5
alarm[0] = 1
alarm[0]

if live_call() return global.live_result; var battle_box = obj_dialogue_box_battle_transformation_any var xx = battle_box.bbox_left + 10 if (obj_heart_battle_fighting_parent.x > 320) xx = battle_box.x - 6 instance_create_depth(xx, (battle_box.bbox_top + 10), -100, obj_battle_enemy_attack_asgore_warning) alarm[0] = attack_offset turn_count-- if (turn_count <= 0) { obj_battle_enemy_attack_asgore_checker.alarm[0] = 15 instance_destroy() }