Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_asgore_checker_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
counter_current = 0
4
counter_timer = 0
5
depth = -500
6
spawner_list = ds_list_create()
7
ds_list_add(spawner_list, 1592)
8
ds_list_add(spawner_list, 873)
9
ds_list_add(spawner_list, 2596)
10
ds_list_add(spawner_list, 1350)
11
ds_list_add(spawner_list, 985)
12
spawner_list_original = ds_list_create()
13
ds_list_copy(spawner_list_original, spawner_list)
14
alarm[0] = 30
alarm[0]

if live_call() return global.live_result; var random_number = irandom_range(0, (ds_list_size(spawner_list) - 1)) var attack_instance = ds_list_find_value(spawner_list, random_number) ds_list_delete(spawner_list, random_number) instance_create(0, 0, attack_instance) if ds_list_empty(spawner_list) ds_list_copy(spawner_list, spawner_list_original)
15
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) }
()
16
alarm[1] = 1200
alarm[1]

if live_call() return global.live_result; if (!unavoidable_attack) { soul_can_hurt = true ds_list_empty(spawner_list) ds_list_add(spawner_list, 1339) unavoidable_attack = true alarm[1] = 600 } else { unavoidable_attack = false alarm[1] = 1 }
17
soul_shake = false
18
soul_can_hurt = false
19
fade_out = false
20
draw_alpha = 0
21
stage = 1
22
scene = -2
23
cutscene_timer = 0
24
fade_out_alpha = 0
25
unavoidable_attack = false