MNT_decision_category_clans = {

    MNT_decision_promote_clan_army_leaders = {

		icon = generic_political_discourse

		available = {

		}

		visible = {
			
		}

		fire_only_once = yes
		cost = 50
        days_remove = 100
         
        modifier = {
            
        }        
       
        remove_effect = {

        }
       
		ai_will_do = {
			base = 1000
		}
	}
    MNT_decision_mobilize_the_clan_army = {

		icon = generic_political_discourse

		available = {
			NOT = { 
				has_idea = MNT_idea_clan_mobilisation 
			}
			OR = {
				check_variable = {
					var = montenegro_tension
					 value = 9
					 compare = greater_than_or_equals
				}
				OR = {	
					has_border_war = yes
					has_war = yes
				}
			}
		}

		visible = {
			has_completed_focus = MNT_focus_prepare_the_clans_for_conflict
		}

		fire_only_once = yes
		cost = 0
        days_re_enable = 200
		
        modifier = {
		
        } 
		
        complete_effect = {
			mobilise_clan_army = yes
		}
		    
		ai_will_do = {
			base = 1000
		}
	}
	#MNT_decision_partial_mobilization_of_the_clan_army = {
	#
	#	icon = generic_political_discourse
	#
	#	available = {
	#		check_variable = {
	#			var = montenegro_tension
	#	    	value = 7
    #        	compare = greater_than_or_equals
	#		}
	#		NOT = { has_idea = MNT_idea_clan_partial_mobilisation }
	#		NOT = { has_idea = MNT_idea_clan_mobilisation }
	#	}
	#
	#	visible = {
	#		has_completed_focus = MNT_focus_prepare_the_clans_for_conflict
	#		is_debug = yes
	#	}
	#
	#	fire_only_once = yes
	#	cost = 0
    #    days_remove = 5
    #    days_re_enable = 150
	#	
    #   modifier = {
	#	
    #    } 
	#	
    #   complete_effect = {
	#	    hidden_effect = {
    #            add_command_power = -10
	#		}
	#
	#		add_timed_idea = {
	#			idea = MNT_idea_clan_partial_mobilisation
	#			days = 150
	#		}   
	#	}
	#	
    #    remove_effect = {
	#	#chain of events
	#	#country_event = montenegro.
    #    }
    #  
	#	ai_will_do = {
	#		base = 1000
	#	}
	#}
}
MNT_decision_category_foreign_politics = {

    MNT_decision_french_military_help = {

		icon = generic_political_discourse

		available = {
			has_completed_focus = MNT_focus_french_guidance_in_military_reorganization
			FRA = {
				has_opinion_modifier = large_increase
			}
			NOT = {
				FRA = {
					has_opinion_modifier = large_decrease
				}
			}
		}

		visible = {
			
		}

		fire_only_once = yes
		cost = 50
        days_remove = 100
         
        modifier = {
            
        }        
       
        remove_effect = {
            add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 200
				producer = FRA
            }
        }
       
		ai_will_do = {
			base = 1000
		}
	}

	MNT_decision_french_economy_help = {

		icon = generic_political_discourse

		available = {
			has_completed_focus = MNT_focus_the_aftermath_of_napoleons_visit
			FRA = {
				has_opinion_modifier = large_increase
			}
			NOT = {
				FRA = {
					has_opinion_modifier = large_decrease
				}
			}
		}

		visible = {
		has_completed_focus = MNT_focus_the_aftermath_of_napoleons_visit
		}

		fire_only_once = yes
		cost = 50
        days_remove = 100
         
        modifier = {
        consumer_goods_expected_value = -0.15
        production_speed_buildings_factor = 0.4
        research_speed_factor = 0.25		
        }        
       
        remove_effect = {
        add_political_power = 35
        }
       
		ai_will_do = {
			base = 1000
		}
	}

    MNT_Talk_With_Vuk_Karadzic = {

		icon = generic_political_discourse

		available = {
			always = yes
		}

		visible = {
			TAG = MNT
            has_country_leader = {
                name = "Nikola I"
                ruling_only = yes
            }
		}

		fire_only_once = yes
		cost = 50
        days_remove = 50
         
        remove_effect = {
            add_war_support = 0.05          
        }
       
		ai_will_do = {
			base = 1
		}
    } 

    MNT_Ask_Serbia_For_Help = {

		icon = generic_political_discourse

		available = {
			always = yes
		}

		visible = {
			TAG = MNT
            has_country_leader = {
                name = "Nikola I"
                ruling_only = yes
            }
            date > 1863.1.1
		}

		fire_only_once = yes
		cost = 50
        days_remove = 50
         
        remove_effect = {
            add_equipment_to_stockpile = {
            type = infantry_equipment
            amount = 200
            producer = SER
            }         
        }
       
		ai_will_do = {
			base = 1
		}
    }
    
    MNT_Nikola_Visits_Napoleon_III = {

		icon = generic_political_discourse

		available = {
			always = yes
		}

		visible = {
			TAG = MNT
            has_country_leader = {
                name = "Nikola I"
                ruling_only = yes
            }
            date > 1867.5.1
		}

		fire_only_once = yes
		cost = 50
        days_remove = 50
        
        complete_effect = {
            add_political_power = -50
        }
        
        remove_effect = {
            add_equipment_to_stockpile = {
            type = infantry_equipment
            amount = 200
            producer = FRA
            }         
        }
       
		ai_will_do = {
			base = 100
		}
    }
	
	MNT_decision_limited_financial_support = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_limited_financial_support
		}

		fire_only_once = yes
		cost = 50
        days_remove = 120
        
        complete_effect = {
		
        }
		
        modifier = {
			consumer_goods_expected_value = -0.05
			production_speed_buildings_factor = 0.2
			research_speed_factor = 0.2
			political_power_gain = -0.1
        }    
		
        remove_effect = {  		
		
        }
       
		ai_will_do = {
			base = 100
		}
      }
	  
	MNT_decision_rifles_from_russia = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_weapons_for_every_slav_fighting_the_ottomans
		}

		fire_only_once = yes
		cost = 50
        days_remove = 80
        
        complete_effect = {
		
        }
		
        modifier = {
			political_power_gain = -0.15
        }
		
        remove_effect = {  
		    add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 200
				producer = RUS
			}  
       }
       
		ai_will_do = {
			base = 100
		}
     }
	  
	MNT_decision_uniforms_from_Russia = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_weapons_for_every_slav_fighting_the_ottomans
		}

		fire_only_once = yes
		cost = 50
        days_remove = 100
        
        complete_effect = {
		
        }
        modifier = {
			political_power_gain = -0.15
        }
		
        remove_effect = {  
		    add_equipment_to_stockpile = {
				type = uniform_equipment
				amount = 120
				producer = RUS
            }  
        }
       
		ai_will_do = {
			base = 100
		}
     }
	  
	  
	MNT_decision_financial_help_from_russia = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_financial_help_from_russia
		}

		fire_only_once = yes
		cost = 10
        days_remove = 180
        
        complete_effect = {
			add_political_power = 50
			add_timed_idea = {
				idea = MNT_Russian_financial_assistance
				days = 180
			}
        }
		
        modifier = {
		
        }
		
        remove_effect = { 
			add_ideas = MNT_Russian_financial_assistance1
        }
       
		ai_will_do = {
			base = 100
		}
      }
   }
	
MNT_decision_category_resolve_national_policy = {
   
	MNT_decision_to_negotiate_with_the_proRussian_opposition = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_end_russian_interference_in_our_internal_affairs
		}

		fire_only_once = yes
		cost = 50
        days_remove = 10
        
        complete_effect = {
		
        }
        
        remove_effect = {  
           if = {
                limit = {
                    has_idea = MNT_Aftermath_of_assasination_attempt1
                }
                swap_ideas = { remove_idea = MNT_Aftermath_of_assasination_attempt1 add_idea = MNT_Aftermath_of_assasination_attempt2 } 
            }
            else_if = {
                limit = {
                    has_idea = MNT_Aftermath_of_assasination_attempt2
                }
                swap_ideas = { remove_idea = MNT_Aftermath_of_assasination_attempt2 add_idea = MNT_Aftermath_of_assasination_attempt3 } 
                }
            else_if = {
                limit = {
                    has_idea = MNT_Aftermath_of_assasination_attempt3
                }
                swap_ideas = { remove_idea = MNT_Aftermath_of_assasination_attempt3 add_idea = MNT_Aftermath_of_assasination_attempt4 } 
				} 		
           }
       
		ai_will_do = {
			base = 100
		}
      }
	
	MNT_decision_not_block_Russian_interests = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_end_russian_interference_in_our_internal_affairs
		}

		fire_only_once = yes
		cost = 60
        days_remove = 10
        
        complete_effect = {
		
        }
        
        remove_effect = {  
			if = {
                limit = {
                    has_idea = MNT_Aftermath_of_assasination_attempt1
                }
                swap_ideas = { remove_idea = MNT_Aftermath_of_assasination_attempt1 add_idea = MNT_Aftermath_of_assasination_attempt2 } 
            }
            else_if = {
                limit = {
                    has_idea = MNT_Aftermath_of_assasination_attempt2
                }
                swap_ideas = { remove_idea = MNT_Aftermath_of_assasination_attempt2 add_idea = MNT_Aftermath_of_assasination_attempt3 } 
                }
            else_if = {
                limit = {
                    has_idea = MNT_Aftermath_of_assasination_attempt3
                }
                swap_ideas = { remove_idea = MNT_Aftermath_of_assasination_attempt3 add_idea = MNT_Aftermath_of_assasination_attempt4 } 
	            } 
				}
       
		ai_will_do = {
			base = 100
		}
     }
	
	MNT_decision_appeal_to_the_Orthodox_religion = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_end_russian_interference_in_our_internal_affairs
		}

		fire_only_once = yes
		cost = 30
        days_remove = 50
        
        complete_effect = {
		
        }
        
        remove_effect = {  
			if = {
                limit = {
                    has_idea = MNT_Aftermath_of_assasination_attempt1
                }
                swap_ideas = { remove_idea = MNT_Aftermath_of_assasination_attempt1 add_idea = MNT_Aftermath_of_assasination_attempt2 } 
            }
            else_if = {
                limit = {
                    has_idea = MNT_Aftermath_of_assasination_attempt2
                }
                swap_ideas = { remove_idea = MNT_Aftermath_of_assasination_attempt2 add_idea = MNT_Aftermath_of_assasination_attempt3 } 
                }
            else_if = {
                limit = {
                    has_idea = MNT_Aftermath_of_assasination_attempt3
                }
                swap_ideas = { remove_idea = MNT_Aftermath_of_assasination_attempt3 add_idea = MNT_Aftermath_of_assasination_attempt4 } 
			}		
        }
       
		ai_will_do = {
			base = 100
		}
      } 
   }
   
MNT_decision_category_economy = {

	#Rebuild Centije
	MNT_decision_rebuild_centije = {

		icon = hol_draw_up_staff_plans

		allowed = {  }
		
		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_rebuild_cetinje
		}

		fire_only_once = yes

		cost = 180
		
		days_remove = 730
		
		modifier = {
			consumer_goods_expected_value = 0.03
		}

		remove_effect = {
			942 = { add_extra_state_shared_building_slots = 1 }
			942 = { add_manpower = 100 }
			set_victory_points = {
				province = 9821
				value = 1
			}
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Minerals of Montenegro
	MNT_decision_minerals_montenegro = {

		icon = coal

		allowed = {  }
		
		available = {
			
			has_tech = machine_tools_1
			942 = { infrastructure > 2 }
		}

		visible = {
			has_completed_focus = MNT_focus_exploit_the_natural_riches_of_montenegro
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 730
		
		modifier = {
			consumer_goods_expected_value = 0.02
		}
		
		remove_effect = {
			add_resource = {
				type = coal
				amount = 2
				state = 942
			}
			add_resource = {
				type = iron
				amount = 2
				state = 942
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_open_iron_mines = {

		icon = iron

		#allowed = { tag = MNT }
		
		available = {
			
			has_tech = machine_tools_1
			1204 = { infrastructure > 2 }
		}

		visible = {
			has_completed_focus = MNT_focus_prospect_for_iron_ore
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 330
		
		modifier = {
			consumer_goods_expected_value = 0.02
			production_speed_buildings_factor = -0.2
		}
		
		remove_effect = {
			add_resource = {
				type = iron
				amount = 4
				state = 1204
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_coal_mines = {

		icon = coal

		#allowed = { tag = MNT }
		
		available = {
			
			has_tech = machine_tools_1
			1204 = { infrastructure > 2 }
		}

		visible = {
			has_completed_focus = MNT_focus_find_coal_deposits
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 330
		
		modifier = {
			consumer_goods_expected_value = 0.02
			production_speed_buildings_factor = -0.2
		}
		
		remove_effect = {
			add_resource = {
				type = coal
				amount = 3
				state = 1204
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_bauxite_in_montenegro = {

		icon = coal

		#allowed = { tag = MNT }
		
		available = {
			has_tech = bayer_process
			has_full_control_of_state = 1204
		}

		visible = {
			has_completed_focus = MNT_focus_process_bauxite_ore
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 330
		
		modifier = {
			consumer_goods_expected_value = 0.02
			production_speed_buildings_factor = -0.2
		}
		
		remove_effect = {
			add_resource = {
				type = aluminium
				amount = 8
				state = 1204
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_purchase_machinery = {

		icon = coal

		allowed = {  }
		
		available = {
		
		}

		visible = {
			has_completed_focus = MNT_focus_purchase_machinery_for_a_military_factory
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 330
		
		modifier = {
			consumer_goods_expected_value = 0.05
			production_speed_buildings_factor = -0.2
		}
		
		remove_effect = {
			swap_ideas = {
				remove_idea = MNT_Outdated_Economy4
				add_idea = MNT_Outdated_Economy5
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	
	
	#Wood of Montenegro
	MNT_decision_lumber_industry = {

		icon = wood

		allowed = {  }
		
		available = {
			
			has_tech = machine_tools_1
			942 = { infrastructure > 2 }
		}

		visible = {
			has_completed_focus = MNT_focus_build_sawmills
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 730
		
		modifier = {
			consumer_goods_expected_value = 0.02
		}
		
		remove_effect = {
			add_resource = {
				type = wood
				amount = 2
				state = 942
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Croatian Textile Factory
	MNT_decision_croatian_textile_factory = {

		icon = fabric

		allowed = {  }
		
		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_croatian_textile_industry
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 365
		
		modifier = {
			consumer_goods_expected_value = 0.05
		}
		
		complete_effect = {
		
		}
		
		remove_effect = {
			add_resource = {
				type = fabric
				amount = 1
				state = 942
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Montenegro Infrastructure
	MNT_decision_montenegro_infrastructure = {

		icon = cobble_road

		allowed = {  }
		
		available = {
			
			has_tech = tech_humanities_metropolitan
		}

		visible = {
			has_completed_focus = MNT_focus_connect_the_nahiyas
		}

		fire_only_once = yes

		cost = 80
		
		days_remove = 365
		
		modifier = {
			consumer_goods_expected_value = 0.05
		}
		
		complete_effect = {
		
		}
		
		remove_effect = {
			add_political_power = 100
			942 = {
				add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = infrastructure
					    	level = 1
					    	instant_build = yes
				}
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	
	#Russian Loans
	MNT_decision_russian_loans = {

		icon = money

		allowed = {  }
		
		available = {
			RUS = {
				has_opinion = {
				target = MNT
				value > 109
				}
			}
		}

		visible = {
			has_full_control_of_state = 942
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 365
		
		modifier = {
			consumer_goods_expected_value = 0.05
		}
		
		complete_effect = {
		
		}
		
		remove_effect = {
			
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Danilovgrad
	MNT_decision_danilovgrad = {

		icon = hol_draw_up_staff_plans

		allowed = {  }
		
		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_dannilovgrad
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 365
		
		modifier = {
			consumer_goods_expected_value = 0.05
		}
		
		complete_effect = {
		
		}
		
		remove_effect = {
			country_event = montenegro.9
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_mission_creation_of_an_inudstrial_sector = {
		
		icon = generic_military
		
		allowed = { always = no }
		
		available = {
			has_completed_focus = MNT_focus_support_the_creation_of_an_industrial_sector
			has_tech = mechanical_production_1
			has_tech = interchange_parts
			has_tech = factory_industry_1
			has_tech = industrial_era_tools_1
			has_tech = refining
		}
		
		activation = { always = no }
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 1200
		
		cancel_trigger = {

		}
		
		timeout_effect = {
			country_event = montenegro.229
			add_stability = -0.02
		}
		
		complete_effect = {
			country_event = montenegro.230
			add_stability =  0.02
		}
	}
	
	MNT_decision_rebuild_road_system = {

		icon = coal

		#allowed = { tag = MNT }
		
		available = {
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_completed_focus = MNT_focus_rebuild_the_road_network
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 360
		
		modifier = {
			consumer_goods_expected_value = 0.05
			production_speed_buildings_factor = -0.2
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = eoanb_industry_development_ongoing_flag
			}
		}
		
		remove_effect = {
			swap_ideas = {
				remove_idea = MNT_Disconnected_Nahiyahs
				add_idea = MNT_Disconnected_Nahiyahs2
			}
			add_tech_bonus = { bonus = 0.05 uses = 1 category = transport_tech }
			EOANBSYS_institutions_innovative_add_one = yes
				hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	MNT_decision_urbanisation_of_people = {

		icon = coal

		#allowed = { tag = MNT }
		
		available = {
		
		}

		visible = {
			has_completed_focus = MNT_focus_urbanization_projects
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 360
		
		modifier = {
			consumer_goods_expected_value = 0.05
			production_speed_buildings_factor = -0.2
		}
		
		complete_effect = {

		}
		
		remove_effect = {
			add_manpower = 200
			swap_ideas = {
				remove_idea = MNT_Outdated_Economy7
				add_idea = MNT_Outdated_Economy8
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decison_new_road_system = {

		icon = coal

		#allowed = { tag = MNT }
		
		available = {
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_completed_focus = MNT_focus_centralized_road_system
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 360
		
		modifier = {
			consumer_goods_expected_value = 0.05
			production_speed_buildings_factor = -0.2
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = eoanb_industry_development_ongoing_flag
			}
		}
		
		remove_effect = {
			swap_ideas = {
				remove_idea = MNT_Disconnected_Nahiyahs2
				add_idea = MNT_Disconnected_Nahiyahs3
			}
			add_tech_bonus = { bonus = 0.05 uses = 1 category = transport_tech }
			EOANBSYS_institutions_innovative_add_one = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_connect_the_nahiyas = {

		icon = coal

		allowed = {  }
		
		available = {
			OR = {
				has_idea = MNT_Disconnected_Nahiyahs3 
				has_idea = MNT_Disconnected_Nahiyahs4
				has_idea = MNT_Disconnected_Nahiyahs5
				has_idea = MNT_Disconnected_Nahiyahs6
			}
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			has_completed_focus = MNT_focus_connect_the_nahiyas
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 360
		
		modifier = {
			consumer_goods_expected_value = 0.05
			production_speed_buildings_factor = -0.2
		}
		
        complete_effect = {
		
		}
		
		remove_effect = {
			if = {  
				limit = { 
					has_idea = MNT_Disconnected_Nahiyahs3
				} 
				swap_ideas = { remove_idea = MNT_Disconnected_Nahiyahs3 add_idea = MNT_Disconnected_Nahiyahs4 }
			}
			else_if = {  
				limit = { 
					has_idea = MNT_Disconnected_Nahiyahs4
				} 
				swap_ideas = { remove_idea = MNT_Disconnected_Nahiyahs4 add_idea = MNT_Disconnected_Nahiyahs5 }
			}
			else_if = {
				limit = {
					has_idea = MNT_Disconnected_Nahiyahs5
				}
				swap_ideas = { remove_idea = MNT_Disconnected_Nahiyahs5 add_idea = MNT_Disconnected_Nahiyahs6 } 
			}
			else_if = {
				limit = {
					has_idea = MNT_Disconnected_Nahiyahs6
				}
				remove_ideas = MNT_Disconnected_Nahiyahs6
			}
			add_tech_bonus = { bonus = 0.05 uses = 1 category = transport_tech }
			EOANBSYS_institutions_innovative_add_one = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Crnojevic Military Factory
	MNT_decision_crnojevic_military_factory = {

		icon = hol_draw_up_staff_plans

		allowed = {  }
		
		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_rijeka_military_workshop
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 365
		
		modifier = {
			consumer_goods_expected_value = 0.05
		}
		
		complete_effect = {
		
		}
		
		remove_effect = {
			add_offsite_building = { type = arms_factory level = 1 }
		}

		ai_will_do = {
			base = 1000
		}
	}
	

	#First Centije Hotel -uncomment when proper code set up
	#MNT_decision_first_centije_hotel = {
	#    icon = hol_draw_up_staff_plans
	#    
	#    available = {
	#    }
	#
	#    visible = {
	#        has_completed_focus = MNT_focus_light_sector
	#    }
	#
	#    fire_only_once = yes
	#    cost = 75
	#    days_remove = 730
	#    
	#    modifier = {
	#        consumer_goods_expected_value = 0.03
	#    }
	#
	#    remove_effect = {
	#        942 = { add_extra_state_shared_building_slots = 1 }
	#        942 = { add_manpower = 100 }
	#        set_victory_points = {
	#            province = 9821
	#            value = 1
	#        }
	#        set_temp_variable = { eoanb_prestige_change = 1 }
	#        eoanb_change_prestige_score = yes
	#    }
	#
	#    ai_will_do = {
	#        base = 1000
	#    }
	#}

	#First Centije Hotel
	MNT_decision_first_centije_hotel = {

		icon = hol_draw_up_staff_plans

		allowed = {  }
		
		available = {
			
		}

		visible = {
			#has_completed_focus = MNT_light_sector
		}

		fire_only_once = yes

		cost = 75
		
		days_remove = 730
		
		modifier = {
			consumer_goods_expected_value = 0.03
		}

		remove_effect = {
			add_stability = 0.02
			add_political_power = 100
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_invest_in_our_terrestrial_infrastructure = {

		icon = cobble_road
		
		allowed = {  } 

		available = {
			OR = {
				has_idea = MNT_Disconnected_Nahiyahs3 
				has_idea = MNT_Disconnected_Nahiyahs4
				has_idea = MNT_Disconnected_Nahiyahs5
				has_idea = MNT_Disconnected_Nahiyahs6
			}
		}

		visible = {
			has_full_control_of_state = 942
		}
		
		fire_only_once = yes
		
		cost = 50
		
        days_remove = 90
         
        modifier = {
            political_power_gain = -0.1
			consumer_goods_expected_value = 0.1
        }
		
		complete_effect = {
			
		}
       
        remove_effect = {
			if = {  
				limit = { 
					has_idea = road_spending_level_1 
				} 
				swap_ideas = { remove_idea = road_spending_level_1 add_idea = road_spending_level_2 }
			}
			else_if = {
				limit = {
					has_idea = road_spending_level_2
				}
				swap_ideas = { remove_idea = road_spending_level_2 add_idea = road_spending_level_3 } 
			}
			else_if = {
				limit = {
					has_idea = road_spending_level_3
				}
				swap_ideas = { remove_idea = road_spending_level_3 add_idea = road_spending_level_4 } 
			}
			if = {  
				limit = { 
					has_idea = MNT_Disconnected_Nahiyahs3
				} 
				swap_ideas = { remove_idea = MNT_Disconnected_Nahiyahs3 add_idea = MNT_Disconnected_Nahiyahs4 }
			}
			else_if = {  
				limit = { 
					has_idea = MNT_Disconnected_Nahiyahs4
				} 
				swap_ideas = { remove_idea = MNT_Disconnected_Nahiyahs4 add_idea = MNT_Disconnected_Nahiyahs5 }
			}
			else_if = {
				limit = {
					has_idea = MNT_Disconnected_Nahiyahs5
				}
				swap_ideas = { remove_idea = MNT_Disconnected_Nahiyahs5 add_idea = MNT_Disconnected_Nahiyahs6 } 
			}
			else_if = {
				limit = {
					has_idea = MNT_Disconnected_Nahiyahs6
				}
				remove_ideas = MNT_Disconnected_Nahiyahs6
			}
			add_tech_bonus = { bonus = 0.05 uses = 1 category = transport_tech }
			EOANBSYS_institutions_innovative_add_one = yes
	    }
       
		ai_will_do = {
			base = 1000
		}
	}
}

MNT_decision_category_army = {
	
	MNT_mission_Danilos_Army_Reform = {
		
		icon = generic_military
		
		allowed = { always = no }
		
		available = {
			has_completed_focus = MNT_focus_danilos_army_reform
			has_war_support > 0.5
			#has_army_size = {
			#	size > 4
			#}
			has_tech = rifle_equipment2
			has_tech = civil_army_cloth
			has_tech = yataghan_bayonet
		}
		
		activation = { always = no }
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 1000
		
		cancel_trigger = {

		}
		
		timeout_effect = {
			country_event = montenegro.227
		}
		
		complete_effect = {
			country_event = montenegro.228
			army_experience = 25			
		}
	}
		
	MNT_mission_New_fortification_system = {
		
		icon = generic_military
		
		allowed = { always = no }
		
		available = {
			has_completed_focus = MNT_focus_new_fortification_system
		}
		
		activation = { always = no }
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 1500
		
		cancel_trigger = {
			942 = {
				any_province_building_level = {
					province = {
						id = 9821 
					}
					building = bunker
					level > 2
				}
				any_province_building_level = {
					province = {
						id = 13780
					}
					building = bunker
					level > 2
				}
			}
		}
		
		timeout_effect = {
			swap_ideas = {
				remove_idea = MNT_battle_of_the_fortresses3
				add_idea = MNT_battle_of_the_fortresses2
			}
			swap_ideas = {
				remove_idea = MNT_battle_of_the_fortresses4
				add_idea = MNT_battle_of_the_fortresses2
			}
		}
		
		complete_effect = {
			swap_ideas = {
				remove_idea = MNT_battle_of_the_fortresses3
				add_idea = MNT_battle_of_the_fortresses2
			}
			swap_ideas = {
				remove_idea = MNT_battle_of_the_fortresses4
				add_idea = MNT_battle_of_the_fortresses2
			}
		}
	}
	
	#Buy Rifles from Liège Factories
	MNT_decision_buy_rifles_from_liege_factories = {

		icon = generic_industry
		
		#allowed = { tag = MNT }

		available = {
			has_completed_focus = MNT_focus_purchase_foreign_weapons
		}

		visible = {
			country_exists = BEL
			BEL = { owns_state = 34 }
			BEL = { has_war = no }
		}

		fire_only_once = yes
		
		cost = 75
		
        days_remove = 180
         
        modifier = {
            consumer_goods_expected_value = 0.2
        }
		
		complete_effect = {
			#increase debt
		}
       
        remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 500
				producer = BEL
			}
	    }
       
		ai_will_do = {
			base = 500
		}
	}
	
	MNT_decision_map_our_lands = {

		icon = artillery
		
		#allowed = { tag = MNT }

		available = {

	    }

		visible = {
			has_completed_focus = MNT_focus_map_our_lands
		}

		fire_only_once = yes
		
		cost = 25
		
        days_remove = 80
         
        modifier = {
			production_speed_buildings_factor = -0.1
        }
		
		complete_effect = {
		}
       
        remove_effect = {
			swap_ideas = {
				remove_idea = MNT_army_prestige1
				add_idea = MNT_army_prestige2
			}
	    }
       
		ai_will_do = {
			base = 500
		}
	}
	
   	MNT_decision_Improve_conditions_in_army = {

		icon = artillery
		
		#allowed = { tag = MNT }

		available = {
			#has_army_size = {
			#	size > 4
			#}
		}

		visible = {
			has_completed_focus = MNT_focus_improve_the_conditions_in_the_army
		}

		fire_only_once = yes
		
		cost = 75
		
        days_remove = 100
         
        modifier = {
			production_speed_buildings_factor = -0.1
        }
		
		complete_effect = {
		}
       
        remove_effect = {
			swap_ideas = {
				remove_idea = MNT_conditions_in_the_army
				add_idea = MNT_conditions_in_the_army1
			}
	    }
       
		ai_will_do = {
			base = 500
		}
	}
	
	MNT_decision_officers_on_foreing_military_schools = {

		icon = artillery
		
		#allowed = { tag = MNT }

		available = {
			has_manpower > 100
        }

		visible = {
			has_completed_focus = MNT_focus_send_officers_to_foreign_military_academies
		}

		fire_only_once = yes
		
		cost = 100
		
        days_remove = 1500
         
        modifier = {
        }
		
		complete_effect = {
			add_manpower = -100
		}
       
        remove_effect = {
			add_manpower = 100
			army_experience = 50
			add_war_support = 0.01
			add_doctrine_cost_reduction = { cost_reduction = 1 uses = 1 category = land_doctrine }
	 	}
       
		ai_will_do = {
			base = 500
		}
	}
		
	MNT_decision_officers_on_foreing_military_schools1 = {

		icon = artillery
		
		#allowed = { tag = MNT }

		available = {
			has_manpower > 200
        }

		visible = {
			has_completed_focus = MNT_focus_military_cooperation_with_serbia
		}

		fire_only_once = yes
		
		cost = 100
		
        days_remove = 300
         
        modifier = {
        }
		
		complete_effect = {
			add_manpower = -200
		}
       
        remove_effect = {
			add_manpower = 350
			army_experience = 20
			add_war_support = 0.03
			add_doctrine_cost_reduction = { cost_reduction = 0.5 uses = 1 category = land_doctrine }
	 	}
       
		ai_will_do = {
			base = 500
		}
	}
		
	MNT_decision_Artilery_batalions_training = {

		icon = artillery
		
		#allowed = { tag = MNT }

		available = {
			has_manpower > 300
			has_equipment = {
				cannon_equipment > 10
			}
        }

		visible = {
			has_completed_focus = MNT_focus_training_for_artillery_battalions
		}

		fire_only_once = yes
		
		cost = 80
		
        days_remove = 120
         
        modifier = {
        }
		
		complete_effect = {
			add_manpower = -300
			add_equipment_to_stockpile = {
				type = cannon_equipment
				amount = -10
				producer = MNT
			}
		}
       
        remove_effect = {
			add_manpower = 300
			army_experience = 10
			add_equipment_to_stockpile = {
				type = cannon_equipment
				amount = 9
				producer = MNT
			}
			add_tech_bonus = {
    			bonus = 0.15
    			uses = 1
    			category = artillery
			}
			add_ideas = MNT_mountain_artillery
	 	}
       
		ai_will_do = {
			base = 500
		}
	}

	MNT_decision_prepare_defensive_line = {

		icon = artillery
		
		#allowed = { tag = MNT }

		available = {
			has_manpower > 200
        }

		visible = {
			has_completed_focus = MNT_focus_war_preparation_plans
		}

		fire_only_once = yes
		
		cost = 100
		
        days_remove = 100
         
        modifier = {
			production_speed_buildings_factor = -0.1
        }
		
		complete_effect = {
			add_war_support = 0.01
			add_manpower = -200
		}
       
        remove_effect = {
			set_country_flag = prepared_defensive_line
			unlock_decision_tooltip = MNT_decision_go_back_todefensive_line
			add_manpower = 200
	 	}
       
		ai_will_do = {
			base = 500
		}
	}
		
	MNT_decision_artillery_position_preparation = {

		icon = artillery
		
		#allowed = { tag = MNT }

		available = {
			has_manpower > 100
			has_equipment = {
				cannon_equipment > 10
			}
        }

		visible = {
			has_completed_focus = MNT_focus_war_preparation_plans
		}

		fire_only_once = yes
		
		cost = 100
		
        days_remove = 100
         
        modifier = {
			production_speed_buildings_factor = -0.1
        }
		
		complete_effect = {
			add_war_support = 0.01
			add_manpower = -100
		}
       
        remove_effect = {
		set_country_flag = perecision_artillery_support
			unlock_decision_tooltip = MNT_decision_precision_artillery_support
			add_manpower = 100
			add_equipment_to_stockpile = {
				type = cannon_equipment
				amount = -10
				producer = MNT
			}
		}
       
		ai_will_do = {
			base = 500
		}
	 }
		
	MNT_decision_go_back_todefensive_line = {

		icon = artillery
		
		#allowed = { tag = MNT }

		available = {
			has_war = yes
        }

		visible = {
			has_completed_focus = MNT_focus_war_preparation_plans
			has_country_flag = prepared_defensive_line
		}

		fire_only_once = yes
		
		cost = 0
		
        days_remove = 80
         
        modifier = {
			army_core_defence_factor = 0.25
			max_dig_in = 9
        }
		
		complete_effect = {
        
		}
       
        remove_effect = {
    
	 	}
       
		ai_will_do = {
			base = 500
		}
	}
			
	MNT_decision_precision_artillery_support = {

		icon = artillery
		
		#allowed = { tag = MNT }

		available = {
		
        }

		visible = {
			has_completed_focus = MNT_focus_war_preparation_plans
			has_country_flag = perecision_artillery_support
		}

		fire_only_once = yes
		
		cost = 100
		
        days_remove = 100
         
        modifier = {
			army_attack_factor = 0.2
			breakthrough_factor = 0.15
			coordination_bonus = 0.3
        }
		
		complete_effect = {

		}
       
        remove_effect = {
			unlock_decision_tooltip = MNT_decision_precision_artillery_support
			add_equipment_to_stockpile = {
				type = cannon_equipment
				amount = 8
				producer = MNT
			}
		}
       
		ai_will_do = {
			base = 500
		}
	}
	
	MNT_decision_new_uniforms = {

		icon = artillery
		
		#allowed = { tag = MNT }

		available = {
			has_completed_focus = MNT_focus_new_uniforms
	    }

		visible = {
		
		}

		fire_only_once = yes
		
		cost = 75
		
        days_remove = 70
         
        modifier = {
			production_speed_buildings_factor = -0.1
        }
		
		complete_effect = {
		}
       
        remove_effect = {
			add_tech_bonus = { bonus = 1.25 uses = 1 category = tech_category_uniforms }
	 	}
       
		ai_will_do = {
			base = 500
		}
	}
}




MNT_decision_category_Herzegovinian_uprising_1857 = {

	SER_send_Pero_matamovic = {

		icon = feudal_warriors
		
		allowed = {
			tag = SER
		}

		available = {

		}

		visible = {
			OR = {
				herzegovina_uprising = yes
				montenegro_revolt = yes
			}
		}
		
		fire_only_once = yes
		cost = 30
        days_remove = 30
         
        modifier = {
            
        }        
       
		complete_effect = {
			set_country_flag = SER_support_herzegovina_uprising
		}
	   
        remove_effect = {
			custom_effect_tooltip = matamovic_join_vukalovic
			add_to_variable = {
				var = MNT.herzegovina_rebels
				value = 200
				tooltip = add_200_rebels
			}
        }
       
		ai_will_do = {
			base = 100000
		}
	}

### weapon purchase

	MNT_decision_purchase_of_weapons_from_Austria = {
		icon = generic_military

		allowed = {
			tag = MNT
		}

		available = {
			set_temp_variable = { amount_of_money_to_check = 5 }
			has_specific_amount_of_money = yes
			if = {
				limit = {
					montenegro_revolt = yes
				}
				custom_trigger_tooltip = { 
					tooltip = MNT_custom_trigger_tooltip_must_be_neutral_or_supporter
				}
				OR = {
					check_variable = { var = austria_support_to_MNT value = 1}
					check_variable = { var = austria_support_to_MNT value = 2}
				}
			}
			OR = {
				herzegovina_uprising = yes
				montenegro_revolt = yes
			} 
			has_completed_focus = MNT_focus_bring_weapons_to_montenegro
		}

		visible = {
			has_completed_focus = MNT_focus_bring_weapons_to_montenegro

		}

		days_re_enable = 123
		fire_only_once = no
		cost = 20

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 3 }
		}
		custom_cost_text = eoanb_money_cost_text

		complete_effect = {
			effect_tooltip = {
				set_temp_variable = { money_to_gain = -3 }
				add_money_with_tooltip_effect = yes
			}
			AUS = { country_event = OTO_battleofgrahovac.54 }
		}	
	}

	MNT_decision_purchase_of_weapons_from_france = {
		icon = generic_military

		allowed = {
			tag = MNT
		}

		available = {
			set_temp_variable = { amount_of_money_to_check = 5 }
			has_specific_amount_of_money = yes
			if = {
				limit = {
					montenegro_revolt = yes
				}
				custom_trigger_tooltip = { 
					tooltip = MNT_custom_trigger_tooltip_must_be_neutral_or_supporter
				}
				OR = {
					check_variable = { var = france_support_to_MNT value = 1}
					check_variable = { var = france_support_to_MNT value = 2}
				}
			}
			OR = {
				herzegovina_uprising = yes
				montenegro_revolt = yes
			} 
			has_completed_focus = MNT_focus_bring_weapons_to_montenegro
		}

		visible = {
			has_completed_focus = MNT_focus_bring_weapons_to_montenegro

		}

		days_re_enable = 123
		fire_only_once = no
		cost = 20

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 5 }
		}
		custom_cost_text = eoanb_money_cost_text

		complete_effect = {
			effect_tooltip = {
				set_temp_variable = { money_to_gain = -5 }
				add_money_with_tooltip_effect = yes
			}
			FRA = { country_event = OTO_battleofgrahovac.54 }
		}	
	}

	MNT_decision_purchase_of_weapons_from_russia = {
		icon = generic_military

		allowed = {
			tag = MNT
		}

		available = {
			set_temp_variable = { amount_of_money_to_check = 5 }
			has_specific_amount_of_money = yes
			if = {
				limit = {
					montenegro_revolt = yes
				}
				custom_trigger_tooltip = { 
					tooltip = MNT_custom_trigger_tooltip_must_be_neutral_or_supporter
				}
				OR = {
					check_variable = { var = russia_support_to_MNT value = 1}
					check_variable = { var = russia_support_to_MNT value = 2}
				}
			}
			OR = {
				herzegovina_uprising = yes
				montenegro_revolt = yes
			} 
			has_completed_focus = MNT_focus_bring_weapons_to_montenegro
		}

		visible = {
			has_completed_focus = MNT_focus_bring_weapons_to_montenegro
		}

		days_re_enable = 100
		fire_only_once = no
		cost = 20

		custom_cost_trigger = {
			set_temp_variable = { amount_of_money_to_check = 5 }
		}
		custom_cost_text = eoanb_money_cost_text

		complete_effect = {
			effect_tooltip = {
				set_temp_variable = { money_to_gain = -5 }
				add_money_with_tooltip_effect = yes
			}
			RUS = { country_event = OTO_battleofgrahovac.54 }
		}	
	}

### MNT uprisng + revolt decisions 
	
	MNT_send_volunteers_to_the_herzegovina = {

		icon = feudal_warriors
		
		allowed = {
			OR = {
				tag = MNT
				tag = SER
			}
		}

		available = {
			has_equipment = {
				infantry_equipment > 50
			}
			OR = {
				herzegovina_uprising = yes
				montenegro_revolt = yes
			} 
		}

		visible = {
			OR = {
				has_completed_focus = MNT_focus_guerrilla_war
				has_country_flag = SER_support_herzegovina_uprising
			}
		}

		fire_only_once = no
		cost = 20
        days_remove = 30
		days_re_enable = 50
         
        modifier = {
            
        }        
       
		complete_effect = {
			942 = { add_manpower = -200 }
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -50
			}
		}
	   
        remove_effect = {
			add_to_variable = {
				var = herzegovina_rebels
				value = 200
				tooltip = add_200_rebels
			}
		}
       
		ai_will_do = {
			base = 100000
		}
	}

	MNT_sabotage_the_infrastructure = {
		icon = feudal_warriors
		
		allowed = {
			OR = {
				tag = MNT
				tag = SER
			}
		}
		available = {
			has_equipment = {
				infantry_equipment > 50
			}
			OR = {
				herzegovina_uprising = yes
				montenegro_revolt = yes
			} 
		}
		visible = {
			OR = {
				has_completed_focus = MNT_focus_guerrilla_war
				has_country_flag = SER_support_herzegovina_uprising
			}
		}
		
		cost = 10
		days_remove = 25
		days_re_enable = 50
		 
		modifier = {
			
		}        
	   
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -50
			}
		}
	   
		remove_effect = {
			random_list = {
				10 = {
					calculate_success_count = yes
					if = {
						limit = { 1205 = { has_resistance = yes } }
						1205 = {
							add_resistance = 2 
							damage_building = { type = infrastructure damage = 1 }
						}
						custom_effect_tooltip = intensity_drop_by_1
						add_to_variable = {
							var = herzegovina_intesity
							value = -1
						}
					}
					else = {
						1205 = {
							damage_building = { type = infrastructure damage = 1 }
						}
						custom_effect_tooltip = intensity_drop_by_1
						add_to_variable = {
							var = herzegovina_intesity
							value = -1
						}
					}
				}
				10 = {
					calculate_unsuccess_count = yes
					custom_effect_tooltip = 50_rebels_died
					MNT = {
						add_to_variable = {
							var = MNT.herzegovina_rebels
							value = -50
						}
					}
				}
				10 = {
					calculate_success_count = yes
					if = { 
						limit = { 
							OTO = {
								army_manpower_in_state = {
									amount > 10000
									state = 1205
								}
							}
						}
						custom_effect_tooltip = 50_rebels_died
						MNT = {
							add_to_variable = {
								var = MNT.herzegovina_rebels
								value = -50
							}
						}
					}
					else = {
						if = {
							limit = { 1205 = { has_resistance = yes } }
							1205 = {
								add_resistance = 2 
								damage_building = { type = infrastructure damage = 1 }
							}
							custom_effect_tooltip = intensity_drop_by_1
							add_to_variable = {
								var = herzegovina_intesity
								value = -1
							}
						}
						else = {
							1205 = {
								damage_building = { type = infrastructure damage = 1 }
							}
							custom_effect_tooltip = intensity_drop_by_1
							add_to_variable = {
								var = herzegovina_intesity
								value = -1
							}
						}
					}
				}
			}
		}
	   
		ai_will_do = {
			base = 100000
		}
	}
		
	MNT_use_agitators = {

		icon = feudal_warriors
		
		allowed = {
			OR = {
				tag = MNT
				tag = SER
			}
		}

		available = {
			OR = {
				herzegovina_uprising = yes
				montenegro_revolt = yes
			}
		}

		visible = {
			
			OR = {
				has_completed_focus = MNT_focus_guerrilla_war
				has_country_flag = SER_support_herzegovina_uprising
			}
		}
		
		cost = 30
        days_remove = 15
		days_re_enable = 30
         
        modifier = {
          
	  }        
       
		complete_effect = {
		
		}

	   
        remove_effect = {
			random_list = {
				10 = {
					custom_effect_tooltip = 50_rebels_died		
					add_to_variable = {
						var = herzegovina_rebels
						value = -50
					}
					calculate_unsuccess_count = yes
				}
				10 = {	
					custom_effect_tooltip = growth_decrease_by_1
					add_to_variable = {
						var = herzegovina_growth
						value = -1
					}
					calculate_success_count = yes
				}
			}
		}
       
		ai_will_do = {
			base = 100000
		}
	}

	MNT_provoke_fights_and_riots = {

		icon = feudal_warriors
		
		allowed = {
			OR = {
				tag = MNT
				tag = SER
			}
		}

		available = {
			has_equipment = {
				infantry_equipment > 50
			}
			OR = {
				herzegovina_uprising = yes
				montenegro_revolt = yes
			}
		}

		visible = {
			OR = {
				has_completed_focus = MNT_focus_guerrilla_war
				has_country_flag = SER_support_herzegovina_uprising
			}
		}
		
		cost = 8
        days_remove = 15
		days_re_enable = 30
         
        modifier = {
          
	  	}        
       
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -50
			}
		}

	   
        remove_effect = {
			random_list = {
				10 = {
					calculate_unsuccess_count = yes
					custom_effect_tooltip = 50_rebels_died		
					add_to_variable = {
						var = herzegovina_rebels
						value = -50
					}
				}
				10 = {
					calculate_success_count = yes	
					custom_effect_tooltip = intensity_drop_by_3
					add_to_variable = {
						var = herzegovina_intesity
						value = -3
					}
				}
			}	
		}
       
		ai_will_do = {
			base = 100000
			}
		}

 ###############################
 ######### OTTOMANS ############

	OTO_mission_development_of_herzegovina_uprising_1857 = {
		#War with Montenegro and Herzegovina Rebels

		icon = generic_political_discourse

		allowed = { always = no }

		available = {
			OR = {
				### intesity is low than 4 MNT complete focus = MNT_the_ottomans_obsolutely_lost
				check_variable = {
					var = MNT.herzegovina_intesity
					value = 4
					compare = less_than_or_equals
				}
				OR = {
					### intesity is highest than 21 MNT complete focus = MNT_focus_failure_of_the_revolt
					check_variable = {
						var = MNT.herzegovina_intesity
						value = 21
						compare = greater_than_or_equals
					}
					### MNT have no rebels now MNT complete focus = MNT_focus_failure_of_the_revolt
					check_variable = {
						var = MNT.herzegovina_rebels
						value = 1
						compare = less_than
					}
				}
			}
		}

		activation = { always = no }

		is_good = yes

		days_mission_timeout = 14

		timeout_effect = {
			set_variable = {
				var = MNT.herzegovina_losses
				value = var:MNT.herzegovina_rebels
			}
			divide_variable = {
				var = MNT.herzegovina_losses
				value = MNT.herzegovina_intesity
			}
			round_variable = MNT.herzegovina_losses
		
			add_to_variable = {
				var = casualites
				value = MNT.herzegovina_losses
			}
			multiply_variable = {
				var = MNT.herzegovina_losses
				value = -1
			}
		
			add_to_variable = {
				var = MNT.herzegovina_intesity
				value = MNT.herzegovina_growth
			}	
			country_event = { id = OTO_battleofgrahovac.10 }
			custom_effect_tooltip = OTO_herzegovina_mission_notification
			if = { 
				limit = { 
					check_variable = {
						var = MNT.herzegovina_intesity
						value = 18
						compare = less_than_or_equals
					}
				}			
				random = {
					chance = 10
					1205 = { damage_building = { type = infrastructure damage = 1 } }
				}
			}
		}
	
    	complete_effect = {
			if = { 
				limit = {
        			check_variable = {
						var = MNT.herzegovina_intesity
						value = 4
						compare = less_than_or_equals
					}
				}
				country_event = OTO_battleofgrahovac.17
				add_stability = -0.03   
			}
			if = {
				limit = {
					OR = {
						check_variable = {
							var = MNT.herzegovina_intesity
							value = 21
							compare = greater_than_or_equals
						}
						check_variable = {
							var = MNT.herzegovina_rebels
							value = 1
							compare = less_than
						}
					}
				}
				country_event = OTO_battleofgrahovac.18
			}
		}
	}
	
	#war with montenegro and herzegovina rebels
	OTO_mission_herzegovina_uprising_1857_final = {
	

        icon = generic_political_discourse

        allowed = { tag = OTO }

        available = {
			check_variable = {
				var = MNT.herzegovina_intesity
				value = 21
				compare = greater_than_or_equals
			}
			check_variable = {
			var = MNT.herzegovina_rebels
				value = 1
				compare = less_than
			}
        }

        activation = {
            always = no
        }

        is_good = yes

        days_mission_timeout = 190

        timeout_effect = {
			country_event = { id = OTO_battleofgrahovac.11 }
		if = { 
			limit = { 
				check_variable = {
					var = MNT.herzegovina_intesity
					value = 17
					compare = greater_than_or_equals
           	 	}
        	}
			set_country_flag = OTO_adventage
        }
		else_if = { 
			limit = { 
				check_variable = {
					var = MNT.herzegovina_intesity
					value = 13
					compare = greater_than_or_equals
            	}
        	}
			set_country_flag = OTO_equilibrium
        }
        else_if = { 
			limit = { 
				check_variable = {
					var = MNT.herzegovina_intesity
					value = 10
					compare = greater_than_or_equals
            		}
       			}
			set_country_flag = OTO_disadvantage
        }
        else_if = { 
			limit = { 
				check_variable = {
					var = MNT.herzegovina_intesity
					value = 7
					compare = greater_than_or_equals
           	 	}
       		}
			set_country_flag = OTO_loss
        }
		else_if = { 
            limit = { 
				check_variable = {
					var = MNT.herzegovina_intesity
					value = 5
					compare = greater_than_or_equals
            	}
        	}
       		set_country_flag = OTO_total_loss
        } 
	}
	
        complete_effect = {
			add_stability = 0.01   
        }
	}
	
	OTO_send_an_army_against_the_rebels = {

		icon = generic_political_discourse

		available = {
			army_manpower_in_state = {
				amount > 10000
				state = 1205
			}
			has_active_mission = OTO_mission_herzegovina_uprising_1857_final
		}

		visible = {
			OR = {
				herzegovina_uprising = yes
				montenegro_revolt = yes
			}
		}
		
		allowed = { 
			tag = OTO
		}

		fire_only_once = no
		cost = 5
        days_remove = 15
         
        modifier = {

        }        
       
		complete_effect = {
			add_command_power = -10
			random_list = {
				10 = {
					add_manpower = -100
				}
				10 = {
					1205 = { add_resistance = -2}
				}
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = 200_rebels_death
			MNT = {
				add_to_variable = {
				var = MNT.herzegovina_rebels
				value = -200
				}
			}
		}
       
		ai_will_do = {
			base = 1000
		}
	}
	
	
	OTO_expand_herzegovina_spy_network = {

		icon = generic_political_discourse

		available = {
			has_active_mission = OTO_mission_herzegovina_uprising_1857_final
		}

		visible = {
			OR = {
				herzegovina_uprising = yes
				montenegro_revolt = yes
			}
		}
		
		allowed = { 
			tag = OTO
		}
		
		fire_only_once = no
		cost = 0
        days_remove = 15
         
        modifier = {
			production_speed_buildings_factor = -0.025
        }        
       
	  complete_effect = {
		
			}
		
       remove_effect = {
	   		custom_effect_tooltip = add_spies_5
			if = {
				limit = { NOT = { has_variable = var:herzegovina_spy } }
				set_variable = {
					var = herzegovina_spy
					value = 5
					}
				}
			else_if = {
				limit = { has_variable = var:herzegovina_spy }
				add_to_variable = {
					var = herzegovina_spy
					value = 5
				}
			}
        }
       
		ai_will_do = {
			base = 1000
		}
	}
	
	OTO_arrest_the_rebel_leader = {

		icon = generic_political_discourse

		available = {
			has_active_mission = OTO_mission_herzegovina_uprising_1857_final
			custom_trigger_tooltip = {
				tooltip = has_10_spies		
				check_variable = {
					var = herzegovina_spy
					value = 10
					compare = greater_than_or_equals
				}
			}
		}

		visible = {
			OR = {
				herzegovina_uprising = yes
				montenegro_revolt = yes
			}
		}
		
		allowed = { 
		tag = OTO
		}
		
		fire_only_once = no
		cost = 5
        days_remove = 10
         
        modifier = {
			#
        }        
       
		complete_effect = {
			#
		}
		
		remove_effect = {
			random_list = {
				10 = {
				#country_event = 	
				}
				30 = {
					MNT = {
						add_to_variable = {
							var = MNT.herzegovina_growth
							value = 1
						}
					}
					custom_effect_tooltip = reduce_the_growth_of_uprising
					custom_effect_tooltip = spies_return
				}
				10 = {
					add_manpower = -10	
					custom_effect_tooltip = the_spies_will_be_killed
				}
				30 = {
					add_to_variable = {
						var = MNT.herzegovina_intesity 
						vaule = 2
						custom_effect_tooltip = spies_return	
					}
				}
			}
		}
		ai_will_do = {
			base = 1000
			}
		}

		########################
		######## AUSTRIA #######

	
		

		

 ############################
 #### montenegro revolt######

	MNT_provokate_on_borders = {

		icon = generic_political_discourse

		available = {
		
		}
		
		visible = {
			montenegro_revolt = yes
		}
		
		allowed = {
		OR = {
		tag = MNT
		tag = OTO
			}
		}
		
		fire_only_once = no
		cost = 20
        days_remove = 5
         
        modifier = {

        }        
       
		complete_effect = {

		}
		
		remove_effect = {
			increase_tension_by_1 = yes
		}
			
		ai_will_do = {
			base = 1000
			}
		}
		

	MNT_withhold_taxes_from_rebel_areas	= {

		icon = generic_political_discourse

		available = {
		
		}
		
		visible = {
			montenegro_revolt = yes
			NOT = {
				has_idea =  MNT_idea_withheld_taxes
			}
		}
		
		allowed = { 
			tag = MNT
		}
		
		fire_only_once = no
		cost = 25
        days_remove = 7
         
        modifier = {

        }        
       
		complete_effect = {

		}
		
		remove_effect = {
			OTO = {
				country_event = OTO_battleofgrahovac.6
			}
			custom_effect_tooltip = withhold_taxes
		}
			
		ai_will_do = {
			base = 1000
		}
	}
		
	OTO_build_new_fortification_system	= {

		icon = generic_political_discourse

		available = {
		
		}
		
		visible = {
			OR = {
				montenegro_revolt = yes
				MNT_OTO_neogotiations = yes
			}
		}
		
		allowed = { 
			tag = OTO
		}
		
		fire_only_once = yes
		cost = 25
        days_remove = 40
         
        modifier = {
			consumer_goods_factor = 0.025
        }        
       
		complete_effect = {
		
		}
		
		remove_effect = {
			custom_effect_tooltip = OTO_gain_3_if_compl
			set_country_flag = OTO_fort_1
		}
			
		ai_will_do = {
			base = 1000
		}
	}
		
		
	OTO_finish_new_fortification_system	= {

		icon = generic_political_discourse

		available = {
			has_country_flag = OTO_fort_1
		}
		
		visible = {
			OR = {
				montenegro_revolt = yes
				MNT_OTO_neogotiations = yes
			}
		}
		
		allowed = { 
			tag = OTO
		}
		
		fire_only_once = yes
		cost = 25
        days_remove = 40
         
        modifier = {
			consumer_goods_factor = 0.025
        }        
       
		complete_effect = {
			clr_country_flag = OTO_fort_1
		}
		
		remove_effect = {
			225 = {
				add_building_construction = {
					type = bunker
					level = 1
					instant_build = yes
				province = 9809
				}
			}
			custom_effect_tooltip = OTO_gain_3_if_compl
			add_to_variable = {
				var = OTO.MNT_neogotions
				value = 3
			}
		}
			
		ai_will_do = {
			base = 1000
			}
		}
		
 ###########################################
 #### Motenegro-ottomans Neogotiations #####


	OTO_mission_mostar_conference = {
	 #noegotions

        icon = generic_political_discourse

        allowed = { 
			OR = {
				tag = OTO 
				tag = MNT
				tag = FRA
				tag = RUS
				tag = AUS
			}
		}

        available = {
			custom_trigger_tooltip = {
				tooltip = independence_was_negotiated
				OR = {
					MNT = { has_country_flag = have_indenpendence_montengro }
					MNT = { has_country_flag = not_gained_independence }
				}	
			}
			custom_trigger_tooltip = {
				tooltip = territory_was_negotiated
				OR = {
					MNT = { has_country_flag = have_outer_montenegro }
					MNT = { has_country_flag = not_gained_outer_montenegro }
				}
			}
			custom_trigger_tooltip = {
				tooltip = every_items_negotiated
				check_variable = {
					var = global.negotiatied_items
						value = 6
						compare = equals
				}
			}
		}

        activation = {
            always = no
        }
		
        is_good = yes

        days_mission_timeout = 100
		
		cancel_trigger = {
			MNT = { 
				has_border_war = yes
				}
			}
        cancel_effect = {
			clr_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				country_event = OTO_battleofgrahovac.23
			}
			OTO = {
				country_event = OTO_battleofgrahovac.23
			}
        }

        timeout_effect = {
			clr_global_flag = montenegro_ottomans_neogotiations
			if = {
				limit = {
					tag = MNT
				}
				mostar_negotiations_effect = yes
			}
			else_if = {
				limit = {
					tag = OTO
				}
				effect_tooltip = {
					mostar_negotiations_effect = yes
				}
			}
		}
	
		complete_effect = {
			hidden_effect = {
				if = { 
					limit = {
						tag = OTO
					}
					MNT = { remove_mission = OTO_mission_mostar_conference }
				}
				else_if = {
					limit = {
						tag = MNT
					}
					OTO = { remove_mission = OTO_mission_mostar_conference }
				}
			}
			clr_global_flag = montenegro_ottomans_neogotiations
			MNT = {
				country_event = OTO_battleofgrahovac.24
			}
			OTO = {
				country_event = OTO_battleofgrahovac.24
			}
		}
	}

###Negotiations shop

	MNT_neogotiate_indenpendence = {

		icon = generic_political_discourse

		available = {
			custom_trigger_tooltip = {
				tooltip = has_another_neogotiation
				NOT = { has_country_flag = has_negotiations }
			}
			check_variable = {
				var = MNT.MNT_neogotions
				value = MNT.MNT_neogotions_indenpendence_price
				compare = greater_than_or_equals
			}
		}
		
		visible = {
			MNT = { NOT = { has_country_flag = not_gained_independence }}
			MNT_OTO_neogotiations = yes
		}
		
		allowed = { 
			tag = MNT
		}
		
		fire_only_once = yes
		cost = 0
         
        modifier = {

        }        
       
		complete_effect = {
			MNT = {
				set_country_flag = { 
					flag = have_indenpendence_montengro	
					value = 3
				}
			}
			subtract_from_variable = {
				var = MNT.MNT_neogotions
				value = MNT.MNT_neogotions_indenpendence_price
				tooltip = purchase_independence
			}
			increase_negotiated_items = yes
		}	
		
		remove_effect = {
		
		}
			
		ai_will_do = {
			base = 1000
			}
		}
		
		MNT_give_up_indenpendence_claims = {
		
		icon = generic_political_discourse

		available = {
			custom_trigger_tooltip = {
			tooltip = has_another_neogotiation
			NOT = { has_country_flag = has_negotiations }
			}
		}
		
		visible = {
			MNT = { NOT = { has_country_flag = have_indenpendence_montengro } }
			MNT_OTO_neogotiations = yes
		}
		
		allowed = { 
			tag = MNT
		}
		
		fire_only_once = yes
		cost = 0
		days_remove = 0
         
        modifier = {

        }        
       
		complete_effect = {
			increase_negotiated_items = yes
			set_country_flag = has_negotiations
			custom_effect_tooltip = MNT_gain_2
			OTO = { 
				country_event = OTO_battleofgrahovac.26
			}
		}
		
		remove_effect = {
		#
		}
			
		ai_will_do = {
			base = 1000
			}
		}
		
	MNT_neogotiate_new_territory = {

		icon = generic_political_discourse

		available = {
			custom_trigger_tooltip = {
				tooltip = has_another_neogotiation
				NOT = { has_country_flag = has_negotiations }
			}
			check_variable = {
				var =  MNT.MNT_neogotions
				value = MNT.MNT_neogotions_new_territoy_price
				compare = greater_than_or_equals
			}
		}
		
		visible = {
			MNT = { NOT = {has_country_flag = not_gained_outer_montenegro} }
			MNT_OTO_neogotiations = yes
		}
		
		allowed = { 
			tag = MNT
		}
		
		fire_only_once = yes
		cost = 0
         
        modifier = {

        }        
       
		complete_effect = {
			increase_negotiated_items = yes
			set_country_flag = { 
				flag = have_outer_montenegro	
				value = 1
			}
			subtract_from_variable = {
				var = MNT.MNT_neogotions
				value = MNT.MNT_neogotions_new_territoy_price
				tooltip = purchase_new_territory
			}
		}
		
		remove_effect = {
		
		}
			
		ai_will_do = {
			base = 1000
			}
	}
		
	MNT_give_up_territory_claims = {
		
		icon = generic_political_discourse

		available = {
			custom_trigger_tooltip = {
				tooltip = has_another_neogotiation
				NOT = { has_country_flag = has_negotiations }
			}
		}
		
		visible = {
			MNT = { NOT = { has_country_flag = have_outer_montenegro } }
			MNT_OTO_neogotiations = yes
		}
		
		allowed = { 
			tag = MNT
		}
		
		fire_only_once = yes
		cost = 0
		days_remove = 0         
        modifier = {

        }        
		
		remove_effect = {
			
		}
       
		complete_effect = {
			increase_negotiated_items = yes
			set_country_flag = has_negotiations
			custom_effect_tooltip = MNT_gain_3
			OTO = { 
				country_event = OTO_battleofgrahovac.29
			}
		}
		

			
		ai_will_do = {
			base = 1000
			}
		}
		
		MNT_neogotiate_arms_import = {

		icon = generic_political_discourse

		available = {
			check_variable = {
				var =  MNT.MNT_neogotions
				value = MNT.MNT_neogotions_arms_import_price
				compare = greater_than_or_equals
			}
		}
		
		visible = {
			MNT_OTO_neogotiations = yes
		}
		
		allowed = { 
			tag = MNT
		}
		
		fire_only_once = yes
		cost = 0
         
        modifier = {
			#
        }        
       
		complete_effect = {
			increase_negotiated_items = yes	
			MNT = {
				set_country_flag = { 
					flag = have_arms_import	
					value = 1
				}
			}
			subtract_from_variable = {
				var = MNT.MNT_neogotions
				value = MNT.MNT_neogotions_arms_import_price
				tooltip = purchase_arms_import
			}
		}
		
		remove_effect = {
		
		}
			
		ai_will_do = {
			base = 1000
			}
		}
	
### WAR  mission

	MNT_OTO_mission_war_1858 = {
	

        icon = generic_political_discourse

        allowed = { 
			OR = {
				tag = OTO 
				tag = MNT
			}
		}

        available = {
			NOT = {has_global_flag = MNT_war_1858}
			always = no
		}

        activation = {
            always = no
        }
		
		highlight_states = {
			highlight_state_targets = {
				state = 1204
				state = 1202
				state = 225
				state = 1205
				state = 966
				state = 942
			}
		}
		
		selectable_mission = no
        is_good = yes

        days_mission_timeout = 200
		
		cancel_trigger = {
			MNT_OTO_mission_war_1858_cancel_trigger = yes
		}

        cancel_effect = {
			if = {
				limit = {
					OTO = { controls_state = 942 }
				}
				MNT_OTO_mission_war_1858_cancel_effect_OTO_conquer_942 = yes
			}
			if = {
				limit = {
					tag = MNT
				}
				MNT_OTO_mission_war_1858_cancel_effect = yes
			}
			else_if = {
				limit = {
					tag = OTO
				}
				effect_tooltip = {MNT_OTO_mission_war_1858_cancel_effect = yes}
			}
        }

        timeout_effect = {
			if = {
				limit = { 
					MNT  = {
						has_defensive_war_with  = OTO
					}
				}
				if = {
					limit = {
						tag = MNT
					}
					MNT_OTO_mission_war_1858_timeout_effect = yes
				}
				else_if = {
					limit = {
						tag = OTO
					}
					effect_tooltip = {MNT_OTO_mission_war_1858_timeout_effect = yes}
				}
			}
			if = {
				limit = { 
					MNT  = {
						has_offensive_war_with = OTO
					}
				}
				if = {
					limit = {
						tag = MNT
					}
					MNT_OTO_mission_war_1858_timeout_effect = yes
				}
				else_if = {
					limit = {
						tag = OTO
					}
					effect_tooltip = {OTO_MNT_mission_war_1858_timeout_effect = yes}
				}
			}
		}
	
		complete_effect = {
			clr_global_flag = MNT_war_1858
			#event
		}
	}
		
		### Ottomans restriction ###
		
		
	MNT_OTO_war_1858_time_to_withdraw_units = {

        icon = generic_political_discourse

        allowed = { 
			tag = OTO 
		}

        available = {
			always = no
		}
		
		visible = {
			always = no
		}

        activation = {
            always = no
        }
		
		selectable_mission = no
        is_good = no

        days_mission_timeout = 20
		
		cancel_trigger = {
			OR = {
				NOT = { has_active_mission = MNT_OTO_mission_war_1858 }
				NOT = {
					division_limit_WAR_1858 = yes
				}
			}
		}
		
        cancel_effect = {

        }

        timeout_effect = {
			if = {
				limit = {
					has_country_flag = last_Alert
				}
				FRA = {	country_event = OTO_battleofgrahovac.53 }
				RUS = {	country_event = OTO_battleofgrahovac.53 }
				AUS = {	country_event = OTO_battleofgrahovac.53 }
				custom_effect_tooltip = OTO_division_limit_last_alert
			}
			if = {
				limit = { 
					OR = {
						check_variable = { RUS.russia_support_to_MNT = 1 } 
						check_variable = { RUS.russia_support_to_MNT = 2 }
					}
				}
				RUS = {	country_event = OTO_battleofgrahovac.40 }
			}
			if = {
				limit = {
					OR = {
						check_variable = { FRA.france_support_to_MNT = 1 }
						check_variable = { FRA.france_support_to_MNT = 2 }
					}
				}
				FRA = {	country_event = OTO_battleofgrahovac.40 }
			}
			if = {
				limit = { 
					OR = {
						check_variable = { AUS.austria_support_to_MNT = 1 } 
						check_variable = { AUS.austria_support_to_MNT = 2 }
					}
				}
				AUS = {	country_event = OTO_battleofgrahovac.40 }
			}
		}
	
		complete_effect = {
			#event
		}
	}
		
		####################################
		###	foregin powers ( RUS , FRA ) ###
		####################################
		
	MNT_RUS_send_army_closer_to_ottoman_empire = {

		icon = generic_political_discourse

		available = {
			custom_trigger_tooltip = {
				tooltip = have_casus_beli_on_OTO
				check_variable = {
					var = casus_beli_on_OTO
					value = 1
					compare = greater_than_or_equals
				}
			}		
		
			num_divisions_in_states = {
				count > 6
				states = { 1119 }
			}
		}
		
		visible = {
			MNT_OTO_war_1858 = yes
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1119
			}
		}
		
		allowed = { 
			tag = RUS
		}
		
		is_good = no
		fire_only_once = no
		cost = 0
        days_remove = 16
         
        modifier = {
		
        }        
       
		complete_effect = {
			add_named_threat = {
				threat = 3
				name = RUS_escalation_on_borders
			}
			OTO = { country_event = OTO_battleofgrahovac.50 }
		}
		
		remove_effect = {
			set_variable = {
				var = RUS.preparation_to_war
				value = 1
				tooltip = russia_become_prepared
			}
			
		}
			
		ai_will_do = {
			base = 1000
		}
	}
		
	MNT_RUS_declare_war = {

		icon = generic_political_discourse

		available = {
			custom_trigger_tooltip = {
				tooltip = have_casus_beli_on_OTO
				check_variable = {
					var = casus_beli_on_OTO
					value = 1
					compare = greater_than_or_equals
				}
			}
		}
		
		visible = {
			check_variable = { RUS.preparation_to_war = 1 }
			MNT_OTO_war_1858 = yes
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 1119
			}
		}
		
		allowed = { 
			tag = RUS
		}
		
		is_good = no
		fire_only_once = no
		cost = 0
        days_remove = 16
         
        modifier = {
		
        }        
       
		complete_effect = {
			clear_variable = casus_beli_on_OTO
			clear_variable = RUS.preparation_to_war
		}
		
		remove_effect = {
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 1119
					num_provinces = 3
					on_win = OTO_battleofgrahovac.41
					on_lose = OTO_battleofgrahovac.42
					on_cancel = OTO_battleofgrahovac.21
				}	
				defender = {
				state = 1122
					num_provinces = 2
					on_win = OTO_battleofgrahovac.42
					on_lose = OTO_battleofgrahovac.41
					on_cancel = OTO_battleofgrahovac.21
				}
			}
		}
			
		ai_will_do = {
			base = 1000
			}
	}
		
	MNT_FRA_prepare_our_fleet_to_adriatic_sea = { 

		icon = generic_political_discourse

		available = {
			custom_trigger_tooltip = {
				tooltip = have_casus_beli_on_OTO
				check_variable = {
					var = casus_beli_on_OTO
					value = 1
					compare = greater_than_or_equals
				}
			}
			ships_in_state_ports = {
				type = capital_ship
				size > 8
				state = 21
			}
		}
		
		visible = {
			MNT_OTO_war_1858 = yes
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 21
			}
		}
		
		allowed = { 
			tag = FRA
		}
		
		is_good = no
		fire_only_once = yes
		cost = 0
        days_remove = 16
         
        modifier = {
		
        }        
       
		complete_effect = {
			add_named_threat = {
				threat = 3
				name = FRA_fleet_in_adriatic_sea
			}
			#OTO = { country_event = }
		}
		
		remove_effect = {
			set_variable = {
				var = FRA.preparation_to_war
				value = 1
				tooltip = france_become_prepared
			}
		}
			
		ai_will_do = {
			base = 1000
			}
	}
		
	MNT_FRA_invade_albania = {

		icon = generic_political_discourse

		available = {
			custom_trigger_tooltip = {
				tooltip = have_casus_beli_on_OTO
				check_variable = {
					var = casus_beli_on_OTO
					value = 1
					compare = greater_than_or_equals
				}
			}
			divisions_in_state = {
				size > 4
				state = 21
			}
			check_variable = { FRA.preparation_to_war = 1 }
		}
		
		visible = {
			MNT_OTO_war_1858 = yes
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 21
			}
			highlight_state_targets = {
				state = 44
			}
		}
		
		allowed = { 
			tag = FRA
		}
		
		is_good = no
		fire_only_once = no
		cost = 0
        days_remove = 8
         
        modifier = {
		
        }        
       
		complete_effect = {
			clear_variable = FRA.preparation_to_war
			clear_variable = casus_beli_on_OTO
			FRA = { transfer_state = 44 }
			21 = {
				teleport_armies = {
				to_state = 44
				}
			}
		}
		
		remove_effect = {
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 44
					num_provinces = 2
					on_win = OTO_battleofgrahovac.41
					on_lose = OTO_battleofgrahovac.42
					on_cancel = OTO_battleofgrahovac.21
				}	
				defender = {
				state = 1201
					num_provinces = 3
					on_win = OTO_battleofgrahovac.42
					on_lose = OTO_battleofgrahovac.41
					on_cancel = OTO_battleofgrahovac.21
				}
			}
		}
			
		ai_will_do = {
			base = 1000
		}
	}
		
		######################################
		### MNT_OTO_war_decisions/missions ### 		
		######################################
		
		
	MNT_decision_start_grahovo_missions = {

		icon = generic_political_discourse

		available = {
			MNT = { controls_province = 13779 }				
		}
		
		visible = {
			MNT_OTO_war_1858 = yes
		}

		highlight_states = {			
			highlight_provinces = { 13379 }
		}
		
		allowed = { 
			tag = MNT
		}
		
		is_good = no
		fire_only_once = yes
		cost = 0
         
        modifier = {
		
        }        
       
		complete_effect = {
			activate_mission = MNT_keep_grahovo_mission
		}
			
		ai_will_do = {
			base = 1000
			}
		}
		
		MNT_keep_grahovo_mission = {#only if you select mirko petrovics njegos as general

		icon = generic_political_discourse
		
		visible = {
			#has_global_flag = ###
			MNT_OTO_war_1858 = yes
		}
		
		available = {
			always = no
		}
		
		highlight_states = {
			highlight_provinces = { 13379 }
		}
		
		allowed = { 
			tag = MNT
		}
		
		activation = {
			always = no
		}
		
		is_good = no
		fire_only_once = yes
		selectable_mission = no
        days_mission_timeout = 20
		
		cancel_trigger = {
			NOT = {
				MNT = { controls_province = 13779 }
			}
		}
		
        cancel_effect = {
				add_to_variable = {
					var = MNT.available_lives
					value = -2
					tooltip = MNT_decrease_lives2
				}
        }

        timeout_effect = {
				add_to_variable = {
					var = OTO.available_lives
					value = -2
					tooltip = OTO_decrease_lives2
				}
		}
			
		ai_will_do = {
			base = 1000
			}
	}
		
		
	MNT_decision_start_keep_scutari = {

		icon = generic_political_discourse

		available = {
			MNT = { controls_province = 3896 }				
		}
		
		visible = {
			MNT_OTO_war_1858 = yes
		}
		
		highlight_states = {	
			highlight_provinces = { 3896 }
		}
		
		allowed = { 
			tag = MNT
		}

		is_good = no
		fire_only_once = yes
		cost = 0
         
        modifier = {
		
        }        
       
		complete_effect = {
			activate_mission = MNT_keep_scutari_mission
		}
			
		ai_will_do = {
			base = 1000
			}
	}
		
	#only if you select marko miljanov as general
	MNT_keep_scutari_mission = {

		icon = generic_political_discourse
		
		visible = {
			#has_global_flag = ###
			MNT_OTO_war_1858 = yes
		}
		
		highlight_states = {
			highlight_provinces = { 3896 }
		}
		
		allowed = { 
			tag = MNT
		}
		
		activation = {
			always = no
		}
		
		
		is_good = no
		fire_only_once = yes
		selectable_mission = no
        days_mission_timeout = 30
		
		cancel_trigger = {
			NOT = {
				MNT = { controls_province = 3896 }
			}
		}
		
        cancel_effect = {
				add_to_variable = {
					var = MNT.available_lives
					value = -1
					tooltip = MNT_decrease_lives
				}
        }

        timeout_effect = {
				add_to_variable = {
					var = OTO.available_lives
					value = -1
					tooltip = OTO_decrease_lives
				}
			44 = {
				create_unit = {
					division = "name = \"Albanian rebels\" division_template = \"clan rebels\" start_experience_factor = 0.5"
					owner = MNT
					allow_spawning_on_enemy_provs = yes
					prioritize_location = 3896
				}
			}
		}
			
		ai_will_do = {
			base = 1000
		}
	}
		
		
	MNT_decision_start_keep_herzegovina = {

		icon = generic_political_discourse

		available = {
			MNT = { controls_province = 9894 }				
		}
		
		visible = {
			MNT_OTO_war_1858 = yes
		}
		
		highlight_states = {	
			highlight_provinces = { 9894 }
		}
		
		allowed = { 
			tag = MNT
		}

		is_good = no
		fire_only_once = yes
		cost = 0
         
        modifier = {
		
        }        
       
		complete_effect = {
			activate_mission = MNT_keep_herzegovina_mission
		}
			
		ai_will_do = {
			base = 1000
		}
	}
		
		
	MNT_keep_herzegovina_mission = {# only if you select petar popovic pecija as general

		icon = generic_political_discourse
		
		visible = {
			#has_global_flag = ###
			MNT_OTO_war_1858 = yes
		}
		
		available = {
			always = no
		}
		
		highlight_states = {
			highlight_provinces = { 9894 }
		}
		
		allowed = { 
			tag = MNT
		}
		
		activation = {
			always = no
		}
		
		is_good = no
		fire_only_once = yes
		selectable_mission = no
        days_mission_timeout = 30
		
		cancel_trigger = {
			NOT = {
				MNT = { controls_province = 9894 }
			}
		}
		
        cancel_effect = {
				add_to_variable = {
					var = MNT.available_lives
					value = -1
					tooltip = MNT_decrease_lives
				}
        }

        timeout_effect = {
			add_to_variable = {
				var = OTO.available_lives
				value = -1
				tooltip = OTO_decrease_lives
			}
			1205 = {
				create_unit = {
					division = "name = \"Herzegovinian rebels\" division_template = \"clan rebels\" start_experience_factor = 0.5"
					owner = MNT
					allow_spawning_on_enemy_provs = yes
					prioritize_location = 9894
				}
			}
		}
			
		ai_will_do = {
			base = 1000
		}
	}
		
		
	MNT_decision_start_connection_with_serbia = {

		icon = generic_political_discourse

		available = {
			MNT = { 
				controls_state = 966 
				divisions_in_state = {
					size > 2
					state = 966
				}	
			}				
		}
		
		visible = {
			MNT_OTO_war_1858 = yes
		}
		
		highlight_states = {	
			highlight_provinces = { 9894 }
		}
		
		allowed = { 
			tag = MNT
		}

		is_good = no
		fire_only_once = yes
		cost = 0
         
        modifier = {
		
        }        
       
		complete_effect = {
			activate_mission = MNT_keep_herzegovina_mission
		}
			
		ai_will_do = {
			base = 1000
			}
		}
		
	MNT_connection_with_serbia = {

		icon = generic_political_discourse
		
		visible = {
			#has_global_flag = ###
			MNT_OTO_war_1858 = yes
		}
		
		available = {
			always = no
		}
		
		highlight_states = {
			highlight_state_targets = { state = 966 }
		}
		
		allowed = { 
			tag = MNT
		}
		
		activation = {
			always = no
		}
		
		is_good = no
		fire_only_once = yes
		selectable_mission = no
        days_mission_timeout = 30
		
		cancel_trigger = {
			OR = {
				NOT = {
					MNT = { controls_province = 9894 }
				}
				NOT = {
					divisions_in_state = {
						size > 2
						state = 966
					}	
				}
			}
		}
		
        cancel_effect = {
				add_to_variable = {
					var = MNT.available_lives
					value = -1
					tooltip = MNT_decrease_lives
				}
        }

        timeout_effect = {
				add_to_variable = {
					var = OTO.available_lives
					value = -1
					tooltip = OTO_decrease_lives
				}
		}
			
		ai_will_do = {
			base = 1000
			}
		}
		
	MNT_deal_demage_to_ottomans = {

		icon = generic_political_discourse

		available = {
			OTO = {
				casualties_inflicted_by = {
					opponent = MNT
					thousands > 3
				}
			}
		}
		
		visible = {
			MNT_OTO_war_1858 = yes
		}
		
		allowed = { 
			tag = MNT
		}
		
		fire_only_once = yes
		cost = 0
            
       
		complete_effect = {
			add_to_variable = {
				var = OTO.available_lives
				value = -1
				tooltip = OTO_decrease_lives
			}
		}
		
			
		ai_will_do = {
			base = 1000
		}
	}
		
		MNT_deliver_the_weapons_to_the_herzegovina = {

		icon = generic_political_discourse

		available = {
			divisions_in_state = {
				size > 1
				state = 1205
			}
		}
		
		visible = {
			NOT = { has_country_flag = new_uprising_in_herzegovina }
			MNT_OTO_war_1858 = yes
		}
		
		allowed = { 
			tag = MNT
		}
		
		fire_only_once = yes
		cost = 0
		custom_cost_trigger = {
			has_equipment = {
				infantry_equipment > 49
			}
		}
		custom_cost_text = MNT_deliver_the_weapons_to_the_herzegovina_decision_cost
            
       
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -50
				producer = MNT
			}
				
			if = {
				limit = {
					controls_state = 1205
				}
				add_to_variable = {
					var = herzegovina_equipment
					value = 50
					tooltip = add_50_infeq_to_HRZ
				}
			}
			else = {
				OTO = {
					set_temp_variable = {
						var = OTO_divisions_in_1205
						value = 1205.num_armies_in_state 
					}
				}
				set_temp_variable = {
					var = MNT_divisions_in_1205
					value = 1205.num_armies_in_state 
				}
				divide_temp_variable = { MNT_divisions_in_1205 = OTO.OTO_divisions_in_1205 }
				multiply_temp_variable = { MNT_divisions_in_1205 = 50 }
				if = {
					limit = {
						check_variable = {
							var = MNT_divisions_in_1205
							value = 50
							compare = greater_than_or_equals
						}
					}
					set_temp_variable = {
						var = MNT_divisions_in_1205
						value = 50
					}
				}
				set_variable = {
					var = herzegovina_equipment
					value = MNT_divisions_in_1205
					tooltip = add_x_infeq_to_HRZ
				}
			}
		}
		
			
		ai_will_do = {
			base = 1000
			}
		}
		
		
		MNT_to_start_a_new_uprising_in_Herzegovina = {

		icon = generic_political_discourse

		available = {
			divisions_in_state = {
				size > 1
				state = 1205
			}
			
		}
		
		visible = {
			MNT_OTO_war_1858 = yes
		}
		
		allowed = { 
			tag = MNT
		}
		
		fire_only_once = yes
		cost = 30
		custom_cost_trigger = {
			check_variable = {
				var = herzegovina_equipment
				value = 200
				compare = greater_than_or_equals
			}
		}
		custom_cost_text = MNT_herzegovina_equipment_more_than_200
            
       
		complete_effect = {
			set_country_flag = new_uprising_in_herzegovina
			clear_variable = herzegovina_equipment
			add_to_variable = {
				var = OTO.available_lives
				value = -1
				tooltip = OTO_decrease_lives
			}
			1205 = {
				create_unit = {
					division = "name = \"Herzegovinian rebels\" division_template = \"clan rebels\" start_experience_factor = 0.5"
					owner = MNT
					allow_spawning_on_enemy_provs = yes
				}
			}
			1205 = {
				create_unit = {
					division = "name = \"Herzegovinian rebels\" division_template = \"clan rebels\" start_experience_factor = 0.5"
					owner = MNT
					allow_spawning_on_enemy_provs = yes
				}
			}
			1205 = {
				create_unit = {
					division = "name = \"Herzegovinian rebels\" division_template = \"clan rebels\" start_experience_factor = 0.5"
					owner = MNT
					allow_spawning_on_enemy_provs = yes
				}
			}
		}
		
			
		ai_will_do = {
			base = 1000
			}
		}
		
		
		OTO_keep_order_in_the_herzegovina = {

		icon = generic_political_discourse

		available = {
			1205 = {
				resistance < 30
			}
			divisions_in_state = {
				size > 1
				state = 1205
			}
		}
		
		visible = {
			MNT_OTO_war_1858 = yes
		}
		
		allowed = { 
			tag = OTO
		}
		
		fire_only_once = yes
		cost = 30
            
       
		complete_effect = {
			add_to_variable = {
				var = MNT.available_lives
				value = -1
				tooltip = MNT_decrease_lives
			}
		}
		
			
		ai_will_do = {
			base = 1000
			}
		}
		
		MNT_decision_secure_podgorica_western_sandjak = {

		icon = generic_political_discourse

		available = {
			custom_trigger_tooltip = {
			tooltip = OTO_secure_podgorica
			num_divisions_in_states = {
				count > 5
				states = { 1202 225 1204 }
			}
				controls_province = 13779
				controls_province = 11858
				controls_province = 9809
				controls_province = 13775
				controls_province = 13776
				controls_province = 13777
				controls_province = 13852
				controls_state = 1202
				controls_state = 225
				controls_state = 1204
			}			
		}
		
		visible = {
			MNT_OTO_war_1858 = yes
		}
		
		highlight_states = {	
			highlight_provinces = { 13779 }
			highlight_provinces = { 11858 }
			highlight_provinces = { 9809 }
			highlight_provinces = { 13775 }
			highlight_provinces = { 13776 }
			highlight_provinces = { 13777 }
			highlight_provinces = { 13852 }
		}
		
		allowed = { 
			tag = OTO
		}

		is_good = no
		fire_only_once = yes
		cost = 0
         
        modifier = {
		
        }        
       
		complete_effect = {
			activate_mission = OTO_mission_secure_podgorica_western_sandjak
		}
			
		ai_will_do = {
			base = 1000
			}
		}
		
		OTO_mission_secure_podgorica_western_sandjak = {

		icon = generic_political_discourse

		activation = {
			always = no
		}
		
		
		allowed = { 
			tag = OTO
		}
		
		fire_only_once = yes
        days_mission_timeout = 30
		
		cancel_trigger = {
			NOT = {
				custom_trigger_tooltip = {
					tooltip = OTO_secure_podgorica
					num_divisions_in_states = {
						count > 5
						states = { 1202 225 1204 }
					}
					controls_province = 13779
					controls_province = 11858
					controls_province = 9809
					controls_province = 13775
					controls_province = 13776
					controls_province = 13777
					controls_province = 13852
					controls_state = 1202
					controls_state = 225
					controls_state = 1204
				}
			}
		}
		
        cancel_effect = {
			add_to_variable = {
				var = OTO.available_lives
				value = -1
				tooltip = MNT_decrease_lives
			}
        }

        timeout_effect = {
			add_to_variable = {
				var = MNT.available_lives
				value = -1
				tooltip = MNT_decrease_lives
			}
		}
		
			
		ai_will_do = {
			base = 1000
			}
		}
		
		
		
		
		
		
		
### OTO side negotiations shop ###########
		
		OTO_deport_Mirko_Petrovic_Njegos = {

		icon = generic_political_discourse

		available = {
			check_variable = {
				var =  OTO.MNT_neogotions
				value = OTO.MNT_neogotions_deport_mirko_petrovic_njegos
				compare = greater_than_or_equals
			}
		}
		
		visible = {
			MNT_OTO_neogotiations = yes
		}
		
		allowed = { 
		tag = OTO
		}
		
		fire_only_once = yes
		cost = 0
         
        modifier = {

        }        
       
		complete_effect = {
			increase_negotiated_items = yes
			MNT = {
				set_country_flag= {
					flag = deport_mirko_petrovic_njegos
					value = 0.0015
				}
			}
			subtract_from_variable = {
				var = OTO.MNT_neogotions
				value = OTO.MNT_neogotions_deport_mirko_petrovic_njegos
				tooltip = deport_mirko_petrovic_njegos_t
			}
		}
		
		remove_effect = {
		
		}
			
		ai_will_do = {
			base = 1000
			}
		}
		
		OTO_demand_guarantee_protection_for_Muslim_landlords = {

		icon = generic_political_discourse

		available = {
			check_variable = {
			var =  OTO.MNT_neogotions
			value = OTO.MNT_neogotions_protect_muslim_landlords
			compare = greater_than_or_equals
			}
		}
		
		visible = {
			MNT_OTO_neogotiations = yes
		}
		
		allowed = { 
		tag = OTO
		}
		
		fire_only_once = yes
		cost = 0
         
        modifier = {

        }        
       
		complete_effect = {
			increase_negotiated_items = yes
			MNT = {
				set_country_flag = {
					flag = protect_muslim_landlords
					value = 0.002
				}
			}
		subtract_from_variable = {
			var = OTO.MNT_neogotions
			value = OTO.MNT_neogotions_protect_muslim_landlords
			tooltip = protect_muslim_landlords_t
		}
	}
		
		remove_effect = {
		
		}
			
		ai_will_do = {
			base = 1000
			}
		}
		
	OTO_demand_repayment_Ottoman_debt = {

		icon = generic_political_discourse

		available = {
			check_variable = {
				var =  OTO.MNT_neogotions
				value = OTO.MNT_neogotions_demand_debt_repayment
				compare = greater_than_or_equals
			}
		}
		
		visible = {
			MNT_OTO_neogotiations = yes
		}
		
		allowed = { 
		tag = OTO
		}
		
		fire_only_once = yes
		cost = 0
         
        modifier = {

        }        
       
		complete_effect = {
			increase_negotiated_items = yes
			MNT = {
				set_country_flag = {
					flag = demanded_debt_repayment
					value = 0.002
				}
			}
			subtract_from_variable = {
				var = OTO.MNT_neogotions
				value = OTO.MNT_neogotions_demand_debt_repayment
				tooltip = demand_debt_repayment_t
			}
		}
		
		remove_effect = {
		
		}
			
		ai_will_do = {
			base = 1000
		}
	}
}
	
	
MNT_Balance_of_Power_foregin_interest = {

		MNT_decision_bop_contact_russian_konzul_in_Skadar = {

		icon = generic_political_discourse

		available = {
		}
		
		visible = {
			OR = {
				OTO = { has_active_mission = OTO_mission_herzegovina_uprising_1857_final }
				has_global_flag = montenegro_ottomans_neogotiations
			}
		}
		
		allowed = { 
		tag = MNT
		}
		
		fire_only_once = no
		cost = 35
         
        modifier = {

        }        
       
		complete_effect = {
		#country_event = 
	}
		
		remove_effect = {
		
		}
			
		ai_will_do = {
			base = 1000
			}
		}
}




MNT_decision_category_Herzegovinian_uprising = {
	
	MNT_Montenegrins_Herzgovina_Uprising = {

		icon = feudal_warriors
		
		allowed = {
		}

		available = {
		}

		visible = {
			OR = {
				has_completed_focus = MNT_focus_guerrilla_war
				has_country_flag = SER_support_herzegovina_uprising
			}
		}

		fire_only_once = yes
		cost = 50
        days_remove = 30
         
        modifier = {
            
        }        
       
		complete_effect = {
			add_manpower = -500
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -200
				producer = MNT
			}
		}
	   
        remove_effect = {
			#OTO = {
				#country_event = montenegro.14
			#}
			HRZ = { 
				add_manpower = 500
				add_ideas = MNT_Montenegrin_Support 
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 200
					producer = MNT
				}
			}
        }
       
		ai_will_do = {
			base = 100000
		}
	}
	
	MNT_Montenegrins_Herzgovina_Uprising1 = {

		icon = feudal_warriors
		
		allowed = {
			
		}

		available = {
			has_completed_focus = MNT_focus_smuggle_weapons_into_herzegovina
			HRZ = {
				has_war_with = OTO
			}
		}

		visible = {
					OR = {
			has_completed_focus = MNT_focus_guerrilla_war
			has_country_flag = SER_support_herzegovina_uprising
			}
		}

		fire_only_once = yes
		cost = 50
        days_remove = 30
		
        modifier = {
            
        }        
       
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
				producer = MNT
			}
		}
	   
        remove_effect = {
			HRZ = { 
				swap_ideas = { remove_idea = MNT_Montenegrin_Support add_idea = MNT_Montenegrin_Support1 }
				add_manpower = 500
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 1000
					producer = MNT
				}
			}
        }
       
		ai_will_do = {
			base = 100000
		}
	}

	MNT_liberate_Podgorica = {

		icon = generic_political_discourse

		available = {
			NOT = {has_full_control_of_state = 225}
            has_border_war = no
			OTO = { has_full_control_of_state = 225 }
		}

		visible = {
			HRZ = { has_war_with = OTO }
		    MNT = { has_idea = MNT_WAR }
		}

		fire_only_once = no
		cost = 10
        days_remove = 5
         
        modifier = {
            
        }        
       
	  complete_effect = {
		start_border_war = {
			change_state_after_war = no
				attacker = {
					state = 942
					num_provinces = 1
					on_win = montenegro.125
					on_lose = montenegro.126
					on_cancel = montenegro.127
		}	
					defender = {
					state = 225
					num_provinces = 1
					on_win = montenegro.128
					on_lose = montenegro.126
					on_cancel = montenegro.127
				}
			}
		}
		
       remove_effect = {
			
        }
       
		ai_will_do = {
			base = 1000
		}
	}
	
	
	MNT_capture_Montenegro_Sandjak = {

		icon = generic_political_discourse

		available = {
			NOT = { has_full_control_of_state = 1202 }
			OTO = {
				has_full_control_of_state = 1202
			}
			has_border_war = no
		}

		visible = {
		MNT = { has_idea = MNT_WAR }	
		HRZ = { has_war_with = OTO }
		}

		fire_only_once = no
		cost = 10
        days_remove = 5
         
        modifier = {
            
        }  
		
        complete_effect = {
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 942
					num_provinces = 1
					on_win = montenegro.124
					on_lose = montenegro.126
					on_cancel = montenegro.127
				}
							
				defender = {
					state = 1202
					num_provinces = 1
					on_win = montenegro.128
					on_lose = montenegro.126
					on_cancel = montenegro.127
				}
			}	
		}
		
        remove_effect = {

        }
       
		ai_will_do = {
			base = 1000
		}
	}
	
	
	MNT_capture_Outer_montenegro = {

		icon = generic_political_discourse

		available = {
			NOT = { has_full_control_of_state = 1204 }
			OTO = { has_full_control_of_state = 1204 }
			has_border_war = no
		}

		visible = {
		MNT = { has_idea = MNT_WAR }
		HRZ = { has_war_with = OTO }
		}

		fire_only_once = no
		cost = 10
        days_remove = 5
         
        modifier = {
             
        } 
		
		complete_effect = {
					start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 942
					num_provinces = 1
					on_win = montenegro.123
					on_lose = montenegro.126
					on_cancel = montenegro.127
				}
							
				defender = {
					state = 1204
					num_provinces = 1
					on_win = montenegro.128
					on_lose = montenegro.126
					on_cancel = montenegro.127
				}
			}	
		}
		
        remove_effect = {
		
        }
       
		ai_will_do = {
			base = 1000
		}
	}
}

MNT_decision_category_agriculture = {

	MNT_mission_agricultural_reform = {
		
		icon = generic_military
		
		allowed = { always = no }
		
		available = {
			has_completed_focus = MNT_focus_agriculture_reform
			has_tech = early_medicine
			has_tech = food_canning
			has_tech = high_phosphate_fertilizer
			has_tech = mechanized_farming
			has_tech = pre_industrial_farms
		}
		
		activation = { always = no }
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 1200
		
		cancel_trigger = {

		}
		
		timeout_effect = {
			country_event = montenegro.200
			add_stability = -0.02
		}
		
		complete_effect = {
			country_event = montenegro.201
			add_stability =  0.02
		}
	}
		
		
	MNT_decision_Buy_modern_farming_machines_austria = {

		icon = generic_political_discourse

		available = {
		}

		visible = {
			has_completed_focus = MNT_focus_buy_modern_machinery
		}

		fire_only_once = yes
		cost = 50
        days_remove = 180
         
        modifier = {
        
        }        
       	
		complete_effect = {
		 
		}
		
        remove_effect = {
		improve_mechanized_agriculture = yes
	    }

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_Buy_modern_farming_machines_france = {

		icon = generic_political_discourse

		available = {
		#
		}

		visible = {
			has_completed_focus = MNT_focus_buy_modern_machinery
		}

		fire_only_once = yes
		cost = 50
        days_remove = 180
         
        modifier = {
        
        }        
       	
		complete_effect = {
		 
		}
		
        remove_effect = {
		improve_mechanized_agriculture = yes
	    }

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_Buy_modern_farming_machines_italy = {

		icon = generic_political_discourse

		available = {
		}
		visible = {
			has_completed_focus = MNT_focus_buy_modern_machinery
		}

		fire_only_once = yes
		cost = 50
        days_remove = 180
         
        modifier = {
        
        }        
       	
		complete_effect = {
		 
		}
		
        remove_effect = {
		improve_mechanized_agriculture = yes
	    }

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_Buy_modern_farming_machines_Russia = {

		icon = generic_political_discourse

		available = {
		    has_completed_focus = MNT_focus_reapproach_russia
		}

		visible = {
			has_completed_focus = MNT_focus_buy_modern_machinery
		}

		fire_only_once = yes
		cost = 50
        days_remove = 180
         
        modifier = {
        
        }        
       	
		complete_effect = {
		 
		}
		
        remove_effect = {
		improve_mechanized_agriculture = yes
	    }

		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_build_samwills = {
		
		icon = generic_military
		
		allowed = { always = no }
		
		available = {
			has_completed_focus = MNT_focus_build_sawmills
		}
		
		visible = {
			
		}
		
		fire_only_once = yes
		
		cost = 50
		
        days_remove = 100
		
		cancel_trigger = {
			
		}
		
		complete_effect = {
			
		}
		
        remove_effect = {
			942 = { add_extra_state_shared_building_slots = 1 }
			942 = {
				add_building_construction = {
					type = samwill
					level = 1
					instant_build = yes
				}
			}
			add_stability = 0.03
        }
	}
	
	MNT_decision_purchase_of_farms = {
		
		icon = generic_political_discourse
		
		allowed = {  }

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_offer_to_purchase_their_farms
		}

		fire_only_once = yes
		cost = 50
        days_remove = 100
         
        modifier = {
			production_speed_buildings_factor = -0.4
			consumer_goods_expected_value = 0.2
        }   
		
       	complete_effect = {
			add_tech_bonus = { bonus = 0.25 uses = 1 category = biochemistry_tech }
			EOANBSYS_institutions_innovative_add_one = yes
		}
		
        remove_effect = {
			942 = {
				add_building_construction = {
					type = farm
					level = 1
					instant_build = yes
				}
			}
        }
       
		ai_will_do = {
			base = 1000
		}
	}

	MNT_decision_Beef_Exports = {

		icon = generic_political_discourse

		available = {
		
		}

		visible = {
			has_completed_focus = MNT_focus_beef_exports
		}

		fire_only_once = yes
			
		cost = 50
		
        days_remove = 100
         
        modifier = {
        
        } 
		
       	complete_effect = {
			
		}
		
        remove_effect = {
			add_ideas = MNT_beef_exports_profit
        }
       
		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_build_saltworks = {

		icon = generic_political_discourse

		available = {	
		OR = {
		has_full_control_of_state = 542 
		has_full_control_of_state = 1203
			}
		}

		visible = {
			has_completed_focus = MNT_focus_build_a_saltworks 
		}

		fire_only_once = yes
		cost = 50
        days_remove = 150
         
        modifier = {
			production_speed_buildings_factor = -0.4
        }  
		
       	complete_effect = {
			
		}
		
        remove_effect = {
			add_ideas = MNT_Salt_Works
			unlock_decision_tooltip = MNT_decision_expand_salt_work
        }
       
		ai_will_do = {
			base = 1000
		}
	}
	
	MNT_decision_expand_salt_work = {

		icon = generic_political_discourse

		available = {
		OR = {
		has_full_control_of_state = 542
		has_full_control_of_state = 1203	
			}
		}

		visible = {
			has_idea = MNT_Salt_Works
		}

		fire_only_once = yes
		cost = 75
        days_remove = 140
         
        modifier = {
			production_speed_buildings_factor = -0.4
        }  
		
       	complete_effect = {
			
		}
		
        remove_effect = {
			swap_ideas = {
				remove_idea = MNT_Salt_Works
				add_idea = MNT_Salt_Works2
			}
        }
       
		ai_will_do = {
			base = 1000
			}
		}
	}

	MNT_decision_category_administration = {

	MNT_mission_social_reforms = {
		
		icon = generic_military
		
		allowed = { always = no }
		
		available = {
			has_tech = tech_humanities_social_stratification
			has_tech = tech_humanities_public_works
			has_tech = tech_humanities_Capitalism
			has_tech = tech_humanities_saint_simonianism
		}
		
		activation = { always = no }
		
		fire_only_once = yes
		
		is_good = no
		
		days_mission_timeout = 1200
		
		cancel_trigger = {

		}
		
		timeout_effect = {
			add_stability = -0.02
		}
		
		complete_effect = {
			add_stability = 0.02
		}
	}
	
	MNT_decision_build_girls_institute = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_girls_institute_of_cetinje
		}

		fire_only_once = yes
		cost = 50
        days_remove = 100
        
        complete_effect = {
			EOANBSYS_institutions_nationalism_add_two = yes
			increase_legitimacy_by_two = yes
        }
		
        modifier = {
			political_power_gain = -0.1
			production_speed_buildings_factor = -0.05
        }
		
        remove_effect = {  
		improve_education_system = yes
		}  
       
		ai_will_do = {
			base = 100
		}
	}
	
	MNT_decision_parish_reforms = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_religious_reforms
		}

		fire_only_once = yes
		cost = 50
        days_remove = 360
        
        complete_effect = {
			EOANBSYS_institutions_nationalism_add_two = yes
			increase_legitimacy_by_two = yes
        }
		
        modifier = {
			political_power_gain = -0.05
        }
		
        remove_effect = {  
			add_political_power = 45
			add_stability = 0.02
			add_tech_bonus = { bonus = 0.35 uses = 1 category = humanities_tech }
		}
       
		ai_will_do = {
			base = 100
		}
	}
	
	MNT_decision_priests_reforms = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_religious_reforms
		}

		fire_only_once = yes
		cost = 50
        days_remove = 120
        
        complete_effect = {
			EOANBSYS_institutions_nationalism_add_two = yes
			increase_legitimacy_by_two = yes
        }
		
        modifier = {
			political_power_gain = -0.05
        }
		
        remove_effect = {  
			add_political_power = 45
			add_stability = 0.02
			add_tech_bonus = { bonus = 0.35 uses = 1 category = humanities_tech }
		}
       
		ai_will_do = {
			base = 100
		}
	}
	
	MNT_decision_todor_ilich_schools = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_education_reforms
		}

		fire_only_once = yes
		cost = 50
        days_remove = 120
        
        complete_effect = {
			EOANBSYS_institutions_nationalism_add_two = yes
			increase_legitimacy_by_two = yes
        }
		
        modifier = {
			political_power_gain = -0.05
        }
		
        remove_effect = {  
		improve_education_system = yes
		}
       
		ai_will_do = {
			base = 100
		}
	}
	
	MNT_decision_schools = {

		icon = generic_political_discourse

		available = {
			
		}

		visible = {
			has_completed_focus = MNT_focus_education_reforms
		}

		fire_only_once = yes
		cost = 50
        days_remove = 120
        
        complete_effect = {
			EOANBSYS_institutions_nationalism_add_two = yes
			increase_legitimacy_by_two = yes
        }
		
        modifier = {
			political_power_gain = -0.05
        }
		
        remove_effect = {  
		improve_education_system = yes
		}
       
		ai_will_do = {
			base = 100
		}
	}
}
