Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

flavor_mor.29 格拉维耶德(墓地)

时间范围
无具体起止日期(from/to未定义),事件仅触发一次(fire_only_once = yes)。

触发条件

  • 角色 mor_abu_al_hasan_ali 存活且为国家统治者。
  • 角色 mor_abu_inan_faris 存活且为成年人。
  • 满足以下任一条件:
    1. 存在名为 abu_inan_faris_rebels 的叛军,且该叛军有至少一名存活、成年的角色支持。
    2. 国家正处于内战状态(in_civil_war = yes)。

关键效果

  • 历史选项historical_option = yes):
    • 若国家处于内战状态,则被叛军国家(target_rebel_country)吞并,原因为内战。
    • 设置 mor_abu_inan_faris 为新统治者。
    • 增加严重合法性惩罚(legitimacy_severe_penalty)。
    • 增加轻微稳定度奖励(stability_mild_bonus)。

背景介绍
该事件模拟了摩洛哥马林王朝末期的一场权力斗争。统治者阿布·哈桑·阿里(Abu al-Hasan Ali)与其子阿布·伊南·法里斯(Abu Inan Faris)之间爆发冲突,可能涉及叛乱或内战,最终以阿布·伊南·法里斯夺取王位告终,反映了王朝内部的不稳定与继承危机。

完整事件代码

flavor_mor.29 = { #GRAVEYARD
	hide_portraits = yes
	type = country_event

	title = flavor_mor.29.title
	desc = flavor_mor.29.desc

	fire_only_once = yes

	illustration_tags = {
		10 = angry
		10 = exterior
	}

	trigger = {
		character:mor_abu_al_hasan_ali = {
			is_alive = yes
			is_ruler = yes
		}
		character:mor_abu_inan_faris = {
			is_alive = yes
			is_adult = yes
		}
		OR = {
			#Or the rebellion has not yet triggered
			any_rebel = {
				rebel_name_key = abu_inan_faris_rebels
				any_character_supporting_rebel = {
					is_alive = yes
					is_adult = yes
				}
			}
			#Or we deal with a civil war
			in_civil_war = yes
		}
	}

	immediate = {
		event_illustration_estate_effect = { foreground = estate_type:nobles_estate background = estate_type:nobles_estate }

		ruler = {
			save_scope_as = ruler_scope
		}
		kill_character = scope:ruler_scope

		character:mor_abu_inan_faris = {
			save_scope_as = usurper_scope
		}

		if = {
			limit = { in_civil_war = yes }
			random_current_war = {
				limit = { is_civil_war_for = root }
				save_scope_as = civil_war_scope
				random_attacker = {
					save_scope_as = target_rebel_country
				}
			}
		}
	}

	option = {
		name = flavor_mor.29.a
		historical_option = yes

		#If in a civil war
		if = {
			limit = { in_civil_war = yes }
			#Lose the civil war and get annexed by the rebels
			scope:target_rebel_country = {
				annex_country = {
					country = root
					reason = CivilWar
				}
			}
		}

		set_new_ruler = scope:usurper_scope
		add_legitimacy = legitimacy_severe_penalty
		add_stability = stability_mild_bonus
	}
}