Scripted effect
set_interesting_traits_and_modifiers_effect
set_interesting_traits_and_modifiers_effect = yesgame/common/scripted_effects/00_pool_effects.txt, line 1 (74 lines). No parameters.
set_interesting_traits_and_modifiers_effect is a scripted effect in Crusader Kings III, written at line 1 of its file. It takes no parameters: set_interesting_traits_and_modifiers_effect = yes. The game's script calls it in 59 places, among them accolade_archer_character (scripted character templates), accolade_besieger_character (scripted character templates) and accolade_blademaster_character (scripted character templates). Patch 1.20.1.2, from game/common/scripted_effects/00_pool_effects.txt.
What it does
- 1 of 7 things will happen:
- 21%:
change_current_weight = 150
- 21%:
change_current_weight = 100
- 4%:
change_current_weight = 50
- 4%:
change_current_weight = 25
- 43%: Nothing else happens
- 4%:
change_current_weight = -25
- 2%:
change_current_weight = -50
- 21%:
- 1 of 4 things will happen:
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (74 lines of game script)
set_interesting_traits_and_modifiers_effect = {
random_list = {
50 = {
trigger = {
has_trait = gluttonous
}
change_current_weight = 150
}
50 = {
trigger = {
has_trait = gluttonous
}
change_current_weight = 100
}
10 = {
trigger = {
NOT = { has_trait = temperate }
}
change_current_weight = 50
}
10 = {
change_current_weight = 25
}
100 = {
}
10 = {
change_current_weight = -25
}
5 = {
trigger = {
NOR = {
has_trait = temperate
has_trait = gluttonous
}
}
change_current_weight = -50
}
}
random_list = {
1 = {
modifier = {
add = 9
culture = {
has_cultural_parameter = loyal_trait_more_common
}
}
add_trait = loyal
}
1 = {
modifier = {
add = 9
culture = {
has_cultural_parameter = disloyal_trait_more_common
}
}
add_trait = disloyal
}
1 = {
trigger = {
location ?= {
is_province_valid_confucian_education_trigger = yes
}
}
modifier = {
add = 9
culture = {
has_cultural_parameter = scholar_official_trait_bonuses
}
}
add_trait = confucian_education
}
98 = {}
}
}As written in game/common/scripted_effects/00_pool_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls set_interesting_traits_and_modifiers_effect.
Scripted character templates (59)
- accolade_archer_character
- accolade_besieger_character
- accolade_blademaster_character
- accolade_camelry_character
- accolade_charmer_character
- accolade_contender_character
53 more
- accolade_crossbowmen_character
- accolade_disciplinarian_character
- accolade_elephantry_character
- accolade_fanatic_character
- accolade_horse_archer_character
- accolade_house_knight_character
- accolade_huntsmaster_character
- accolade_idealist_character
- accolade_lancer_character
- accolade_manipulator_character
- accolade_marauder_character
- accolade_master_of_revels_character
- accolade_mentor_character
- accolade_outrider_character
- accolade_pike_character
- accolade_politicker_character
- accolade_reeve_character
- accolade_scoundrel_character
- accolade_skirmisher_character
- accolade_stalwart_character
- accolade_tactician_character
- accolade_thug_character
- accolade_valiant_character
- accolade_vanguard_character
- culture_defender_knight_template
- dynamic_genghis_character_template
- dynamic_genghis_child_template
- ep3_common_fan_character
- ep3_frankokratia_crusader_template
- ep3_magistrate_character
- ep3_murderer_template
- ep3_poet_template
- ep3_poet_toned_down_template
- ep3_wallada_heir_template
- foreign_architect_template
- foreign_cleric_template
- foreign_mercenary_template
- foreign_official_template
- foreign_scholar_template
- master_mason_character
- mediocre_spouse
- monastic_order_leader_character
- pam_crusader_template
- pool_repopulate_diplomacy
- pool_repopulate_intrigue
- pool_repopulate_learning
- pool_repopulate_local_flavor
- pool_repopulate_martial
- pool_repopulate_prowess
- pool_repopulate_spouse
- pool_repopulate_stewardship
- traveler_character
- varangian_template
Source: game/common/scripted_effects/00_pool_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.