Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_flowergirls_falling_flowers_creator_Alarm_0

(view raw script w/o annotations or w/e)
1
var box = obj_dialogue_box_battle_transformation_any
2
if (!green_flower_spawned)
3
{
4
    if ((flower_spawned_count > 1 && irandom(10) == 1) || flower_spawned_count == (flower_spawned_max - 3))
5
    {
6
        instance_create(choose((box.bbox_left - 40), (box.bbox_right + 40)), irandom_range((box.bbox_top - 15), box.bbox_bottom), obj_battle_enemy_attack_flowergirls_falling_flowers_flower_green)
7
        green_flower_spawned = true
8
        alarm[0] = 30
alarm[0]

var box = obj_dialogue_box_battle_transformation_any if (!green_flower_spawned) { if ((flower_spawned_count > 1 && irandom(10) == 1) || flower_spawned_count == (flower_spawned_max - 3)) { instance_create(choose((box.bbox_left - 40), (box.bbox_right + 40)), irandom_range((box.bbox_top - 15), box.bbox_bottom), obj_battle_enemy_attack_flowergirls_falling_flowers_flower_green) green_flower_spawned = true alarm[0] = 30 return; } } instance_create(choose((box.bbox_left - 40), (box.bbox_right + 40)), irandom_range((box.bbox_top - 60), box.bbox_bottom), obj_battle_enemy_attack_flowergirls_falling_flowers_flower) flower_spawned_count += 1 if (flower_spawned_count >= flower_spawned_max) alarm[1] = 30 else alarm[0] = 22
9
        return;
10
    }
11
}
12
instance_create(choose((box.bbox_left - 40), (box.bbox_right + 40)), irandom_range((box.bbox_top - 60), box.bbox_bottom), obj_battle_enemy_attack_flowergirls_falling_flowers_flower)
13
flower_spawned_count += 1
14
if (flower_spawned_count >= flower_spawned_max)
15
    alarm[1] = 30
alarm[1]

instance_destroy()
16
else
17
    alarm[0] = 22
alarm[0]

var box = obj_dialogue_box_battle_transformation_any if (!green_flower_spawned) { if ((flower_spawned_count > 1 && irandom(10) == 1) || flower_spawned_count == (flower_spawned_max - 3)) { instance_create(choose((box.bbox_left - 40), (box.bbox_right + 40)), irandom_range((box.bbox_top - 15), box.bbox_bottom), obj_battle_enemy_attack_flowergirls_falling_flowers_flower_green) green_flower_spawned = true alarm[0] = 30 return; } } instance_create(choose((box.bbox_left - 40), (box.bbox_right + 40)), irandom_range((box.bbox_top - 60), box.bbox_bottom), obj_battle_enemy_attack_flowergirls_falling_flowers_flower) flower_spawned_count += 1 if (flower_spawned_count >= flower_spawned_max) alarm[1] = 30 else alarm[0] = 22