﻿
@thresholdp = 100
@thresholdn = -100

on_game_start_after_lobby = { 
	on_actions = {
		gptl_on_action_dip_start
		gptl_on_action_rel_start
		gptl_on_action_tax_start
		gptl_on_action_sla_start
		gptl_on_action_pun_start
		gptl_on_action_off_start
		gptl_on_action_vig_start
		gptl_on_action_sec_start
		gptl_on_action_mor_start
		gptl_on_action_urb_start
		gptl_on_action_for_start
		gptl_on_action_fes_start
		gptl_on_action_com_start
		gptl_on_action_wom_start
	}
	on_actions = {
		gptl_on_action_dip_start_vassal
		gptl_on_action_rel_start_vassal
		gptl_on_action_tax_start_vassal
		gptl_on_action_sla_start_vassal
		gptl_on_action_pun_start_vassal
		gptl_on_action_off_start_vassal
		gptl_on_action_vig_start_vassal
		gptl_on_action_sec_start_vassal
		gptl_on_action_mor_start_vassal
		gptl_on_action_urb_start_vassal
		gptl_on_action_for_start_vassal
		gptl_on_action_fes_start_vassal
		gptl_on_action_com_start_vassal
		gptl_on_action_wom_start_vassal
	}
}

#five_year_playable_pulse = {
#	on_actions = {
#		gptl_on_action_intro_liege
#		gptl_on_action_intro_liege_ai
#    }
#	on_actions = {
#	 	delay = { days = 5 }
#		gptl_on_action_dip
#		gptl_on_action_rel
#		gptl_on_action_tax
#		gptl_on_action_sla
#		gptl_on_action_pun
#		gptl_on_action_off
#		gptl_on_action_vig
#		gptl_on_action_sec
#		gptl_on_action_mor
#		gptl_on_action_urb
#		gptl_on_action_for
#		gptl_on_action_fes
#		gptl_on_action_com
#		gptl_on_action_wom
#    }
#}

quarterly_playable_pulse = {
	on_actions = {
		gptl_on_action_dip_vassal
		gptl_on_action_rel_vassal
		gptl_on_action_tax_vassal
		gptl_on_action_sla_vassal
		gptl_on_action_pun_vassal
		gptl_on_action_off_vassal
		gptl_on_action_vig_vassal
		gptl_on_action_sec_vassal
		gptl_on_action_mor_vassal
		gptl_on_action_urb_vassal
		gptl_on_action_for_vassal
		gptl_on_action_fes_vassal
		gptl_on_action_com_vassal
		gptl_on_action_wom_vassal
    }
}

quarterly_playable_pulse = {
	on_actions = {
		gptl_on_action_events
    }
}

gptl_on_action_intro_liege = {
	trigger = {
		is_ai = no
		age >= 12
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 4
		any_powerful_vassal = {
			count >= 2
			age >= 12
			is_available = yes
			is_imprisoned = no
		}
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = { number_of_powerful_vassals >= 1 }
			random_powerful_vassal = {
				limit = { age >= 12 is_available = yes is_imprisoned = no }
				save_scope_as = gptl_pv1
			}
		}
		if = {
			limit = { number_of_powerful_vassals >= 2 }
			random_powerful_vassal = {
				limit = { age >= 12 is_available = yes is_imprisoned = no NOT = { this = scope:gptl_pv1 } }
				save_scope_as = gptl_pv2
			}
		}
		if = {
			limit = { number_of_powerful_vassals >= 3 }
			random_powerful_vassal = {
				limit = { age >= 12 is_imprisoned = no NOR = { 
					this = scope:gptl_pv1
					this = scope:gptl_pv2
				} }
				save_scope_as = gptl_pv3
			}
		}
		if = {
			limit = { number_of_powerful_vassals >= 4 }
			random_powerful_vassal = {
				limit = { age >= 12 is_imprisoned = no NOR = { 
					this = scope:gptl_pv1
					this = scope:gptl_pv2
					this = scope:gptl_pv3
				} }
				save_scope_as = gptl_pv4
			}
		}
		if = {
			limit = { number_of_powerful_vassals >= 5 }
			random_powerful_vassal = {
				limit = { age >= 12 is_imprisoned = no NOR = { 
					this = scope:gptl_pv1
					this = scope:gptl_pv2
					this = scope:gptl_pv3
					this = scope:gptl_pv4
				} }
				save_scope_as = gptl_pv5
			}
		}
		trigger_event = { id = gptl_intro_events.01 }
	}
}

gptl_on_action_intro_liege_ai = {
	trigger = {
		gptl_basic_liege_trigger = yes
		any_vassal_or_below = {
			is_ai = no
			age >= 14
			gptl_basic_vassal_trigger = yes
		}
		number_of_powerful_vassals >= 4
		any_powerful_vassal = {
			count >= 2
			age >= 12
			is_available = yes
			is_imprisoned = no
		}
	}
	effect = {
		if = {
			limit = { number_of_powerful_vassals >= 1 }
			random_powerful_vassal = {
				limit = { is_ai = yes age >= 12 is_available = yes is_imprisoned = no }
				save_scope_as = gptl_pv1
			}
		}
		if = {
			limit = { number_of_powerful_vassals >= 2 }
			random_powerful_vassal = {
				limit = { is_ai = yes age >= 12 is_available = yes is_imprisoned = no NOT = { this = scope:gptl_pv1 } }
				save_scope_as = gptl_pv2
			}
		}
		if = {
			limit = { number_of_powerful_vassals >= 3 }
			random_powerful_vassal = {
				limit = { is_ai = yes age >= 12 is_imprisoned = no NOR = { 
					this = scope:gptl_pv1
					this = scope:gptl_pv2
				} }
				save_scope_as = gptl_pv3
			}
		}
		if = {
			limit = { number_of_powerful_vassals >= 4 }
			random_powerful_vassal = {
				limit = { is_ai = yes age >= 12 is_imprisoned = no NOR = { 
					this = scope:gptl_pv1
					this = scope:gptl_pv2
					this = scope:gptl_pv3
				} }
				save_scope_as = gptl_pv4
			}
		}
		if = {
			limit = { number_of_powerful_vassals >= 5 }
			random_powerful_vassal = {
				limit = { age >= 12 is_imprisoned = no NOR = { 
					this = scope:gptl_pv1
					this = scope:gptl_pv2
					this = scope:gptl_pv3
					this = scope:gptl_pv4
				} }
				save_scope_as = gptl_pv5
			}
		}
		every_vassal_or_below = {
			limit = { is_ai = no }
			trigger_event = { id = gptl_intro_events_vassal.01 }
		}
	}
}

gptl_on_action_intro_vassal = { #deprecated, bugged
	trigger = {
		is_ai = no
		age >= 14
		gptl_basic_vassal_trigger = yes
		top_liege.number_of_powerful_vassals >= 4
		top_liege = {
			any_powerful_vassal = {
				count >= 2
				age >= 12
				is_available = yes
				is_imprisoned = no
				NOT = { this = root }
			}
		}
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = { top_liege.number_of_powerful_vassals >= 1 }
			top_liege = {
				random_powerful_vassal = {
					limit = { NOT = { this = root } age >= 12 is_available = yes is_imprisoned = no }
					save_scope_as = gptl_pv1
				}
			}
		}
		if = {
			limit = { top_liege.number_of_powerful_vassals >= 2 }
			top_liege = {
				random_powerful_vassal = {
					limit = { NOT = { this = root } age >= 12 is_available = yes is_imprisoned = no NOT = { this = scope:gptl_pv1 } }
					save_scope_as = gptl_pv2
				}
			}
		}
		if = {
			limit = { top_liege.number_of_powerful_vassals >= 3 }
			top_liege = {
				random_powerful_vassal = {
					limit = { NOT = { this = root } age >= 12 is_imprisoned = no NOR = { 
						this = scope:gptl_pv1
						this = scope:gptl_pv2
					} }
					save_scope_as = gptl_pv3
				}
			}
		}
		if = {
			limit = { top_liege.number_of_powerful_vassals >= 4 }
			top_liege = {
				random_powerful_vassal = {
					limit = { NOT = { this = root } age >= 12 is_imprisoned = no NOR = { 
						this = scope:gptl_pv1
						this = scope:gptl_pv2
						this = scope:gptl_pv3
					} }
					save_scope_as = gptl_pv4
				}
			}
		}
		if = {
			limit = { top_liege.number_of_powerful_vassals >= 5 }
			top_liege = {
				random_powerful_vassal = {
					limit = { NOT = { this = root } age >= 12 is_imprisoned = no NOR = { 
						this = scope:gptl_pv1
						this = scope:gptl_pv2
						this = scope:gptl_pv3
						this = scope:gptl_pv4
					} }
					save_scope_as = gptl_pv5
				}
			}
		}
		trigger_event = { id = gptl_intro_events_vassal.01 }
	}
}




gptl_on_action_dip_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_diplomacy_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_sociability_value <= -300
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_0
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_diplomacy_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_sociability_value <= -150
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_diplomacy_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_sociability_value >= 150
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_diplomacy_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_sociability_value >= 300
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_4
			}
			else = {}
		}
	}	
}
gptl_on_action_dip = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_diplomacy_law_0 }
					gptl_sociability_value <= -300
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_diplomacy_law_0_t
					desc = gpt_diplomacy_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_diplomacy_law_1 }
					gptl_sociability_value <= -150
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_diplomacy_law_1_t
					desc = gpt_diplomacy_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_diplomacy_law_3 }
					gptl_sociability_value >= 150
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_diplomacy_law_3_t
					desc = gpt_diplomacy_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_diplomacy_law_4 }
					gptl_sociability_value >= 300
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_diplomacy_law_4_t
					desc = gpt_diplomacy_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_diplomacy_law_2 }
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_diplomacy_law_2_t
					desc = gpt_diplomacy_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_rel_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_religious_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_zeal_value <= -300
				}
				add_realm_law_skip_effects = gpt_religious_law_4
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_religious_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_zeal_value <= -150
				}
				add_realm_law_skip_effects = gpt_religious_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_religious_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_zeal_value >= 150
				}
				add_realm_law_skip_effects = gpt_religious_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_religious_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_zeal_value >= 300
				}
				add_realm_law_skip_effects = gpt_religious_law_0
			}
			else = {}
		}
	}	
}
gptl_on_action_rel = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_religious_law_4 }
					gptl_zeal_value <= -300
				}
				add_realm_law_skip_effects = gpt_religious_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_religious_law_4_t
					desc = gpt_religious_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_religious_law_3 }
					gptl_zeal_value <= -150
				}
				add_realm_law_skip_effects = gpt_religious_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_religious_law_3_t
					desc = gpt_religious_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_religious_law_1 }
					gptl_zeal_value >= 150
				}
				add_realm_law_skip_effects = gpt_religious_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_religious_law_1_t
					desc = gpt_religious_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_religious_law_0 }
					gptl_zeal_value >= 300
				}
				add_realm_law_skip_effects = gpt_religious_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_religious_law_0_t
					desc = gpt_religious_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_religious_law_2 }
				}
				add_realm_law_skip_effects = gpt_religious_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_religious_law_2_t
					desc = gpt_religious_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_tax_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_taxation_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_greed_value <= -300
				}
				add_realm_law_skip_effects = gpt_taxation_law_0
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_taxation_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_greed_value <= -150
				}
				add_realm_law_skip_effects = gpt_taxation_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_taxation_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_greed_value >= 150
				}
				add_realm_law_skip_effects = gpt_taxation_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_taxation_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_greed_value >= 300
				}
				add_realm_law_skip_effects = gpt_taxation_law_4
			}
			else = {}
		}
	}	
}
gptl_on_action_tax = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_taxation_law_0 }
					gptl_greed_value <= -300
				}
				add_realm_law_skip_effects = gpt_taxation_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_taxation_law_0_t
					desc = gpt_taxation_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_taxation_law_1 }
					gptl_greed_value <= -150
				}
				add_realm_law_skip_effects = gpt_taxation_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_taxation_law_1_t
					desc = gpt_taxation_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_taxation_law_3 }
					gptl_greed_value >= 150
				}
				add_realm_law_skip_effects = gpt_taxation_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_taxation_law_3_t
					desc = gpt_taxation_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_taxation_law_4 }
					gptl_greed_value >= 300
				}
				add_realm_law_skip_effects = gpt_taxation_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_taxation_law_4_t
					desc = gpt_taxation_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_taxation_law_2 }
				}
				add_realm_law_skip_effects = gpt_taxation_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_taxation_law_2_t
					desc = gpt_taxation_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_sla_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_slavery_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_compassion_value <= -300
				}
				add_realm_law_skip_effects = gpt_slavery_law_4
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_slavery_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_compassion_value <= -150
				}
				add_realm_law_skip_effects = gpt_slavery_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_slavery_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_compassion_value >= 150
				}
				add_realm_law_skip_effects = gpt_slavery_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_slavery_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_compassion_value >= 300
				}
				add_realm_law_skip_effects = gpt_slavery_law_0
			}
			else = {}
		}
	}	
}
gptl_on_action_sla = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_slavery_law_4 }
					gptl_compassion_value <= -300
				}
				add_realm_law_skip_effects = gpt_slavery_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_slavery_law_4_t
					desc = gpt_slavery_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_slavery_law_3 }
					gptl_compassion_value <= -150
				}
				add_realm_law_skip_effects = gpt_slavery_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_slavery_law_3_t
					desc = gpt_slavery_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_slavery_law_1 }
					gptl_compassion_value >= 150
				}
				add_realm_law_skip_effects = gpt_slavery_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_slavery_law_1_t
					desc = gpt_slavery_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_slavery_law_0 }
					gptl_compassion_value >= 300
				}
				add_realm_law_skip_effects = gpt_slavery_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_slavery_law_0_t
					desc = gpt_slavery_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_slavery_law_2 }
				}
				add_realm_law_skip_effects = gpt_slavery_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_slavery_law_2_t
					desc = gpt_slavery_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_pun_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_punishment_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_vengefulness_value <= -300
				}
				add_realm_law_skip_effects = gpt_punishment_law_0
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_punishment_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_vengefulness_value <= -150
				}
				add_realm_law_skip_effects = gpt_punishment_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_punishment_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_vengefulness_value >= 150
				}
				add_realm_law_skip_effects = gpt_punishment_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_punishment_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_vengefulness_value >= 300
				}
				add_realm_law_skip_effects = gpt_punishment_law_4
			}
			else = {}
		}
	}	
}
gptl_on_action_pun = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_punishment_law_0 }
					gptl_vengefulness_value <= -300
				}
				add_realm_law_skip_effects = gpt_punishment_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_punishment_law_0_t
					desc = gpt_punishment_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_punishment_law_1 }
					gptl_vengefulness_value <= -150
				}
				add_realm_law_skip_effects = gpt_punishment_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_punishment_law_1_t
					desc = gpt_punishment_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_punishment_law_3 }
					gptl_vengefulness_value >= 150
				}
				add_realm_law_skip_effects = gpt_punishment_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_punishment_law_3_t
					desc = gpt_punishment_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_punishment_law_4 }
					gptl_vengefulness_value >= 300
				}
				add_realm_law_skip_effects = gpt_punishment_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_punishment_law_4_t
					desc = gpt_punishment_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_punishment_law_2 }
				}
				add_realm_law_skip_effects = gpt_punishment_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_punishment_law_2_t
					desc = gpt_punishment_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_off_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_officers_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_honor_value <= -300
				}
				add_realm_law_skip_effects = gpt_officers_law_4
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_officers_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_honor_value <= -150
				}
				add_realm_law_skip_effects = gpt_officers_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_officers_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_honor_value >= 150
				}
				add_realm_law_skip_effects = gpt_officers_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_officers_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_honor_value >= 300
				}
				add_realm_law_skip_effects = gpt_officers_law_0
			}
			else = {}
		}
	}	
}
gptl_on_action_off = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_officers_law_4 }
					gptl_honor_value <= -300
				}
				add_realm_law_skip_effects = gpt_officers_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_officers_law_4_t
					desc = gpt_officers_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_officers_law_3 }
					gptl_honor_value <= -150
				}
				add_realm_law_skip_effects = gpt_officers_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_officers_law_3_t
					desc = gpt_officers_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_officers_law_1 }
					gptl_honor_value >= 150
				}
				add_realm_law_skip_effects = gpt_officers_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_officers_law_1_t
					desc = gpt_officers_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_officers_law_0 }
					gptl_honor_value >= 300
				}
				add_realm_law_skip_effects = gpt_officers_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_officers_law_0_t
					desc = gpt_officers_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_officers_law_2 }
				}
				add_realm_law_skip_effects = gpt_officers_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_officers_law_2_t
					desc = gpt_officers_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_vig_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_vigilance_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_vigilance_value <= -300
				}
				add_realm_law_skip_effects = gpt_vigilance_law_4
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_vigilance_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_vigilance_value <= -150
				}
				add_realm_law_skip_effects = gpt_vigilance_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_vigilance_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_vigilance_value >= 150
				}
				add_realm_law_skip_effects = gpt_vigilance_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_vigilance_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_vigilance_value >= 300
				}
				add_realm_law_skip_effects = gpt_vigilance_law_0
			}
			else = {}
		}
	}	
}
gptl_on_action_vig = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_vigilance_law_4 }
					gptl_vigilance_value <= -300
				}
				add_realm_law_skip_effects = gpt_vigilance_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_vigilance_law_4_t
					desc = gpt_vigilance_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_vigilance_law_3 }
					gptl_vigilance_value <= -150
				}
				add_realm_law_skip_effects = gpt_vigilance_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_vigilance_law_3_t
					desc = gpt_vigilance_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_vigilance_law_1 }
					gptl_vigilance_value >= 150
				}
				add_realm_law_skip_effects = gpt_vigilance_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_vigilance_law_1_t
					desc = gpt_vigilance_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_vigilance_law_0 }
					gptl_vigilance_value >= 300
				}
				add_realm_law_skip_effects = gpt_vigilance_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_vigilance_law_0_t
					desc = gpt_vigilance_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_vigilance_law_2 }
				}
				add_realm_law_skip_effects = gpt_vigilance_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_vigilance_law_2_t
					desc = gpt_vigilance_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_sec_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_security_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_boldness_value <= -300
				}
				add_realm_law_skip_effects = gpt_security_law_4
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_security_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_boldness_value <= -150
				}
				add_realm_law_skip_effects = gpt_security_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_security_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_boldness_value >= 150
				}
				add_realm_law_skip_effects = gpt_security_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_security_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_boldness_value >= 300
				}
				add_realm_law_skip_effects = gpt_security_law_0
			}
			else = {}
		}
	}	
}
gptl_on_action_sec = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_security_law_4 }
					gptl_boldness_value <= -300
				}
				add_realm_law_skip_effects = gpt_security_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_security_law_4_t
					desc = gpt_security_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_security_law_3 }
					gptl_boldness_value <= -150
				}
				add_realm_law_skip_effects = gpt_security_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_security_law_3_t
					desc = gpt_security_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_security_law_1 }
					gptl_boldness_value >= 150
				}
				add_realm_law_skip_effects = gpt_security_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_security_law_1_t
					desc = gpt_security_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_security_law_0 }
					gptl_boldness_value >= 300
				}
				add_realm_law_skip_effects = gpt_security_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_security_law_0_t
					desc = gpt_security_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_security_law_2 }
				}
				add_realm_law_skip_effects = gpt_security_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_security_law_2_t
					desc = gpt_security_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_mor_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { faith = { has_doctrine_parameter = unreformed } }
					NOT = { has_realm_law = gpt_moral_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_moral_value <= -300
				}
				add_realm_law_skip_effects = gpt_moral_law_0
			}
			else_if = {
				limit = {
					NOT = { faith = { has_doctrine_parameter = unreformed } }
					NOT = { has_realm_law = gpt_moral_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_moral_value <= -150
				}
				add_realm_law_skip_effects = gpt_moral_law_1
			}
			else_if = {
				limit = {
					NOT = { faith = { has_doctrine_parameter = unreformed } }
					NOT = { has_realm_law = gpt_moral_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_moral_value >= 150
				}
				add_realm_law_skip_effects = gpt_moral_law_3
			}
			else_if = {
				limit = {
					NOT = { faith = { has_doctrine_parameter = unreformed } }
					NOT = { has_realm_law = gpt_moral_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_moral_value >= 300
				}
				add_realm_law_skip_effects = gpt_moral_law_4
			}
			else = {}
		}
	}	
}
gptl_on_action_mor = {
	trigger = {
		NOT = { faith = { has_doctrine_parameter = unreformed } }
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_moral_law_0 }
					gptl_moral_value <= -300
				}
				add_realm_law_skip_effects = gpt_moral_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_moral_law_0_t
					desc = gpt_moral_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_moral_law_1 }
					gptl_moral_value <= -150
				}
				add_realm_law_skip_effects = gpt_moral_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_moral_law_1_t
					desc = gpt_moral_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_moral_law_3 }
					gptl_moral_value >= 150
				}
				add_realm_law_skip_effects = gpt_moral_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_moral_law_3_t
					desc = gpt_moral_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_moral_law_4 }
					gptl_moral_value >= 300
				}
				add_realm_law_skip_effects = gpt_moral_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_moral_law_4_t
					desc = gpt_moral_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_moral_law_2 }
				}
				add_realm_law_skip_effects = gpt_moral_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_moral_law_2_t
					desc = gpt_moral_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}


gptl_on_action_urb_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_urban_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_urban_value <= -300
				}
				add_realm_law_skip_effects = gpt_urban_law_0
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_urban_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_urban_value <= -150
				}
				add_realm_law_skip_effects = gpt_urban_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_urban_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_urban_value >= 150
				}
				add_realm_law_skip_effects = gpt_urban_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_urban_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_urban_value >= 300
				}
				add_realm_law_skip_effects = gpt_urban_law_4
			}
			else = {}
		}
	}	
}
gptl_on_action_urb = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_urban_law_0 }
					gptl_urban_value <= -300
				}
				add_realm_law_skip_effects = gpt_urban_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_urban_law_0_t
					desc = gpt_urban_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_urban_law_1 }
					gptl_urban_value <= -150
				}
				add_realm_law_skip_effects = gpt_urban_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_urban_law_1_t
					desc = gpt_urban_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_urban_law_3 }
					gptl_urban_value >= 150
				}
				add_realm_law_skip_effects = gpt_urban_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_urban_law_3_t
					desc = gpt_urban_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_urban_law_4 }
					gptl_urban_value >= 300
				}
				add_realm_law_skip_effects = gpt_urban_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_urban_law_4_t
					desc = gpt_urban_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_urban_law_2 }
				}
				add_realm_law_skip_effects = gpt_urban_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_urban_law_2_t
					desc = gpt_urban_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_for_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_formality_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_formality_value <= -300
				}
				add_realm_law_skip_effects = gpt_formality_law_0
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_formality_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_formality_value <= -150
				}
				add_realm_law_skip_effects = gpt_formality_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_formality_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_formality_value >= 150
				}
				add_realm_law_skip_effects = gpt_formality_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_formality_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_formality_value >= 300
				}
				add_realm_law_skip_effects = gpt_formality_law_4
			}
			else = {}
		}
	}	
}
gptl_on_action_for = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_formality_law_0 }
					gptl_formality_value <= -300
				}
				add_realm_law_skip_effects = gpt_formality_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_formality_law_0_t
					desc = gpt_formality_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_formality_law_1 }
					gptl_formality_value <= -150
				}
				add_realm_law_skip_effects = gpt_formality_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_formality_law_1_t
					desc = gpt_formality_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_formality_law_3 }
					gptl_formality_value >= 150
				}
				add_realm_law_skip_effects = gpt_formality_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_formality_law_3_t
					desc = gpt_formality_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_formality_law_4 }
					gptl_formality_value >= 300
				}
				add_realm_law_skip_effects = gpt_formality_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_formality_law_4_t
					desc = gpt_formality_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_formality_law_2 }
				}
				add_realm_law_skip_effects = gpt_formality_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_formality_law_2_t
					desc = gpt_formality_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_com_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_command_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_command_value <= -300
				}
				add_realm_law_skip_effects = gpt_command_law_0
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_command_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_command_value <= -150
				}
				add_realm_law_skip_effects = gpt_command_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_command_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_command_value >= 150
				}
				add_realm_law_skip_effects = gpt_command_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_command_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_command_value >= 300
				}
				add_realm_law_skip_effects = gpt_command_law_4
			}
			else = {}
		}
	}	
}
gptl_on_action_com = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_command_law_0 }
					gptl_command_value <= -300
				}
				add_realm_law_skip_effects = gpt_command_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_command_law_0_t
					desc = gpt_command_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_command_law_1 }
					gptl_command_value <= -150
				}
				add_realm_law_skip_effects = gpt_command_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_command_law_1_t
					desc = gpt_command_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_command_law_3 }
					gptl_command_value >= 150
				}
				add_realm_law_skip_effects = gpt_command_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_command_law_3_t
					desc = gpt_command_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_command_law_4 }
					gptl_command_value >= 300
				}
				add_realm_law_skip_effects = gpt_command_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_command_law_4_t
					desc = gpt_command_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_command_law_2 }
				}
				add_realm_law_skip_effects = gpt_command_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_command_law_2_t
					desc = gpt_command_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_fes_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					NOT = { has_realm_law = gpt_festivity_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_festivity_value <= -300
				}
				add_realm_law_skip_effects = gpt_festivity_law_0
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_festivity_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_festivity_value <= -150
				}
				add_realm_law_skip_effects = gpt_festivity_law_1
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_festivity_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_festivity_value >= 150
				}
				add_realm_law_skip_effects = gpt_festivity_law_3
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_festivity_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_festivity_value >= 300
				}
				add_realm_law_skip_effects = gpt_festivity_law_4
			}
			else = {}
		}
	}	
}
gptl_on_action_fes = {
	trigger = {
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_festivity_law_0 }
					gptl_festivity_value <= -300
				}
				add_realm_law_skip_effects = gpt_festivity_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_festivity_law_0_t
					desc = gpt_festivity_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_festivity_law_1 }
					gptl_festivity_value <= -150
				}
				add_realm_law_skip_effects = gpt_festivity_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_festivity_law_1_t
					desc = gpt_festivity_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_festivity_law_3 }
					gptl_festivity_value >= 150
				}
				add_realm_law_skip_effects = gpt_festivity_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_festivity_law_3_t
					desc = gpt_festivity_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_festivity_law_4 }
					gptl_festivity_value >= 300
				}
				add_realm_law_skip_effects = gpt_festivity_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_festivity_law_4_t
					desc = gpt_festivity_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_festivity_law_2 }
				}
				add_realm_law_skip_effects = gpt_festivity_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_festivity_law_2_t
					desc = gpt_festivity_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_wom_start = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					faith = { has_doctrine_parameter = male_dominated_law }
					NOT = { has_realm_law = gpt_women_law_0 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_women_value <= -300
				}
				add_realm_law_skip_effects = gpt_women_law_0
			}
			else_if = {
				limit = {
					faith = { has_doctrine_parameter = male_dominated_law }
					NOT = { has_realm_law = gpt_women_law_1 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_women_value <= -150
				}
				add_realm_law_skip_effects = gpt_women_law_1
			}
			else_if = {
				limit = {
					faith = { has_doctrine_parameter = male_dominated_law }
					NOT = { has_realm_law = gpt_women_law_3 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_women_value >= 150
				}
				add_realm_law_skip_effects = gpt_women_law_3
			}
			else_if = {
				limit = {
					faith = { has_doctrine_parameter = male_dominated_law }
					NOT = { has_realm_law = gpt_women_law_4 }
					gptl_basic_liege_trigger = yes
					number_of_powerful_vassals >= 1
					gptl_basic_pass_trigger = no
					gptl_women_value >= 300
				}
				add_realm_law_skip_effects = gpt_women_law_4
			}
			else = {}
		}
	}	
}
gptl_on_action_wom = {
	trigger = {
		faith = { has_doctrine_parameter = male_dominated_law }
		gptl_basic_liege_trigger = yes
		number_of_powerful_vassals >= 1
		gptl_basic_pass_trigger = no
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					NOT = { has_realm_law = gpt_women_law_0 }
					gptl_women_value <= -300
				}
				add_realm_law_skip_effects = gpt_women_law_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_women_law_0_t
					desc = gpt_women_law_0_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_women_law_1 }
					gptl_women_value <= -150
				}
				add_realm_law_skip_effects = gpt_women_law_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_women_law_1_t
					desc = gpt_women_law_1_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_women_law_3 }
					gptl_women_value >= 150
				}
				add_realm_law_skip_effects = gpt_women_law_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_women_law_3_t
					desc = gpt_women_law_3_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_women_law_4 }
					gptl_women_value >= 300
				}
				add_realm_law_skip_effects = gpt_women_law_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_women_law_4_t
					desc = gpt_women_law_4_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else_if = {
				limit = {
					NOT = { has_realm_law = gpt_women_law_2 }
				}
				add_realm_law_skip_effects = gpt_women_law_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_women_law_2_t
					desc = gpt_women_law_2_d
					left_icon = root
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_highca_tip } }
					show_as_tooltip = { custom_tooltip = { text = gptl_auto_change_tip } }
				}
			}
			else = {}
		}
	}	
}







gptl_on_action_dip_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_diplomacy_law_0 }
					NOT = { has_realm_law = gpt_diplomacy_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_diplomacy_law_1 }
					NOT = { has_realm_law = gpt_diplomacy_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_diplomacy_law_2 }
					NOT = { has_realm_law = gpt_diplomacy_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_diplomacy_law_3 }
					NOT = { has_realm_law = gpt_diplomacy_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_diplomacy_law_4 }
					NOT = { has_realm_law = gpt_diplomacy_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_dip_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_diplomacy_law_0 }
					NOT = { has_realm_law = gpt_diplomacy_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_diplomacy_law_vassal_0_t
					desc = gpt_diplomacy_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_diplomacy_law_1 }
					NOT = { has_realm_law = gpt_diplomacy_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_diplomacy_law_vassal_1_t
					desc = gpt_diplomacy_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_diplomacy_law_2 }
					NOT = { has_realm_law = gpt_diplomacy_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_diplomacy_law_vassal_2_t
					desc = gpt_diplomacy_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_diplomacy_law_3 }
					NOT = { has_realm_law = gpt_diplomacy_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_diplomacy_law_vassal_3_t
					desc = gpt_diplomacy_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_diplomacy_law_4 }
					NOT = { has_realm_law = gpt_diplomacy_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_diplomacy_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_diplomacy_law_vassal_4_t
					desc = gpt_diplomacy_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_rel_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_religious_law_0 }
					NOT = { has_realm_law = gpt_religious_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_religious_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_religious_law_1 }
					NOT = { has_realm_law = gpt_religious_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_religious_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_religious_law_2 }
					NOT = { has_realm_law = gpt_religious_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_religious_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_religious_law_3 }
					NOT = { has_realm_law = gpt_religious_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_religious_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_religious_law_4 }
					NOT = { has_realm_law = gpt_religious_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_religious_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_rel_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_religious_law_0 }
					NOT = { has_realm_law = gpt_religious_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_religious_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_religious_law_vassal_0_t
					desc = gpt_religious_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_religious_law_1 }
					NOT = { has_realm_law = gpt_religious_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_religious_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_religious_law_vassal_1_t
					desc = gpt_religious_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_religious_law_2 }
					NOT = { has_realm_law = gpt_religious_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_religious_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_religious_law_vassal_2_t
					desc = gpt_religious_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_religious_law_3 }
					NOT = { has_realm_law = gpt_religious_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_religious_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_religious_law_vassal_3_t
					desc = gpt_religious_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_religious_law_4 }
					NOT = { has_realm_law = gpt_religious_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_religious_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_religious_law_vassal_4_t
					desc = gpt_religious_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_tax_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_taxation_law_0 }
					NOT = { has_realm_law = gpt_taxation_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_taxation_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_taxation_law_1 }
					NOT = { has_realm_law = gpt_taxation_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_taxation_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_taxation_law_2 }
					NOT = { has_realm_law = gpt_taxation_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_taxation_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_taxation_law_3 }
					NOT = { has_realm_law = gpt_taxation_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_taxation_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_taxation_law_4 }
					NOT = { has_realm_law = gpt_taxation_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_taxation_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_tax_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_taxation_law_0 }
					NOT = { has_realm_law = gpt_taxation_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_taxation_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_taxation_law_vassal_0_t
					desc = gpt_taxation_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_taxation_law_1 }
					NOT = { has_realm_law = gpt_taxation_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_taxation_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_taxation_law_vassal_1_t
					desc = gpt_taxation_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_taxation_law_2 }
					NOT = { has_realm_law = gpt_taxation_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_taxation_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_taxation_law_vassal_2_t
					desc = gpt_taxation_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_taxation_law_3 }
					NOT = { has_realm_law = gpt_taxation_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_taxation_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_taxation_law_vassal_3_t
					desc = gpt_taxation_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_taxation_law_4 }
					NOT = { has_realm_law = gpt_taxation_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_taxation_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_taxation_law_vassal_4_t
					desc = gpt_taxation_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_sla_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_slavery_law_0 }
					NOT = { has_realm_law = gpt_slavery_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_slavery_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_slavery_law_1 }
					NOT = { has_realm_law = gpt_slavery_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_slavery_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_slavery_law_2 }
					NOT = { has_realm_law = gpt_slavery_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_slavery_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_slavery_law_3 }
					NOT = { has_realm_law = gpt_slavery_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_slavery_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_slavery_law_4 }
					NOT = { has_realm_law = gpt_slavery_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_slavery_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_sla_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_slavery_law_0 }
					NOT = { has_realm_law = gpt_slavery_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_slavery_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_slavery_law_vassal_0_t
					desc = gpt_slavery_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_slavery_law_1 }
					NOT = { has_realm_law = gpt_slavery_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_slavery_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_slavery_law_vassal_1_t
					desc = gpt_slavery_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_slavery_law_2 }
					NOT = { has_realm_law = gpt_slavery_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_slavery_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_slavery_law_vassal_2_t
					desc = gpt_slavery_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_slavery_law_3 }
					NOT = { has_realm_law = gpt_slavery_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_slavery_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_slavery_law_vassal_3_t
					desc = gpt_slavery_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_slavery_law_4 }
					NOT = { has_realm_law = gpt_slavery_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_slavery_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_slavery_law_vassal_4_t
					desc = gpt_slavery_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_pun_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_punishment_law_0 }
					NOT = { has_realm_law = gpt_punishment_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_punishment_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_punishment_law_1 }
					NOT = { has_realm_law = gpt_punishment_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_punishment_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_punishment_law_2 }
					NOT = { has_realm_law = gpt_punishment_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_punishment_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_punishment_law_3 }
					NOT = { has_realm_law = gpt_punishment_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_punishment_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_punishment_law_4 }
					NOT = { has_realm_law = gpt_punishment_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_punishment_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_pun_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_punishment_law_0 }
					NOT = { has_realm_law = gpt_punishment_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_punishment_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_punishment_law_vassal_0_t
					desc = gpt_punishment_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_punishment_law_1 }
					NOT = { has_realm_law = gpt_punishment_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_punishment_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_punishment_law_vassal_1_t
					desc = gpt_punishment_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_punishment_law_2 }
					NOT = { has_realm_law = gpt_punishment_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_punishment_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_punishment_law_vassal_2_t
					desc = gpt_punishment_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_punishment_law_3 }
					NOT = { has_realm_law = gpt_punishment_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_punishment_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_punishment_law_vassal_3_t
					desc = gpt_punishment_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_punishment_law_4 }
					NOT = { has_realm_law = gpt_punishment_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_punishment_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_punishment_law_vassal_4_t
					desc = gpt_punishment_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_off_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_officers_law_0 }
					NOT = { has_realm_law = gpt_officers_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_officers_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_officers_law_1 }
					NOT = { has_realm_law = gpt_officers_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_officers_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_officers_law_2 }
					NOT = { has_realm_law = gpt_officers_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_officers_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_officers_law_3 }
					NOT = { has_realm_law = gpt_officers_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_officers_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_officers_law_4 }
					NOT = { has_realm_law = gpt_officers_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_officers_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_off_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_officers_law_0 }
					NOT = { has_realm_law = gpt_officers_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_officers_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_officers_law_vassal_0_t
					desc = gpt_officers_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_officers_law_1 }
					NOT = { has_realm_law = gpt_officers_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_officers_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_officers_law_vassal_1_t
					desc = gpt_officers_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_officers_law_2 }
					NOT = { has_realm_law = gpt_officers_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_officers_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_officers_law_vassal_2_t
					desc = gpt_officers_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_officers_law_3 }
					NOT = { has_realm_law = gpt_officers_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_officers_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_officers_law_vassal_3_t
					desc = gpt_officers_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_officers_law_4 }
					NOT = { has_realm_law = gpt_officers_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_officers_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_officers_law_vassal_4_t
					desc = gpt_officers_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_vig_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_security_law_0 }
					NOT = { has_realm_law = gpt_security_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_security_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_security_law_1 }
					NOT = { has_realm_law = gpt_security_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_security_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_security_law_2 }
					NOT = { has_realm_law = gpt_security_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_security_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_security_law_3 }
					NOT = { has_realm_law = gpt_security_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_security_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_security_law_4 }
					NOT = { has_realm_law = gpt_security_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_security_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_vig_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_security_law_0 }
					NOT = { has_realm_law = gpt_security_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_security_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_security_law_vassal_0_t
					desc = gpt_security_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_security_law_1 }
					NOT = { has_realm_law = gpt_security_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_security_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_security_law_vassal_1_t
					desc = gpt_security_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_security_law_2 }
					NOT = { has_realm_law = gpt_security_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_security_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_security_law_vassal_2_t
					desc = gpt_security_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_security_law_3 }
					NOT = { has_realm_law = gpt_security_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_security_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_security_law_vassal_3_t
					desc = gpt_security_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_security_law_4 }
					NOT = { has_realm_law = gpt_security_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_security_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_security_law_vassal_4_t
					desc = gpt_security_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_sec_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_vigilance_law_0 }
					NOT = { has_realm_law = gpt_vigilance_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_vigilance_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_vigilance_law_1 }
					NOT = { has_realm_law = gpt_vigilance_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_vigilance_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_vigilance_law_2 }
					NOT = { has_realm_law = gpt_vigilance_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_vigilance_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_vigilance_law_3 }
					NOT = { has_realm_law = gpt_vigilance_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_vigilance_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_vigilance_law_4 }
					NOT = { has_realm_law = gpt_vigilance_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_vigilance_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_sec_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_vigilance_law_0 }
					NOT = { has_realm_law = gpt_vigilance_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_vigilance_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_vigilance_law_vassal_0_t
					desc = gpt_vigilance_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_vigilance_law_1 }
					NOT = { has_realm_law = gpt_vigilance_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_vigilance_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_vigilance_law_vassal_1_t
					desc = gpt_vigilance_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_vigilance_law_2 }
					NOT = { has_realm_law = gpt_vigilance_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_vigilance_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_vigilance_law_vassal_2_t
					desc = gpt_vigilance_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_vigilance_law_3 }
					NOT = { has_realm_law = gpt_vigilance_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_vigilance_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_vigilance_law_vassal_3_t
					desc = gpt_vigilance_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_vigilance_law_4 }
					NOT = { has_realm_law = gpt_vigilance_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_vigilance_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_vigilance_law_vassal_4_t
					desc = gpt_vigilance_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_mor_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_moral_law_0 }
					NOT = { has_realm_law = gpt_moral_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_moral_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_moral_law_1 }
					NOT = { has_realm_law = gpt_moral_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_moral_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_moral_law_2 }
					NOT = { has_realm_law = gpt_moral_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_moral_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_moral_law_3 }
					NOT = { has_realm_law = gpt_moral_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_moral_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_moral_law_4 }
					NOT = { has_realm_law = gpt_moral_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_moral_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_mor_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_moral_law_0 }
					NOT = { has_realm_law = gpt_moral_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_moral_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_moral_law_vassal_0_t
					desc = gpt_moral_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_moral_law_1 }
					NOT = { has_realm_law = gpt_moral_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_moral_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_moral_law_vassal_1_t
					desc = gpt_moral_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_moral_law_2 }
					NOT = { has_realm_law = gpt_moral_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_moral_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_moral_law_vassal_2_t
					desc = gpt_moral_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_moral_law_3 }
					NOT = { has_realm_law = gpt_moral_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_moral_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_moral_law_vassal_3_t
					desc = gpt_moral_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_moral_law_4 }
					NOT = { has_realm_law = gpt_moral_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_moral_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_moral_law_vassal_4_t
					desc = gpt_moral_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}


gptl_on_action_urb_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_urban_law_0 }
					NOT = { has_realm_law = gpt_urban_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_urban_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_urban_law_1 }
					NOT = { has_realm_law = gpt_urban_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_urban_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_urban_law_2 }
					NOT = { has_realm_law = gpt_urban_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_urban_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_urban_law_3 }
					NOT = { has_realm_law = gpt_urban_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_urban_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_urban_law_4 }
					NOT = { has_realm_law = gpt_urban_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_urban_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_urb_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_urban_law_0 }
					NOT = { has_realm_law = gpt_urban_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_urban_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_urban_law_vassal_0_t
					desc = gpt_urban_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_urban_law_1 }
					NOT = { has_realm_law = gpt_urban_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_urban_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_urban_law_vassal_1_t
					desc = gpt_urban_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_urban_law_2 }
					NOT = { has_realm_law = gpt_urban_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_urban_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_urban_law_vassal_2_t
					desc = gpt_urban_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_urban_law_3 }
					NOT = { has_realm_law = gpt_urban_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_urban_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_urban_law_vassal_3_t
					desc = gpt_urban_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_urban_law_4 }
					NOT = { has_realm_law = gpt_urban_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_urban_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_urban_law_vassal_4_t
					desc = gpt_urban_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_for_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_formality_law_0 }
					NOT = { has_realm_law = gpt_formality_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_formality_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_formality_law_1 }
					NOT = { has_realm_law = gpt_formality_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_formality_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_formality_law_2 }
					NOT = { has_realm_law = gpt_formality_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_formality_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_formality_law_3 }
					NOT = { has_realm_law = gpt_formality_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_formality_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_formality_law_4 }
					NOT = { has_realm_law = gpt_formality_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_formality_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_for_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_formality_law_0 }
					NOT = { has_realm_law = gpt_formality_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_formality_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_formality_law_vassal_0_t
					desc = gpt_formality_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_formality_law_1 }
					NOT = { has_realm_law = gpt_formality_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_formality_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_formality_law_vassal_1_t
					desc = gpt_formality_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_formality_law_2 }
					NOT = { has_realm_law = gpt_formality_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_formality_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_formality_law_vassal_2_t
					desc = gpt_formality_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_formality_law_3 }
					NOT = { has_realm_law = gpt_formality_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_formality_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_formality_law_vassal_3_t
					desc = gpt_formality_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_formality_law_4 }
					NOT = { has_realm_law = gpt_formality_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_formality_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_formality_law_vassal_4_t
					desc = gpt_formality_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_com_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_command_law_0 }
					NOT = { has_realm_law = gpt_command_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_command_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_command_law_1 }
					NOT = { has_realm_law = gpt_command_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_command_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_command_law_2 }
					NOT = { has_realm_law = gpt_command_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_command_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_command_law_3 }
					NOT = { has_realm_law = gpt_command_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_command_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_command_law_4 }
					NOT = { has_realm_law = gpt_command_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_command_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_com_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_command_law_0 }
					NOT = { has_realm_law = gpt_command_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_command_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_command_law_vassal_0_t
					desc = gpt_command_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_command_law_1 }
					NOT = { has_realm_law = gpt_command_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_command_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_command_law_vassal_1_t
					desc = gpt_command_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_command_law_2 }
					NOT = { has_realm_law = gpt_command_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_command_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_command_law_vassal_2_t
					desc = gpt_command_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_command_law_3 }
					NOT = { has_realm_law = gpt_command_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_command_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_command_law_vassal_3_t
					desc = gpt_command_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_command_law_4 }
					NOT = { has_realm_law = gpt_command_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_command_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_command_law_vassal_4_t
					desc = gpt_command_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_fes_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_festivity_law_0 }
					NOT = { has_realm_law = gpt_festivity_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_festivity_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_festivity_law_1 }
					NOT = { has_realm_law = gpt_festivity_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_festivity_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_festivity_law_2 }
					NOT = { has_realm_law = gpt_festivity_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_festivity_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_festivity_law_3 }
					NOT = { has_realm_law = gpt_festivity_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_festivity_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_festivity_law_4 }
					NOT = { has_realm_law = gpt_festivity_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_festivity_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_fes_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_festivity_law_0 }
					NOT = { has_realm_law = gpt_festivity_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_festivity_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_festivity_law_vassal_0_t
					desc = gpt_festivity_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_festivity_law_1 }
					NOT = { has_realm_law = gpt_festivity_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_festivity_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_festivity_law_vassal_1_t
					desc = gpt_festivity_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_festivity_law_2 }
					NOT = { has_realm_law = gpt_festivity_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_festivity_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_festivity_law_vassal_2_t
					desc = gpt_festivity_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_festivity_law_3 }
					NOT = { has_realm_law = gpt_festivity_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_festivity_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_festivity_law_vassal_3_t
					desc = gpt_festivity_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_festivity_law_4 }
					NOT = { has_realm_law = gpt_festivity_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_festivity_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_festivity_law_vassal_4_t
					desc = gpt_festivity_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}

gptl_on_action_wom_start_vassal = {
	trigger = {
	}
	effect = {
		every_ruler = {
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_women_law_0 }
					NOT = { has_realm_law = gpt_women_law_vassal_0 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_women_law_vassal_0
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_women_law_1 }
					NOT = { has_realm_law = gpt_women_law_vassal_1 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_women_law_vassal_1
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_women_law_2 }
					NOT = { has_realm_law = gpt_women_law_vassal_2 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_women_law_vassal_2
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_women_law_3 }
					NOT = { has_realm_law = gpt_women_law_vassal_3 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_women_law_vassal_3
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_women_law_4 }
					NOT = { has_realm_law = gpt_women_law_vassal_4 }
					gptl_basic_vassal_trigger = yes
				}
				add_realm_law_skip_effects = gpt_women_law_vassal_4
			}
			else = {}
		}
	}	
}
gptl_on_action_wom_vassal = {
	trigger = {
		gptl_basic_vassal_trigger = yes
	}
	effect = {
		if = {
			limit = {
			}
			if = {
				limit = {
					top_liege = { has_realm_law = gpt_women_law_0 }
					NOT = { has_realm_law = gpt_women_law_vassal_0 }
				}
				add_realm_law_skip_effects = gpt_women_law_vassal_0
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_women_law_vassal_0_t
					desc = gpt_women_law_vassal_0_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_women_law_1 }
					NOT = { has_realm_law = gpt_women_law_vassal_1 }
				}
				add_realm_law_skip_effects = gpt_women_law_vassal_1
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_women_law_vassal_1_t
					desc = gpt_women_law_vassal_1_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_women_law_2 }
					NOT = { has_realm_law = gpt_women_law_vassal_2 }
				}
				add_realm_law_skip_effects = gpt_women_law_vassal_2
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_women_law_vassal_2_t
					desc = gpt_women_law_vassal_2_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_women_law_3 }
					NOT = { has_realm_law = gpt_women_law_vassal_3 }
				}
				add_realm_law_skip_effects = gpt_women_law_vassal_3
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_women_law_vassal_3_t
					desc = gpt_women_law_vassal_3_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else_if = {
				limit = {
					top_liege = { has_realm_law = gpt_women_law_4 }
					NOT = { has_realm_law = gpt_women_law_vassal_4 }
				}
				add_realm_law_skip_effects = gpt_women_law_vassal_4
				send_interface_message = {
					type = gptl_report_neutral_with_text
					title = gpt_women_law_vassal_4_t
					desc = gpt_women_law_vassal_4_d
					left_icon = root.top_liege
					show_as_tooltip = { if = { limit = { top_liege = { any_powerful_vassal = { this = root } } } custom_tooltip = { text = gptl_powerful_vassal_change_tip }  } else = { custom_tooltip = { text = gptl_vassal_change_tip } } }
				}
			}
			else = {}
		}
	}	
}











gptl_on_action_events = {
	trigger = {
		is_ai = no
		is_adult = yes
		NOT = { has_character_flag = gptl_event_cooldown }
		OR = {
			gptl_basic_liege_trigger = yes
			gptl_basic_vassal_trigger = yes
		}
		is_travelling = no
		is_imprisoned = no
		days_as_ruler >= 500
	}
	effect = {
		if = {
			limit = {
				ai_zeal >= @thresholdp
				OR = {
					has_realm_law = gpt_religious_law_3
					has_realm_law = gpt_religious_law_vassal_3
					has_realm_law = gpt_religious_law_4
					has_realm_law = gpt_religious_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.01
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_zeal <= @thresholdn
				OR = {
					has_realm_law = gpt_religious_law_1
					has_realm_law = gpt_religious_law_vassal_1
					has_realm_law = gpt_religious_law_0
					has_realm_law = gpt_religious_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.02
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_greed >= @thresholdp
				OR = {
					has_realm_law = gpt_taxation_law_1
					has_realm_law = gpt_taxation_law_vassal_1
					has_realm_law = gpt_taxation_law_0
					has_realm_law = gpt_taxation_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.03
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_greed <= @thresholdn
				OR = {
					has_realm_law = gpt_taxation_law_3
					has_realm_law = gpt_taxation_law_vassal_3
					has_realm_law = gpt_taxation_law_4
					has_realm_law = gpt_taxation_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.04
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_sociability >= @thresholdp
				OR = {
					has_realm_law = gpt_diplomacy_law_1
					has_realm_law = gpt_diplomacy_law_vassal_1
					has_realm_law = gpt_diplomacy_law_0
					has_realm_law = gpt_diplomacy_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.05
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_sociability <= @thresholdn
				OR = {
					has_realm_law = gpt_diplomacy_law_3
					has_realm_law = gpt_diplomacy_law_vassal_3
					has_realm_law = gpt_diplomacy_law_4
					has_realm_law = gpt_diplomacy_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.06
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_compassion >= @thresholdp
				OR = {
					has_realm_law = gpt_slavery_law_3
					has_realm_law = gpt_slavery_law_vassal_3
					has_realm_law = gpt_slavery_law_4
					has_realm_law = gpt_slavery_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.07
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_compassion <= @thresholdn
				OR = {
					has_realm_law = gpt_slavery_law_1
					has_realm_law = gpt_slavery_law_vassal_1
					has_realm_law = gpt_slavery_law_0
					has_realm_law = gpt_slavery_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.08
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_vengefulness >= @thresholdp
				OR = {
					has_realm_law = gpt_punishment_law_1
					has_realm_law = gpt_punishment_law_vassal_1
					has_realm_law = gpt_punishment_law_0
					has_realm_law = gpt_punishment_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.09
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_vengefulness <= @thresholdn
				OR = {
					has_realm_law = gpt_punishment_law_3
					has_realm_law = gpt_punishment_law_vassal_3
					has_realm_law = gpt_punishment_law_4
					has_realm_law = gpt_punishment_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.10
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_honor >= @thresholdp
				OR = {
					has_realm_law = gpt_officers_law_3
					has_realm_law = gpt_officers_law_vassal_3
					has_realm_law = gpt_officers_law_4
					has_realm_law = gpt_officers_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.11
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_honor <= @thresholdn
				OR = {
					has_realm_law = gpt_officers_law_1
					has_realm_law = gpt_officers_law_vassal_1
					has_realm_law = gpt_officers_law_0
					has_realm_law = gpt_officers_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.12
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = paranoid
				OR = {
					has_realm_law = gpt_vigilance_law_1
					has_realm_law = gpt_vigilance_law_vassal_1
					has_realm_law = gpt_vigilance_law_0
					has_realm_law = gpt_vigilance_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.13
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = trusting
				OR = {
					has_realm_law = gpt_vigilance_law_3
					has_realm_law = gpt_vigilance_law_vassal_3
					has_realm_law = gpt_vigilance_law_4
					has_realm_law = gpt_vigilance_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.14
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_boldness >= @thresholdp
				OR = {
					has_realm_law = gpt_security_law_3
					has_realm_law = gpt_security_law_vassal_3
					has_realm_law = gpt_security_law_4
					has_realm_law = gpt_security_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.15
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_boldness <= @thresholdn
				OR = {
					has_realm_law = gpt_security_law_1
					has_realm_law = gpt_security_law_vassal_1
					has_realm_law = gpt_security_law_0
					has_realm_law = gpt_security_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.16
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = chaste
				OR = {
					has_realm_law = gpt_moral_law_1
					has_realm_law = gpt_moral_law_vassal_1
					has_realm_law = gpt_moral_law_0
					has_realm_law = gpt_moral_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.17
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = lustful
				OR = {
					has_realm_law = gpt_moral_law_3
					has_realm_law = gpt_moral_law_vassal_3
					has_realm_law = gpt_moral_law_4
					has_realm_law = gpt_moral_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.18
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_zeal >= @thresholdp
				OR = {
					has_realm_law = gpt_religious_law_1
					has_realm_law = gpt_religious_law_vassal_1
					has_realm_law = gpt_religious_law_0
					has_realm_law = gpt_religious_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.01
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_zeal <= @thresholdn
				OR = {
					has_realm_law = gpt_religious_law_3
					has_realm_law = gpt_religious_law_vassal_3
					has_realm_law = gpt_religious_law_4
					has_realm_law = gpt_religious_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.02
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_greed >= @thresholdp
				OR = {
					has_realm_law = gpt_taxation_law_3
					has_realm_law = gpt_taxation_law_vassal_3
					has_realm_law = gpt_taxation_law_4
					has_realm_law = gpt_taxation_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.03
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_greed <= @thresholdn
				OR = {
					has_realm_law = gpt_taxation_law_1
					has_realm_law = gpt_taxation_law_vassal_1
					has_realm_law = gpt_taxation_law_0
					has_realm_law = gpt_taxation_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.04
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_sociability >= @thresholdp
				OR = {
					has_realm_law = gpt_diplomacy_law_3
					has_realm_law = gpt_diplomacy_law_vassal_3
					has_realm_law = gpt_diplomacy_law_4
					has_realm_law = gpt_diplomacy_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.05
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_sociability <= @thresholdn
				OR = {
					has_realm_law = gpt_diplomacy_law_1
					has_realm_law = gpt_diplomacy_law_vassal_1
					has_realm_law = gpt_diplomacy_law_0
					has_realm_law = gpt_diplomacy_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.06
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_compassion >= @thresholdp
				OR = {
					has_realm_law = gpt_slavery_law_1
					has_realm_law = gpt_slavery_law_vassal_1
					has_realm_law = gpt_slavery_law_0
					has_realm_law = gpt_slavery_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.07
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = callous
				OR = {
					has_realm_law = gpt_slavery_law_3
					has_realm_law = gpt_slavery_law_vassal_3
					has_realm_law = gpt_slavery_law_4
					has_realm_law = gpt_slavery_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.08
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_vengefulness >= @thresholdp
				OR = {
					has_realm_law = gpt_punishment_law_3
					has_realm_law = gpt_punishment_law_vassal_3
					has_realm_law = gpt_punishment_law_4
					has_realm_law = gpt_punishment_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.09
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_vengefulness <= @thresholdn
				OR = {
					has_realm_law = gpt_punishment_law_1
					has_realm_law = gpt_punishment_law_vassal_1
					has_realm_law = gpt_punishment_law_0
					has_realm_law = gpt_punishment_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.10
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_honor >= @thresholdp
				OR = {
					has_realm_law = gpt_officers_law_1
					has_realm_law = gpt_officers_law_vassal_1
					has_realm_law = gpt_officers_law_0
					has_realm_law = gpt_officers_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.11
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_honor <= @thresholdn
				OR = {
					has_realm_law = gpt_officers_law_3
					has_realm_law = gpt_officers_law_vassal_3
					has_realm_law = gpt_officers_law_4
					has_realm_law = gpt_officers_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.12
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = paranoid
				OR = {
					has_realm_law = gpt_vigilance_law_3
					has_realm_law = gpt_vigilance_law_vassal_3
					has_realm_law = gpt_vigilance_law_4
					has_realm_law = gpt_vigilance_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.13
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = trusting
				OR = {
					has_realm_law = gpt_vigilance_law_1
					has_realm_law = gpt_vigilance_law_vassal_1
					has_realm_law = gpt_vigilance_law_0
					has_realm_law = gpt_vigilance_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.14
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_boldness >= @thresholdp
				OR = {
					has_realm_law = gpt_security_law_1
					has_realm_law = gpt_security_law_vassal_1
					has_realm_law = gpt_security_law_0
					has_realm_law = gpt_security_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.15
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				ai_boldness <= @thresholdn
				OR = {
					has_realm_law = gpt_security_law_3
					has_realm_law = gpt_security_law_vassal_3
					has_realm_law = gpt_security_law_4
					has_realm_law = gpt_security_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.16
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = chaste
				OR = {
					has_realm_law = gpt_moral_law_3
					has_realm_law = gpt_moral_law_vassal_3
					has_realm_law = gpt_moral_law_4
					has_realm_law = gpt_moral_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.17
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = lustful
				OR = {
					has_realm_law = gpt_moral_law_1
					has_realm_law = gpt_moral_law_vassal_1
					has_realm_law = gpt_moral_law_0
					has_realm_law = gpt_moral_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.18
				days = { 1 100 }
			}
		}









		if = {
			limit = {
				has_trait = eccentric
				OR = {
					has_realm_law = gpt_women_law_1
					has_realm_law = gpt_women_law_vassal_1
					has_realm_law = gpt_women_law_0
					has_realm_law = gpt_women_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.19
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = eccentric
				OR = {
					has_realm_law = gpt_women_law_3
					has_realm_law = gpt_women_law_vassal_3
					has_realm_law = gpt_women_law_4
					has_realm_law = gpt_women_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.19
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = sadistic
				OR = {
					has_realm_law = gpt_women_law_3
					has_realm_law = gpt_women_law_vassal_3
					has_realm_law = gpt_women_law_4
					has_realm_law = gpt_women_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.20
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = sadistic
				OR = {
					has_realm_law = gpt_women_law_1
					has_realm_law = gpt_women_law_vassal_1
					has_realm_law = gpt_women_law_0
					has_realm_law = gpt_women_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.20
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = fickle
				OR = {
					has_realm_law = gpt_command_law_3
					has_realm_law = gpt_command_law_vassal_3
					has_realm_law = gpt_command_law_4
					has_realm_law = gpt_command_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.21
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = fickle
				OR = {
					has_realm_law = gpt_command_law_1
					has_realm_law = gpt_command_law_vassal_1
					has_realm_law = gpt_command_law_0
					has_realm_law = gpt_command_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.21
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = stubborn
				OR = {
					has_realm_law = gpt_command_law_1
					has_realm_law = gpt_command_law_vassal_1
					has_realm_law = gpt_command_law_0
					has_realm_law = gpt_command_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.22
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = stubborn
				OR = {
					has_realm_law = gpt_command_law_3
					has_realm_law = gpt_command_law_vassal_3
					has_realm_law = gpt_command_law_4
					has_realm_law = gpt_command_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.22
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = temperate
				OR = {
					has_realm_law = gpt_festivity_law_3
					has_realm_law = gpt_festivity_law_vassal_3
					has_realm_law = gpt_festivity_law_4
					has_realm_law = gpt_festivity_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.24
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = temperate
				OR = {
					has_realm_law = gpt_festivity_law_1
					has_realm_law = gpt_festivity_law_vassal_1
					has_realm_law = gpt_festivity_law_0
					has_realm_law = gpt_festivity_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.24
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = gluttonous
				OR = {
					has_realm_law = gpt_festivity_law_1
					has_realm_law = gpt_festivity_law_vassal_1
					has_realm_law = gpt_festivity_law_0
					has_realm_law = gpt_festivity_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.23
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = gluttonous
				OR = {
					has_realm_law = gpt_festivity_law_3
					has_realm_law = gpt_festivity_law_vassal_3
					has_realm_law = gpt_festivity_law_4
					has_realm_law = gpt_festivity_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.23
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = honest
				OR = {
					has_realm_law = gpt_formality_law_3
					has_realm_law = gpt_formality_law_vassal_3
					has_realm_law = gpt_formality_law_4
					has_realm_law = gpt_formality_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.26
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = honest
				OR = {
					has_realm_law = gpt_formality_law_1
					has_realm_law = gpt_formality_law_vassal_1
					has_realm_law = gpt_formality_law_0
					has_realm_law = gpt_formality_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.26
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = deceitful
				OR = {
					has_realm_law = gpt_formality_law_1
					has_realm_law = gpt_formality_law_vassal_1
					has_realm_law = gpt_formality_law_0
					has_realm_law = gpt_formality_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.25
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = deceitful
				OR = {
					has_realm_law = gpt_formality_law_3
					has_realm_law = gpt_formality_law_vassal_3
					has_realm_law = gpt_formality_law_4
					has_realm_law = gpt_formality_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.25
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = humble
				OR = {
					has_realm_law = gpt_urban_law_3
					has_realm_law = gpt_urban_law_vassal_3
					has_realm_law = gpt_urban_law_4
					has_realm_law = gpt_urban_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_objection_events.28
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = humble
				OR = {
					has_realm_law = gpt_urban_law_1
					has_realm_law = gpt_urban_law_vassal_1
					has_realm_law = gpt_urban_law_0
					has_realm_law = gpt_urban_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.28
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = arrogant
				OR = {
					has_realm_law = gpt_urban_law_1
					has_realm_law = gpt_urban_law_vassal_1
					has_realm_law = gpt_urban_law_0
					has_realm_law = gpt_urban_law_vassal_0
				}
			}
			trigger_event = {
				id = gptl_objection_events.27
				days = { 1 100 }
			}
		}
		if = {
			limit = {
				has_trait = arrogant
				OR = {
					has_realm_law = gpt_urban_law_3
					has_realm_law = gpt_urban_law_vassal_3
					has_realm_law = gpt_urban_law_4
					has_realm_law = gpt_urban_law_vassal_4
				}
			}
			trigger_event = {
				id = gptl_satisfaction_events.27
				days = { 1 100 }
			}
		}
	}
}