namespace = grant_kingdom
character_event = {
	id = grant_kingdom.0
	desc = EVTDESCgrant_kingdom.0
	picture = GFX_evt_council
	is_triggered_only = yes

	option = {
		name = EVTOPTAgrant_kingdom.0
		wealth = -200
		FROM = {
			character_event = { id = grant_kingdom.1 }
		}
	}
	option = {
		name = EVTOPTBgrant_kingdom.0
	}
}

character_event = {
	id = grant_kingdom.1
	desc = EVTDESCgrant_kingdom.1
	picture = GFX_evt_council
	is_triggered_only = yes

	immediate = {
		primary_title = {
			dejure_liege_title = {
				holder_scope = {
					IF = {
						limit = {
							NOR = {
								character = ROOT
								character = FROM
							}
						}
						opinion = { modifier = opinion_furious who = FROM years = 10 }
					}
				}
			}
			create_title = {
				tier = KING
				landless = no
				temporary = no
				culture = ROOT
				holder = ROOT
				custom_created = yes
				base_title = THIS
				copy_title_laws = yes
			}
		}
		set_defacto_liege = FROM
		FROM = {
			primary_title = {
				ROOT = {
					primary_title = {
						de_jure_liege = PREV
					}
				}
			}
		}
	}

	option = {
		name = EVTOPTAgrant_kingdom.1
		prestige = 150
		opinion = { modifier = opinion_very_grateful who = FROM years = 10 }
	}
}