1 |
if live_call() |
2 |
return global.live_result; |
3 |
battle_box = obj_dialogue_box_battle_transformation_any |
4 |
attack_tick = 0 |
5 |
scr_enable_battle_box_surface() |
6 |
obj_surface_drawer.depth = -100 |
7 |
road_1 = instance_create_depth((battle_box.bbox_left + 4), (battle_box.bbox_top + 7), 101, obj_battle_enemy_attack_macro_road) |
8 |
road_2 = instance_create_depth((battle_box.bbox_left + 4), (battle_box.bbox_top + 7 + 68), 101, obj_battle_enemy_attack_macro_road) |
9 |
instance_create_depth(battle_box.x, (battle_box.bbox_top + 7), 101, obj_battle_enemy_attack_macro_road) |
10 |
instance_create_depth(battle_box.x, (battle_box.bbox_top + 7 + 68), 101, obj_battle_enemy_attack_macro_road) |
11 |
car_delay = 45 |
12 |
alarm[0] = car_delayalarm[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() |
13 |
alarm[1] = car_delay * 1.5alarm[1]if live_call()
return global.live_result;
instance_create_depth((battle_box.bbox_right + 20), (road_2.y + 38), -100, obj_battle_enemy_attack_macro_car)
alarm[1] = car_delay |
14 |
car_count = 6 |
15 |
spawn_probability = 40 |
16 |
frog_noloop = false |