on_queued = { if = { limit = { is_variable_set = local_spent_biomass } from = { global_biomass_spender = yes } } if = { limit = { this = { num_uncleared_blockers > 0 } } export_trigger_value_to_variable = { trigger = num_uncleared_blockers variable = wilderness_blockers_to_spawn } } } on_unqueued = { if = { limit = { is_variable_set = local_spent_biomass } from = { random_owned_planet = { limit = { is_habitable_for_wilderness = yes } unqueue_biomass_effect = yes } } } if = { limit = { is_variable_set = wilderness_blockers_to_spawn } clear_variable = wilderness_blockers_to_spawn } } effect = { from = { if = { limit = { is_variable_set = wilderness_blockers_to_spawn } while = { count = wilderness_blockers_to_spawn add_deposit = random_blocker } clear_variable = wilderness_blockers_to_spawn } } }