Scripted effect
select_ct_for_teacher_to_teach_student_effect
select_ct_for_teacher_to_teach_student_effect = { STUDENT = … TEACHER = … }game/common/scripted_effects/00_martial_lifestyle_effects.txt, line 151 (208 lines). Parameters: $STUDENT$, $TEACHER$.
select_ct_for_teacher_to_teach_student_effect is a scripted effect in Crusader Kings III, written at line 151 of its file. A call passes 2 parameters: STUDENT and TEACHER. The game's script calls it in 2 places, among them marshal_task.0302 (event) and marshal_task.2101 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_martial_lifestyle_effects.txt.
The comment above it in the file
Ensure that this effect stays up-to-date with all commander traits in 00_traits.txt
What it does
- 1 of 17 things will happen:
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
- 6%: Nothing else happens
• 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)
select_ct_for_teacher_to_teach_student_effect = {
random_list = {
1 = {
trigger = {
$TEACHER$ = { has_trait = logistician }
$STUDENT$ = { NOT = { has_trait = logistician } }
}
$STUDENT$ = {
set_variable = {
name = commander_trait_being_taught
value = flag:logistician
}
}
}
1 = {
trigger = {
$TEACHER$ = { has_trait = military_engineer }
$STUDENT$ = { NOT = { has_trait = military_engineer } }
}
$STUDENT$ = {
set_variable = {
name = commander_trait_being_taught
value = flag:military_engineer
}
}
}
1 = {
trigger = {
$TEACHER$ = { has_trait = aggressive_attacker }
$STUDENT$ = { NOT = { has_trait = aggressive_attacker } }
}
$STUDENT$ = {
set_variable = {
name = commander_trait_being_taught
value = flag:aggressive_attacker
}
}
}
1 = {
trigger = {
$TEACHER$ = { has_trait = unyielding_defender }
$STUDENT$ = { NOT = { has_trait = unyielding_defender } }
}
$STUDENT$ = {
set_variable = {
name = commander_trait_being_taught
value = flag:unyielding_defender
}
}
}
1 = {
trigger = {
$TEACHER$ = { has_trait = forder }
$STUDENT$ = { NOT = { has_trait = forder } }
}
$STUDENT$ = {
set_variable = {
name = commander_trait_being_taught
value = flag:forder
}
}
}
1 = {
trigger = {
$TEACHER$ = { has_trait = flexible_leader }
$STUDENT$ = { NOT = { has_trait = flexible_leader } }
}
$STUDENT$ = {
set_variable = {
name = commander_trait_being_taught
value = flag:flexible_leader
}
}
}
1 = {
trigger = {
$TEACHER$ = { has_trait = desert_warrior }
$STUDENT$ = { NOT = { has_trait = desert_warrior } }
}
$STUDENT$ = {
set_variable = {
name = commander_trait_being_taught
value = flag:desert_warrior
}
}
}
1 = {
trigger = {
$TEACHER$ = { has_trait = jungle_stalker }
$STUDENT$ = { NOT = { has_trait = jungle_stalker } }
}
$STUDENT$ = {
set_variable = {
name = commander_trait_being_taught
value = flag:jungle_stalker
}
}
}
1 = {
trigger = {
$TEACHER$ = { has_trait = winter_soldier }
$STUDENT$ = { NOT = { has_trait = winter_soldier } }
}
$STUDENT$ = {
set_variable = {
name = commander_trait_being_taught
value = flag:winter_soldier
}
}
}
1 = {
trigger = {
$TEACHER$ = { has_trait = reaver }
$STUDENT$ = { NOT = { has_trait = reaver } }
}
$STUDENT$ = {
set_variable = {
name = commander_trait_being_taught
value = flag:reaver
}As written in game/common/scripted_effects/00_martial_lifestyle_effects.txt.
The first 120 of its 208 lines; the rest is in game/common/scripted_effects/00_martial_lifestyle_effects.txt from line 151.
Where it is used
Every place in common/, events/ and history/ that calls select_ct_for_teacher_to_teach_student_effect.
Events (2)
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.