Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_macro_tongue_attack_creator_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
battle_box = obj_dialogue_box_battle_transformation_any
4
attack_tick = 0
5
frog_count = 4
6
scr_enable_battle_box_surface
scr_enable_battle_box_surface

function scr_enable_battle_box_surface() //gml_Script_scr_enable_battle_box_surface { if (!instance_exists(obj_surface_drawer)) instance_create_depth(0, 0, -999, obj_surface_drawer) }
()
7
for (var i = 0; i < frog_count; i++)
8
{
9
    frog_top[i] = instance_create_depth((battle_box.bbox_left - 20 - 45 * i), (battle_box.bbox_bottom - 4), -100, obj_battle_enemy_attack_bigfrog_frog_run)
10
    frog_bot[i] = instance_create_depth((battle_box.bbox_right + 20 + 45 * i), (battle_box.bbox_top + 4), -100, obj_battle_enemy_attack_bigfrog_frog_run)
11
}
12
current_frog_top = choose(0, 1)
13
current_frog_bot = choose(0, 1)
14
attack_delay = 2
15
attack_delay_max = 2
16
spawn_interval = 10
17
alarm[1] = spawn_interval
alarm[1]

if live_call() return global.live_result; var xx = choose((battle_box.bbox_left - 20), (battle_box.bbox_right + 20)) var yy = irandom_range((battle_box.bbox_top + 30), (battle_box.bbox_bottom - 30)) instance_create_depth(xx, yy, -115, obj_battle_enemy_attack_bigfrog_frog_tongue_fly) alarm[1] = spawn_interval
18
alarm[2] = 270
alarm[2]

instance_destroy()