Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_asgore_checker_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var random_number = irandom_range(0, (ds_list_size(spawner_list) - 1))
4
var attack_instance = ds_list_find_value(spawner_list, random_number)
5
ds_list_delete(spawner_list, random_number)
6
instance_create(0, 0, attack_instance)
7
if ds_list_empty(spawner_list)
8
    ds_list_copy(spawner_list, spawner_list_original)