Merge branch 'next-version-dev' of https://forgejo.damimani-alex.org/damimani/N3OW into next-version-dev
This commit is contained in:
commit
b0e28e42d7
2 changed files with 141 additions and 0 deletions
|
|
@ -61,4 +61,133 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
add_character_modifier = $BHAKTI$
|
add_character_modifier = $BHAKTI$
|
||||||
|
}
|
||||||
|
create_head_of_faith_title_effect = {
|
||||||
|
# Pay costs
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
faith = {
|
||||||
|
has_doctrine_parameter = temporal_head_of_faith
|
||||||
|
OR = {
|
||||||
|
has_doctrine = muhammad_succession_sunni_doctrine
|
||||||
|
has_doctrine = muhammad_succession_shia_doctrine
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = { # Very expensive for non-sayyid to become a Caliph.
|
||||||
|
limit = { NOT = { has_trait = sayyid } }
|
||||||
|
add_piety = massive_piety_loss
|
||||||
|
}
|
||||||
|
# Free otherwise
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { faith = { has_doctrine_parameter = temporal_head_of_faith } }
|
||||||
|
add_piety = major_piety_loss
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
faith = {
|
||||||
|
NOT = {
|
||||||
|
#HO HoF already paid on the HO interface
|
||||||
|
has_doctrine_parameter = holy_order_head_of_faith
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
remove_short_term_gold = medium_gold_max_value
|
||||||
|
}
|
||||||
|
|
||||||
|
# (Re)create the HoF title
|
||||||
|
custom_description_no_bullet = {
|
||||||
|
text = create_temporal_head_of_faith
|
||||||
|
subject = root
|
||||||
|
object = scope:faith
|
||||||
|
|
||||||
|
# Temporal HoF
|
||||||
|
if = {
|
||||||
|
limit = { faith = { has_doctrine_parameter = temporal_head_of_faith } }
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
faith = {
|
||||||
|
NOT = { exists = religious_head_title }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_event = faith_creation.0001 # Creates new dynamic title
|
||||||
|
}
|
||||||
|
else = { trigger_event = faith_creation.0011 } # Re-uses existing title.
|
||||||
|
}
|
||||||
|
# Spiritual/Holy Order HoF
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
faith = {
|
||||||
|
OR = {
|
||||||
|
has_doctrine_parameter = spiritual_head_of_faith
|
||||||
|
has_doctrine_parameter = holy_order_head_of_faith
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
faith = {
|
||||||
|
NOT = { exists = religious_head_title }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_event = faith_creation.0002 # Creates new dynamic title
|
||||||
|
}
|
||||||
|
else = { trigger_event = faith_creation.0012 } # Re-uses existing title
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
faith = {
|
||||||
|
has_doctrine_parameter = holy_order_head_of_faith
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
#only create a HoF if none exists
|
||||||
|
faith = {
|
||||||
|
any_faith_holy_order = {
|
||||||
|
count = 0
|
||||||
|
exists = this
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_event = ate_holy_order.0003
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
faith = {
|
||||||
|
random_faith_holy_order = {
|
||||||
|
save_scope_as = picked_holy_order
|
||||||
|
}
|
||||||
|
}
|
||||||
|
faith.set_religious_head_title = scope:picked_holy_order.title
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Send an informative message to all players about the new HoF
|
||||||
|
hidden_effect = {
|
||||||
|
save_scope_as = reformer
|
||||||
|
faith = {
|
||||||
|
save_scope_as = faith
|
||||||
|
change_fervor = {
|
||||||
|
value = major_fervor_gain
|
||||||
|
desc = fervor_gain_recreated_hof
|
||||||
|
}
|
||||||
|
}
|
||||||
|
every_player = {
|
||||||
|
if = {
|
||||||
|
limit = { faith = scope:faith }
|
||||||
|
trigger_event = {
|
||||||
|
id = faith_creation.1010
|
||||||
|
days = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
trigger_event = {
|
||||||
|
id = faith_creation.1011
|
||||||
|
days = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1656,6 +1656,18 @@ jean_metz={
|
||||||
name="Jean"
|
name="Jean"
|
||||||
dynasty=metz_dynasty
|
dynasty=metz_dynasty
|
||||||
culture=lorin
|
culture=lorin
|
||||||
|
trait = education_martial_3
|
||||||
|
trait = zealous
|
||||||
|
trait = brave
|
||||||
|
trait = diligent
|
||||||
|
trait = holy_warrior
|
||||||
|
trait = organizer
|
||||||
|
martial = 8
|
||||||
|
diplomacy = 11
|
||||||
|
intrigue = 3
|
||||||
|
stewardship = 6
|
||||||
|
stewardship = 9
|
||||||
|
prowess = 25
|
||||||
religion = "orleaniste"
|
religion = "orleaniste"
|
||||||
2503.10.12={birth=yes}
|
2503.10.12={birth=yes}
|
||||||
2555.5.10={death=yes}
|
2555.5.10={death=yes}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue