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

@ -165,6 +165,7 @@ learning_medicine.2001 = { #by Mathilda Bjarnehed
create_character = {
location = root.capital_province
faith = root.faith
rite = root.rite
culture = root.culture
template = witchy_template
save_scope_as = herbalist
@ -215,7 +216,7 @@ learning_medicine.2001 = { #by Mathilda Bjarnehed
limit = {
NOR = {
has_trait = lifestyle_herbalist
faith = { has_doctrine_parameter = witchcraft_accepted }
rite = { rite_has_parameter = witchcraft_accepted }
ai_zeal <= high_negative_ai_value
}
}
@ -408,7 +409,7 @@ learning_medicine.2002 = { #by Mathilda Bjarnehed
}
triggered_desc = {
trigger = {
faith = { NOT = { has_doctrine_parameter = witchcraft_accepted } }
NOT = { rite = { rite_has_parameter = witchcraft_accepted } }
}
desc = learning_medicine.2002.not_witchcraft_accepted.desc
}
@ -474,7 +475,7 @@ learning_medicine.2002 = { #by Mathilda Bjarnehed
title = learning_medicine.2002.a.failure.t
left_icon = scope:herbalist
if = {
limit = { scope:herbalist = { faith = { NOT = { has_doctrine_parameter = witchcraft_accepted } } } }
limit = { scope:herbalist = { NOT = { rite = { rite_has_parameter = witchcraft_accepted } } } }
reverse_add_opinion = {
target = scope:herbalist
modifier = impious_opinion
@ -482,7 +483,7 @@ learning_medicine.2002 = { #by Mathilda Bjarnehed
}
if = {
limit = { faith = { NOT = { has_doctrine_parameter = witchcraft_accepted } } }
limit = { NOT = { rite = { rite_has_parameter = witchcraft_accepted } } }
add_piety = minor_piety_loss
}
}
@ -640,6 +641,7 @@ learning_medicine.2010 = { #by Mathilda Bjarnehed
random_valid = {
triggered_desc = {
trigger = {
is_valid_for_east_asian_events_trigger = no
NOR = {
culture = { has_cultural_parameter = anglic_group_language_param }
scope:court_physician = { culture = { has_cultural_parameter = anglic_group_language_param } }
@ -649,6 +651,7 @@ learning_medicine.2010 = { #by Mathilda Bjarnehed
}
triggered_desc = {
trigger = {
is_valid_for_east_asian_events_trigger = no
NOR = {
culture = { has_cultural_parameter = anglic_group_language_param }
scope:court_physician = { culture = { has_cultural_parameter = anglic_group_language_param } }
@ -658,6 +661,7 @@ learning_medicine.2010 = { #by Mathilda Bjarnehed
}
triggered_desc = {
trigger = {
is_valid_for_east_asian_events_trigger = no
NOR = {
culture = { has_cultural_parameter = anglic_group_language_param }
scope:court_physician = { culture = { has_cultural_parameter = anglic_group_language_param } }
@ -674,6 +678,84 @@ learning_medicine.2010 = { #by Mathilda Bjarnehed
}
desc = learning_medicine.2010.merck.desc
}
triggered_desc = {
trigger = {
OR = {
culture = { has_cultural_pillar = heritage_chinese }
scope:court_physician.culture = { has_cultural_pillar = heritage_chinese }
}
}
desc = learning_medicine.2010.sun_simiao.desc
}
triggered_desc = {
trigger = {
OR = {
culture = { has_cultural_pillar = heritage_chinese }
scope:court_physician.culture = { has_cultural_pillar = heritage_chinese }
}
}
desc = learning_medicine.2010.zhan_zhongjing.desc
}
triggered_desc = {
trigger = {
OR = {
location = { geographical_region = world_asia }
is_valid_for_east_asian_events_trigger = yes # Culture is Japanese, Chinese or Korean
scope:court_physician.culture = { is_valid_for_east_asian_events_trigger = yes }
}
}
desc = learning_medicine.2010.hua_tuo.desc
}
triggered_desc = {
trigger = {
current_date >= 984.1.1
OR = {
culture = { has_cultural_pillar = heritage_japonic }
scope:court_physician.culture = { has_cultural_pillar = heritage_japonic }
}
}
desc = learning_medicine.2010.tamba_yasuyori.desc
}
triggered_desc = {
trigger = {
current_date >= 1120.1.1
location = {
geographical_region = world_europe
}
}
desc = learning_medicine.2010.hildegard.desc
}
triggered_desc = {
trigger = {
current_date >= 1316.12.30
location = {
geographical_region = world_europe
}
}
desc = learning_medicine.2010.mundinus.desc
}
triggered_desc = {
trigger = {
NOR = {
culture = { has_cultural_pillar = heritage_arabic }
scope:court_physician = { culture = { has_cultural_pillar = heritage_arabic } }
faith = { religion_tag = islam_religion }
scope:court_physician.faith = { religion_tag = islam_religion }
}
current_date >= 1225.1.1
}
desc = learning_medicine.2010.avicenna.desc
}
triggered_desc = {
trigger = {
NOR = {
has_culture = culture:italian
scope:court_physician = { has_culture = culture:italian }
}
current_date >= 1150.1.1
}
desc = learning_medicine.2010.trota.desc
}
}
desc = learning_medicine.2010.fallback.desc
}
@ -968,7 +1050,7 @@ learning_medicine.2021 = { #by Mathilda Bjarnehed
ai_rationality = 0.25
}
modifier = {
add = age
add = age
}
}
}
@ -1567,7 +1649,7 @@ learning_medicine.2024 = { #by Mathilda Bjarnehed
opinion = 10
}
stress_impact = {
stress_and_fulfillment_impact = {
wrathful = minor_stress_impact_gain
paranoid = minor_stress_impact_gain
sadistic = minor_stress_impact_gain
@ -1588,7 +1670,7 @@ learning_medicine.2024 = { #by Mathilda Bjarnehed
imprison_physician_effect = yes
stress_impact = {
stress_and_fulfillment_impact = {
forgiving = medium_stress_impact_gain
compassionate = minor_stress_impact_gain
content = minor_stress_impact_gain
@ -1638,7 +1720,7 @@ learning_medicine.2025 = { #by Mathilda Bjarnehed
option = {
name = learning_medicine.2025.b
stress_impact = {
stress_and_fulfillment_impact = {
paranoid = medium_stress_impact_gain
}
@ -1980,7 +2062,7 @@ learning_medicine.2030 = { #by Mathilda Bjarnehed
}
}
stress_impact = {
stress_and_fulfillment_impact = {
base = major_stress_loss
deceitful = medium_stress_impact_gain
paranoid = medium_stress_impact_gain
@ -2016,7 +2098,7 @@ learning_medicine.2030 = { #by Mathilda Bjarnehed
}
}
stress_impact = {
stress_and_fulfillment_impact = {
deceitful = medium_stress_impact_gain
paranoid = medium_stress_impact_gain
shy = minor_stress_impact_gain
@ -2075,7 +2157,7 @@ learning_medicine.2030 = { #by Mathilda Bjarnehed
}
}
stress_impact = {
stress_and_fulfillment_impact = {
deceitful = medium_stress_impact_gain
paranoid = medium_stress_impact_gain
shy = minor_stress_impact_gain
@ -2133,7 +2215,7 @@ learning_medicine.2030 = { #by Mathilda Bjarnehed
}
}
stress_impact = {
stress_and_fulfillment_impact = {
base = medium_stress_loss
deceitful = major_stress_impact_gain
paranoid = major_stress_impact_gain
@ -2158,7 +2240,7 @@ learning_medicine.2030 = { #by Mathilda Bjarnehed
years = 15
}
stress_impact = {
stress_and_fulfillment_impact = {
honest = minor_stress_impact_gain
trusting = minor_stress_impact_gain
gregarious = minor_stress_impact_gain
@ -2347,7 +2429,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed
add_trait = athletic
stress_impact = {
stress_and_fulfillment_impact = {
base = medium_stress_loss
lazy = minor_stress_impact_gain
}
@ -2363,7 +2445,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed
add_trait = journaller
stress_impact = {
stress_and_fulfillment_impact = {
base = medium_stress_loss
dull = minor_stress_impact_gain
intellect_bad_1 = minor_stress_impact_gain
@ -2397,7 +2479,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed
send_interface_toast = {
title = learning_medicine.2030.c.trait
add_trait = athletic
stress_impact = {
stress_and_fulfillment_impact = {
base = minor_stress_loss
}
}
@ -2414,7 +2496,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed
}
}
stress_impact = {
stress_and_fulfillment_impact = {
lazy = minor_stress_impact_gain
}
}
@ -2440,7 +2522,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed
send_interface_toast = {
title = learning_medicine.2030.d.trait
add_trait = journaller
stress_impact = {
stress_and_fulfillment_impact = {
base = minor_stress_loss
}
}
@ -2457,7 +2539,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed
}
}
stress_impact = {
stress_and_fulfillment_impact = {
dull = minor_stress_impact_gain
intellect_bad_1 = minor_stress_impact_gain
intellect_bad_2 = minor_stress_impact_gain
@ -2470,7 +2552,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed
option = {
name = learning_medicine.2040.e
stress_impact = {
stress_and_fulfillment_impact = {
base = medium_stress_loss
diligent = minor_stress_impact_gain
}
@ -2566,6 +2648,7 @@ learning_medicine.2050 = { #by Mathilda Bjarnehed
location = root.capital_province
culture = root.capital_province.culture
faith = root.capital_province.faith
rite = root.capital_province.rite
template = pool_repopulate_prowess
save_scope_as = soldier
trait = wounded_2
@ -2640,7 +2723,7 @@ learning_medicine.2050 = { #by Mathilda Bjarnehed
}
}
stress_impact = {
stress_and_fulfillment_impact = {
arrogant = minor_stress_impact_gain
}
@ -2682,7 +2765,7 @@ learning_medicine.2050 = { #by Mathilda Bjarnehed
}
}
stress_impact = {
stress_and_fulfillment_impact = {
humble = medium_stress_impact_gain
}
@ -2697,7 +2780,7 @@ learning_medicine.2050 = { #by Mathilda Bjarnehed
add_dread = medium_dread_gain
stress_impact = {
stress_and_fulfillment_impact = {
base = medium_stress_impact_gain
compassionate = major_stress_impact_gain
forgiving = medium_stress_impact_gain
@ -2849,7 +2932,7 @@ learning_medicine.2052 = { #by Mathilda Bjarnehed
REASON = friend_reassurance
}
}
stress_impact = {
stress_and_fulfillment_impact = {
arrogant = minor_stress_impact_gain
}
}
@ -2864,7 +2947,7 @@ learning_medicine.2052 = { #by Mathilda Bjarnehed
opinion = -5
}
stress_impact = {
stress_and_fulfillment_impact = {
humble = minor_stress_impact_gain
}
}
@ -3080,7 +3163,7 @@ learning_medicine_special.2110 = {
add = 10
OR = {
has_trait = gluttonous
faith = { trait_is_virtue = gluttonous }
rite = { trait_is_virtue_rite = gluttonous }
}
}
modifier = { #We just like meeting interesting people, to be honest.
@ -3185,18 +3268,18 @@ learning_medicine_special.2110 = {
}
else_if = { #If your faith hates such things, you get a little piety.
limit = {
faith = { trait_is_sin = gluttonous }
rite = { trait_is_sin_rite = gluttonous }
}
add_piety = minor_piety_gain
}
else_if = { #Unless they like them, in which case you confuse and annoy people.
limit = {
faith = { trait_is_virtue = gluttonous }
rite = { trait_is_virtue_rite = gluttonous }
}
add_piety = minor_piety_loss
}
else = { add_prestige = miniscule_prestige_gain } #Otherwise you're just a bit of a neutral kill-joy, I guess.
stress_impact = {
stress_and_fulfillment_impact = {
gregarious = minor_stress_impact_gain
hashishiyah = medium_stress_impact_gain
shy = minor_stress_impact_loss
@ -3272,21 +3355,21 @@ learning_medicine_special.2110 = {
modifier = cosmic_insights_modifier
days = 3650
}
stress_impact = {
stress_and_fulfillment_impact = {
temperate = medium_stress_impact_gain
shy = minor_stress_impact_gain
hashishiyah = major_stress_impact_loss
}
if = {
limit = {
faith = {
rite = {
OR = {
religion_tag = islam_religion
trait_is_sin = gluttonous
faith = { religion_tag = islam_religion }
trait_is_sin_rite = gluttonous
}
}
}
stress_impact = { zealous = minor_stress_impact_gain }
stress_and_fulfillment_impact = { zealous = minor_stress_impact_gain }
}
ai_chance = {
base = 50
@ -3399,21 +3482,21 @@ learning_medicine_special.2110 = {
}
}
}
stress_impact = {
stress_and_fulfillment_impact = {
temperate = major_stress_impact_gain
shy = medium_stress_impact_gain
hashishiyah = major_stress_impact_loss
}
if = {
limit = {
faith = {
rite = {
OR = {
religion_tag = islam_religion
trait_is_sin = gluttonous
faith = { religion_tag = islam_religion }
trait_is_sin_rite = gluttonous
}
}
}
stress_impact = { zealous = medium_stress_impact_gain }
stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain }
}
ai_chance = {
base = 50
@ -3631,7 +3714,7 @@ learning_medicine_special.1002 = {
}
}
add_learning_lifestyle_xp = minor_lifestyle_xp
stress_impact = {
stress_and_fulfillment_impact = {
base = medium_stress_impact_gain
callous = medium_stress_impact_loss
sadistic = medium_stress_impact_loss
@ -3816,7 +3899,7 @@ learning_medicine_special.1103 = {
scope:scoped_capital ?= {
title_province = {
create_epidemic_outbreak = {
type = dysentery
type = dysentery
intensity = minor
}
}
@ -3947,7 +4030,7 @@ learning_medicine_special.1006 = {
scope:scoped_capital ?= {
title_province = {
create_epidemic_outbreak = {
type = dysentery
type = dysentery
intensity = minor
}
}
@ -4085,6 +4168,7 @@ learning_medicine_special.2100 = {
random_traits = no
employer = root
faith = scope:hallucinogenic_fish_locale.faith
rite = scope:hallucinogenic_fish_locale.rite
culture = scope:hallucinogenic_fish_locale.culture
intrigue = 10
learning = 10
@ -4146,7 +4230,7 @@ learning_medicine_special.2100 = {
}
}
}
stress_impact = {
stress_and_fulfillment_impact = {
craven = minor_stress_impact_gain
temperate = minor_stress_impact_gain
}
@ -4155,13 +4239,13 @@ learning_medicine_special.2100 = {
ai_value_modifier = { ai_boldness = 0.5 }
ai_value_modifier = {
trigger = {
faith = { has_doctrine_parameter = witchcraft_shunned }
rite = { rite_has_parameter = witchcraft_shunned }
}
ai_zeal = -0.25
}
ai_value_modifier = {
trigger = {
faith = { has_doctrine_parameter = witchcraft_illegal }
rite = { rite_has_parameter = witchcraft_illegal }
}
ai_zeal = -0.50
}
@ -4258,15 +4342,14 @@ learning_medicine_special.2100 = {
}
if = {
limit = {
faith = {
OR = {
has_doctrine_parameter = witchcraft_shunned
has_doctrine_parameter = witchcraft_illegal
}
OR = {
rite = { rite_has_parameter = witchcraft_shunned }
rite = { rite_has_parameter = witchcraft_illegal }
}
}
stress_impact = { zealous = medium_stress_impact_gain }
stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain }
}
stress_and_fulfillment_impact = { witch = medium_stress_impact_loss }
ai_chance = {
base = 50
ai_value_modifier = {
@ -4275,13 +4358,13 @@ learning_medicine_special.2100 = {
}
ai_value_modifier = {
trigger = {
faith = { has_doctrine_parameter = witchcraft_shunned }
rite = { rite_has_parameter = witchcraft_shunned }
}
ai_zeal = -0.50
}
ai_value_modifier = {
trigger = {
faith = { has_doctrine_parameter = witchcraft_illegal }
rite = { rite_has_parameter = witchcraft_illegal }
}
ai_zeal = -0.75
}
@ -4297,11 +4380,9 @@ learning_medicine_special.2100 = {
modifier = {
add = -20
trigger = {
faith = {
OR = {
has_doctrine_parameter = witchcraft_shunned
has_doctrine_parameter = witchcraft_illegal
}
OR = {
rite = { rite_has_parameter = witchcraft_shunned }
rite = { rite_has_parameter = witchcraft_illegal }
}
}
has_trait = zealous
@ -4311,7 +4392,7 @@ learning_medicine_special.2100 = {
option = { #Suffer not the witch to live.
name = learning_medicine_special.2100.c
trigger = {
faith = { has_doctrine_parameter = witchcraft_illegal }
rite = { rite_has_parameter = witchcraft_illegal }
}
add_piety = major_piety_gain
custom_tooltip = learning_medicine_special.2100.c.tt
@ -4323,12 +4404,13 @@ learning_medicine_special.2100 = {
}
}
}
stress_impact = { compassionate = medium_stress_impact_gain }
pam_witch_justice_fulfillment_effect = yes
stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain }
ai_chance = {
base = 50
ai_value_modifier = {
trigger = {
faith = { has_doctrine_parameter = witchcraft_illegal }
rite = { rite_has_parameter = witchcraft_illegal }
}
ai_zeal = 0.75
}
@ -4359,13 +4441,13 @@ learning_medicine_special.2100 = {
name = learning_medicine_special.2100.d
if = {
limit = {
faith = { has_doctrine_parameter = witchcraft_shunned }
rite = { rite_has_parameter = witchcraft_shunned }
}
add_prestige = minor_prestige_gain
}
else_if = {
limit = {
faith = { has_doctrine_parameter = witchcraft_illegal }
rite = { rite_has_parameter = witchcraft_illegal }
}
add_prestige = medium_prestige_gain
}