Scripted trigger · By God Alone files
pam_ec_doctrine_is_nearest_step_trigger
pam_ec_doctrine_is_nearest_step_trigger = yesgame/common/scripted_triggers/pam_scripted_triggers.txt, line 5671 (14 lines). No parameters.
pam_ec_doctrine_is_nearest_step_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 5671 of its file. It takes no parameters: pam_ec_doctrine_is_nearest_step_trigger = yes (or no). The game's script calls it in 2 places, among them ecumenical_council_doctrine_host_pick_value (script value) and ecumenical_council_doctrine_pick_step_desire_value (script value). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
The comment above it in the file
The proposed scope:ec_step_to is the closest step from the held scope:ec_step_from that the rite can choose
What it checks
None of these
- You › Any character doctrine:
doctrine_in_same_group = scope:ec_step_fromthis != scope:ec_step_fromthis != scope:ec_step_tosave_temporary_scope_as = ec_step_otherroot.faith.main_rite = { rite_can_choose_doctrine = scope:ec_step_other }doctrine_divergence(scope:ec_step_from) < ecumenical_council_doctrine_change_divergence_value
- You › Any character doctrine:
• 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 (14 lines of game script)
pam_ec_doctrine_is_nearest_step_trigger = {
NOT = {
root = {
any_character_doctrine = {
doctrine_in_same_group = scope:ec_step_from
this != scope:ec_step_from
this != scope:ec_step_to
save_temporary_scope_as = ec_step_other
root.faith.main_rite = { rite_can_choose_doctrine = scope:ec_step_other }
"doctrine_divergence(scope:ec_step_from)" < ecumenical_council_doctrine_change_divergence_value
}
}
}
}As written in game/common/scripted_triggers/pam_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_ec_doctrine_is_nearest_step_trigger.
Script values (2)
- ecumenical_council_doctrine_host_pick_value
- ecumenical_council_doctrine_pick_step_desire_value
Source: game/common/scripted_triggers/pam_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.