Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_phase_2_controller_gray_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
scene = 0
4
cutscene_timer = 0
5
var intensity_increase = 0.25
6
var destroyed_petal_number = 0
7
for (var i = 0; i < array_length(obj_flowey_battle_final.petal_alive); i++)
8
{
9
    if (obj_flowey_battle_final.petal_alive[i] == 0)
10
        destroyed_petal_number += 1
11
}
12
attack_delay = 3 - destroyed_petal_number * intensity_increase
13
attackmax_repeat = 3
14
attack_list = ds_list_create()
15
ds_list_add(attack_list, 2480, 312, 902, 923, 2432, 923, 725, 555)
16
ds_list_shuffle(attack_list)
17
if (!instance_exists(obj_flowey_gray_eyes))
18
    instance_create_depth(320, 140, -200, obj_flowey_gray_eyes)