Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_phase_2_controller_mechanical_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (!instance_exists(obj_flowey_battle_phase_2_mechanical_drone))
4
{
5
    if (!alarm[0])
6
        alarm[0] = 30
alarm[0]

instance_create_depth(0, 0, -100, obj_flowey_battle_phase_2_stage_destroy_effect) obj_flowey_battle_final.stage_switch = 0 scene = 2 alarm[0] = 999
7
}
8
switch scene
9
{
10
    case 0:
11
        instance_create_depth(0, 0, -100, ds_list_find_value(attack_list, 0))
12
        ds_list_shuffle(attack_list)
13
        scene++
14
        break
15
    case 1:
16
        if cutscene_wait(attack_delay)
17
            cutscene_advance(0)
18
        break
19
}