﻿namespace = sc_council_player_events

# ============================================================
# EVENT 0001: COUNCIL OPENING (Player)
# ============================================================
sc_council_player_events.0001 = {
	type = activity_event
	title = sc_council_player_events.0001.t
	desc = sc_council_player_events.0001.desc
	theme = diplomacy
	window = big_event_window
	override_background = ep3_relaxing_room

	left_portrait = {
		character = scope:current_ruler
		animation = disapproval
		camera = camera_body_right
	}

	right_portrait = {
		character = scope:claimant
		animation = dismissal
		camera = camera_body_left
	}

	option = {
		name = sc_council_player_events.0001.a
	}
}

# ============================================================
# EVENT 0002: Whispers in the Corridor (Player)
# ============================================================
sc_council_player_events.0002 = {
	type = activity_event
	title = sc_council_player_events.0002.t
	desc = sc_council_player_events.0002.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	left_portrait = {
		character = scope:actor
		animation = scheme
	}

	right_portrait = {
		character = root
		animation = interested
	}

	option = {
		name = sc_council_player_events.0002.a
		add_opinion = { target = scope:actor modifier = friendly_opinion }
		scope:actor = { add_opinion = { target = root modifier = friendly_opinion } }
	}

	option = {
		name = sc_council_player_events.0002.b
		add_prestige = minor_prestige_value
	}
}

# ============================================================
# EVENT 0003: The Spilled Goblet (Player)
# ============================================================
sc_council_player_events.0003 = {
	type = activity_event
	title = sc_council_player_events.0003.t
	desc = sc_council_player_events.0003.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	left_portrait = {
		character = scope:actor
		animation = toast_goblet
	}

	right_portrait = {
		character = root
		animation = shock
	}

	option = {
		name = sc_council_player_events.0003.a
		add_stress = minor_stress_loss
		scope:actor = { add_opinion = { target = root modifier = forgiving_opinion } }
	}

	option = {
		name = sc_council_player_events.0003.b
		add_prestige = minor_prestige_value
		add_opinion = { target = scope:actor modifier = impressed_opinion }
		scope:actor = { add_opinion = { target = root modifier = impressed_opinion } }
	}
}

# ============================================================
# EVENT 0004: The Historical Precedent (Player)
# ============================================================
sc_council_player_events.0004 = {
	type = activity_event
	title = sc_council_player_events.0004.t
	desc = sc_council_player_events.0004.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	left_portrait = {
		character = scope:actor
		animation = storyteller
	}

	right_portrait = {
		character = root
		animation = boredom
	}

	option = {
		name = sc_council_player_events.0004.a
		add_learning_lifestyle_xp = minor_lifestyle_xp
		scope:actor = { add_opinion = { target = root modifier = impressed_opinion } }
	}

	option = {
		name = sc_council_player_events.0004.b
		scope:actor = { add_opinion = { target = root modifier = annoyed_opinion } }
	}
}

# ============================================================
# EVENT 0005: The Weight of Coin (Player)
# ============================================================
sc_council_player_events.0005 = {
	type = activity_event
	title = sc_council_player_events.0005.t
	desc = sc_council_player_events.0005.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	left_portrait = {
		character = scope:actor
		animation = scheme
	}

	right_portrait = {
		character = root
		animation = paranoia
	}

	option = {
		name = sc_council_player_events.0005.a
		scope:actor = {
			remove_short_term_gold = minor_gold_value
			add_gold = minor_gold_value
			add_opinion = { target = root modifier = grateful_opinion }
		}
	}

	option = {
		name = sc_council_player_events.0005.b
		add_opinion = { target = scope:actor modifier = furious_opinion }
		scope:actor = { add_opinion = { target = root modifier = furious_opinion } }
	}
}

# ============================================================
# EVENT 0006: Shadows of War (Player)
# ============================================================
sc_council_player_events.0006 = {
	type = activity_event
	title = sc_council_player_events.0006.t
	desc = sc_council_player_events.0006.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	left_portrait = {
		character = scope:actor
		animation = sadness
	}

	right_portrait = {
		character = root
		animation = idle
	}

	option = {
		name = sc_council_player_events.0006.a
		add_stress = minor_stress_loss
		scope:actor = { add_stress = minor_stress_loss }
		add_opinion = { target = scope:actor modifier = trusted_opinion }
		scope:actor = { add_opinion = { target = root modifier = trusted_opinion } }
	}

	option = {
		name = sc_council_player_events.0006.b
		add_stress = minor_stress_gain
	}
}

# ============================================================
# EVENT 0007: Unexpected Alliances (Player)
# ============================================================
sc_council_player_events.0007 = {
	type = activity_event
	title = sc_council_player_events.0007.t
	desc = sc_council_player_events.0007.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	left_portrait = {
		character = scope:actor
		animation = personality_honorable
	}

	right_portrait = {
		character = root
		animation = interested
	}

	option = {
		name = sc_council_player_events.0007.a
		add_opinion = { target = scope:actor modifier = friendly_opinion }
		scope:actor = { add_opinion = { target = root modifier = friendly_opinion } }
	}

	option = {
		name = sc_council_player_events.0007.b
		add_dread = minor_dread_gain
	}
}

# ============================================================
# EVENT 0008: A Shared Meal (Player)
# ============================================================
sc_council_player_events.0008 = {
	type = activity_event
	title = sc_council_player_events.0008.t
	desc = sc_council_player_events.0008.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	left_portrait = {
		character = scope:actor
		animation = throne_room_conversation_1
	}

	right_portrait = {
		character = root
		animation = throne_room_conversation_2
	}

	option = {
		name = sc_council_player_events.0008.a
		add_stress = minor_stress_loss
		add_opinion = { target = scope:actor modifier = friendly_opinion }
		scope:actor = { add_opinion = { target = root modifier = friendly_opinion } }
	}

	option = {
		name = sc_council_player_events.0008.b
		add_stress = minor_stress_gain
	}
}

# ============================================================
# EVENT 0009: A Tense Encounter (Player)
# ============================================================
sc_council_player_events.0009 = {
	type = activity_event
	title = sc_council_player_events.0009.t
	desc = sc_council_player_events.0009.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	left_portrait = {
		character = scope:actor
		animation = anger
	}

	right_portrait = {
		character = root
		animation = personality_bold
	}

	option = {
		name = sc_council_player_events.0009.a
		add_dread = minor_dread_gain
		add_opinion = { target = scope:actor modifier = intimidated_opinion }
		scope:actor = { add_opinion = { target = root modifier = intimidated_opinion } }
	}

	option = {
		name = sc_council_player_events.0009.b
		add_opinion = { target = scope:actor modifier = furious_opinion }
		scope:actor = { add_opinion = { target = root modifier = furious_opinion } }
	}
}

# ============================================================
# EVENT 0010: A Moment of Reflection (Player)
# ============================================================
sc_council_player_events.0010 = {
	type = activity_event
	title = sc_council_player_events.0010.t
	desc = sc_council_player_events.0010.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	left_portrait = {
		character = root
		animation = thinking
	}

	option = {
		name = sc_council_player_events.0010.a
		add_stress = minor_stress_loss
		add_piety = 50
	}

	option = {
		name = sc_council_player_events.0010.b
		add_prestige = minor_prestige_value
	}
}

# ============================================================
# EVENT 0011: A Friendly Approach (Player)
# ============================================================
sc_council_player_events.0011 = {
	type = activity_event
	title = sc_council_player_event.0011.t
	desc = sc_council_player_event.0011.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	trigger = {
		is_ai = no
		is_ruler = yes
		is_vassal_of = involved_activity.activity_host
		NOT = { this = involved_activity.special_guest:the_pretender }
	}

	immediate = {
		involved_activity = {
			random_attending_character = {
				limit = {
					OR = {
						this = involved_activity.activity_host
						this = involved_activity.special_guest:the_pretender
					}
				}
				save_scope_as = council_actor
			}
		}
	}

	left_portrait = {
		character = scope:council_actor
		animation = scheme
	}

	right_portrait = {
		character = root
		animation = interested
	}

	option = {
		name = sc_council_player_event.0011.a
		add_opinion = { target = scope:council_actor modifier = friendly_opinion }
		scope:council_actor = { add_opinion = { target = root modifier = friendly_opinion } }
	}

	option = {
		name = sc_council_player_event.0011.b
		add_opinion = { target = scope:council_actor modifier = suspicious_opinion }
		scope:council_actor = { add_prestige = minor_prestige_value }
	}
}

# ============================================================
# EVENT 0012: An Intimidating Display (Player)
# ============================================================
sc_council_player_events.0012 = {
	type = activity_event
	title = sc_council_player_event.0012.t
	desc = sc_council_player_event.0012.desc
	theme = intrigue
	window = event_window
	override_background = ep3_relaxing_room

	trigger = {
		is_ai = no
		is_ruler = yes
		is_vassal_of = involved_activity.activity_host
		NOT = { this = involved_activity.special_guest:the_pretender }
	}

	immediate = {
		involved_activity = {
			random_attending_character = {
				limit = {
					OR = {
						this = involved_activity.activity_host
						this = involved_activity.special_guest:the_pretender
					}
				}
				save_scope_as = council_actor
			}
		}
	}

	left_portrait = {
		character = scope:council_actor
		animation = anger
	}

	right_portrait = {
		character = root
		animation = fear
	}

	option = {
		name = sc_council_player_event.0012.a
		add_opinion = { target = scope:council_actor modifier = intimidated_opinion }
		scope:council_actor = { add_dread = minor_dread_gain }
	}

	option = {
		name = sc_council_player_event.0012.b
		add_opinion = { target = scope:council_actor modifier = furious_opinion }
		scope:council_actor = { add_opinion = { target = root modifier = furious_opinion } }
	}
}

# ============================================================
# EVENT 0013: A Generous Gift (Player)
# ============================================================
sc_council_player_events.0013 = {
	type = activity_event
	title = sc_council_player_event.0013.t
	desc = sc_council_player_event.0013.desc
	theme = stewardship
	window = event_window
	override_background = ep3_relaxing_room

	trigger = {
		is_ai = no
		is_ruler = yes
		is_vassal_of = involved_activity.activity_host
		NOT = { this = involved_activity.special_guest:the_pretender }
	}

	immediate = {
		involved_activity = {
			random_attending_character = {
				limit = {
					OR = {
						this = involved_activity.activity_host
						this = involved_activity.special_guest:the_pretender
					}
				}
				save_scope_as = council_actor
			}
		}
	}

	left_portrait = {
		character = scope:council_actor
		animation = happiness
	}

	right_portrait = {
		character = root
		animation = scheme
	}

	option = {
		name = sc_council_player_event.0013.a
		add_gold = minor_gold_value
		add_opinion = { target = scope:council_actor modifier = grateful_opinion }
		scope:council_actor = { remove_short_term_gold = minor_gold_value }
	}

	option = {
		name = sc_council_player_event.0013.b
		add_opinion = { target = scope:council_actor modifier = insulted_opinion }
		scope:council_actor = { add_prestige = minor_prestige_value }
	}
}

# ============================================================
# EVENT 0014: A Scholarly Debate (Player)
# ============================================================
sc_council_player_events.0014 = {
	type = activity_event
	title = sc_council_player_event.0014.t
	desc = sc_council_player_event.0014.desc
	theme = learning
	window = event_window
	override_background = ep3_relaxing_room

	trigger = {
		is_ai = no
		is_ruler = yes
		is_vassal_of = involved_activity.activity_host
		NOT = { this = involved_activity.special_guest:the_pretender }
	}

	immediate = {
		involved_activity = {
			random_attending_character = {
				limit = {
					OR = {
						this = involved_activity.activity_host
						this = involved_activity.special_guest:the_pretender
					}
				}
				save_scope_as = council_actor
			}
		}
	}

	left_portrait = {
		character = scope:council_actor
		animation = storyteller
	}

	right_portrait = {
		character = root
		animation = thinking
	}

	option = {
		name = sc_council_player_event.0014.a
		add_opinion = { target = scope:council_actor modifier = impressed_opinion }
		scope:council_actor = { add_learning_lifestyle_xp = minor_lifestyle_xp }
	}

	option = {
		name = sc_council_player_event.0014.b
		add_opinion = { target = scope:council_actor modifier = annoyed_opinion }
		scope:council_actor = { add_stress = minor_stress_loss }
	}
}

# ============================================================
# EVENT 0015: A Shared Toast (Player)
# ============================================================
sc_council_player_events.0015 = {
	type = activity_event
	title = sc_council_player_event.0015.t
	desc = sc_council_player_event.0015.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	trigger = {
		is_ai = no
		is_ruler = yes
		is_vassal_of = involved_activity.activity_host
		NOT = { this = involved_activity.special_guest:the_pretender }
	}

	immediate = {
		involved_activity = {
			random_attending_character = {
				limit = {
					OR = {
						this = involved_activity.activity_host
						this = involved_activity.special_guest:the_pretender
					}
				}
				save_scope_as = council_actor
			}
		}
	}

	left_portrait = {
		character = scope:council_actor
		animation = toast_goblet
	}

	right_portrait = {
		character = root
		animation = toast_goblet
	}

	option = {
		name = sc_council_player_event.0015.a
		add_stress = minor_stress_loss
		add_opinion = { target = scope:council_actor modifier = friendly_opinion }
		scope:council_actor = { add_stress = minor_stress_loss }
	}

	option = {
		name = sc_council_player_event.0015.b
		add_opinion = { target = scope:council_actor modifier = impressed_opinion }
		scope:council_actor = { add_prestige = minor_prestige_value }
	}
}

# ============================================================
# EVENT 0016: A Public Slight (Player)
# ============================================================
sc_council_player_events.0016 = {
	type = activity_event
	title = sc_council_player_event.0016.t
	desc = sc_council_player_event.0016.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	trigger = {
		is_ai = no
		is_ruler = yes
		is_vassal_of = involved_activity.activity_host
		NOT = { this = involved_activity.special_guest:the_pretender }
	}

	immediate = {
		involved_activity = {
			random_attending_character = {
				limit = {
					OR = {
						this = involved_activity.activity_host
						this = involved_activity.special_guest:the_pretender
					}
				}
				save_scope_as = council_actor
			}
		}
	}

	left_portrait = {
		character = scope:council_actor
		animation = dismissal
	}

	right_portrait = {
		character = root
		animation = shock
	}

	option = {
		name = sc_council_player_event.0016.a
		add_opinion = { target = scope:council_actor modifier = humiliated_opinion }
		scope:council_actor = { add_prestige = minor_prestige_value }
	}

	option = {
		name = sc_council_player_event.0016.b
		add_opinion = { target = scope:council_actor modifier = angry_opinion }
		scope:council_actor = { add_stress = minor_stress_loss }
	}
}

# ============================================================
# EVENT 0017: An Honorable Display (Player)
# ============================================================
sc_council_player_events.0017 = {
	type = activity_event
	title = sc_council_player_event.0017.t
	desc = sc_council_player_event.0017.desc
	theme = diplomacy
	window = event_window
	override_background = ep3_relaxing_room

	trigger = {
		is_ai = no
		is_ruler = yes
		is_vassal_of = involved_activity.activity_host
		NOT = { this = involved_activity.special_guest:the_pretender }
	}

	immediate = {
		involved_activity = {
			random_attending_character = {
				limit = {
					OR = {
						this = involved_activity.activity_host
						this = involved_activity.special_guest:the_pretender
					}
				}
				save_scope_as = council_actor
			}
		}
	}

	left_portrait = {
		character = scope:council_actor
		animation = personality_honorable
	}

	right_portrait = {
		character = root
		animation = admiration
	}

	option = {
		name = sc_council_player_event.0017.a
		add_opinion = { target = scope:council_actor modifier = loyal_opinion }
		scope:council_actor = { add_diplomacy_lifestyle_xp = minor_lifestyle_xp }
	}

	option = {
		name = sc_council_player_event.0017.b
		add_opinion = { target = scope:council_actor modifier = impressed_opinion }
		scope:council_actor = { add_prestige = minor_prestige_value }
	}
}