namespace = lalad_usurp_events
character_event = {
	id = lalad_usurp_events.0
	is_triggered_only = yes
	hide_window = yes

	trigger = {
		FROMFROM = {
			ai = no
			prisoner = no
			NOT = {
				 demesne_size = 1
			}
		}
		FROM = {
			is_landless_type_title = no
		}
	}

	immediate = {
		create_title = { 
			tier = DUKE
			landless = yes
			name = "COLLINS_SEAT"
			holder = FROMFROM
			culture = FROMFROM
		}
		FROMFROM = {
			character_event = { id = lalad_usurp_events.1 }
		}
	}
}
character_event = {
	id = lalad_usurp_events.1
	desc = EVTDESClalad_usurp_events.1
	picture = GFX_evt_council
	is_triggered_only = yes

	immediate = {
		primary_title = { set_title_flag = landless_adventurer }
		set_defacto_liege = ROOT
		IF = {
			limit = {
				FROMFROM = { region = world_westeros }
			}
			spawn_unit = {
				owner = ROOT
				province = 226
				home = 226
				troops = {
					light_cavalry = { 50 50 }
				}
				earmark = lalad_troops
				attrition = 0.0
				maintenance_multiplier = 0.0
			}
		}
		IF = {
			limit = {
				FROMFROM = { region = world_essos }
			}
			spawn_unit = {
				owner = ROOT
				province = 419
				home = 419
				troops = {
					light_cavalry = { 50 50 }
				}
				earmark = lalad_troops
				attrition = 0.0
				maintenance_multiplier = 0.0
			}
		}
		IF = {
			limit = {
				FROMFROM = {
					NOR = {
						region = world_westeros
						region = world_essos
					}
				}
			}
			spawn_unit = {
				owner = ROOT
				province = 496
				home = 496
				troops = {
					light_cavalry = { 50 50 }
				}
				earmark = lalad_troops
				attrition = 0.0
				maintenance_multiplier = 0.0
			}
		}
		any_spouse = {
			IF = {
				limit = {
					prisoner = no
					is_landed = no
					has_job_title = no
				}
				move_character = ROOT
			}
		}
		any_child = {
			IF = {
				limit = {
					prisoner = no
					is_landed = no
					has_job_title = no
					OR = {
						is_married = no
						any_spouse = { is_landed = no }
					}
				}
				move_character = ROOT
			}
			any_spouse = {
				IF = {
					limit = {
						prisoner = no
						is_landed = no
						has_job_title = no
						spouse = { is_landed = no }
					}
					move_character = ROOT
				}
			}
		}
	}

	option = {
		name = EVTOPTAlalad_usurp_events.1
	}
}