Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_1_controller_base_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (instance_number(object_index) > 1)
4
    instance_destroy()
5
if (global.flowey_battle_1_phase == 0 || global.flowey_battle_1_phase == 1)
6
{
7
    global.flowey_battle_1_phase = 1
8
    global.flowey_attack_list = ds_list_create()
9
    global.flowey_stolen_attack_list = ds_list_create()
10
    global.flowey_attack_number = 0
11
    ds_list_add(global.flowey_attack_list, 1, 2, 3, 4, 5, 6, 7, 8, 9)
12
    if (global.flag[15 Decibat fate] == 3)
13
        ds_list_add(global.flowey_stolen_attack_list, 1)
14
    if (global.dunes_flag[26] == 3)
15
        ds_list_add(global.flowey_stolen_attack_list, 2)
16
    if (global.dunes_flag[24] == 2)
17
        ds_list_add(global.flowey_stolen_attack_list, 3)
18
    if (global.sworks_flag[20] == 3)
19
        ds_list_add(global.flowey_stolen_attack_list, 4)
20
    if (global.sworks_flag[31] >= 3)
21
        ds_list_add(global.flowey_stolen_attack_list, 5)
22
    if (global.flag[17 Dalv fate] == 2)
23
        ds_list_add(global.flowey_stolen_attack_list, 6)
24
    if (global.dunes_flag[40] == 1)
25
        ds_list_add(global.flowey_stolen_attack_list, 7)
26
    global.flowey_room_list = ds_list_create()
27
    ds_list_add(global.flowey_room_list, 226, 227, 228, 229, 230, 231)
28
    global.flowey_act[0] = irandom_range(0, 4)
29
    global.flowey_act[1] = irandom_range(0, 4)
30
    global.flowey_act[2] = irandom_range(0, 4)
31
}