plot_decisions = {

	plot_gain_title_decision = {
		only_playable = yes
		is_high_prio = yes
		ai_check_interval = 12
		
		potential = {
			always = no # Disabled
			is_playable = yes
			NOT = { culture = wilderness }
			age = 15
			has_plot = plot_gain_title
			NOT = { has_character_flag = plot_gain_title_decision_taken }
		}
		allow = {
			plot_power = 0.8
			num_of_plot_backers = 1
			plot_target_char = {
				prisoner = no
				NOT = {
					any_war = {
						defender = {
							character = PREVPREV
						}
					}
				}
			}
			will_liege_enforce_peace = no
			has_liege_enforced_peace = no
		}
		effect = {
			plot_target_char = {
				letter_event = { id = 8000 days = 3 tooltip = "EVTTOOLTIP8000" }
			}
			hidden_tooltip = {
				set_character_flag = plot_gain_title_decision_taken
				activate_plot = yes
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { plot_power = 0.9 }
			}
		}
	}

	plot_gain_vassal_title_decision = {
		only_playable = yes
		is_high_prio = yes
		ai_check_interval = 12
		
		potential = {
			NOT = { culture = wilderness }
			age = 15
			has_plot = plot_gain_vassal_title
			NOT = { has_character_flag = plot_gain_vassal_title_decision_taken }
		}
		allow = {
			plot_power = 0.8
			num_of_plot_backers = 1
			plot_target_char = {
				prisoner = no
				in_revolt = no
				custom_tooltip = {
					text = not_under_attack
					hidden_tooltip = {
						NOT = {
							any_war = {
								defender = {
									character = PREVPREV
								}
							}
						}
					}
				}
			}

			will_liege_enforce_peace = no
			has_liege_enforced_peace = no
		}
		effect = {
			plot_target_char = {
				letter_event = { id = 8030 days = 3 tooltip = "EVTTOOLTIP8030" }
			}
			hidden_tooltip = {
				set_character_flag = plot_gain_vassal_title_decision_taken
				activate_plot = yes
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { plot_power = 0.9 }
			}
		}
	}
	
	plot_weaken_fellow_vassal_decision = {
		only_rulers = yes
		is_high_prio = yes
		ai_check_interval = 12
		
		potential = {
			NOT = { culture = wilderness }
			age = 15
			has_plot = plot_weaken_fellow_vassal
			NOT = { has_character_flag = plot_weaken_fellow_vassal_decision_taken }
		}
		allow = {
			plot_power = 1
			num_of_plot_backers = 1
			plot_target_char = {
				NOT = {
					any_war = {
						defender = {
							character = PREVPREV
						}
					}
				}
			}

			will_liege_enforce_peace = no
			has_liege_enforced_peace = no
		}
		effect = {
			plot_target_char = {
				letter_event = { id = 7505 days = 3 tooltip = "EVTTOOLTIP7505" }
			}
			hidden_tooltip = {
				set_character_flag = plot_weaken_fellow_vassal_decision_taken
				activate_plot = yes
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { plot_power = 0.9 }
			}
		}
	}
	
	plot_weaken_fellow_vassal_decision_liege = {
		only_rulers = yes
		is_high_prio = yes
		ai_check_interval = 12
		
		potential = {
			NOT = { culture = wilderness }
			age = 15
			has_plot = plot_weaken_fellow_vassal
			NOT = { 
				has_character_flag = plot_weaken_fellow_vassal_decision_liege_taken
				has_character_flag = plot_weaken_fellow_vassal_decision_taken
				plot_target_char  = {
					reverse_opinion = { 
						who = liege
						value = 40
					}
				}
			}
		}
		allow = {
			plot_power = 0.6
			num_of_plot_backers = 1
			plot_target_char = {
				NOT = {
					any_war = {
						defender = {
							character = PREVPREV
						}
					}
				}
			}

			will_liege_enforce_peace = no
			has_liege_enforced_peace = no
		}
				
		effect = {
			top_liege = {
				letter_event = {
					id = 7500
					days = 3
					tooltip = "EVTTOOLTIP7500"
				}
			}
			hidden_tooltip = {
				set_character_flag = plot_weaken_fellow_vassal_decision_liege_taken
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { plot_power = 0.9 }
			}
		}
	}
	
	plot_gain_liege_title_decision_100 = {
		only_playable = yes
		is_high_prio = yes
		ai_check_interval = 12
		
		potential = {
			NOT = { culture = wilderness }
			age = 15
			has_plot = plot_gain_liege_title
			NOT = { has_character_flag = plot_gain_liege_title_decision_taken }
		}
		allow = {
			plot_power = 1
			num_of_plot_backers = 5
			plot_target_char = {
				NOT = {
					any_war = {
						defender = {
							character = PREVPREV
						}
					}
				}
			}

			liege = {
				OR = {
					independent = yes
					AND = {
						will_liege_enforce_peace = no
						has_liege_enforced_peace = no
					}
				}
			}
		}
		effect = {
			ROOT = {
				random_list = {
					90 = { 
						character_event = { id = 7600 tooltip = "EVTTOOLTIP7600" }
					}
					10 = {
						character_event = { id = 7601 tooltip = "EVTTOOLTIP7601" }
					}
				}
				hidden_tooltip = {
					set_character_flag = plot_gain_liege_title_decision_taken
					activate_plot = yes
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
			}
		}
	}
	
	plot_gain_liege_title_decision_75 = {
		only_playable = yes
		is_high_prio = yes
		ai_check_interval = 12
		
		potential = {
			NOT = { culture = wilderness }
			age = 15
			has_plot = plot_gain_liege_title
			NOT = { has_character_flag = plot_gain_liege_title_decision_taken }
		}
		allow = {
			plot_power = 0.75
			num_of_plot_backers = 3
			plot_target_char = {
				NOT = {
					any_war = {
						defender = {
							character = PREVPREV
						}
					}
				}
			}

			liege = {
				OR = {
					independent = yes
					AND = {
						will_liege_enforce_peace = no
						has_liege_enforced_peace = no
					}
				}
			}
		}
		effect = {
			ROOT = {
				random_list = {
					60 = { 
						character_event = { id = 7600 tooltip = "EVTTOOLTIP7600" }
					}
					40 = {
						character_event = { id = 7601 tooltip = "EVTTOOLTIP7601" }
					}
				}
				hidden_tooltip = {
					set_character_flag = plot_gain_liege_title_decision_taken
					activate_plot = yes
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { plot_power = 0.9 }
			}
		}
	}
	
	plot_gain_fellow_vassal_title_decision_100 = {
		only_playable = yes
		is_high_prio = yes
		ai_check_interval = 12
		
		potential = {
			NOT = { culture = wilderness }
			age = 15
			has_plot = plot_gain_fellow_vassal_title
			NOT = { has_character_flag = plot_gain_fellow_vassal_title_decision_taken }
		}
		allow = {
			plot_power = 1
			num_of_plot_backers = 4
			plot_target_char = {
				NOT = {
					any_war = {
						defender = {
							character = PREVPREV
						}
					}
				}
			}

			will_liege_enforce_peace = no
			has_liege_enforced_peace = no
		}
		effect = {
			ROOT = {
				random_list = {
					90 = { 
						character_event = { id = 7600 tooltip = "EVTTOOLTIP7600" }
					}
					10 = {
						character_event = { id = 7602 tooltip = "EVTTOOLTIP7601" }
					}
				}
				hidden_tooltip = {
					set_character_flag = plot_gain_fellow_vassal_title_decision_taken
					activate_plot = yes
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
			}
		}
	}
	
	plot_gain_fellow_vassal_title_decision_75 = {
		only_playable = yes
		is_high_prio = yes
		ai_check_interval = 12
		
		potential = {
			NOT = { culture = wilderness }
			age = 15
			has_plot = plot_gain_fellow_vassal_title
			NOT = { has_character_flag = plot_gain_fellow_vassal_title_decision_taken }
		}
		allow = {
			plot_power = 0.75
			num_of_plot_backers = 3
			plot_target_char = {
				NOT = {
					any_war = {
						defender = {
							character = PREVPREV
						}
					}
				}
			}

			will_liege_enforce_peace = no
			has_liege_enforced_peace = no
		}
		effect = {
			ROOT = {
				random_list = {
					60 = { 
						character_event = { id = 7600 tooltip = "EVTTOOLTIP7600" }
					}
					40 = {
						character_event = { id = 7602 tooltip = "EVTTOOLTIP7601" }
					}
				}
				hidden_tooltip = {
					set_character_flag = plot_gain_fellow_vassal_title_decision_taken
					activate_plot = yes
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { plot_power = 0.9 }
			}
		}
	}
	
	plot_seize_trade_post_decision = {
		only_playable = yes
		is_high_prio = yes
		ai_check_interval = 12
		
		potential = {
			NOT = { culture = wilderness }
			age = 15
			has_plot = plot_seize_trade_post
			NOT = { has_character_flag = plot_seize_trade_post_decision_taken }
		}
		allow = {
			plot_power = 0.75
			num_of_plot_backers = 3
			plot_target_char = {
				NOT = {
					any_war = {
						defender = {
							character = PREVPREV
						}
					}
				}
			}

			will_liege_enforce_peace = no
			has_liege_enforced_peace = no
		}
		effect = {
			ROOT = {
				character_event = { id = REP.300 tooltip = EVTTOOLTIPREP.300 }
				set_character_flag = plot_seize_trade_post_decision_taken
				activate_plot = yes
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					NOT = { plot_power = 0.9 }
					NOT = { wealth = 300 }
				}
			}
		}
	}
}
