Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_phase_1_leaves_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 + 5), -110, obj_battle_enemy_attack_ceroba_petal_pile)
5
instance_create_depth(0, 0, -100, obj_battle_enemy_attack_ceroba_phase_1_background_leaves)
6
spawn_rate = 7
7
alarm[0] = 30
alarm[0]

if live_call() return global.live_result; var offset = random_range(1, 30) instance_create_depth(choose((battle_box.bbox_left - offset), (battle_box.bbox_right + offset)), random_range((battle_box.bbox_top + 15), (battle_box.bbox_bottom - 15)), -100, obj_battle_enemy_attack_ceroba_petal) alarm[0] = spawn_rate if (obj_battle_enemy_attack_ceroba_petal_pile.vspeed == 0) obj_battle_enemy_attack_ceroba_petal_pile.vspeed = (-((90 / attack_length)))
8
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) }
()
9
attack_length = 270
10
alarm[1] = attack_length
alarm[1]

if live_call() return global.live_result; instance_destroy()
11
alarm[2] = 30
alarm[2]

audio_play_sound(snd_mart_wind, 1, 0)