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;
gml_Object_obj_battle_enemy_attack_macro_frogger_creator_Alarm_0.gml

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;
gml_Object_obj_battle_enemy_attack_macro_frogger_creator_Alarm_2.gml

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
    {
16
        spawn_probability -= 10;
17
    }
18
}
19
if (car_count <= 0)
20
    instance_destroy();