# Targetted decisions are possible vs _all_ other characters and shown are in the Diplomacy View, not the Intrigue View. The taker is in the FROM scope.
#
# filter = [self/court/home_court/vassals/sub_realm/realm/dynasty/all] (self MUST be set for decisions targetting only the taker, the other filter types can be set to lessen CPU load)
# #ai_target_filter  = [self/court/home_court/vassals/sub_realm/realm/dynasty/all] (which characters for which the AI evaluates the decision.)
#	court: all characters in the AI's host court, including prisoners, and characters currently away (wards, prisoners, etc)
#	home_court: all characters in the AI's home court, including prisoners, and characters currently away (wards, prisoners, etc)
#	vassals: direct vassal rulers of the AI's employer
#	sub_realm: all characters below the AI's employer
#	realm: all characters in the same top realm as the AI
#	dynasty: all members of the same dynasty (including the dead!)
#	all: all living characters (Avoid if possible. VERY CPU-HEAVY!)
#	

targetted_decisions = {

	divine_conception = {
		filter = all
		
		from_potential = {
			religion_group = god_group
			OR = {
				trait = God
				trait = Fallen_God
				}
			ai = no
			is_pregnant = no
		}
		potential = {
			NOT = { trait = Goddess
					trait = Fallen_Goddess
					trait = Young_Goddess
					trait = Young_Fallen_Goddess
					}
			is_pregnant = no
			is_female = yes
			age = 16
		}
		allow = {
			always = yes
		}
		effect = {
			if = {
				limit = {
					FROM = {
							is_female = yes
							is_pregnant = no
						}
					is_female = no
				}
				FROM = { impregnate = PREV }
			}
			if = {
				limit = {
					is_female = yes
					NOT = {
						is_pregnant = yes
						FROM = {
							is_female = yes
						}
					}
				}
				impregnate = FROM
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	divine_seduction = {
		filter = all
		
		from_potential = {
			religion_group = god_group
			OR = {
				trait = Goddess
				trait = Fallen_Goddess
				}
			ai = no
			is_pregnant = no
		}
		potential = {
			NOT = { trait = God
					trait = Fallen_God
					trait = Young_God
					trait = Fallen_Young_God
					}
			is_pregnant = no
			is_female = no
			age = 16
		}
		allow = {
			always = yes
		}
		effect = {
				FROM = { impregnate = ROOT }
			}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	god_duel = {
		is_high_prio = yes
		
		from_potential = {
			is_adult = yes
			prisoner = no
			has_dlc = "Way of Life"
			OR = {
				trait = Goddess
				trait = Fallen_Goddess
				trait = God
				trait = Fallen_God
				trait = Demi_God
				trait = Demi_Goddess
				}
			has_regent = no
		}
		
		potential = {
			is_adult = yes
			prisoner = no
			OR = {
				trait = Goddess
				trait = Fallen_Goddess
				trait = God
				trait = Fallen_God
				trait = Demi_God
				trait = Demi_Goddess
				}
			NOT = { character = FROM }
			NOT = { trait = incapable }
		}
		
		allow = {
		}
		
		effect = {
			hidden_tooltip = {
				character_event = { id = WoL.11000 }
			}
		}
		
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_character_modifier = declined_prestige_duel_timer
			}
			modifier = {
				factor = 0.01
			}
		}
	}
	god_king = {
		is_high_prio = yes
		filter = self
		from_potential = {
			is_adult = yes
			is_ruler = yes
			primary_title = {
				OR = {
					tier = king
					tier = emperor
				}
			}
			prisoner = no
			trait = God
			NOT = { 
				trait = kingofthegods
				trait = queenofthegods
				trait = evilking
				trait = evilqueen
			}
			has_regent = no
		}
		
		potential = {
			is_adult = yes
			prisoner = no
			is_adult = yes
			is_ruler = yes
			primary_title = {
				OR = {
					tier = king
					tier = emperor
				}
			}
			NOT = { 
				trait = kingofthegods
				trait = queenofthegods
				trait = evilking
				trait = evilqueen
			}
			prisoner = no
			trait = God
			has_regent = no
		}
		
		allow = {
		}
		
		effect = {
			hidden_tooltip = {
				character_event = { id = kingsqueens.001 }
			}
		}
		
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	god_queen = {
		is_high_prio = yes
		filter = self
		from_potential = {
			is_adult = yes
			is_ruler = yes
			primary_title = {
				OR = {
					tier = king
					tier = emperor
				}
			}
			prisoner = no
			trait = Goddess
			NOT = { 
				trait = kingofthegods
				trait = queenofthegods
				trait = evilking
				trait = evilqueen
			}
			has_regent = no
		}
		
		potential = {
			is_adult = yes
			prisoner = no
			is_adult = yes
			is_ruler = yes
			primary_title = {
				OR = {
					tier = king
					tier = emperor
				}
			}
			NOT = { 
				trait = kingofthegods
				trait = queenofthegods
				trait = evilking
				trait = evilqueen
			}
			prisoner = no
			trait = Goddess
			has_regent = no
		}
		
		allow = {
		}
		
		effect = {
			hidden_tooltip = {
				character_event = { id = kingsqueens.002 }
			}
		}
		
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	evilgod_king = {
		is_high_prio = yes
		filter = self
		from_potential = {
			is_adult = yes
			is_ruler = yes
			primary_title = {
				OR = {
					tier = king
					tier = emperor
				}
			}
			prisoner = no
			trait = Fallen_God
			NOT = { 
				trait = kingofthegods
				trait = queenofthegods
				trait = evilking
				trait = evilqueen
			}
			has_regent = no
		}
		
		potential = {
			is_adult = yes
			prisoner = no
			is_adult = yes
			is_ruler = yes
			primary_title = {
				OR = {
					tier = king
					tier = emperor
				}
			}
			NOT = { 
				trait = kingofthegods
				trait = queenofthegods
				trait = evilking
				trait = evilqueen
			}
			prisoner = no
			trait = Fallen_God
			has_regent = no
		}
		
		allow = {
		}
		
		effect = {
			hidden_tooltip = {
				character_event = { id = kingsqueens.003 }
			}
		}
		
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	evilgod_queen = {
		is_high_prio = yes
		filter = self
		from_potential = {
			is_adult = yes
			is_ruler = yes
			primary_title = {
				OR = {
					tier = king
					tier = emperor
				}
			}
			prisoner = no
			trait = Fallen_Goddess
			NOT = { 
				trait = kingofthegods
				trait = queenofthegods
				trait = evilking
				trait = evilqueen
			}
			has_regent = no
		}
		
		potential = {
			is_adult = yes
			prisoner = no
			is_adult = yes
			is_ruler = yes
			primary_title = {
				OR = {
					tier = king
					tier = emperor
				}
			}
			NOT = { 
				trait = kingofthegods
				trait = queenofthegods
				trait = evilking
				trait = evilqueen
			}
			prisoner = no
			trait = Fallen_Goddess
			has_regent = no
		}
		
		allow = {
		}
		
		effect = {
			hidden_tooltip = {
				character_event = { id = kingsqueens.004 }
			}
		}
		
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
}