Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_macro_frog_choir_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
instance_create_depth(battle_box.x, (battle_box.bbox_bottom - 4), -100, obj_battle_enemy_attack_macro_frog_choir_conductor)
5
max_frogs = 10
6
green_frog_spawn_point = irandom_range(2, 5)
7
spawn_green_frog = false
8
platform_speed = 3
9
platform_delay = 30
10
alarm[0] = 30
alarm[0]

if live_call() return global.live_result; var left_platform = instance_create_depth((battle_box.bbox_left - 30), (battle_box.bbox_top + 50), -100, obj_battle_enemy_attack_macro_choir_platform) left_platform.hspeed = platform_speed var right_platform = instance_create_depth((battle_box.bbox_right + 30), (battle_box.bbox_top + 120), -110, obj_battle_enemy_attack_macro_choir_platform) right_platform.hspeed = (-platform_speed) max_frogs -= 1 if (max_frogs == green_frog_spawn_point) spawn_green_frog = true if (max_frogs > 0) alarm[0] = platform_delay else instance_destroy()
11
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) }
()