Scripted effect
personality_check_shared_good_ruler_traits_effect
personality_check_shared_good_ruler_traits_effect = { CHAR1 = … CHAR2 = … STRICT = … }game/common/scripted_effects/00_personality_trait_effects.txt, line 851 (478 lines). Parameters: $CHAR1$, $CHAR2$, $STRICT$.
personality_check_shared_good_ruler_traits_effect is a scripted effect in Crusader Kings III, written at line 851 of its file. A call passes 3 parameters: CHAR1, CHAR2 and STRICT. The game's script calls it in 2 places, among them …: Opportunity for Peace (event councillor_spouse_diplomacy.2003) and Scrounger Life (event court_yearly.6040). Patch 1.20.1.2, from game/common/scripted_effects/00_personality_trait_effects.txt.
What it does
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
If
NOT = { scope:shared_trait_flag_applied = yes }
Then
- … (more in the script below)
• 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 (120 lines of game script)
personality_check_shared_good_ruler_traits_effect = {
save_scope_value_as = {
name = shared_trait_flag_applied
value = no
}
#The first 11 trait pairings are selected from "Good Ruler" traits, which vassals either like more than other traits or directly help diplomacy.
if = {
limit = { NOT = { scope:shared_trait_flag_applied = yes } }
personality_check_if_chars_have_shared_trait_effect = {
CHAR1 = $CHAR1$
CHAR2 = $CHAR2$
TRAIT1 = just
TRAIT2 = arbitrary
FLAG_PREFIX = has_shared_trait
FLAG_POSTFIX = just
FLAG_SUCCESS = shared_trait_flag_applied
STRICT = $STRICT$
}
}
if = {
limit = { NOT = { scope:shared_trait_flag_applied = yes } }
personality_check_if_chars_have_shared_trait_effect = {
CHAR1 = $CHAR1$
CHAR2 = $CHAR2$
TRAIT1 = brave
TRAIT2 = craven
FLAG_PREFIX = has_shared_trait
FLAG_POSTFIX = brave
FLAG_SUCCESS = shared_trait_flag_applied
STRICT = $STRICT$
}
}
if = {
limit = { NOT = { scope:shared_trait_flag_applied = yes } }
personality_check_if_chars_have_shared_trait_effect = {
CHAR1 = $CHAR1$
CHAR2 = $CHAR2$
TRAIT1 = compassionate
TRAIT2 = sadistic
FLAG_PREFIX = has_shared_trait
FLAG_POSTFIX = compassionate
FLAG_SUCCESS = shared_trait_flag_applied
STRICT = $STRICT$
}
}
if = {
limit = { NOT = { scope:shared_trait_flag_applied = yes } }
personality_check_if_chars_have_shared_trait_effect = {
CHAR1 = $CHAR1$
CHAR2 = $CHAR2$
TRAIT1 = diligent
TRAIT2 = lazy
FLAG_PREFIX = has_shared_trait
FLAG_POSTFIX = diligent
FLAG_SUCCESS = shared_trait_flag_applied
STRICT = $STRICT$
}
}
if = {
limit = { NOT = { scope:shared_trait_flag_applied = yes } }
personality_check_if_chars_have_shared_trait_effect = {
CHAR1 = $CHAR1$
CHAR2 = $CHAR2$
TRAIT1 = fickle
TRAIT2 = stubborn
FLAG_PREFIX = has_shared_trait
FLAG_POSTFIX = fickle
FLAG_SUCCESS = shared_trait_flag_applied
STRICT = $STRICT$
}
}
if = {
limit = { NOT = { scope:shared_trait_flag_applied = yes } }
personality_check_if_chars_have_shared_trait_effect = {
CHAR1 = $CHAR1$
CHAR2 = $CHAR2$
TRAIT1 = trusting
TRAIT2 = paranoid
FLAG_PREFIX = has_shared_trait
FLAG_POSTFIX = trusting
FLAG_SUCCESS = shared_trait_flag_applied
STRICT = $STRICT$
}
}
if = {
limit = { NOT = { scope:shared_trait_flag_applied = yes } }
personality_check_if_chars_have_shared_trait_effect = {
CHAR1 = $CHAR1$
CHAR2 = $CHAR2$
TRAIT1 = forgiving
TRAIT2 = vengeful
FLAG_PREFIX = has_shared_trait
FLAG_POSTFIX = forgiving
FLAG_SUCCESS = shared_trait_flag_applied
STRICT = $STRICT$
}
}
if = {
limit = { NOT = { scope:shared_trait_flag_applied = yes } }
personality_check_if_chars_have_shared_trait_effect = {
CHAR1 = $CHAR1$
CHAR2 = $CHAR2$
TRAIT1 = compassionate
TRAIT2 = callous
FLAG_PREFIX = has_shared_trait
FLAG_POSTFIX = compassionate
FLAG_SUCCESS = shared_trait_flag_applied
STRICT = $STRICT$
}
}
if = {
limit = { NOT = { scope:shared_trait_flag_applied = yes } }
personality_check_if_chars_have_shared_trait_effect = {
CHAR1 = $CHAR1$
CHAR2 = $CHAR2$
TRAIT1 = calm
TRAIT2 = wrathful
FLAG_PREFIX = has_shared_trait
FLAG_POSTFIX = calmAs written in game/common/scripted_effects/00_personality_trait_effects.txt.
The first 120 of its 478 lines; the rest is in game/common/scripted_effects/00_personality_trait_effects.txt from line 851.
Where it is used
Every place in common/, events/ and history/ that calls personality_check_shared_good_ruler_traits_effect.
Events (2)
- …: Opportunity for Peace
councillor_spouse_diplomacy.2003 - Scrounger Life
court_yearly.6040
Source: game/common/scripted_effects/00_personality_trait_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.