[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {=actor_in_zone(sr_labx9_a5_holl)} sr_idle@spawn_1 %=create_squad(labx9_a5_snork_1_squad:labx9_a5) =create_squad(labx9_a5_snork_2_squad:labx9_a5)%

[sr_idle@spawn_1]
on_game_timer = 20 | sr_idle@spawn_2 %=create_squad(labx9_a5_snork_3_squad:labx9_a5) =create_squad(labx9_a5_snork_4_squad:labx9_a5)%

[sr_idle@spawn_2]
on_game_timer = 20 | sr_idle@spawn_3 %=create_squad(labx9_a5_snork_5_squad:labx9_a5) =create_squad(labx9_a5_snork_6_squad:labx9_a5)%

[sr_idle@spawn_3]
on_info = {=actor_in_zone(sr_labx9_a5_holl_attack)} sr_idle@counter %=set_counter(labx9_a5_mutant_counter:0) +actor_in_sr_labx9_a5_holl_attack%

[sr_idle@counter]
on_info  = {+labx9_a5_snork_1_squad_death} %-labx9_a5_snork_1_squad_death =inc_counter(labx9_a5_mutant_counter:1) =create_squad(labx9_a5_build_1_squad:labx9_a5)%
on_info2 = {+labx9_a5_snork_2_squad_death} %-labx9_a5_snork_2_squad_death =inc_counter(labx9_a5_mutant_counter:1) =create_squad(labx9_a5_build_2_squad:labx9_a5)%
on_info3 = {+labx9_a5_snork_3_squad_death} %-labx9_a5_snork_3_squad_death =inc_counter(labx9_a5_mutant_counter:1) =create_squad(labx9_a5_build_3_squad:labx9_a5)%
on_info4 = {+labx9_a5_snork_4_squad_death} %-labx9_a5_snork_4_squad_death =inc_counter(labx9_a5_mutant_counter:1) =create_squad(labx9_a5_build_4_squad:labx9_a5)%
on_info5 = {+labx9_a5_snork_5_squad_death} %-labx9_a5_snork_5_squad_death =inc_counter(labx9_a5_mutant_counter:1) =create_squad(labx9_a5_build_5_squad:labx9_a5)%
on_info6 = {+labx9_a5_snork_6_squad_death} %-labx9_a5_snork_6_squad_death =inc_counter(labx9_a5_mutant_counter:1) =create_squad(labx9_a5_build_6_squad:labx9_a5)%
on_info7 = {=counter_greater(labx9_a5_mutant_counter:5)} sr_idle@nil %=remove_counter(labx9_a5_mutant_counter)%

[sr_idle@nil]
