Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_phase_2_controller_patchwork_Step_0

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

instance_create_depth(0, 0, -100, obj_flowey_battle_phase_2_stage_destroy_effect) obj_flowey_battle_final.stage_switch = 0 hand_spawn_chance_curent = 999999 alarm[1] = 999
8
}
9
if (rng == 1)
10
{
11
    var xx = choose(130, 510)
12
    var yy = choose(irandom_range(300, 420), obj_heart_battle_fighting_parent.y)
13
    instance_create_depth(xx, yy, -100, obj_flowey_battle_phase_2_yarn_hand_shoot)
14
    hand_spawn_chance_curent = hand_spawn_chance_max
15
}
16
else if (hand_spawn_chance_curent > 1)
17
    hand_spawn_chance_curent -= 1