﻿
namespace = 0s_cuman_georgian_event

0s_cuman_georgian_event.0001 = {
	type = character_event
	title = 0s_cuman_georgian_event.0001.t
	desc = 0s_cuman_georgian_event.0001.desc
	picture = "gfx/interface/illustrations/event_scenes/steppe.dds"
	theme = martial

	override_background = { reference = wilderness_steppe }

	left_portrait = {
		character = root
		animation = scepter
	}

	immediate = {
		play_music_cue = "mx_cue_epic_sacral_moment"
		save_scope_as = georgian_reformer
		
		# Spawn troops similar to the Greatest of Khans implementation [cite: 144]
		# Using a condensed effect for balance
		spawn_cuman_service_troops_effect = yes 
	}

	# Main Option: The Service Begins
	option = {
		name = 0s_cuman_georgian_event.0001.a

		if = {
			limit = {
				prestige_level < 5
			}
			add_prestige_level = 1
		}

		add_to_temporary_list = received_notification
		
		every_vassal_or_below = {
			trigger_event = 0s_cuman_georgian_event.0002
			add_to_temporary_list = received_notification
		}

		every_player = {
			limit = {
				this != root
				is_within_diplo_range = { CHARACTER = root }
			}
			trigger_event = 0s_cuman_georgian_event.0003
		}
	}
}

0s_cuman_georgian_event.0002 = {
	type = character_event
	title = 0s_cuman_georgian_event.0002.t
	desc = 0s_cuman_georgian_event.0002.desc
	theme = mental_break

	override_background = { reference = throne_room }

	left_portrait = {
		character = scope:georgian_reformer
		animation = scepter
	}

	right_portrait = {
		character = root
		animation = worry
	}

	option = {
		name = 0s_cuman_georgian_event.0002.a
		scope:georgian_reformer = {
			add_opinion = {
				target = root
				modifier = cuman_integration_opinion
				opinion = 15
			}
		}
	}
}

0s_cuman_georgian_event.0003 = {
	type = character_event
	title = 0s_cuman_georgian_event.0003.t
	desc = 0s_cuman_georgian_event.0003.desc
	theme = martial

	override_background = { reference = wilderness_steppe }

	left_portrait = scope:georgian_reformer

	option = {
		name = 0s_cuman_georgian_event.0003.a
		custom_tooltip = 0s_cuman_georgian_neighbors_alarm_tt
	}
}