on_actions = { on_monthly_BRA = { random_events = { 1800 = 0 # Custom Events for the Amazon # Disaster Random Events 75 = brazil_amazon.1 # Rampant Wildfires 75 = brazil_amazon.2 # Amazon River Flooding 75 = brazil_amazon.3 # Drought in Amazon Border Regions 75 = brazil_amazon.4 # Tropical Storm Strikes Amazon Region 100 = brazil_amazon.5 # Illegal Clear Cutting 100 = brazil_amazon.6 # Illegal Slash-n-Burn 50 = brazil_amazon.7 75 = brazil_amazon.9 # Poaching Leads to Ecosystem Collapse 50 = brazil_amazon.10 # Illegal Incursions Onto Native Land 50 = brazil_amazon.13 # Jungle Narcotics Field Located 100 = brazil_amazon.14 # [?var:influence_array^0.GetName] Pressures for Conservation 50 = brazil_amazon.15 # Critical Amazon Dam Overflows 1000 = brazil_amazon.21 # The Amazon is Devastated # Positive Events 15 = brazil_amazon.20 # Amazon Establishes Distribution Centre in Amazonas 85 = brazil_amazon.22 # Agro-Industrial Companies Invest in Fields 95 = brazil_amazon.23 # Industrial Mining Companies Exploit Resource Reserves 70 = brazil_amazon.24 # Private Company Develops Infrastructure in the Amazon 80 = brazil_amazon.25 # Private Companies Create New Construction Company 50 = brazil_amazon.26 # Private Companies Replant Portions of the Amazon } effect = { BRA_monthly_amazon_acreage_change = yes if = { limit = { NOT = { has_country_flag = BRA_who_needs_trees_anyways } all_of_scopes = { array = BRA.amazon_states check_variable = { building_level@infrastructure > 4 } check_variable = { building_level@internet_station > 4 } # Check if the total buildings is over 10 THIS = { set_temp_variable = { total_building = building_level@industrial_complex } add_to_temp_variable = { total_building = building_level@arms_factory } add_to_temp_variable = { total_building = building_level@agriculture_district } add_to_temp_variable = { total_building = building_level@offices } } check_variable = { total_building > 24 } } } set_country_flag = BRA_who_needs_trees_anyways } } } }