scripted effects fixed somewhat

This commit is contained in:
trashmasteruni 2026-10-10 19:37:00 +02:00
parent 5cf05a176b
commit 227466a9e9
14 changed files with 2057 additions and 37875 deletions

View file

@ -105,7 +105,7 @@ assign_random_nickname_effect = {
NOT = {
any_realm_county = {
culture = scope:nickname_root_scope.culture
}
}
}
NOT = {
primary_title ?= {
@ -123,7 +123,7 @@ assign_random_nickname_effect = {
culture = {
cultural_acceptance = { target = scope:nickname_root_scope.culture value >= 40 }
}
}
}
}
factor = 2
}
@ -526,7 +526,7 @@ assign_random_nickname_effect = {
100 = {
trigger = {
has_trait = witch
NOT = { faith = { has_doctrine = doctrine_witchcraft_accepted } }
NOT = { rite = { rite_has_parameter = witchcraft_accepted } }
NOT = { exists = scope:had_nick_the_witch }
}
modifier = {
@ -659,7 +659,7 @@ assign_random_nickname_effect = {
has_trait = gluttonous
}
has_personality_introverted_trigger = no
faith = faith:^
faith = faith:norse_pagan
NOT = { exists = scope:had_nick_foul_fart }
}
modifier = {
@ -1401,7 +1401,7 @@ assign_random_nickname_effect = {
has_trait = intellect_good
has_trait = shrewd
has_trait = theologian
has_trait = scholar
has_trait = erudite
learning >= 16
}
has_personality_introverted_trigger = yes
@ -1571,7 +1571,7 @@ assign_random_nickname_effect = {
top_liege != this
NOR = {
religion = liege.religion
faith = { has_doctrine = doctrine_pluralism_pluralistic }
rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
}
NOT = { exists = scope:had_nick_the_heathen }
}
@ -1761,7 +1761,7 @@ assign_random_nickname_effect = {
100 = {
trigger = {
is_male = yes
faith = { has_doctrine = doctrine_theocracy_temporal }
rite = { rite_has_doctrine = doctrine_theocracy_temporal }
has_personality_levelheaded_trigger = yes
has_personality_introverted_trigger = yes
has_personality_submissive_trigger = yes
@ -2920,11 +2920,11 @@ assign_random_nickname_effect = {
learning >= 16
OR = {
has_trait = lifestyle_mystic
has_trait = scholar
has_trait = erudite
has_trait = theologian
}
NOR = {
exists = scope:had_nick_the_bearded
NOR = {
exists = scope:had_nick_the_bearded
has_trait = beardless_eunuch
}
}
@ -2993,7 +2993,7 @@ assign_random_nickname_effect = {
100 = {
trigger = {
is_female = yes
faith = { has_doctrine = doctrine_theocracy_temporal }
rite = { rite_has_doctrine = doctrine_theocracy_temporal }
has_personality_levelheaded_trigger = yes
has_personality_introverted_trigger = yes
has_personality_submissive_trigger = yes
@ -4153,15 +4153,15 @@ assign_random_nickname_effect = {
learning <= 6
}
AND = {
government_allows = administrative
government_has_mechanic = administrative
governor_efficiency <= 0.7
}
prestige_level <= 2
}
}
NOT = { exists = scope:had_nick_the_incompetent }
}
modifier = {
government_allows = administrative
government_has_mechanic = administrative
governor_efficiency <= 0.6
factor = 2
}
@ -4327,7 +4327,7 @@ set_random_negative_nickname_effect = {
NOT = {
any_realm_county = {
culture = scope:nick_recipient.culture
}
}
}
NOT = {
primary_title ?= {
@ -4343,7 +4343,7 @@ set_random_negative_nickname_effect = {
culture = {
cultural_acceptance = { target = scope:nick_recipient.culture value >= 40 }
}
}
}
}
factor = 2
}
@ -4544,7 +4544,7 @@ set_random_negative_nickname_effect = {
100 = {
trigger = {
has_trait = witch
NOT = { faith = { has_doctrine = doctrine_witchcraft_accepted } }
NOT = { rite = { rite_has_parameter = witchcraft_accepted } }
}
modifier = {
piety_level <= 1
@ -4579,7 +4579,7 @@ set_random_negative_nickname_effect = {
100 = {
trigger = {
has_trait = drunkard
faith.religion = religion:folk_germanic_religion
faith = faith:norse_pagan
}
modifier = {
prestige_level <= 1
@ -5072,7 +5072,7 @@ set_random_negative_nickname_effect = {
top_liege != this
NOR = {
religion = liege.religion
faith = { has_doctrine = doctrine_pluralism_pluralistic }
rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
}
}
set_nickname_effect = {
@ -6338,13 +6338,13 @@ set_random_negative_nickname_effect = {
learning <= 6
}
AND = {
government_allows = administrative
government_has_mechanic = administrative
governor_efficiency <= 0.7
}
}
}
}
modifier = {
government_allows = administrative
government_has_mechanic = administrative
governor_efficiency <= 0.6
factor = 2
}
@ -6397,6 +6397,31 @@ set_random_negative_nickname_effect = {
NICKNAME = nick_the_miser
}
}
100 = {
trigger = {
religion = { is_in_family = rf_abrahamic }
piety_level >= 4
num_sinful_traits <= 0
num_virtuous_traits >= 1
NOT = { exists = scope:had_nick_the_angelic }
OR = {
has_trait = theologian
has_trait = lifestyle_mystic
has_trait = zealous
has_trait = reclusive
}
has_trait = lifestyle_mystic
spiritual_fulfillment >= spiritual_fulfillment_2
}
modifier = {
piety_level >= 5
factor = 2
}
give_nickname = nick_the_angelic
# Flag this as having been spat out already, in case we're applying several nicknames in quick succession.
flag_random_nickname_as_taken_in_batch_effect = { NICK = nick_the_angelic }
trigger_event = lifestyle_nicknames.1000
}
#Fallback
1 = {
trigger = {