namespace = guelphs_ghibellines



# 32 DEAL WITH GHIBELLINE PRISONER
character_event = {
	id = guelphs_ghibellines.32 # DEAL WITH GHIBELLINE PRISONER
	desc = "EVTDESCguelphs_ghibellines.32"

	is_triggered_only = yes
	
	picture = GFX_evt_holy_emperor

	is_triggered_only = yes
	
	immediate = {
		prestige = 100
	}
	
	option = {
		name = "You won't pick a side from now on!"
		event_target:ghibelline_prisoner = {
			character_event = {
				id = guelphs_ghibellines.34
				tooltip = "You offer your ghibelline prisoner to abjure in exchange for his freedom"
			}
		}
		ai_chance = {
			factor = 0.9
			modifier = {
				factor = 4
				trait = kind
			}
			modifier = {
				factor = 4
				trait = charitable
			}
			modifier = {
				factor = 2
				trait = content
			}
			modifier = {
				factor = 3
				trait = pious_man
			}
			modifier = {
				factor = 0.8
				trait = wroth
			}
			modifier = {
				factor = 0.6
				trait = greedy
			}
			modifier = {
				factor = 0.5
				trait = ambitious
			}
		}
	}
	option = {
		name = "Say goodbye to your family and your land, you're banished!"
		any_character = {
			limit = {
				is_primary_heir = event_target:ghibelline_prisoner
			}
			inherit = event_target:ghibelline_prisoner
		}
		any_character = {
			limit = {
				NOT = {
					is_adult = yes
				}
				NOT = {
					AND = {
						is_female = yes
						NOT = {
							is_heir = event_target:ghibelline_prisoner
						}
					}
				}
				OR = {
					is_child_of = event_target:ghibelline_prisoner
					is_heir = event_target:ghibelline_prisoner
					is_grandchild_of = event_target:ghibelline_prisoner
				}
			}
			set_guardian = ROOT
		}
		event_target:ghibelline_prisoner = {
			character_event = {
				id = guelphs_ghibellines.43
			}
			banish = yes	
		}
		ai_chance = {
			factor = 0.3
			modifier = {
				factor = 0.9
				trait = kind
			}
			modifier = {
				factor = 0.9
				trait = charitable
			}
			modifier = {
				factor = 0.8
				trait = content
			}
			modifier = {
				factor = 0.8
				trait = pious_man
			}
			modifier = {
				factor = 2
				trait = wroth
			}
			modifier = {
				factor = 1.5
				trait = greedy
			}
			modifier = {
				factor = 2
				trait = ambitious
			}
		}
	}
	option = {
		name = "I'll take everything!"
		ROOT = {
			add_character_modifier = {
				name = aggressive_rampage
				years = 5
			}
		}
		any_character = {
			limit = {
				NOT = {
					is_adult = yes
				}
				NOT = {
					AND = {
						is_female = yes
						NOT = {
							is_heir = event_target:ghibelline_prisoner
						}
					}
				}
				OR = {
					is_child_of = event_target:ghibelline_prisoner
					is_heir = event_target:ghibelline_prisoner
					is_grandchild_of = event_target:ghibelline_prisoner
				}
			}
			set_guardian = ROOT
		}
		event_target:ghibelline_prisoner = {
			any_demesne_title = {
				usurp_title_plus_barony_if_unlanded_and_vassals = ROOT
			}
			banish = yes
			character_event = {
				id = guelphs_ghibellines.44
			}
		}
		ai_chance = {
			factor = 0.2
			modifier = {
				factor = 0.25
				trait = kind
			}
			modifier = {
				factor = 0.25
				trait = charitable
			}
			modifier = {
				factor = 0.5
				trait = content
			}
			modifier = {
				factor = 0.33
				trait = pious_man
			}
			modifier = {
				factor = 3
				trait = wroth
			}
			modifier = {
				factor = 10.0
				trait = greedy
			}
			modifier = {
				factor = 5
				trait = ambitious
			}
		}
	}
	option = {
		name = "Persuade him to abandon his ideas, even to become guelph"
		trigger = {
			diplomacy = 16
		}
		tooltip_info = diplomacy

		event_target:ghibelline_prisoner = {
			character_event = {
				id = guelphs_ghibellines.38
				tooltip = "will be persuaded to change idea or not to pick a position."
			}
		}
		ai_chance = {
			factor = 1000
			modifier = {
				factor = 0.5
				trait = cruel
			}
			modifier = {
				factor = 0.8
				trait = wroth
			}
			modifier = {
				factor = 0.5
				trait = deceitful
			}
			modifier = {
				factor = 2
				trait = idealist
			}
			modifier = {
				factor = 2
				trait = machiavellian
			}
			modifier = {
				factor = 10.0
				trait = charitable
			}			
			modifier = {
				factor = 10.0
				trait = pious_man
			}
		}
	}
	after = {
		event_target:ghibelline_prisoner = {
			clear_event_target = ghibelline_prisoner
			clr_character_flag = ghibelline_prisoner
		}
	}
}


#34 GHIBELLINE IS ASKED TO ABJURE
character_event = {	
	id = guelphs_ghibellines.34 #GHIBELLINE IS ASKED TO ABJURE
	desc = "EVTDESCguelphs_ghibellines.34"
	
	picture = GFX_evt_holy_emperor

	is_triggered_only = yes
	
	option = {
		name = "I'll never abandon my family's traditions!"
		ROOT = {
			add_trait = proud
			prestige = 500
		}
		FROM = {
			character_event = {
				id = guelphs_ghibellines.37
				tooltip = "will hear my answer, even if I could be killed for this"
			}
		}
	}
	option = {
		name = "This is the best I could get."
		FROM = {
			character_event = {
				id = guelphs_ghibellines.40
				tooltip = "will hear my answer"
			}
		}
		ROOT = {
			remove_trait = ghibelline
			clr_character_flag = ghibelline_cb
			piety = 50
			imprison = no
			add_character_modifier = {
				name = threatened
				hidden = yes
				years = 3
			}
		}
		any_character = {
			limit = {
				NOT = {
					is_adult = yes
				}
				NOT = {
					AND = {
						is_female = yes
						NOT = {
							is_heir = ROOT
						}
					}
				}
				OR = {
					is_child_of = ROOT
					is_heir = ROOT
					is_grandchild_of = ROOT
				}
			}
			set_guardian = ROOT
		}
	}
}


#35 SON BECOMES GHIBELLINE
character_event = {
	id = guelphs_ghibellines.35 # 35 - SON BECOMES GHIBELLINE
	desc = "EVTDESCguelphs_ghibellines.35"
	picture = GFX_evt_son_asking_father
	
	is_triggered_only = yes
	
	trigger = {
		event_target:ghibelline_heir = { is_alive = yes }
	}	
	option = {
		name = EVTOPTAguelphs_ghibellines.35
		
		event_target:ghibelline_heir = {
			add_trait = ghibelline
			set_character_flag = ghibelline_cb
			clr_character_flag = ghibelline_heir
		}
		ai_chance = {
			factor = 0.8
			modifier = {
				factor = 2.5
				trait = cynical
			}
			modifier = {
				factor = 0.75
				trait = clerical_envoy
			}
			modifier = {
				factor = 0.5
				trait = conservative
			}
			modifier = {
				factor = 0.75
				trait = antisemite
			}
			modifier = {
				factor = 5
				trait = reformer
			}
			modifier = {
				factor = 0.5
				piety = 275
			}
			modifier = {
				factor = 2
				trait = idealist
			}
			modifier = {
				factor = 0.5
				trait = machiavellian
			}
			modifier = {
				factor = 1.5
				trait = tolerant
			}
			modifier = {
				factor = 10
				trait = ambitious
			}
			modifier = {
				factor = 5
				trait = proud
			}
			modifier = {
				factor = 2
				trait = greedy
			}
			modifier = {
				factor = 3
				trait = brave
			}
			modifier = {
				factor = 0.66
				trait = craven
			}
			modifier = {
				factor = 0.5
				trait = humble
			}
			modifier = {
				factor = 0.9
				trait = temperate
			}
			modifier = {
				factor = 5
				trait = wroth
			}
			modifier = {
				factor = 3
				trait = brilliant_strategist
			}
			modifier = {
				factor = 1.5
				trait = strong
			}
			modifier = {
				factor = 1.25
				trait = robust
			}
			modifier = {
				factor = 1.5
				trait = sturdy
			}
			modifier = {
				factor = 0.9
				trait = zealous
			}
			modifier = {
				factor = 1.5
				trait = skilled_tactician
			}
			modifier = {
				factor = 0.15
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 100 } }
			}
			modifier = {
				factor = 0.4
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 75 } }
			}
			modifier = {
				factor = 0.7
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 50 } }
			}
			modifier = {
				factor = 0.95
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 25 } }
			}
			modifier = {
				factor = 1.25
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 0 } }
			}
			modifier = {
				factor = 1.75
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -25 } } }
			}
			modifier = {
				factor = 2.5
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -50 } } }
			}
			modifier = {
				factor = 3.25
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -75 } } }
			}
			modifier = {
				factor = 4
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -99 } } }
			}
			modifier = {
				factor = 0.9
				trait = mastermind_theologian
			}
		}
	}
	option = {
		name = EVTOPTBguelphs_ghibellines.35
		
		ROOT = {
			remove_trait = proud
			random = {
				chance = 50
				add_trait = pious_man
			}
			piety = 25
			prestige = -200
		}
		ai_chance = {
			factor = 0.1
			modifier = {
				factor = 2
				trait = cynical
			}
			modifier = {
				factor = 0.5
				trait = idealist
			}
			modifier = {
				factor = 2
				trait = machiavellian
			}
			modifier = {
				factor = 2
				trait = pious_man
			}
			modifier = {
				factor = 0.5
				trait = clerical_envoy
			}
			modifier = {
				factor = 0.5
				trait = antisemite
			}
			modifier = {
				factor = 1
				trait = reformer
			}
			modifier = {
				factor = 2
				piety = 275
			}
			modifier = {
				factor = 0.1
				trait = ambitious
			}
			modifier = {
				factor = 0.2
				trait = proud
			}
			modifier = {
				factor = 0.33
				trait = brave
			}
			modifier = {
				factor = 1.5
				trait = humble
			}
			modifier = {
				factor = 1.3
				trait = temperate
			}
			modifier = {
				factor = 0.2
				trait = wroth
			}
			modifier = {
				factor = 0.33
				trait = brilliant_strategist
			}
			modifier = {
				factor = 0.66
				trait = strong
			}
			modifier = {
				factor = 0.75
				trait = robust
			}
			modifier = {
				factor = 0.66
				trait = sturdy
			}
			modifier = {
				factor = 0.66
				trait = zealous
			}
			modifier = {
				factor = 0.66
				trait = skilled_tactician
			}
		}
	}
	after = {
		clear_event_target = ghibelline_heir
		clr_character_flag = ghibelline_ward
	}
}


#36 SON BECOMES GUELPH
character_event = {
	id = guelphs_ghibellines.36 #Son becomes guelph
	desc = EVTDESCguelphs_ghibellines.36
	picture = GFX_evt_son_asking_father
	
	is_triggered_only = yes
	
	trigger = {
		event_target:guelph_heir = { is_alive = yes }
	}	
	option = {
		name = EVTOPTAguelphs_ghibellines.36
		
		event_target:guelph_heir = {
			add_trait = guelph
			set_character_flag = guelph_cb
			clr_character_flag = guelph_heir
		}
		ai_chance = {
			factor = 0.8
			modifier = {
				factor = 0.66
				trait = cynical
			}
			modifier = {
				factor = 2
				trait = idealist
			}
			modifier = {
				factor = 0.5
				trait = machiavellian
			}
			modifier = {
				factor = 2
				trait = clerical_envoy
			}
			modifier = {
				factor = 2
				trait = antisemite
			}
			modifier = {
				factor = 0.05
				trait = reformer
			}
			modifier = {
				factor = 2
				piety = 275
			}
			modifier = {
				factor = 0.75
				trait = tolerant
			}
			modifier = {
				factor = 10
				trait = ambitious
			}
			modifier = {
				factor = 5
				trait = proud
			}
			modifier = {
				factor = 3
				trait = brave
			}
			modifier = {
				factor = 0.66
				trait = craven
			}
			modifier = {
				factor = 0.5
				trait = humble
			}
			modifier = {
				factor = 0.9
				trait = temperate
			}
			modifier = {
				factor = 5
				trait = wroth
			}
			modifier = {
				factor = 3
				trait = brilliant_strategist
			}
			modifier = {
				factor = 1.5
				trait = strong
			}
			modifier = {
				factor = 1.25
				trait = robust
			}
			modifier = {
				factor = 1.5
				trait = sturdy
			}
			modifier = {
				factor = 1.5
				trait = zealous
			}
			modifier = {
				factor = 1.5
				trait = skilled_tactician
			}
			modifier = {
				factor = 0.66
				trait = pious_man
			}
			modifier = {
				factor = 5
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 100 } }
			}
			modifier = {
				factor = 3.5
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 75 } }
			}
			modifier = {
				factor = 2
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 50 } }
			}
			modifier = {
				factor = 1.5
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 25 } }
			}
			modifier = {
				factor = 0.2
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 0 } }
			}
			modifier = {
				factor = 0.35
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -25 } } }
			}
			modifier = {
				factor = 0.4
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -50 } } }
			}
			modifier = {
				factor = 0.65
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -75 } } }
			}
			modifier = {
				factor = 0.8
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -99 } } }
			}
			modifier = {
				factor = 1.5
				trait = mastermind_theologian
			}
		}
	}
	option = {
		name = EVTOPTBguelphs_ghibellines.36
		
		ROOT = {
			remove_trait = proud
			random = {
				chance = 50
				add_trait = pious_man
			}
			piety = 25
			prestige = -200
		}
		ai_chance = {
			factor = 0.1
			modifier = {
				factor = 2
				trait = cynical
			}
			modifier = {
				factor = 0.5
				trait = idealist
			}
			modifier = {
				factor = 2
				trait = machiavellian
			}
			modifier = {
				factor = 2
				trait = pious_man
			}
			modifier = {
				factor = 0.5
				trait = clerical_envoy
			}
			modifier = {
				factor = 0.5
				trait = antisemite
			}
			modifier = {
				factor = 1
				trait = reformer
			}
			modifier = {
				factor = 2
				piety = 275
			}
			modifier = {
				factor = 0.1
				trait = ambitious
			}
			modifier = {
				factor = 0.2
				trait = proud
			}
			modifier = {
				factor = 0.33
				trait = brave
			}
			modifier = {
				factor = 1.5
				trait = humble
			}
			modifier = {
				factor = 1.3
				trait = temperate
			}
			modifier = {
				factor = 0.2
				trait = wroth
			}
			modifier = {
				factor = 0.33
				trait = brilliant_strategist
			}
			modifier = {
				factor = 0.66
				trait = strong
			}
			modifier = {
				factor = 0.75
				trait = robust
			}
			modifier = {
				factor = 0.66
				trait = sturdy
			}
			modifier = {
				factor = 0.66
				trait = zealous
			}
			modifier = {
				factor = 0.66
				trait = skilled_tactician
			}
		}
	}
	after = {
		clear_event_target = guelph_heir
		clr_character_flag = guelph_heir
	}
}


#37 REFUSES TO ABJURE
character_event = {
	id = guelphs_ghibellines.37 #GHIBELLINE REFUSES TO ABJURE
	desc = EVTDESCguelphs_ghibellines.37
	picture = GFX_evt_prisoner_hf

	is_triggered_only = yes

	option = {
		name = "Well, at least I tried."
		any_character = {
			limit = { is_primary_heir = FROM }
			inherit = FROM
		}
		any_character = {
			limit = {
				NOT = {	is_adult = yes }
				NOT = {
					AND = {
						is_female = yes
						NOT = {	is_heir = FROM }
					}
				}
				OR = {
					is_child_of = FROM
					is_heir = FROM
					is_grandchild_of = FROM
				}
			}
			set_guardian = ROOT
		}
		FROM = {
			character_event = {	id = guelphs_ghibellines.43 }
			banish = yes
		}
	}
	option = {
		name = "That's unfortunate. I'll take care of everything."
		
		ROOT = {
			add_character_modifier = {
				name = aggressive_rampage
				years = 3
			}
		}

		any_character = {
			limit = {
				NOT = {	is_adult = yes }
				NOT = {
					AND = {
						is_female = yes
						NOT = { is_heir = FROM }
					}
				}
				OR = {
					is_child_of = FROM
					is_heir = FROM
					is_grandchild_of = FROM
				}
			}
			set_guardian = ROOT
		}

		FROM = {
			banish = yes
			character_event = {	id = guelphs_ghibellines.44 }
			any_demesne_title = { usurp_title_plus_barony_if_unlanded_and_vassals = ROOT }
		}

		ai_chance = {
			factor = 0.2
			modifier = {
				factor = 0.25
				trait = kind
			}
			modifier = {
				factor = 0.25
				trait = charitable
			}
			modifier = {
				factor = 0.5
				trait = content
			}
			modifier = {
				factor = 0.33
				trait = pious_man
			}
			modifier = {
				factor = 3
				trait = wroth
			}
			modifier = {
				factor = 10.0
				trait = greedy
			}
			modifier = {
				factor = 5
				trait = ambitious
			}
		}
	}

	option = {
		name = "I'll have his head on a pike!"
		any_character = {
			limit = { is_primary_heir = FROM }
			inherit = FROM
		}
		any_character = {
			limit = {
				NOT = {	is_adult = yes }
				NOT = {
					AND = {
						is_female = yes
						NOT = {	is_heir = FROM }
					}
				}
				OR = {
					is_child_of = FROM
					is_heir = FROM
					is_grandchild_of = FROM
				}
			}
			set_guardian = ROOT
		}
		FROM = {
			death = {
				death_reason = death_execution
	    		killer = ROOT
			}
		}
	}
	
	option = {
		name = "What a shame..."
		any_character = {
			limit = {
				NOT = {
					is_adult = yes
				}
				NOT = {
					AND = {
						is_female = yes
						NOT = {
							is_heir = FROM
						}
					}
				}
				OR = {
					is_child_of = FROM
					is_heir = FROM
					is_grandchild_of = FROM
				}
			}
			set_guardian = ROOT
		}
		FROM = {
			any_demesne_title = {
				usurp_title_plus_barony_if_unlanded_and_vassals = ROOT
			}
			death = {
				death_reason = death_execution
	    		killer = ROOT
			}
		}
	}
}


#38 DEAL WITH GHIBELLINE DIPLO WAY
character_event = {
	id = guelphs_ghibellines.38 #DIPLO WAY
	desc = EVTDESCguelphs_ghibellines.38
	picture = GFX_evt_prisoner_hf

	is_triggered_only = yes

	option = {
		name = "He has a good point"
		remove_trait = ghibelline
		clr_character_flag = ghibelline_cb
		add_trait = guelph
		set_character_flag = guelph_cb
		add_trait = turncloak
		add_character_modifier = {
			name = persuaded_ic
			hidden = yes
		}
		imprison = no
		FROM = { 
			character_event = {
					id = guelphs_ghibellines.45
					tooltip = "will be told that you become guelph. You'll be considered a turncloak."
			}
		}
	}
	option = {
		name = "He's right, but I can't betray my family like this"
		
		remove_trait = ghibelline
		clr_character_flag = ghibelline_cb
		add_character_modifier = { name = persuaded_ic }
		imprison = no
		FROM = {
			character_event = {
				id = guelphs_ghibellines.46
				tooltip = "will be told that you abjure. You'll suffer no penalty, but you won't be able to pick a side from now on."
			}
		}
	}
	option = {
		name = "You might be correct, but think about the Pope..."
		tooltip_info = diplomacy
		trigger = { ROOT = { diplomacy = 16 } }

		FROM = {
			character_event = {
				id = guelphs_ghibellines.39
				tooltip = "will hear your considerations. You have a chance to convince him to become ghibelline."
			}
		}
	}
}


#39 DEAL WITH GHIBELLINE REVERSE DIPLO
character_event = {
	id = guelphs_ghibellines.39 #REVERSE DIPLO
	desc = EVTDESCguelphs_ghibellines.39
	picture = GFX_evt_prisoner_hf

	is_triggered_only = yes

	option = {
		name = "We both got good ideals to fight for"
		FROM = {
			imprison = no
			character_event = { id = guelphs_ghibellines.41 }
		}
		ROOT = { add_friend = FROM }
		ai_chance = {
			factor = 0.3
			modifier = {
				trait = idealist
				factor = 2
			}
		}
	}
	option = {
		name = "Why am I guelph?"
		remove_trait = guelph
		clr_character_flag = guelph_cb
		add_trait = ghibelline
		set_character_flag = ghibelline_cb

		FROM = {
			imprison = no
			character_event = { id = guelphs_ghibellines.42 }
		}
		ROOT = { add_friend = FROM }
		add_character_modifier = { name = persuaded_ic }
		ai_chance = {
			factor = 0.2
			modifier = {
				trait = idealist
				factor = 2
			}
		}
	}
	option = {
		name = "You're too dangerous, it's better you don't pick a side from now on..."
		FROM = {
			character_event = {
				id = guelphs_ghibellines.34
				tooltip = "You offer your ghibelline prisoner to abjure in exchange for his freedom"
			}
		}
		ai_chance = {
			factor = 0.5
			modifier = {
				factor = 4
				trait = kind
			}
			modifier = {
				factor = 4
				trait = charitable
			}
			modifier = {
				factor = 2
				trait = content
			}
			modifier = {
				factor = 3
				trait = pious_man
			}
			modifier = {
				factor = 0.8
				trait = wroth
			}
			modifier = {
				factor = 0.6
				trait = greedy
			}
			modifier = {
				factor = 0.5
				trait = ambitious
			}
			modifier = {
				factor = 0.33
				trait = idealist
			}
		}
	}
}


#40 ACCEPTED TO ABJURE
character_event = {
	id = guelphs_ghibellines.40 #ACCEPTED TO ABJURE
	desc = EVTDESCguelphs_ghibellines.40
	picture = GFX_evt_judged_by_ruler

	is_triggered_only = yes

	option = {
		name = "Next time I might not be so generous..."
		prestige = 100
		piety = 100
	}
}


#41 CONVINCED TO RELEASE
character_event = {
	id = guelphs_ghibellines.41 #CONVINCED TO RELEASE
	desc = EVTDESCguelphs_ghibellines.41
	picture = GFX_evt_judged_by_ruler

	is_triggered_only = yes

	option = {
		name = "I call that an honorable man."
		prestige = 250
	}
}


#42 CONVINCED TO CHANGE SIDE
character_event = {
	id = guelphs_ghibellines.42 #CONVINCED TO CHANGE SIDE
	desc = EVTDESCguelphs_ghibellines.42
	picture = GFX_evt_judged_by_ruler

	is_triggered_only = yes

	option = {
		name = "That's incredible..."
		prestige = 500
	}
}


#43 BANISHED AND HEIR INHERIT
character_event = {
	id = guelphs_ghibellines.43
	desc = EVTDESCguelphs_ghibellines.43
	picture = GFX_evt_rider_adventure

	is_triggered_only = yes

	option = {
		name = "That's how my political life ends"
		prestige = -100
		piety = 50
	}
}


#44 BANISHED AND FROM GETS TITLES
character_event = {
	id = guelphs_ghibellines.44
	desc = EVTDESCguelphs_ghibellines.44
	picture = GFX_evt_rider_adventure

	is_triggered_only = yes

	option = {
		name = "I pray God almighty will punish him as he deserves!"
		prestige = -100
		piety = 50
	}
}


#45 CONVINCED TO CHANGE SIDE
character_event = {
	id = guelphs_ghibellines.45 #CONVINCED TO CHANGE SIDE
	desc = EVTDESCguelphs_ghibellines.45
	picture = GFX_evt_judged_by_ruler

	is_triggered_only = yes

	option = {
		name = "Very well..."
		prestige = 500
	}
}


#46 CONVINCED TO ABJURE
character_event = {
	id = guelphs_ghibellines.46 #CONVINCED TO ABJURE
	desc = EVTDESCguelphs_ghibellines.46
	picture = GFX_evt_judged_by_ruler

	is_triggered_only = yes

	option = {
		name = "That's enough for me"
		prestige = 250
	}
}


#47 DEAL WITH GUELPH PRISONER
character_event = {
	id = guelphs_ghibellines.47 # DEAL WITH GUELPH PRISONER
	desc = "EVTDESCguelphs_ghibellines.47"

	is_triggered_only = yes
	
	picture = GFX_evt_holy_emperor

	is_triggered_only = yes
	
	immediate = {
		prestige = 100
	}
	
	option = {
		name = "You won't pick a side from now on!"
		event_target:guelph_prisoner = {
			character_event = {
				id = guelphs_ghibellines.48
				tooltip = "You offer your guelph prisoner to abjure in exchange for his freedom"
			}
		}
		ai_chance = {
			factor = 0.9
			modifier = {
				factor = 4
				trait = kind
			}
			modifier = {
				factor = 4
				trait = charitable
			}
			modifier = {
				factor = 2
				trait = content
			}
			modifier = {
				factor = 3
				trait = pious_man
			}
			modifier = {
				factor = 0.8
				trait = wroth
			}
			modifier = {
				factor = 0.6
				trait = greedy
			}
			modifier = {
				factor = 0.5
				trait = ambitious
			}
		}
	}
	option = {
		name = "Say goodbye to your family and your land, you're banished!"
		any_character = {
			limit = {
				is_primary_heir = event_target:guelph_prisoner
			}
			inherit = event_target:guelph_prisoner
		}
		any_character = {
			limit = {
				NOT = {
					is_adult = yes
				}
				NOT = {
					AND = {
						is_female = yes
						NOT = {
							is_heir = event_target:guelph_prisoner
						}
					}
				}
				OR = {
					is_child_of = event_target:guelph_prisoner
					is_heir = event_target:guelph_prisoner
					is_grandchild_of = event_target:guelph_prisoner
				}
			}
			set_guardian = ROOT
		}
		event_target:guelph_prisoner = {
			character_event = {
				id = guelphs_ghibellines.43
			}
			banish = yes	
		}
		ai_chance = {
			factor = 0.3
			modifier = {
				factor = 0.9
				trait = kind
			}
			modifier = {
				factor = 0.9
				trait = charitable
			}
			modifier = {
				factor = 0.8
				trait = content
			}
			modifier = {
				factor = 0.8
				trait = pious_man
			}
			modifier = {
				factor = 2
				trait = wroth
			}
			modifier = {
				factor = 1.5
				trait = greedy
			}
			modifier = {
				factor = 2
				trait = ambitious
			}
		}
	}
	option = {
		name = "I'll take everything!"
		ROOT = {
			add_character_modifier = {
				name = aggressive_rampage
				years = 5
			}
			remove_trait = charitable
			add_trait = greedy
			random = {
				chance = 20
				add_trait = cruel
			}
		}
		any_character = {
			limit = {
				NOT = {
					is_adult = yes
				}
				NOT = {
					AND = {
						is_female = yes
						NOT = {
							is_heir = event_target:guelph_prisoner
						}
					}
				}
				OR = {
					is_child_of = event_target:guelph_prisoner
					is_heir = event_target:guelph_prisoner
					is_grandchild_of = event_target:guelph_prisoner
				}
			}
			set_guardian = ROOT
		}
		event_target:guelph_prisoner = {
			any_demesne_title = {
				usurp_title_plus_barony_if_unlanded_and_vassals = ROOT
			}
			banish = yes
			character_event = {
				id = guelphs_ghibellines.44
			}
		}
		ai_chance = {
			factor = 0.2
			modifier = {
				factor = 0.25
				trait = kind
			}
			modifier = {
				factor = 0.25
				trait = charitable
			}
			modifier = {
				factor = 0.5
				trait = content
			}
			modifier = {
				factor = 0.33
				trait = pious_man
			}
			modifier = {
				factor = 3
				trait = wroth
			}
			modifier = {
				factor = 10.0
				trait = greedy
			}
			modifier = {
				factor = 5
				trait = ambitious
			}
			modifier = {
				factor = 3
				trait = cruel
			}
		}
	}
	option = {
		name = "Persuade him to abandon his ideas, even to become ghibelline"
		trigger = {
			diplomacy = 16
		}
		tooltip_info = diplomacy

		event_target:guelph_prisoner = {
			character_event = {
				id = guelphs_ghibellines.49
				tooltip = "will be persuaded to change idea or not to pick a position."
			}
		}
		ai_chance = {
			factor = 1000
			modifier = {
				factor = 0.5
				trait = cruel
			}
			modifier = {
				factor = 0.8
				trait = wroth
			}
			modifier = {
				factor = 0.5
				trait = deceitful
			}
			modifier = {
				factor = 2
				trait = idealist
			}
			modifier = {
				factor = 2
				trait = machiavellian
			}
			modifier = {
				factor = 10.0
				trait = charitable
			}			
			modifier = {
				factor = 10.0
				trait = pious_man
			}
		}
	}
	after = {
		event_target:guelph_prisoner = {
			clear_event_target = guelph_prisoner
			clr_character_flag = guelph_prisoner
		}
	}
}


#48 GUELPH IS ASKED TO ABJURE
character_event = {
	id = guelphs_ghibellines.48 #GHIBELLINE IS ASKED TO ABJURE
	desc = "EVTDESCguelphs_ghibellines.48"
	
	picture = GFX_evt_holy_emperor

	is_triggered_only = yes
	
	option = {
		name = "I'll never abandon my family's traditions!"
		ROOT = {
			add_trait = proud
			prestige = 500
		}
		FROM = {
			character_event = {
				id = guelphs_ghibellines.37
				tooltip = "will hear my answer, even if I could be killed for this"
			}
		}
	}
	option = {
		name = "This is the best I could get."
		FROM = {
			character_event = {
				id = guelphs_ghibellines.40
				tooltip = "will hear my answer"
			}
		}
		ROOT = {
			remove_trait = guelph
			clr_character_flag = guelph_cb
			piety = 100
			imprison = no
			add_character_modifier = {
				name = threatened
				hidden = yes
				years = 3
			}
			random = {
				chance = 30
				add_trait = craven
			}
		}
		any_character = {
			limit = {
				NOT = {
					is_adult = yes
				}
				NOT = {
					AND = {
						is_female = yes
						NOT = {
							is_heir = ROOT
						}
					}
				}
				OR = {
					is_child_of = ROOT
					is_heir = ROOT
					is_grandchild_of = ROOT
				}
			}
			set_guardian = ROOT
		}
	}
}


#49 DEAL WITH GUELPH DIPLO WAY
character_event = {
	id = guelphs_ghibellines.49 #DIPLO WAY
	desc = EVTDESCguelphs_ghibellines.49
	picture = GFX_evt_prisoner_hf

	is_triggered_only = yes

	option = {
		name = "He has a good point"
		remove_trait = guelph
		clr_character_flag = guelph_cb
		add_trait = ghibelline
		set_character_flag = ghibelline_cb
		add_trait = turncloak
		add_character_modifier = {
			name = persuaded_ic
			hidden = yes
		}
		imprison = no
		FROM = { 
			character_event = {
				id = guelphs_ghibellines.45
				tooltip = "will be told that you become ghibelline. You'll be considered a turncloak."
			}
		}
	}
	option = {
		name = "He's right, but I can't betray my family like this"
		
		remove_trait = guelph
		clr_character_flag = guelph_cb
		add_character_modifier = { name = persuaded_ic }
		imprison = no
		FROM = {
			character_event = {
				id = guelphs_ghibellines.46
				tooltip = "will be told that you abjure. You'll suffer no penalty, but you won't be able to pick a side from now on."
			}
		}
	}
	option = {
		name = "What you said makes sense, but maybe you've forgotten when the Emperor..."
		tooltip_info = diplomacy
		trigger = { ROOT = { diplomacy = 16 } }

		FROM = {
			character_event = {
				id = guelphs_ghibellines.50
				tooltip = "will hear your considerations. You have a chance to convince him to become guelph."
			}
		}
	}
}


#50 DEAL WITH GUELPH REVERSE DIPLO
character_event = {
	id = guelphs_ghibellines.50 #REVERSE DIPLO
	desc = EVTDESCguelphs_ghibellines.50
	picture = GFX_evt_prisoner_hf

	is_triggered_only = yes

	option = {
		name = "We both got good ideals to fight for"
		FROM = {
			imprison = no
			character_event = { id = guelphs_ghibellines.41 }
		}
		ROOT = { add_friend = FROM }
	}
	option = {
		name = "Why am I ghibelline?"
		remove_trait = ghibelline
		clr_character_flag = ghibelline_cb
		add_trait = guelph
		set_character_flag = guelph_cb

		FROM = {
			imprison = no
			character_event = { id = guelphs_ghibellines.42 }
		}
		ROOT = { add_friend = FROM }
		add_character_modifier = { name = persuaded_ic duration = -1 }
	}
	option = {
		name = "You're too dangerous, it's better you don't pick a side from now on..."
		FROM = {
			character_event = {
				id = guelphs_ghibellines.34
				tooltip = "You offer your ghibelline prisoner to abjure in exchange for his freedom"
			}
		}
		ai_chance = {
			factor = 0.5
			modifier = {
				factor = 0.2
				trait = kind
			}
			modifier = {
				factor = 0.2
				trait = charitable
			}
			modifier = {
				factor = 0.2
				trait = content
			}
			modifier = {
				factor = 0.33
				trait = pious_man
			}
			modifier = {
				factor = 2
				trait = wroth
			}
			modifier = {
				factor = 2
				trait = greedy
			}
			modifier = {
				factor = 5
				trait = ambitious
			}
		}
	}
}


#51 GET WARD GHIBELLINE
character_event = {
	id = guelphs_ghibellines.51
	desc = "EVTDESCguelphs_ghibellines.51"
	picture = GFX_evt_son_asking_father
	
	is_triggered_only = yes
	
	trigger = {
		event_target:ghibelline_ward = { is_alive = yes }
	}	
	option = {
		name = "Listen here kid, I have to explain you something about politics"
		
		event_target:ghibelline_ward = {
			clr_character_flag = ghibelline_ward
			character_event = {
				id = guelphs_ghibellines.52
			}
		}
		ai_chance = {
			factor = 0.8
			modifier = {
				factor = 2.5
				trait = cynical
			}
			modifier = {
				factor = 0.75
				trait = clerical_envoy
			}
			modifier = {
				factor = 0.5
				trait = conservative
			}
			modifier = {
				factor = 0.75
				trait = antisemite
			}
			modifier = {
				factor = 5
				trait = reformer
			}
			modifier = {
				factor = 0.5
				piety = 275
			}
			modifier = {
				factor = 1.5
				trait = tolerant
			}
			modifier = {
				factor = 10
				trait = ambitious
			}
			modifier = {
				factor = 5
				trait = proud
			}
			modifier = {
				factor = 2
				trait = greedy
			}
			modifier = {
				factor = 3
				trait = brave
			}
			modifier = {
				factor = 0.66
				trait = craven
			}
			modifier = {
				factor = 0.5
				trait = humble
			}
			modifier = {
				factor = 0.9
				trait = temperate
			}
			modifier = {
				factor = 5
				trait = wroth
			}
			modifier = {
				factor = 3
				trait = brilliant_strategist
			}
			modifier = {
				factor = 1.5
				trait = strong
			}
			modifier = {
				factor = 1.25
				trait = robust
			}
			modifier = {
				factor = 1.5
				trait = sturdy
			}
			modifier = {
				factor = 0.9
				trait = zealous
			}
			modifier = {
				factor = 1.5
				trait = skilled_tactician
			}
			modifier = {
				factor = 0.15
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 100 } }
			}
			modifier = {
				factor = 0.4
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 75 } }
			}
			modifier = {
				factor = 0.7
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 50 } }
			}
			modifier = {
				factor = 0.95
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 25 } }
			}
			modifier = {
				factor = 1.25
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 0 } }
			}
			modifier = {
				factor = 1.75
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -25 } } }
			}
			modifier = {
				factor = 2.5
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -50 } } }
			}
			modifier = {
				factor = 3.25
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -75 } } }
			}
			modifier = {
				factor = 4
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -99 } } }
			}
			modifier = {
				factor = 0.9
				trait = mastermind_theologian
			}
		}
	}
	option = {
		name = "You're free to believe what you want."
		
		ROOT = {
			random = {
				chance = 30
				remove_trait = proud
			}
			random = {
				chance = 50
				add_trait = pious_man
			}
			random = {
				chance = 20
				add_trait = craven
			}
			tooltip = {
				opinion = {
					modifier = opinion_grateful
					who = FROM
					years = 30
				}
			}
			piety = 50
			prestige = -100
		}
		FROM = {
			tooltip = {
				opinion = {
					modifier = opinion_grateful
					who = ROOT
					years = 30
				}
			}
		}
		ai_chance = {
			factor = 0.1
			modifier = {
				factor = 2
				trait = cynical
			}
			modifier = {
				factor = 2
				trait = pious_man
			}
			modifier = {
				factor = 0.5
				trait = clerical_envoy
			}
			modifier = {
				factor = 0.5
				trait = antisemite
			}
			modifier = {
				factor = 1
				trait = reformer
			}
			modifier = {
				factor = 2
				piety = 275
			}
			modifier = {
				factor = 0.1
				trait = ambitious
			}
			modifier = {
				factor = 0.2
				trait = proud
			}
			modifier = {
				factor = 0.33
				trait = brave
			}
			modifier = {
				factor = 1.5
				trait = humble
			}
			modifier = {
				factor = 1.3
				trait = temperate
			}
			modifier = {
				factor = 0.2
				trait = wroth
			}
			modifier = {
				factor = 0.33
				trait = brilliant_strategist
			}
			modifier = {
				factor = 0.66
				trait = strong
			}
			modifier = {
				factor = 0.75
				trait = robust
			}
			modifier = {
				factor = 0.66
				trait = sturdy
			}
			modifier = {
				factor = 0.66
				trait = zealous
			}
			modifier = {
				factor = 0.66
				trait = skilled_tactician
			}
			modifier = {
				factor = 4
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 100 } }
			}
			modifier = {
				factor = 3.25
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 75 } }
			}
			modifier = {
				factor = 2.5
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 50 } }
			}
			modifier = {
				factor = 1.75
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 25 } }
			}
			modifier = {
				factor = 0.95
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 0 } }
			}
			modifier = {
				factor = 0.7
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -25 } } }
			}
			modifier = {
				factor = 0.45
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -50 } } }
			}
			modifier = {
				factor = 0.3
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -75 } } }
			}
			modifier = {
				factor = 0.15
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -99 } } }
			}
			modifier = {
				factor = 1.1
				trait = mastermind_theologian
			}
		}
	}
	after = {
		clear_event_target = ghibelline_ward
		clr_character_flag = ghibelline_ward
	}
}


#52 WARD IS ASKED TO BECOME GHIBELLINE
character_event = {
	id = guelphs_ghibellines.52
	desc = EVTDESCguelphs_ghibellines.52
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes

	trigger = {
		ROOT = { is_alive = yes }
	}

	option = {
		name = "I see, it's better to be a ghibelline"

		if = {
			limit = {
				ROOT = {
					has_character_flag = guelph_cb
				}
			}
			remove_trait = guelph
			clr_character_flag = guelph_cb
		}
		add_trait = ghibelline
		set_character_flag = ghibelline_cb
		FROM = { 
			character_event = {
				id = guelphs_ghibellines.53
				tooltip = "will appreciate your good behaviour."
			}
		}
		ai_chance = {
			factor = 60
			modifier = {
				ROOT = {
					father_even_if_dead = {
						OR = {
							had_character_flag = {
								flag = guelph_cb
								years = 1
							}
							had_character_flag = {
								flag = guelph_cb
								years = 5
							}
							had_character_flag = {
								flag = guelph_cb
								years = 10
							}
							had_character_flag = {
								flag = guelph_cb
								years = 20
							}
							had_character_flag = {
								flag = guelph_cb
								years = 35
							}
							had_character_flag = {
								flag = guelph_cb
								years = 50
							}
							had_character_flag = {
								flag = guelph_cb
								years = 70
							}
						}
					}
				}
				factor = 0.2
			}
			modifier = {
				trait = affectionate
				factor = 2
			}
			modifier = {
				trait = playful
				factor = 0.33
			}
			modifier = {
				trait = haughty
				factor = 0.5
			}
			modifier = {
				trait = rowdy
				factor = 1.67
			}
			modifier = {
				trait = conscientious
				factor = 1.67
			}
			modifier = {
				trait = fussy
				factor = 0.5
			}
			modifier = {
				trait = brooding
				factor = 0.67
			}
			modifier = {
				trait = indolent
				factor = 2
			}
			modifier = {
				trait = willful
				factor = 0.33
			}
			modifier = {
				trait = curious
				factor = 0.67
			}
			modifier = {
				trait = idolizer
				factor = 1.67
			}
			modifier = {
				trait = timid
				factor = 1.25
			}
		}
	}
	option = {
		name = "Wait, I don't think so. Ghibelline is not a cool name."

		FROM = {
			character_event = {
				id = guelphs_ghibellines.54
				tooltip = "will reply to your answer"
			}
		}
		ai_chance = {
			factor = 40
			modifier = {
				ROOT = {
					father_even_if_dead = {
						OR = {
							had_character_flag = {
								flag = guelph_cb
								years = 1
							}
							had_character_flag = {
								flag = guelph_cb
								years = 5
							}
							had_character_flag = {
								flag = guelph_cb
								years = 10
							}
							had_character_flag = {
								flag = guelph_cb
								years = 20
							}
							had_character_flag = {
								flag = guelph_cb
								years = 35
							}
							had_character_flag = {
								flag = guelph_cb
								years = 50
							}
							had_character_flag = {
								flag = guelph_cb
								years = 70
							}
						}
					}
				}
				factor = 8
			}
			modifier = {
				trait = affectionate
				factor = 0.5
			}
			modifier = {
				trait = playful
				factor = 1.5
			}
			modifier = {
				trait = haughty
				factor = 2
			}
			modifier = {
				trait = rowdy
				factor = 0.6
			}
			modifier = {
				trait = conscientious
				factor = 0.6
			}
			modifier = {
				trait = fussy
				factor = 2
			}
			modifier = {
				trait = brooding
				factor = 1.5
			}
			modifier = {
				trait = indolent
				factor = 0.5
			}
			modifier = {
				trait = willful
				factor = 3
			}
			modifier = {
				trait = curious
				factor = 1.5
			}
			modifier = {
				trait = idolizer
				factor = 0.6
			}
			modifier = {
				trait = timid
				factor = 0.8
			}
		}
	}
}


#53 WARD ACCEPTS TO BECOME GHIBELLINE
character_event = {
	id = guelphs_ghibellines.53
	desc = EVTDESCguelphs_ghibellines.53
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes

	option = {
		name = "Good boy"
		prestige = 100
	} 
}


#54 WARD JOKES ABOUT BEING A GHIBELLINE
character_event = {
	id = guelphs_ghibellines.54
	desc = EVTDESCguelphs_ghibellines.54
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes

	option = {
		name = "I was not joking, this is a serious matter..."
		FROM = {
			character_event = {
				id = guelphs_ghibellines.55
				tooltip = "will hear once again your reasons, and will answer"
			}
		}
		ai_chance = {
			factor = 40
			modifier = {
				trait = patient
				factor = 3
			}
			modifier = {
				trait = kind
				factor = 3
			}
			modifier = {
				trait = cynical
				factor = 1.5
			}
			modifier = {
				trait = humble
				factor = 3
			}
			modifier = {
				trait = diligent
				factor = 3
			}
			modifier = {
				trait = gregarious
				factor = 2
			}
			modifier = {
				trait = content
				factor = 1.5
			}
			modifier = {
				trait = stubborn
				factor = 3
			}
			modifier = {
				trait = wroth
				factor = 0.33
			}
			modifier = {
				trait = proud
				factor = 0.33
			}
			modifier = {
				trait = slothful
				factor = 0.33
			}
			modifier = {
				trait = envious
				factor = 0.33
			}
			modifier = {
				trait = zealous
				factor = 0.67
			}
			modifier = {
				trait = shy
				factor = 0.5
			}
			modifier = {
				trait = arbitrary
				factor = 0.5
			}
			modifier = {
				trait = paranoid
				factor = 0.5
			}
			modifier = {
				trait = deceitful
				factor = 0.5
			}
			modifier = {
				trait = ambitious
				factor = 1.5
			}
			modifier = {
				trait = craven
				factor = 0.5
			}
			modifier = {
				trait = charismatic_negotiator
				factor = 2
			}
			modifier = {
				trait = grey_eminence
				factor = 3
			}
		}
	}
	option = {
		name = "Well, go back playing"
		FROM = {
			character_event = {
				id = guelphs_ghibellines.60
				tooltip = "will not pick a position influenced by you"
			}
		}
		ROOT = {
			tooltip = {
				opinion = {
					modifier = opinion_disappointed
					who = FROM
					years = 30
				}
			}
		}
		ai_chance = {
			factor = 10
			modifier = {
				trait = patient
				factor = 0.5
			}
			modifier = {
				trait = kind
				factor = 0.9
			}
			modifier = {
				trait = cynical
				factor = 1.5
			}
			modifier = {
				trait = humble
				factor = 1.5
			}
			modifier = {
				trait = diligent
				factor = 0.5
			}
			modifier = {
				trait = gregarious
				factor = 0.5
			}
			modifier = {
				trait = content
				factor = 2
			}
			modifier = {
				trait = stubborn
				factor = 0.33
			}
			modifier = {
				trait = wroth
				factor = 0.5
			}
			modifier = {
				trait = proud
				factor = 0.5
			}
			modifier = {
				trait = slothful
				factor = 3
			}
			modifier = {
				trait = envious
				factor = 0.5
			}
			modifier = {
				trait = zealous
				factor = 0.5
			}
			modifier = {
				trait = shy
				factor = 3
			}
			modifier = {
				trait = arbitrary
				factor = 1.5
			}
			modifier = {
				trait = paranoid
				factor = 2
			}
			modifier = {
				trait = deceitful
				factor = 0.8
			}
			modifier = {
				trait = ambitious
				factor = 0.67
			}
			modifier = {
				trait = craven
				factor = 3
			}
			modifier = {
				trait = charismatic_negotiator
				factor = 0.5
			}
			modifier = {
				trait = grey_eminence
				factor = 0.33
			}
			modifier = {
				trait = skilled_tactician
				factor = 0.5
			}
			modifier = {
				trait = brilliant_strategist
				factor = 0.33
			}
		}
	}
	option = {
		name = "You stupid brat!"
		FROM = {
			add_rival = ROOT
			character_event = {
				id = guelphs_ghibellines.56
				tooltip = "will hate you to the end of his life and become a guelph!"
			}
		}
		ai_chance = {
			factor = 40
			modifier = {
				trait = patient
				factor = 0.33
			}
			modifier = {
				trait = kind
				factor = 0.33
			}
			modifier = {
				trait = cynical
				factor = 0.67
			}
			modifier = {
				trait = humble
				factor = 0.33
			}
			modifier = {
				trait = diligent
				factor = 0.33
			}
			modifier = {
				trait = gregarious
				factor = 0.5
			}
			modifier = {
				trait = content
				factor = 0.9
			}
			modifier = {
				trait = stubborn
				factor = 1.1
			}
			modifier = {
				trait = wroth
				factor = 3
			}
			modifier = {
				trait = proud
				factor = 3
			}
			modifier = {
				trait = slothful
				factor = 0.8
			}
			modifier = {
				trait = envious
				factor = 3
			}
			modifier = {
				trait = zealous
				factor = 1.5
			}
			modifier = {
				trait = shy
				factor = 0.5
			}
			modifier = {
				trait = arbitrary
				factor = 2
			}
			modifier = {
				trait = paranoid
				factor = 3
			}
			modifier = {
				trait = deceitful
				factor = 2
			}
			modifier = {
				trait = ambitious
				factor = 0.8
			}
			modifier = {
				trait = craven
				factor = 0.8
			}
			modifier = {
				trait = skilled_tactician
				factor = 2
			}
			modifier = {
				trait = brilliant_strategist
				factor = 3
			}
		}
	}
	option = {
		name = "You think the Pope is cool?"
		trigger = {
			diplomacy = 16
		}
		tooltip_info = diplomacy

		FROM = {
			character_event = {
				id = guelphs_ghibellines.57
				tooltip = "will hear your better explained reasons and become a ghibelline"
			}
		}
		ai_chance = {
			factor = 10000
		}
	}
}


#55 WARD IS ASKED AGAIN TO BECOME GHIBELLINE
character_event = {
	id = guelphs_ghibellines.55
	desc = EVTDESCguelphs_ghibellines.55
	picture = GFX_evt_son_asking_father
	
	is_triggered_only = yes

	option = {
		name = "Well, ok, I'll be a ghibelline"
		if = {
			limit = {
				ROOT = {
					has_character_flag = guelph_cb
				}
			}
			remove_trait = guelph
			clr_character_flag = guelph_cb
		}
		add_trait = ghibelline
		set_character_flag = ghibelline_cb
		FROM = {
			character_event = {
				id = guelphs_ghibellines.53
				tooltip = "will appreciate your good behaviour"
			}
		}
		ai_chance = {
			factor = 70
			modifier = {
				ROOT = {
					father_even_if_dead = {
						OR = {
							had_character_flag = {
								flag = guelph_cb
								years = 1
							}
							had_character_flag = {
								flag = guelph_cb
								years = 5
							}
							had_character_flag = {
								flag = guelph_cb
								years = 10
							}
							had_character_flag = {
								flag = guelph_cb
								years = 20
							}
							had_character_flag = {
								flag = guelph_cb
								years = 35
							}
							had_character_flag = {
								flag = guelph_cb
								years = 50
							}
							had_character_flag = {
								flag = guelph_cb
								years = 70
							}
						}
					}
				}
				factor = 0.2
			}
			modifier = {
				trait = affectionate
				factor = 2
			}
			modifier = {
				trait = playful
				factor = 0.33
			}
			modifier = {
				trait = haughty
				factor = 0.5
			}
			modifier = {
				trait = rowdy
				factor = 1.67
			}
			modifier = {
				trait = conscientious
				factor = 1.67
			}
			modifier = {
				trait = fussy
				factor = 0.5
			}
			modifier = {
				trait = brooding
				factor = 0.67
			}
			modifier = {
				trait = indolent
				factor = 2
			}
			modifier = {
				trait = willful
				factor = 0.33
			}
			modifier = {
				trait = curious
				factor = 0.67
			}
			modifier = {
				trait = idolizer
				factor = 1.67
			}
			modifier = {
				trait = timid
				factor = 1.25
			}
		}
	}
	option = {
		name = "I don't want to pick a side!"
		set_character_flag = no_side_young
		FROM = {
			character_event = {
				id = guelphs_ghibellines.58
				tooltip = "won't be happy but will leave you alone"
			}
		}
		ai_chance = {
			factor = 70
			modifier = {
				ROOT = {
					father_even_if_dead = {
						OR = {
							had_character_flag = {
								flag = guelph_cb
								years = 1
							}
							had_character_flag = {
								flag = guelph_cb
								years = 5
							}
							had_character_flag = {
								flag = guelph_cb
								years = 10
							}
							had_character_flag = {
								flag = guelph_cb
								years = 20
							}
							had_character_flag = {
								flag = guelph_cb
								years = 35
							}
							had_character_flag = {
								flag = guelph_cb
								years = 50
							}
							had_character_flag = {
								flag = guelph_cb
								years = 70
							}
						}
					}
				}
				factor = 0.2
			}
			modifier = {
				trait = affectionate
				factor = 1.5
			}
			modifier = {
				trait = playful
				factor = 0.33
			}
			modifier = {
				trait = haughty
				factor = 0.5
			}
			modifier = {
				trait = rowdy
				factor = 0.8
			}
			modifier = {
				trait = conscientious
				factor = 0.6
			}
			modifier = {
				trait = fussy
				factor = 2
			}
			modifier = {
				trait = brooding
				factor = 0.8
			}
			modifier = {
				trait = indolent
				factor = 3
			}
			modifier = {
				trait = timid
				factor = 2
			}
		}
	}
	option = {
		name = "Screw it! For the Pope!"

		if = {
			limit = {
				ROOT = {
					NOT = {
						has_character_flag = guelph_cb
					}
				}
			}
			add_trait = guelph
			set_character_flag = guelph_cb
			set_character_flag = convinced_guelph_young
		}
		FROM = {
			character_event = {
				id = guelphs_ghibellines.59
				tooltip = "will be very angry"
			}
			add_rival = ROOT
		}
		ai_chance = {
			factor = 40
			modifier = {
				ROOT = {
					father_even_if_dead = {
						OR = {
							had_character_flag = {
								flag = guelph_cb
								years = 1
							}
							had_character_flag = {
								flag = guelph_cb
								years = 5
							}
							had_character_flag = {
								flag = guelph_cb
								years = 10
							}
							had_character_flag = {
								flag = guelph_cb
								years = 20
							}
							had_character_flag = {
								flag = guelph_cb
								years = 35
							}
							had_character_flag = {
								flag = guelph_cb
								years = 50
							}
							had_character_flag = {
								flag = guelph_cb
								years = 70
							}
						}
					}
				}
				factor = 8
			}
			modifier = {
				trait = affectionate
				factor = 0.5
			}
			modifier = {
				trait = playful
				factor = 1.5
			}
			modifier = {
				trait = haughty
				factor = 2
			}
			modifier = {
				trait = rowdy
				factor = 0.6
			}
			modifier = {
				trait = conscientious
				factor = 0.6
			}
			modifier = {
				trait = fussy
				factor = 2
			}
			modifier = {
				trait = brooding
				factor = 1.5
			}
			modifier = {
				trait = indolent
				factor = 0.5
			}
			modifier = {
				trait = willful
				factor = 3
			}
			modifier = {
				trait = curious
				factor = 1.5
			}
			modifier = {
				trait = idolizer
				factor = 0.6
			}
			modifier = {
				trait = timid
				factor = 0.8
			}
		}
	}
}


#56 WARD ANGERED BECOMES GUELPH
character_event = {
	id = guelphs_ghibellines.56
	desc = EVTDESCguelphs_ghibellines.56
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes

	option = {
		name = "Screw you!"
		if = {
			limit = {
				ROOT = {
					NOT = {
						has_character_flag = guelph_cb
					}
				}
			}
			add_trait = guelph
			set_character_flag = guelph_cb
		}
	}
}


#57 WARD PERSUADED TO BECOME GHIBELLINE
character_event = {
	id = guelphs_ghibellines.57
	desc = EVTDESCguelphs_ghibellines.57
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes

	option = {
		name = "Being ghibelline is surely better!!"
		if = {
			limit = {
				ROOT = {
					NOT = {
						has_character_flag = guelph_cb
					}
				}
			}
			remove_trait = guelph
			clr_character_flag = guelph_cb
		}
		add_trait = ghibelline 
		set_character_flag = ghibelline_cb
	}
}


#58 WARD REFUSES TO TAKE A POSITION
character_event = {
	id = guelphs_ghibellines.58
	desc = EVTDESCguelphs_ghibellines.58
	picture = GFX_evt_son_asking_father
	
	is_triggered_only = yes

	option = {
		name = "What a stupid kid"
		ROOT = {
			tooltip = {
				opinion = {
					modifier = opinion_disappointed
					who = FROM
					years = 30
				}
			}
		}
	}
}


#59 WARD BECOMES GUELPH
character_event = {
	id = guelphs_ghibellines.59
	desc = EVTDESCguelphs_ghibellines.59
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes	

	option = {
		name = "That stupid brat! I'll show him!"
		piety = -50
		random = {
			chance = 50
			add_trait = wroth
		}
	}
	option = {
		name = "Disappointed, but not surprised"
		FROM = {
			tooltip = {
				opinion = {
					modifier = opinion_disappointed
					who = ROOT
					years = 30
				}
			}
		}
		random = {
			chance = 50
			add_trait = patient
		}
	}
}


#60 WARD CAN BE NEUTRAL
character_event = {
	id = guelphs_ghibellines.60
	desc = EVTDESCguelphs_ghibellines.60
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes

	option = {
		name = "I don't want to worry about that"
	}
}


#61 GET WARD GUELPH
character_event = {
	id = guelphs_ghibellines.61
	desc = "EVTDESCguelphs_ghibellines.51"
	picture = GFX_evt_son_asking_father
	
	is_triggered_only = yes
	
	trigger = {
		event_target:guelph_ward = { is_alive = yes }
	}	
	option = {
		name = "Listen here kid, I have to explain you something about politics"
		
		event_target:guelph_ward = {
			clr_character_flag = guelph_ward
			character_event = {
				id = guelphs_ghibellines.62
			}
		}
		ai_chance = {
			factor = 0.8
			modifier = {
				factor = 2.5
				trait = cynical
			}
			modifier = {
				factor = 0.75
				trait = clerical_envoy
			}
			modifier = {
				factor = 0.5
				trait = conservative
			}
			modifier = {
				factor = 0.75
				trait = antisemite
			}
			modifier = {
				factor = 5
				trait = reformer
			}
			modifier = {
				factor = 0.5
				piety = 275
			}
			modifier = {
				factor = 1.5
				trait = tolerant
			}
			modifier = {
				factor = 10
				trait = ambitious
			}
			modifier = {
				factor = 5
				trait = proud
			}
			modifier = {
				factor = 2
				trait = greedy
			}
			modifier = {
				factor = 3
				trait = brave
			}
			modifier = {
				factor = 0.66
				trait = craven
			}
			modifier = {
				factor = 0.5
				trait = humble
			}
			modifier = {
				factor = 0.9
				trait = temperate
			}
			modifier = {
				factor = 5
				trait = wroth
			}
			modifier = {
				factor = 3
				trait = brilliant_strategist
			}
			modifier = {
				factor = 1.5
				trait = strong
			}
			modifier = {
				factor = 1.25
				trait = robust
			}
			modifier = {
				factor = 1.5
				trait = sturdy
			}
			modifier = {
				factor = 0.9
				trait = zealous
			}
			modifier = {
				factor = 1.5
				trait = skilled_tactician
			}
			modifier = {
				factor = 0.15
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 100 } }
			}
			modifier = {
				factor = 0.4
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 75 } }
			}
			modifier = {
				factor = 0.7
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 50 } }
			}
			modifier = {
				factor = 0.95
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 25 } }
			}
			modifier = {
				factor = 1.25
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 0 } }
			}
			modifier = {
				factor = 1.75
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -25 } } }
			}
			modifier = {
				factor = 2.5
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -50 } } }
			}
			modifier = {
				factor = 3.25
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -75 } } }
			}
			modifier = {
				factor = 4
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -99 } } }
			}
			modifier = {
				factor = 0.9
				trait = mastermind_theologian
			}
		}
	}
	option = {
		name = "You're free to believe what you want."
		
		ROOT = {
			random = {
				chance = 30
				remove_trait = proud
			}
			random = {
				chance = 50
				add_trait = pious_man
			}
			random = {
				chance = 20
				add_trait = craven
			}
			tooltip = {
				opinion = {
					modifier = opinion_grateful
					who = FROM
					years = 30
				}
			}
			piety = 50
			prestige = -100
		}
		FROM = {
			tooltip = {
				opinion = {
					modifier = opinion_grateful
					who = ROOT
					years = 30
				}
			}
		}
		ai_chance = {
			factor = 0.1
			modifier = {
				factor = 2
				trait = cynical
			}
			modifier = {
				factor = 2
				trait = pious_man
			}
			modifier = {
				factor = 0.5
				trait = clerical_envoy
			}
			modifier = {
				factor = 0.5
				trait = antisemite
			}
			modifier = {
				factor = 1
				trait = reformer
			}
			modifier = {
				factor = 2
				piety = 275
			}
			modifier = {
				factor = 0.1
				trait = ambitious
			}
			modifier = {
				factor = 0.2
				trait = proud
			}
			modifier = {
				factor = 0.33
				trait = brave
			}
			modifier = {
				factor = 1.5
				trait = humble
			}
			modifier = {
				factor = 1.3
				trait = temperate
			}
			modifier = {
				factor = 0.2
				trait = wroth
			}
			modifier = {
				factor = 0.33
				trait = brilliant_strategist
			}
			modifier = {
				factor = 0.66
				trait = strong
			}
			modifier = {
				factor = 0.75
				trait = robust
			}
			modifier = {
				factor = 0.66
				trait = sturdy
			}
			modifier = {
				factor = 0.66
				trait = zealous
			}
			modifier = {
				factor = 0.66
				trait = skilled_tactician
			}
			modifier = {
				factor = 4
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 100 } }
			}
			modifier = {
				factor = 3.25
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 75 } }
			}
			modifier = {
				factor = 2.5
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 50 } }
			}
			modifier = {
				factor = 1.75
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 25 } }
			}
			modifier = {
				factor = 0.95
				rightful_religious_head_scope = { reverse_opinion = { who = ROOT value = 0 } }
			}
			modifier = {
				factor = 0.7
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -25 } } }
			}
			modifier = {
				factor = 0.45
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -50 } } }
			}
			modifier = {
				factor = 0.3
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -75 } } }
			}
			modifier = {
				factor = 0.15
				rightful_religious_head_scope = { NOT = { reverse_opinion = { who = ROOT value = -99 } } }
			}
			modifier = {
				factor = 1.1
				trait = mastermind_theologian
			}
		}
	}
	after = {
		clear_event_target = guelph_ward
		clr_character_flag = guelph_ward
	}
}


#62 WARD IS ASKED TO BECOME GHIBELLINE
character_event = {
	id = guelphs_ghibellines.62
	desc = EVTDESCguelphs_ghibellines.52
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes

	trigger = {
		ROOT = { is_alive = yes }
	}

	option = {
		name = "I see, it's better to be a ghibelline"

		if = {
			limit = {
				ROOT = {
					has_character_flag = ghibelline_cb
				}
			}
			remove_trait = ghibelline
			clr_character_flag = ghibelline_cb
		}
		add_trait = guelph
		set_character_flag = guelph_cb
		FROM = { 
			character_event = {
				id = guelphs_ghibellines.63
				tooltip = "will appreciate your good behaviour."
			}
		}
		ai_chance = {
			factor = 60
			modifier = {
				ROOT = {
					father_even_if_dead = {
						OR = {
							had_character_flag = {
								flag = guelph_cb
								years = 1
							}
							had_character_flag = {
								flag = guelph_cb
								years = 5
							}
							had_character_flag = {
								flag = guelph_cb
								years = 10
							}
							had_character_flag = {
								flag = guelph_cb
								years = 20
							}
							had_character_flag = {
								flag = guelph_cb
								years = 35
							}
							had_character_flag = {
								flag = guelph_cb
								years = 50
							}
							had_character_flag = {
								flag = guelph_cb
								years = 70
							}
						}
					}
				}
				factor = 0.2
			}
			modifier = {
				trait = affectionate
				factor = 2
			}
			modifier = {
				trait = playful
				factor = 0.33
			}
			modifier = {
				trait = haughty
				factor = 0.5
			}
			modifier = {
				trait = rowdy
				factor = 1.67
			}
			modifier = {
				trait = conscientious
				factor = 1.67
			}
			modifier = {
				trait = fussy
				factor = 0.5
			}
			modifier = {
				trait = brooding
				factor = 0.67
			}
			modifier = {
				trait = indolent
				factor = 2
			}
			modifier = {
				trait = willful
				factor = 0.33
			}
			modifier = {
				trait = curious
				factor = 0.67
			}
			modifier = {
				trait = idolizer
				factor = 1.67
			}
			modifier = {
				trait = timid
				factor = 1.25
			}
		}
	}
	option = {
		name = "Wait, I don't think so. Guelph is not a cool name."

		FROM = {
			character_event = {
				id = guelphs_ghibellines.64
				tooltip = "will reply to your answer"
			}
		}
		ai_chance = {
			factor = 40
			modifier = {
				ROOT = {
					father_even_if_dead = {
						OR = {
							had_character_flag = {
								flag = ghibelline_cb
								years = 1
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 5
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 10
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 20
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 35
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 50
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 70
							}
						}
					}
				}
				factor = 8
			}
			modifier = {
				trait = affectionate
				factor = 0.5
			}
			modifier = {
				trait = playful
				factor = 1.5
			}
			modifier = {
				trait = haughty
				factor = 2
			}
			modifier = {
				trait = rowdy
				factor = 0.6
			}
			modifier = {
				trait = conscientious
				factor = 0.6
			}
			modifier = {
				trait = fussy
				factor = 2
			}
			modifier = {
				trait = brooding
				factor = 1.5
			}
			modifier = {
				trait = indolent
				factor = 0.5
			}
			modifier = {
				trait = willful
				factor = 3
			}
			modifier = {
				trait = curious
				factor = 1.5
			}
			modifier = {
				trait = idolizer
				factor = 0.6
			}
			modifier = {
				trait = timid
				factor = 0.8
			}
		}
	}
}


#63 WARD ACCEPTS TO BECOME GUELPH
character_event = {
	id = guelphs_ghibellines.63
	desc = EVTDESCguelphs_ghibellines.63
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes

	option = {
		name = "Good boy"
		prestige = 100
	} 
}


#64 WARD JOKES ABOUT BEING A GHIBELLINE
character_event = {
	id = guelphs_ghibellines.64
	desc = EVTDESCguelphs_ghibellines.64
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes

	option = {
		name = "I was not joking, this is a serious matter..."
		FROM = {
			character_event = {
				id = guelphs_ghibellines.65
				tooltip = "will hear once again your reasons, and will answer"
			}
		}
		ai_chance = {
			factor = 40
			modifier = {
				trait = patient
				factor = 3
			}
			modifier = {
				trait = kind
				factor = 3
			}
			modifier = {
				trait = cynical
				factor = 1.5
			}
			modifier = {
				trait = humble
				factor = 3
			}
			modifier = {
				trait = diligent
				factor = 3
			}
			modifier = {
				trait = gregarious
				factor = 2
			}
			modifier = {
				trait = content
				factor = 1.5
			}
			modifier = {
				trait = stubborn
				factor = 3
			}
			modifier = {
				trait = wroth
				factor = 0.33
			}
			modifier = {
				trait = proud
				factor = 0.33
			}
			modifier = {
				trait = slothful
				factor = 0.33
			}
			modifier = {
				trait = envious
				factor = 0.33
			}
			modifier = {
				trait = zealous
				factor = 0.67
			}
			modifier = {
				trait = shy
				factor = 0.5
			}
			modifier = {
				trait = arbitrary
				factor = 0.5
			}
			modifier = {
				trait = paranoid
				factor = 0.5
			}
			modifier = {
				trait = deceitful
				factor = 0.5
			}
			modifier = {
				trait = ambitious
				factor = 1.5
			}
			modifier = {
				trait = craven
				factor = 0.5
			}
			modifier = {
				trait = charismatic_negotiator
				factor = 2
			}
			modifier = {
				trait = grey_eminence
				factor = 3
			}
		}
	}
	option = {
		name = "Well, go back playing"
		FROM = {
			character_event = {
				id = guelphs_ghibellines.60
				tooltip = "will not pick a position influenced by you"
			}
		}
		ROOT = {
			tooltip = {
				opinion = {
					modifier = opinion_disappointed
					who = FROM
					years = 30
				}
			}
		}
		ai_chance = {
			factor = 10
			modifier = {
				trait = patient
				factor = 0.5
			}
			modifier = {
				trait = kind
				factor = 0.9
			}
			modifier = {
				trait = cynical
				factor = 1.5
			}
			modifier = {
				trait = humble
				factor = 1.5
			}
			modifier = {
				trait = diligent
				factor = 0.5
			}
			modifier = {
				trait = gregarious
				factor = 0.5
			}
			modifier = {
				trait = content
				factor = 2
			}
			modifier = {
				trait = stubborn
				factor = 0.33
			}
			modifier = {
				trait = wroth
				factor = 0.5
			}
			modifier = {
				trait = proud
				factor = 0.5
			}
			modifier = {
				trait = slothful
				factor = 3
			}
			modifier = {
				trait = envious
				factor = 0.5
			}
			modifier = {
				trait = zealous
				factor = 0.5
			}
			modifier = {
				trait = shy
				factor = 3
			}
			modifier = {
				trait = arbitrary
				factor = 1.5
			}
			modifier = {
				trait = paranoid
				factor = 2
			}
			modifier = {
				trait = deceitful
				factor = 0.8
			}
			modifier = {
				trait = ambitious
				factor = 0.67
			}
			modifier = {
				trait = craven
				factor = 3
			}
			modifier = {
				trait = charismatic_negotiator
				factor = 0.5
			}
			modifier = {
				trait = grey_eminence
				factor = 0.33
			}
			modifier = {
				trait = skilled_tactician
				factor = 0.5
			}
			modifier = {
				trait = brilliant_strategist
				factor = 0.33
			}
		}
	}
	option = {
		name = "You stupid brat!"
		FROM = {
			add_rival = ROOT
			character_event = {
				id = guelphs_ghibellines.66
				tooltip = "will hate you to the end of his life and become a ghibelline!"
			}
		}
		ai_chance = {
			factor = 40
			modifier = {
				trait = patient
				factor = 0.33
			}
			modifier = {
				trait = kind
				factor = 0.33
			}
			modifier = {
				trait = cynical
				factor = 0.67
			}
			modifier = {
				trait = humble
				factor = 0.33
			}
			modifier = {
				trait = diligent
				factor = 0.33
			}
			modifier = {
				trait = gregarious
				factor = 0.5
			}
			modifier = {
				trait = content
				factor = 0.9
			}
			modifier = {
				trait = stubborn
				factor = 1.1
			}
			modifier = {
				trait = wroth
				factor = 3
			}
			modifier = {
				trait = proud
				factor = 3
			}
			modifier = {
				trait = slothful
				factor = 0.8
			}
			modifier = {
				trait = envious
				factor = 3
			}
			modifier = {
				trait = zealous
				factor = 1.5
			}
			modifier = {
				trait = shy
				factor = 0.5
			}
			modifier = {
				trait = arbitrary
				factor = 2
			}
			modifier = {
				trait = paranoid
				factor = 3
			}
			modifier = {
				trait = deceitful
				factor = 2
			}
			modifier = {
				trait = ambitious
				factor = 0.8
			}
			modifier = {
				trait = craven
				factor = 0.8
			}
			modifier = {
				trait = skilled_tactician
				factor = 2
			}
			modifier = {
				trait = brilliant_strategist
				factor = 3
			}
		}
	}
	option = {
		name = "You think Waiblingen is a cool name?"
		trigger = {
			diplomacy = 16
		}
		tooltip_info = diplomacy

		FROM = {
			character_event = {
				id = guelphs_ghibellines.67
				tooltip = "will hear your better explained reasons and become a guelph"
			}
		}
		ai_chance = {
			factor = 10000
		}
	}
}


#65 WARD IS ASKED AGAIN TO BECOME GUELPH
character_event = {
	id = guelphs_ghibellines.65
	desc = EVTDESCguelphs_ghibellines.55
	picture = GFX_evt_son_asking_father
	
	is_triggered_only = yes

	option = {
		name = "Well, ok, I'll be a guelph"
		if = {
			limit = {
				ROOT = {
					has_character_flag = ghibelline_cb
				}
			}
			remove_trait = ghibelline
			clr_character_flag = ghibelline_cb
		}
		add_trait = guelph
		set_character_flag = guelph_cb
		FROM = {
			character_event = {
				id = guelphs_ghibellines.63
				tooltip = "will appreciate your good behaviour"
			}
		}
		ai_chance = {
			factor = 70
			modifier = {
				ROOT = {
					father_even_if_dead = {
						OR = {
							had_character_flag = {
								flag = ghibelline_cb
								years = 1
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 5
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 10
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 20
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 35
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 50
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 70
							}
						}
					}
				}
				factor = 0.2
			}
			modifier = {
				trait = affectionate
				factor = 2
			}
			modifier = {
				trait = playful
				factor = 0.33
			}
			modifier = {
				trait = haughty
				factor = 0.5
			}
			modifier = {
				trait = rowdy
				factor = 1.67
			}
			modifier = {
				trait = conscientious
				factor = 1.67
			}
			modifier = {
				trait = fussy
				factor = 0.5
			}
			modifier = {
				trait = brooding
				factor = 0.67
			}
			modifier = {
				trait = indolent
				factor = 2
			}
			modifier = {
				trait = willful
				factor = 0.33
			}
			modifier = {
				trait = curious
				factor = 0.67
			}
			modifier = {
				trait = idolizer
				factor = 1.67
			}
			modifier = {
				trait = timid
				factor = 1.25
			}
		}
	}
	option = {
		name = "I don't want to pick a side!"
		set_character_flag = no_side_young
		FROM = {
			character_event = {
				id = guelphs_ghibellines.58
				tooltip = "won't be happy but will leave you alone"
			}
		}
		ai_chance = {
			factor = 70
			modifier = {
				ROOT = {
					father_even_if_dead = {
						OR = {
							had_character_flag = {
								flag = ghibelline_cb
								years = 1
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 5
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 10
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 20
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 35
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 50
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 70
							}
						}
					}
				}
				factor = 0.8
			}
			modifier = {
				trait = affectionate
				factor = 1.5
			}
			modifier = {
				trait = playful
				factor = 0.33
			}
			modifier = {
				trait = haughty
				factor = 0.5
			}
			modifier = {
				trait = rowdy
				factor = 0.8
			}
			modifier = {
				trait = conscientious
				factor = 0.6
			}
			modifier = {
				trait = fussy
				factor = 2
			}
			modifier = {
				trait = brooding
				factor = 0.8
			}
			modifier = {
				trait = indolent
				factor = 3
			}
			modifier = {
				trait = timid
				factor = 2
			}
		}
	}
	option = {
		name = "Screw it! For the Pope!"

		if = {
			limit = {
				ROOT = {
					NOT = {
						has_character_flag = guelph_cb
					}
				}
			}
			add_trait = guelph
			set_character_flag = guelph_cb
			set_character_flag = convinced_guelph_young
		}
		FROM = {
			character_event = {
				id = guelphs_ghibellines.68
				tooltip = "will be very angry"
			}
			add_rival = ROOT
		}
		ai_chance = {
			factor = 40
			modifier = {
				ROOT = {
					father_even_if_dead = {
						OR = {
							had_character_flag = {
								flag = ghibelline_cb
								years = 1
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 5
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 10
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 20
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 35
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 50
							}
							had_character_flag = {
								flag = ghibelline_cb
								years = 70
							}
						}
					}
				}
				factor = 8
			}
			modifier = {
				trait = affectionate
				factor = 0.5
			}
			modifier = {
				trait = playful
				factor = 1.5
			}
			modifier = {
				trait = haughty
				factor = 2
			}
			modifier = {
				trait = rowdy
				factor = 0.6
			}
			modifier = {
				trait = conscientious
				factor = 0.6
			}
			modifier = {
				trait = fussy
				factor = 2
			}
			modifier = {
				trait = brooding
				factor = 1.5
			}
			modifier = {
				trait = indolent
				factor = 0.5
			}
			modifier = {
				trait = willful
				factor = 3
			}
			modifier = {
				trait = curious
				factor = 1.5
			}
			modifier = {
				trait = idolizer
				factor = 0.6
			}
			modifier = {
				trait = timid
				factor = 0.8
			}
		}
	}
}


#66 WARD ANGERED BECOMES GUELPH
character_event = {
	id = guelphs_ghibellines.66
	desc = EVTDESCguelphs_ghibellines.56
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes

	option = {
		name = "Screw you!"
		if = {
			limit = {
				ROOT = {
					NOT = {
						has_character_flag = ghibelline_cb
					}
				}
			}
			add_trait = ghibelline
			set_character_flag = ghibelline_cb
		}
	}
}


#67 WARD PERSUADED TO BECOME GHIBELLINE
character_event = {
	id = guelphs_ghibellines.67
	desc = EVTDESCguelphs_ghibellines.67
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes

	option = {
		name = "Being guelph is surely better!!"
		if = {
			limit = {
				ROOT = {
					has_character_flag = ghibelline_cb
				}
			}
			remove_trait = ghibelline
			clr_character_flag = ghibelline_cb
		}
		add_trait = guelph 
		set_character_flag = guelph_cb
	}
}


#68 WARD BECOMES GUELPH
character_event = {
	id = guelphs_ghibellines.68
	desc = EVTDESCguelphs_ghibellines.68
	picture = GFX_evt_son_asking_father

	is_triggered_only = yes	

	option = {
		name = "That stupid brat! I'll show him!"
		piety = -50
		random = {
			chance = 50
			add_trait = wroth
		}
	}
	option = {
		name = "Disappointed, but not surprised"
		FROM = {
			tooltip = {
				opinion = {
					modifier = opinion_disappointed
					who = ROOT
					years = 30
				}
			}
		}
		random = {
			chance = 50
			add_trait = patient
		}
	}
}