fixes big evebts abd on actions plus mroe
This commit is contained in:
parent
c9d520e5a1
commit
bce2aa31a1
207 changed files with 100377 additions and 9296 deletions
|
|
@ -58,6 +58,7 @@ on_faith_created = {
|
|||
limit = { faith = root }
|
||||
pam_on_conversion_effect = yes
|
||||
remove_character_modifier = religious_reformer_modifier
|
||||
gdp_update_usury_reputation_effect = yes
|
||||
# If you have a legend maybe we change it?
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -260,7 +261,7 @@ on_faith_created = {
|
|||
# if = {
|
||||
# limit = {
|
||||
# exists = situation:the_christian_church
|
||||
# religion = religion:christianity_religion
|
||||
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||
# }
|
||||
# root.main_rite.head_of_rite ?= { recalculate_participant_group = situation:the_christian_church }
|
||||
# }
|
||||
|
|
@ -777,6 +778,7 @@ on_faith_conversion = {
|
|||
pam_on_conversion_effect = yes
|
||||
pam_remove_forbidden_personal_tenet_secret_if_invalid_effect = yes
|
||||
update_syncretism_personal_tenet_effect = yes
|
||||
gdp_update_usury_reputation_effect = yes
|
||||
# EP3 - State Faith
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -1144,9 +1146,9 @@ on_rite_change = {
|
|||
# limit = {
|
||||
# highest_held_title_tier >= tier_county
|
||||
# scope:old_faith ?= {
|
||||
# religion = religion:christianity_religion
|
||||
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||
# }
|
||||
# religion != religion:christianity_religion
|
||||
# NOR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||
# situation:the_christian_church ?= {
|
||||
# situation_top_has_catalyst = catalyst_the_christian_church_ruler_converted_from_christianity
|
||||
# }
|
||||
|
|
@ -1159,9 +1161,9 @@ on_rite_change = {
|
|||
# limit = {
|
||||
# highest_held_title_tier >= tier_county
|
||||
# scope:old_faith ?= {
|
||||
# religion != religion:christianity_religion
|
||||
# NOR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||
# }
|
||||
# religion = religion:christianity_religion
|
||||
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||
# situation:the_christian_church ?= {
|
||||
# situation_top_has_catalyst = catalyst_the_christian_church_ruler_converted_to_christianity
|
||||
# }
|
||||
|
|
@ -1590,7 +1592,7 @@ pagan_conversion_pulse = {
|
|||
}
|
||||
}
|
||||
capital_province.county = {
|
||||
development_level >= 7 #lower than the regular requirement to make sure some rulers can convert
|
||||
prosperity_level >= 7 #lower than the regular requirement to make sure some rulers can convert
|
||||
}
|
||||
}
|
||||
trigger_else_if = {
|
||||
|
|
@ -1598,12 +1600,12 @@ pagan_conversion_pulse = {
|
|||
current_date <= 1000.1.1
|
||||
}
|
||||
capital_province.county = {
|
||||
development_level >= 6 #lower than the regular requirement to make sure some rulers can convert
|
||||
prosperity_level >= 6 #lower than the regular requirement to make sure some rulers can convert
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
capital_province.county = {
|
||||
development_level >= 5 #lower than the regular requirement to make sure some rulers can convert
|
||||
prosperity_level >= 5 #lower than the regular requirement to make sure some rulers can convert
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1629,7 +1631,7 @@ pagan_conversion_pulse = {
|
|||
}
|
||||
|
||||
events = {
|
||||
global_religion.0001 #Pagan reformed by neighbor, spouse, soulmate, friend, or geographic location
|
||||
# NEOW 2555: event not loaded. global_religion.0001 #Pagan reformed by neighbor, spouse, soulmate, friend, or geographic location
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2027,3 +2029,156 @@ on_character_holy_site_created = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
on_rite_updated = {
|
||||
events = {
|
||||
}
|
||||
|
||||
effect = {
|
||||
root = {
|
||||
save_scope_as = rite
|
||||
}
|
||||
every_in_global_list = {
|
||||
variable = merchants_tally
|
||||
limit = {
|
||||
holder ?= {
|
||||
rite = scope:rite
|
||||
}
|
||||
}
|
||||
holder = {
|
||||
gdp_update_usury_reputation_effect = yes
|
||||
}
|
||||
}
|
||||
|
||||
if = { # slient it for EC since EC has unique event to inform
|
||||
limit = {
|
||||
exists = scope:changed_tenets_or_doctrines
|
||||
OR = {
|
||||
NOT = {
|
||||
faith = { has_variable = ecumenical_council_ongoing }
|
||||
}
|
||||
exists = scope:consume_rite_edit_token
|
||||
}
|
||||
}
|
||||
|
||||
# The message icon slot must never be left unset, hence the fall-through to the rite itself
|
||||
if = {
|
||||
limit = { any_in_list = { list = added_tenets count >= 1 } }
|
||||
every_in_list = {
|
||||
list = added_tenets
|
||||
save_scope_as = rite_change_icon
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = { any_in_list = { list = added_doctrines count >= 1 } }
|
||||
every_in_list = {
|
||||
list = added_doctrines
|
||||
save_scope_as = rite_change_icon
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = { any_in_list = { list = removed_tenets count >= 1 } }
|
||||
every_in_list = {
|
||||
list = removed_tenets
|
||||
save_scope_as = rite_change_icon
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = { any_in_list = { list = removed_doctrines count >= 1 } }
|
||||
every_in_list = {
|
||||
list = removed_doctrines
|
||||
save_scope_as = rite_change_icon
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = { any_in_list = { list = changed_tenet_status count >= 1 } }
|
||||
every_in_list = {
|
||||
list = changed_tenet_status
|
||||
save_scope_as = rite_change_icon
|
||||
}
|
||||
}
|
||||
else = {
|
||||
root = { save_scope_as = rite_change_icon }
|
||||
}
|
||||
|
||||
every_player = {
|
||||
limit = {
|
||||
OR = {
|
||||
rite = root
|
||||
AND = {
|
||||
faith = root.faith
|
||||
root.faith.main_rite = root
|
||||
}
|
||||
}
|
||||
}
|
||||
send_interface_message = {
|
||||
type = msg_rite_updated
|
||||
title = msg_rite_updated
|
||||
left_icon = scope:rite_change_icon
|
||||
|
||||
show_as_tooltip = {
|
||||
every_in_list = {
|
||||
list = removed_doctrines
|
||||
root = { remove_rite_doctrine = prev }
|
||||
}
|
||||
every_in_list = {
|
||||
list = added_doctrines
|
||||
root = { add_rite_doctrine = prev }
|
||||
}
|
||||
every_in_list = {
|
||||
list = removed_tenets
|
||||
root = { remove_rite_tenet = prev }
|
||||
}
|
||||
every_in_list = {
|
||||
list = added_tenets
|
||||
root = { add_rite_tenet = prev }
|
||||
}
|
||||
every_in_list = {
|
||||
list = changed_tenet_status
|
||||
save_temporary_scope_as = tenet
|
||||
root = {
|
||||
if = {
|
||||
limit = { has_tenet_status = { tenet = scope:tenet status = permitted } }
|
||||
faith = { set_tenet_status = { tenet = scope:tenet status = permitted } }
|
||||
}
|
||||
else_if = {
|
||||
limit = { has_tenet_status = { tenet = scope:tenet status = prohibited } }
|
||||
faith = { set_tenet_status = { tenet = scope:tenet status = prohibited } }
|
||||
}
|
||||
else_if = {
|
||||
limit = { has_tenet_status = { tenet = scope:tenet status = known } }
|
||||
faith = { set_tenet_status = { tenet = scope:tenet status = known } }
|
||||
}
|
||||
else_if = {
|
||||
limit = { has_tenet_status = { tenet = scope:tenet status = unknown } }
|
||||
faith = { set_tenet_status = { tenet = scope:tenet status = unknown } }
|
||||
}
|
||||
}
|
||||
}
|
||||
pam_personal_tenet_rite_update_fulfillment_effect = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
head_of_rite ?= {
|
||||
trigger_event = faith_creation.0004 # Update HoF succession law
|
||||
trigger_event = faith_creation.0001 # Temporal rel head setup
|
||||
trigger_event = faith_creation.0002 # Spiritual rel head setup
|
||||
trigger_event = faith_creation.0011 # Restore Temporal rel head
|
||||
trigger_event = faith_creation.0012 # Restore Spiritual rel head
|
||||
trigger_event = faith_creation.1100 # Destroy HoF title if no longer valid
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
exists = scope:changed_tenets_or_doctrines
|
||||
exists = scope:consume_rite_edit_token
|
||||
}
|
||||
set_variable = {
|
||||
name = has_edited_a_rite
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue