[logic]
active = sr_idle@waiting_for_actor

[sr_idle@waiting_for_actor]
on_info = {=actor_in_zone(jup_b10_secret_zone_01)} sr_idle@counter_selector

[sr_idle@counter_selector]
on_info = {=counter_equal(jup_b10_ufo_counter:0)} sr_idle@counter_0
on_info2 = {=counter_equal(jup_b10_ufo_counter:1)} sr_idle@counter_1
on_info3 = {=counter_equal(jup_b10_ufo_counter:2)} sr_idle@counter_2
on_info4 = {=counter_equal(jup_b10_ufo_counter:3)} sr_idle@end

[sr_idle@counter_0]
on_info = {-jup_b10_ufo_memory_at_nitros} sr_idle@clear_box_01 %=spawn_object_in(jup_b10_notes_01:jup_b10_secret_01) =jup_b10_spawn_drunk_dead_items(jup_b10_secret_01)%
on_info2 = {+jup_b10_ufo_memory_at_nitros} sr_idle@clear_box_01 %=spawn_object_in(jup_b10_notes_01:jup_b10_secret_01)%

[sr_idle@counter_1]
on_info = {-jup_b10_ufo_memory_at_nitros} sr_idle@clear_box_02 %=spawn_object_in(jup_b10_notes_02:jup_b10_secret_01) =jup_b10_spawn_drunk_dead_items(jup_b10_secret_01)%
on_info2 = {+jup_b10_ufo_memory_at_nitros} sr_idle@clear_box_02 %=spawn_object_in(jup_b10_notes_02:jup_b10_secret_01)%

[sr_idle@counter_2]
on_info = sr_idle@clear_box_03 %=spawn_object_in(jup_b10_notes_03:jup_b10_secret_01) =jup_b10_spawn_drunk_dead_items(jup_b10_secret_01)%

[sr_idle@clear_box_01]
on_info = {!actor_in_zone(jup_b10_secret_zone_01)} sr_idle@waiting_for_actor %=clear_box(jup_b10_secret_01)%
on_info2 = {=counter_equal(jup_b10_ufo_counter:1)} sr_idle@end %+info_b10_first_zone_visited%

[sr_idle@clear_box_02]
on_info = {!actor_in_zone(jup_b10_secret_zone_01)} sr_idle@waiting_for_actor %=clear_box(jup_b10_secret_01)%
on_info2 = {=counter_equal(jup_b10_ufo_counter:2)} sr_idle@end %+info_b10_first_zone_visited%

[sr_idle@clear_box_03]
on_info = {!actor_in_zone(jup_b10_secret_zone_01)} sr_idle@waiting_for_actor %=clear_box(jup_b10_secret_01)%
on_info2 = {=counter_equal(jup_b10_ufo_counter:3)} sr_idle@end %+info_b10_first_zone_visited%

[sr_idle@end]
