event fixes pt IV

This commit is contained in:
trashmasteruni 2026-10-11 00:50:52 +02:00
parent e660a1513e
commit 4ee8abdc61
22 changed files with 2057 additions and 8852 deletions

View file

@ -1527,10 +1527,13 @@ governor_contract_event.2000 = {
limit = { liege = root.liege }
save_scope_as = other_gov
}
scope:ongoing_contract = { # Save other gov for reward effects
set_variable = {
name = other_gov
value = scope:other_gov
if = { # Save other gov for reward effects; there may be no neighbouring peer governor
limit = { exists = scope:other_gov }
scope:ongoing_contract = {
set_variable = {
name = other_gov
value = scope:other_gov
}
}
}
generate_governance_outcome_effect = { OPTIONS = 5 }
@ -2308,9 +2311,13 @@ governor_contract_event.2031 = {
location = root.location
culture = scope:ongoing_destination.county.culture
faith = scope:ongoing_destination.county.faith
rite = scope:ongoing_destination.county.rite
gender_female_chance = root_soldier_female_chance
save_scope_as = peasant
}
scope:peasant = {
set_character_rite = scope:ongoing_destination.county.rite
}
if = {
limit = {
is_ai = yes
@ -3296,7 +3303,7 @@ governor_contract_event.2071 = {
first_valid = {
triggered_desc = {
trigger = {
liege = { has_title = title:e_byzantium }
liege = { is_roman_emperor_trigger = yes }
}
desc = governor_contract_event.2071.desc.byz
}
@ -3818,6 +3825,7 @@ governor_contract_event.2091 = {
location = root.location
template = local_saint_template
faith = root.location.faith
rite = root.location.rite
culture = root.location.culture
save_scope_as = prophet
after_creation = {
@ -4037,7 +4045,8 @@ governor_contract_event.2092 = {
option = {
name = governor_contract_event.2092.a
scope:ongoing_contract = {
# scope:ongoing_contract can be a stale Task_contract weak ref by the time the player picks this option
scope:ongoing_contract ?= {
if = {
limit = {
scope:governor_contract_event_2091_duel ?= flag:prophet_persecute
@ -4089,7 +4098,7 @@ governor_contract_event.2093 = {
option = {
name = governor_contract_event.2093.a
scope:ongoing_contract = {
scope:ongoing_contract ?= {
complete_task_contract = failure_standard
}
}
@ -4146,11 +4155,11 @@ governor_contract_event.2100 = {
}
faith = root.faith
trigger_if = {
limit = { faith = { has_doctrine_parameter = clergy_must_be_male } }
limit = { rite = { rite_has_parameter = clergy_must_be_male } }
is_female = no
}
trigger_else_if = {
limit = { faith = { has_doctrine_parameter = clergy_must_be_female } }
limit = { rite = { rite_has_parameter = clergy_must_be_female } }
is_female = yes
}
trigger_else = { always = yes }