EventChanged this version
Rebellion of the Qājār Tribes

Despite our warm welcome to the Qājār tribes in the past, Rebellion Ruler has seen the discord within Country and has amassed support to claim the throne from Current Ruler. Already, Rebellion Ruler has raised an army to oppose us and is now marching on Capital.
PersiaFormable Countrydynamic historical event.tag
MonarchyGovernment Typetriggeralready_supports_rebel_variableVariableimmediatecurrent_ruler_power_variableVariableimmediateira_qajar_dynasty_rebellion_flagVariabletriggerDefinitionin_game/events/DHE/flavor_ira.txt:2932
2933type = country_event
2934title = flavor_ira.46.title Rebellion of the Qājār Tribes
2935desc = flavor_ira.46.desc Despite our warm welcome to the Qājār tribes in the past, Rebellion Ruler has seen the discord within Country and has amassed support to claim the throne from Current Ruler. Already, Rebellion Ruler has raised an army to oppose us and is now marching on Capital.
2936outcome = neutral
2937historical_info = flavor_ira.46.historical_info As the Safavids' successors, the Qâjâr family mainly assisted the Iranian shahs during their early days. With the rise of Âqâ Mohammad Xân-e Qâjâr in the region, and the fragmentation of the Safavid realm, the Qâjâr family was able to proclaim themselves as Shahs, slowly conquering the numerous other tribes that resisted their legitimacy. Their reign would last until 1925, when a coup d'état would take place, replacing them with the Pahlavi dynasty.
2939dynamic_historical_event = {
}
2946fire_only_once = yes
2948trigger = {
2949custom_tooltip = {
2950text = variable_ira_qajar_dynasty_rebellion_flag_tt The Qajar Tribes are in Rebellion
}
2954OR = {
2955character:agha_muhammad_qajar = {
2956is_alive = yes
}
2958character:fath_ali_qajar = {
2959is_alive = yes
}
}
2962ruler_or_regent != character:agha_muhammad_qajar
2963ruler_or_regent != character:fath_ali_qajar
2965legitimacy <= 60
2966stability <= 5
}
2969illustration_tags = {
297010 = armed
297110 = exterior
}
2974immediate = {
}
2976if = {
2977limit = {
2978character:agha_muhammad_qajar = {
2979is_alive = yes
}
}
2983character:agha_muhammad_qajar = {
2984save_scope_as = rebellion_ruler
}
2987character:fath_ali_qajar = {
2988save_scope_as = rebellion_heir
}
}
2992else = {
2993character:fath_ali_qajar = {
2994save_scope_as = rebellion_ruler
}
}
2998ruler_or_regent ?= {
2999save_scope_as = current_ruler
}
3002create_rebel = {
3003category = pretender
3004name = qajar_pretenders Qājār Pretenders
3005save_scope_as = target_rebel
}
3008set_variable = {
3010value = {
3011add = {
3012value = "estate_power(estate_type:crown_estate)"
3013multiply = 5
}
3015add = {
3016value = government_power
3017divide = 2
}
}
}
3025if = {
3029while = {
3031ordered_owned_location = {
3036order_by = {
3037value = population
3038multiply = -1
}
3040max = 1
3041owner = {
}
3055every_pop = {
3056limit = {
3057owner = root
}
3060change_pop_allegiance = scope:target_rebel
}
}
}
}
3066scope:rebellion_ruler = {
3067change_character_allegiance = scope:target_rebel
}
3070if = {
3071limit = {
3072exists = scope:rebellion_heir
}
3074scope:current_ruler = {
3075change_character_allegiance = scope:target_rebel
}
}
}
3102after = {
}