Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_macro_frogger_creator_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
instance_create_depth(-20, (road_1.y + 38), -100, obj_battle_enemy_attack_macro_car)
4
alarm[0] = car_delay
alarm[0]

if live_call() return global.live_result; instance_create_depth(-20, (road_1.y + 38), -100, obj_battle_enemy_attack_macro_car) alarm[0] = car_delay car_count -= 1 if (car_count <= 5 && frog_noloop == false) { if (irandom(spawn_probability) == 0) { alarm[2] = 15 frog_noloop = true car_count += 2 } else spawn_probability -= 10 } if (car_count <= 0) instance_destroy()
5
car_count -= 1
6
if (car_count <= 5 && frog_noloop == false)
7
{
8
    if (irandom(spawn_probability) == 0)
9
    {
10
        alarm[2] = 15
alarm[2]

var xx = irandom_range((battle_box.bbox_left + 20), (battle_box.bbox_right - 20)) instance_create_depth(xx, (battle_box.bbox_bottom + 20), -100, obj_battle_enemy_attack_macro_frogger) obj_battle_enemy_attack_macro_frogger.vspeed = -3
11
        frog_noloop = true
12
        car_count += 2
13
    }
14
    else
15
        spawn_probability -= 10
16
}
17
if (car_count <= 0)
18
    instance_destroy()