targetted_decisions = {
	byzsla_picie_wiezien = {
		only_playable = yes
		filter = court
		ai_target_filter = court
		ai_check_interval = 12
		
		from_potential = {
			block_general_event_trigger = no
			society_member_of = wampyring
			is_playable = yes
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
		}
		potential = {
			host = { character = FROM }
			prisoner = yes
			age = 12
		}
		allow = {
			NOT = { diplomatic_immunity = yes }
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
				NOR = {
					trait = dwarf
					is_priest = yes 
					is_ascetic_trigger = yes
					is_virgin_trigger = yes
					is_landed = yes
				}
			}
		}
		effect = {
			hidden_effect = { 
				character_event = { id = wampyring_event.30 } 
				FROM = {
					increase_visibility_minor_effect = yes
				}
			}
			FROM = {
				change_society_currency = 20
				if = {
					limit = {
						ROOT = { is_lowborn = no }
					}
					change_society_currency = 35
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = infirm
								trait = incapable
								trait = depressed
								trait = drunkard
								trait = homosexual
							}
						}
					}
					change_society_currency = -5
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = genius
								trait = quick
							}
						}
					}
					change_society_currency = 10
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = fair
								trait = giant
								trait = strong
							}
						}
					}
					change_society_currency = 10
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = slow
								trait = imbecile
							}
						}
					}
					change_society_currency = -5
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = ugly
								trait = dwarf
								trait = weak
								trait = inbred
							}
						}
					}
					change_society_currency = -5
				}
				if = {
					limit = {
						ROOT = { 
							lifestyle_traits = 1
						}
					}
					change_society_currency = 10
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = poet
								trait = falconer 
							}
						}
					}
					change_society_currency = 10
				}
				if = {
					limit = {
						ROOT = { 
							has_vice_trigger = yes
						}
					}
					change_society_currency = 7
				}
				if = {
					limit = {
						ROOT = { 
							has_virtue_trigger = yes
						}
					}
					change_society_currency = 14
				}
				if = {
					limit = {
						ROOT = { 
							NOT = { is_virgin_trigger = yes }
						}
					}
					change_society_currency = 15
				}
				if = {
					limit = {
						ROOT = { 
							has_crusade_trait_trigger = yes
						}
					}
					change_society_currency = 8
				}
				if = {
					limit = {
						ROOT = { 
							has_bad_priest_trait_trigger = yes
						}
					}
					change_society_currency = 8
				}
				if = {
					limit = {
						ROOT = { 
							is_priest = yes
							NOT = { has_bad_priest_trait_trigger = yes }
						}
					}
					change_society_currency = 5
				}
				if = {
					limit = {
						ROOT = { 
							is_sick_or_injured_trigger = yes
						}
					}
					change_society_currency = 5
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = viking
								trait = ravager
								trait = seaking
								trait = sea_queen
								trait = varangian
								trait = chasnik
								martial = 13
							}
						}
					}
					change_society_currency = 5
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								intrigue = 12
								diplomacy = 12
								stewardship = 12
							}
						}
					}
					change_society_currency = 3
				}
				if = {
					limit = {
						ROOT = { 
							learning = 10
						}
					}
					change_society_currency = 4
				}
			}
			custom_tooltip = { text = BSPM_wampyring_picie }
		}
	}
	
	byzsla_picie_kochanka = {
		only_playable = yes
		filter = sub_realm
		ai_target_filter = court
		ai_check_interval = 12
		
		from_potential = {
			block_general_event_trigger = no
			society_member_of = wampyring
			is_playable = yes
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
		}
		potential = {
			is_lover = FROM
			hidden_tooltip = {
				NOT = {
					has_character_modifier = wampyring_picie_timer_1
				}
			}
			custom_tooltip = { text = BSPM_wampyring_picie_timer }
		}
		allow = {
			NOT = { diplomatic_immunity = yes }
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.15
			}
		}
		effect = {
			hidden_effect = { 
				character_event = { id = wampyring_event.31 } 
				FROM = {
					increase_visibility_minor_effect = yes
				}
			}
			FROM = {
				change_society_currency = 45
				if = {
					limit = {
						ROOT = { is_lowborn = no }
					}
					change_society_currency = 25
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = infirm
								trait = incapable
								trait = depressed
								trait = drunkard
								trait = homosexual
							}
						}
					}
					change_society_currency = -5
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = genius
								trait = quick
							}
						}
					}
					change_society_currency = 10
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = fair
								trait = giant
								trait = strong
							}
						}
					}
					change_society_currency = 10
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = slow
								trait = imbecile
							}
						}
					}
					change_society_currency = -5
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = ugly
								trait = dwarf
								trait = weak
								trait = inbred
							}
						}
					}
					change_society_currency = -5
				}
				if = {
					limit = {
						ROOT = { 
							lifestyle_traits = 1
						}
					}
					change_society_currency = 10
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = poet
								trait = falconer 
							}
						}
					}
					change_society_currency = 10
				}
				if = {
					limit = {
						ROOT = { 
							has_vice_trigger = yes
						}
					}
					change_society_currency = 7
				}
				if = {
					limit = {
						ROOT = { 
							has_virtue_trigger = yes
						}
					}
					change_society_currency = 14
				}
				if = {
					limit = {
						ROOT = { 
							NOT = { is_virgin_trigger = yes }
						}
					}
					change_society_currency = 15
				}
				if = {
					limit = {
						ROOT = { 
							has_crusade_trait_trigger = yes
						}
					}
					change_society_currency = 8
				}
				if = {
					limit = {
						ROOT = { 
							has_bad_priest_trait_trigger = yes
						}
					}
					change_society_currency = 8
				}
				if = {
					limit = {
						ROOT = { 
							is_priest = yes
							NOT = { has_bad_priest_trait_trigger = yes }
						}
					}
					change_society_currency = 5
				}
				if = {
					limit = {
						ROOT = { 
							is_sick_or_injured_trigger = yes
						}
					}
					change_society_currency = 5
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								trait = viking
								trait = ravager
								trait = seaking
								trait = sea_queen
								trait = varangian
								trait = chasnik
								martial = 13
							}
						}
					}
					change_society_currency = 5
				}
				if = {
					limit = {
						ROOT = { 
							OR = {
								intrigue = 12
								diplomacy = 12
								stewardship = 12
							}
						}
					}
					change_society_currency = 3
				}
				if = {
					limit = {
						ROOT = { 
							learning = 10
						}
					}
					change_society_currency = 4
				}
			}
			custom_tooltip = { text = BSPM_wampyring_picie }
		}
	}
	byzsla_samoleczenie = {
		filter = self
		ai_target_filter = self
		is_high_prio = yes
		ai_check_interval = 6
		
		potential = {
			society_member_of = wampyring
			NOT = { has_character_modifier = wampyring_leczenie_timer }
		}
		
		allow = {
			prisoner = no
			society_currency >= 400
			custom_tooltip = {
				text = devil_worshipers_dark_healing_tooltip
				OR = {
					has_disease_trigger = yes
					has_symptom_trigger = yes
					has_injury_trigger = yes
					is_maimed_trigger = yes
					trait = infirm
					trait = mangled
					trait = eunuch
					trait = blinded
					trait = incapable
				}
			}
		}
		effect = {
			custom_tooltip = { text = BSPM_wampyring_leczenie }
			hidden_tooltip = {
				character_event = {
					id = wampyring_event.32
					days = 0
				}
				increase_visibility_effect = yes
			}
			change_society_currency = -400
		}
	}
	byzsla_zmuszone_love = {
		is_in_society = yes
		ai_target_filter = sub_realm
		is_high_prio = yes
		ai_check_interval = 12
		
		from_potential = {
			society_member_of = wampyring
			society_rank >= 2
		}
		potential = {
			NOT = { is_lover = yes }
			OR = {
				AND = {
					FROM = { is_female = yes } 
					NOT = { is_female = yes }
				}
				AND = {
					FROM = { NOT = { is_female = yes } }
					is_female = yes 
				}
				AND = {
					FROM = {
						is_female = yes 
						trait = homosexual
					}
					is_female = yes
				}
				AND = {
					FROM = {
						NOT = { is_female = yes }
						trait = homosexual
					}
					NOT = { is_female = yes }
				}
			}
		}
		allow = {
			NOT = { is_lover = FROM }
			is_within_diplo_range = FROM 
			FROM = { 
				NOT = { num_of_lovers = 3 } 
				OR = {
					society_currency >= 250
					AND = {
						has_quest = quest_wampyring_kochanka
						society_currency >= 70
					}
				}
				prisoner = no
				NOT = { trait = incapable }
			}
		}
		effect = {
			FROM = {
				if = {
					limit = {
						NOT = { has_quest = quest_wampyring_kochanka }
					}
					change_society_currency = -250
				}
				if = {
					limit = {
						has_quest = quest_wampyring_kochanka
					}
					change_society_currency = -70
				}
				character_event = {
					id = wampyring_event.34
				}
				hidden_tooltip = {
					increase_visibility_effect = yes
				}
			}
		}
	}
	byzsla_tchorzliwy_glupiec = {
		is_in_society = yes
		ai_target_filter = independent_rulers
		is_high_prio = yes
		ai_check_interval = 12
		
		from_potential = {
			society_member_of = wampyring
			society_rank >= 2
		}
		potential = {
			OR = {
				is_foe = FROM
				war_with = FROM
				AND = {
					any_liege = {
						war_with = FROM
					}
					has_minor_title = title_commander
				}
			}
		}
		allow = {
			is_within_diplo_range = FROM 
			FROM = { 
				NOT = { num_of_lovers = 3 } 
				society_currency >= 250
				prisoner = no
				NOT = { trait = incapable }
			}
			NOT = { trait = craven }
			OR = {
				is_foe = FROM
				war_with = FROM
				AND = {
					any_liege = {
						war_with = FROM
					}
					has_minor_title = title_commander
				}
			}
		}
		effect = {
			FROM = {
				change_society_currency = -250
				character_event = {
					id = wampyring_event.37
				}
				hidden_tooltip = {
					increase_visibility_effect = yes
				}
			}
		}
	}
	byzsla_hipnoza_wasal = {
		is_in_society = yes
		ai_target_filter = sub_realm
		is_high_prio = yes
		ai_check_interval = 12
		
		from_potential = {
			society_member_of = wampyring
			society_rank >= 3
		}
		potential = {
			OR = {
				host = { character = FROM }
				liege = { character = FROM }
			}
			NOT = { character = FROM }
		}
		allow = {
			FROM = { 
				society_currency >= 400
				prisoner = no
				NOT = { trait = incapable }
				is_inaccessible_trigger = no
			}
			ROOT = {
				ai = yes
				NOT = { trait = incapable }
				is_inaccessible_trigger = no
				custom_tooltip = {
					text = BSPM_wampyring_hipnoza
					NOR = {
						has_character_flag = possessing_courtier
						has_opinion_modifier = { who = FROM modifier = opinion_loyal_servant }
						trait = possessed
						trait = lunatic
					}
				}
			}
		}
		effect = {
			FROM = {
				change_society_currency = -400
				character_event = {
					id = wampyring_event.40
				}
			}
		}
	}
	byzsla_przysiega_krwi = {
		is_in_society = yes
		filter = society
		ai_target_filter = society
		is_high_prio = yes
		ai_check_interval = 12
		
		from_potential = {
			prisoner = no
			NOT = { trait = incapable }
			society_rank >= 4
			society_member_of = wampyring
			is_playable = yes
		}
		potential = {
			society_member_of = wampyring
		}
		allow = {
			FROM = { 
				prisoner = no
				NOT = { trait = incapable }
				is_inaccessible_trigger = no
			}
			ROOT = {
				prisoner = no
				society_currency >= 250
				NOT = { trait = incapable }
				is_inaccessible_trigger = no
				NOT = { has_character_modifier = SPM_wampyring_przysiega_timer }
				custom_tooltip = {
					text = BSPM_wampyring_przysiega_TT
				}
			}
		}
		effect = {
			ROOT = {
				character_event = {
					id = wampyring_event.60
				}
				FROM = {
					hidden_tooltip = {
						increase_visibility_effect = yes
					}
				}
			}
		}
	}
	byzsla_hipnoza_wasal = {
		is_in_society = yes
		ai_target_filter = realm
		filter = realm
		is_high_prio = yes
		ai_check_interval = 12
		
		from_potential = {
			has_quest = quest_wampyring_histeria
		}
		potential = {
			is_playable = yes
			NOT = { character = FROM }
		}
		allow = {
			FROM = { 
				prisoner = no
				NOT = { trait = incapable }
				is_inaccessible_trigger = no
			}
			ROOT = {
				any_demesne_province = {
					NOT = { has_province_modifier = byzsla_wampiry }
				}
			}
		}
		effect = {
			ROOT = {
				character_event = {
					id = wampyring_event.124
				}
			}
		}
	}
	byzsla_trumna = {
		filter = self
		ai_target_filter = self
		is_high_prio = yes
		ai_check_interval = 6
		
		potential = {
			society_member_of = wampyring
			has_quest = quest_wampyring_trumna
			NOT = { has_character_flag = byzsla_coffin }
		}
		
		allow = {
			prisoner = no
			war = no
			is_incapable = no 
			is_inaccessible_trigger = no
		}
		effect = {
			custom_tooltip = { text = BSPM_wampyring_trumna }
			set_character_flag = byzsla_coffin
			hidden_tooltip = {
				character_event = {
					id = wampyring_event.131
					days = 0
				}
			}
		}
	}
	byzsla_prowokacja_deci = {
		is_in_society = yes
		ai_target_filter = court
		filter = vassals
		is_high_prio = yes
		ai_check_interval = 12
		
		from_potential = {
			has_quest = quest_wampyring_histeria
		}
		potential = {
			is_playable = yes
			NOT = { character = FROM }
		}
		allow = {
			FROM = { 
				prisoner = no
				NOT = { trait = incapable }
				is_inaccessible_trigger = no
			}
			ROOT = {
				prisoner = no
			}
		}
		effect = {
			FROM = {
				character_event = {
					id = wampyring_event.124
				}
			}
		}
	}
	byzsla_prowokacja_deci = {
		is_in_society = yes
		ai_target_filter = court
		filter = vassals
		is_high_prio = yes
		ai_check_interval = 12
		
		from_potential = {
			has_quest = quest_wampyring_histeria
		}
		potential = {
			is_playable = yes
			NOT = { character = FROM }
		}
		allow = {
			FROM = { 
				prisoner = no
				NOT = { trait = incapable }
				is_inaccessible_trigger = no
			}
			ROOT = {
				prisoner = no
			}
		}
		effect = {
			FROM = {
				character_event = {
					id = wampyring_event.124
				}
			}
		}
	}
	byzsla_prowokacja_sznur = {
		is_in_society = yes
		ai_target_filter = court
		filter = court
		is_high_prio = yes
		ai_check_interval = 12
		
		from_potential = {
			has_quest = quest_wampyring_sznur
		}
		potential = {
			NOT = { character = FROM }
		}
		allow = {
			FROM = { 
				prisoner = no
				NOT = { trait = incapable }
				is_inaccessible_trigger = no
			}
			ROOT = {
				prisoner = no
				trait = depressed
			}
		}
		effect = {
			FROM = {
				character_event = {
					id = wampyring_event.140
				}
			}
		}
	}
}

decisions = {
	byzsla_akceleracja = {
		is_in_society = yes
		
		potential = {
			prisoner = no
			NOT = { trait = incapable }
			society_rank >= 3
			society_member_of = wampyring
			is_playable = yes
		}
		allow = {
			war = yes
			society_currency >= 500
			NOT = {
				character_modifier = byzsla_akceleracja_mod
			}
		}
		effect = {
			change_society_currency = -500
			character_event = {
				id = wampyring_event.50
			}
			hidden_tooltip = {
				increase_visibility_effect = yes
			}
		}
	}
	byzsla_las_pali = {
		is_in_society = yes
		
		
		potential = {
			prisoner = no
			NOT = { trait = incapable }
			society_rank >= 4
			society_member_of = wampyring
			is_playable = yes
		}
		allow = {
			war = yes
			society_currency >= 650
			NOT = {
				character_modifier = byzsla_las_pali_mod
			}
		}
		effect = {
			change_society_currency = -650
			character_event = {
				id = wampyring_event.70
			}
			hidden_tooltip = {
				increase_visibility_effect = yes
			}
		}
	}
	byzsla_experyment_krew = {
		is_in_society = yes
		
		
		potential = {
			prisoner = no
			NOT = { trait = incapable }
			society_rank >= 4
			society_member_of = wampyring
			is_playable = yes
		}
		allow = {
			society_currency >= 1000
			NOT = {
				character_modifier = byzsla_las_pali_mod
			}
		}
		effect = {
			change_society_currency = -1000
			character_event = {
				id = wampyring_event.80
			}
		}
	}
}