Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_phase_2_attack_spawner_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
battle_box = 3154
4
created_spawner = 0
5
attack_duration = 0
6
alarm[1] = 300
alarm[1]

if live_call() return global.live_result; if (alarm[0] > 0) { alarm[1] = alarm[0] alarm[0] = -1 return; } instance_destroy()
7
attack_list = ds_list_create()
8
ds_list_add(attack_list, 0, 1, 2, 3, 4, 5, 7)
9
modifier_attack = choose(1, 2)
10
modifier_enabled = irandom_range(1, 6)
11
modifier_noloop = false
12
event_user(1)
13
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) }
()