Scripted effect
giving_up_on_commander_trait_training_effect
giving_up_on_commander_trait_training_effect = yesgame/common/scripted_effects/00_martial_lifestyle_effects.txt, line 760 (23 lines). No parameters.
giving_up_on_commander_trait_training_effect is a scripted effect in Crusader Kings III, written at line 760 of its file. It takes no parameters: giving_up_on_commander_trait_training_effect = yes. The game's script calls it in 2 places, among them A Supply of Knowledge (event learn_commander_trait.1201) and A Supply of Knowledge (event learn_commander_trait.1401). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_martial_lifestyle_effects.txt.
What it does
- I do not need to learn this
If
has_relation_mentor = scope:teacher
Then
remove_relation_mentor = scope:teacher
• 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 (23 lines of game script)
giving_up_on_commander_trait_training_effect = {
custom_tooltip = learn_commander_trait.giving_up_tt
if = {
limit = {
scope:teacher = { is_alive = yes }
}
scope:teacher = {
add_opinion = {
target = root
modifier = gave_up_on_learn_commander_trait_opinion
}
}
}
if = {
limit = {
NOT = { exists = scope:long_term_mentor }
has_relation_mentor = scope:teacher
}
remove_relation_mentor = scope:teacher
}
remove_character_flag = being_taught_commander_trait
remove_variable = commander_trait_being_taught
}As written in game/common/scripted_effects/00_martial_lifestyle_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls giving_up_on_commander_trait_training_effect.
Events (2)
- A Supply of Knowledge
learn_commander_trait.1201 - A Supply of Knowledge
learn_commander_trait.1401
Source: game/common/scripted_effects/00_martial_lifestyle_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.