scripted_gui = {
	add_building_button = {
	
		context_type = selected_state_context
		
		window_name = "add_building_button_container"
		
		visible = {
			is_controlled_by = ROOT
		}
		
		effects = {
		
			add_building_click = {
				ROOT = { 
					add_political_power = -15
					add_stability = -0.001
					add_manpower = -500
				}
				PREV = {
					add_extra_state_shared_building_slots = 1
					
					
				}
			}
			
		}
		triggers = {
			add_building_click_enabled = {
				check_variable = { ROOT.political_power > 24.99 }
			}
		}
		        
		ai_check = {
			check_variable = { ROOT.political_power > 24.99 }
			check_variable = { ai_random > 0.65 }
		}
		
		ai_weights = {
			add_building_click = {
				ai_will_do = {
					factor = 1
				}
			}
		}
	}
}

