Event
A New Amir al-Hajj
The pilgrimage to the holy sites of Mecca and Madīna is a duty every Muslim must undertake at least once in their lifetime. As the Ruler Title, the responsibility lies with Target Character to ensure safe passage. This is a position that in many ways requires both cunning and martial ability, as the way to proceed can range from defeating raiders to negotiating passage from local rulers, to outright threats or bribery. The Amir al-Hajj will have the overall responsibility for the Hajj caravans and will have great freedom in how to achieve a steady and peaceful passage for all Country Adjective pilgrims.
IslamReligion Grouptriggermamluk_amir_al_hajjVariabletriggerDefinitionin_game/events/DHE/flavor_MAM.txt:4580
4581type = country_event
4582title = flavor_mam.71.title A New Amir al-Hajj
4583desc = flavor_mam.71.desc The pilgrimage to the holy sites of Mecca and Madīna is a duty every Muslim must undertake at least once in their lifetime. As the Ruler Title, the responsibility lies with Target Character to ensure safe passage. This is a position that in many ways requires both cunning and martial ability, as the way to proceed can range from defeating raiders to negotiating passage from local rulers, to outright threats or bribery. The Amir al-Hajj will have the overall responsibility for the Hajj caravans and will have great freedom in how to achieve a steady and peaceful passage for all Country Adjective pilgrims.
4584outcome = neutral
4586trigger = {
4588any_character = {
4589count > 2
4590is_ruler = no
4591is_regent = no
4592is_heir = no
}
4595any_character = {
4596count > 3
4597is_ruler = no
4598is_regent = no
4599is_heir = no
4600culture ?= {
4601NOT = {
4602this = root.culture
}
}
}
4606any_character = {
4607count > 2
4608is_ruler = no
4609is_regent = no
4610is_heir = no
4611culture ?= root.culture
}
4613OR = {
}
4619has_reform = government_reform:mamluk_government
}
4622immediate = {
4623ordered_character ?= {
4624order_by = total_abilities
4625max = 1
4629save_scope_as = bedouin_candidate
}
4631ordered_character ?= {
4632order_by = mil
4633max = 1
4634limit = {
4635this != scope:bedouin_candidate
4636culture != root.culture
}
4638save_scope_as = mil_candidate
}
4640ordered_character ?= {
4641order_by = dip
4642max = 1
4643limit = {
4644this != scope:bedouin_candidate
4645this != scope:mil_candidate
4646culture != root.culture
}
4648save_scope_as = dip_candidate
}
4650ordered_character ?= {
4651order_by = adm
4652max = 1
4653limit = {
4654this != scope:bedouin_candidate
4655this != scope:mil_candidate
4656this != scope:dip_candidate
4657culture != root.culture
}
4659save_scope_as = adm_candidate
}
4661ordered_character ?= {
4662order_by = total_abilities
4663max = 1
4664limit = {
4665this != scope:bedouin_candidate
4666this != scope:mil_candidate
4667this != scope:dip_candidate
4668this != scope:adm_candidate
4669culture = root.culture
}
4671save_scope_as = mamluk_candidate
}
4673ruler_or_regent ?= {
4674save_scope_as = target_character
}
}