Scripted trigger · Legacy of Persia files
fp3_is_valid_madrasa_pupil
fp3_is_valid_madrasa_pupil = { SPONSOR = … }game/common/scripted_triggers/06_fp3_scripted_triggers.txt, line 110 (29 lines). Parameters: $SPONSOR$.
fp3_is_valid_madrasa_pupil is a scripted trigger in Crusader Kings III, in the Legacy of Persia files, written at line 110 of its file. A call passes 1 parameter: SPONSOR. The game's script calls it in 2 places, among them fp3_yearly.2060 (event) and number_of_madrasa_pupils (script value). Patch 1.20.1.2, from game/common/scripted_triggers/06_fp3_scripted_triggers.txt.
What it checks
$SPONSOR$.capital_province ?= { this = prev.location }- Is played by the AI
- Age more than 8
- Is under 16 years old
- Does not have the Modifier: Studying At University
One of these
$SPONSOR$ = { has_realm_law = equal_law }or
All of these
$SPONSOR$ = { … }is_female = yes
or
All of these
$SPONSOR$ = { … }is_male = yes
• 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 (29 lines of game script)
fp3_is_valid_madrasa_pupil = {
$SPONSOR$.capital_province ?= { this = prev.location } # Prevents error log errors from dumbo AI
is_ai = yes
age > 8
age < 16
NOT = { has_character_modifier = studying_at_university_modifier }
#Gender rules
OR = {
$SPONSOR$ = { has_realm_law = equal_law }
AND = {
$SPONSOR$ = {
OR = {
has_realm_law = female_only_law
has_realm_law = female_preference_law
}
}
is_female = yes
}
AND = {
$SPONSOR$ = {
OR = {
has_realm_law = male_only_law
has_realm_law = male_preference_law
}
}
is_male = yes
}
}
}As written in game/common/scripted_triggers/06_fp3_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls fp3_is_valid_madrasa_pupil.
Events (1)
Script values (1)
- number_of_madrasa_pupils
Source: game/common/scripted_triggers/06_fp3_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.