Scripted trigger
council_task_contract_valid_employer_trigger
council_task_contract_valid_employer_trigger = { COUNCILLOR_TYPE = … COUNCIL_TASK_TYPE = … }game/common/scripted_triggers/00_laamp_triggers.txt, line 652 (35 lines). Parameters: $COUNCILLOR_TYPE$, $COUNCIL_TASK_TYPE$.
council_task_contract_valid_employer_trigger is a scripted trigger in Crusader Kings III, written at line 652 of its file. A call passes 2 parameters: COUNCILLOR_TYPE and COUNCIL_TASK_TYPE. The game's script calls it in 4 places, among them laamp_help_fabricate_claim_contract (contract), laamp_help_faith_conversion_contract (contract) and laamp_help_find_secrets_contract (contract). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/00_laamp_triggers.txt.
The comment above it in the file
used in task contracts triggered from council tasks to check if employer and their liege or councillor are valid to issue a contract for you COUNCILLOR_TYPE = councillor type name COUNCIL_TASK_TYPE = council task type name
What it checks
valid_laamp_basic_trigger = { EMPLOYER = scope:employer LAAMP = scope:laamp }- Councillor Left Court
• 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 (35 lines of game script)
council_task_contract_valid_employer_trigger = {
trigger_if = {
limit = {
NOT = { exists = scope:laamp }
}
save_temporary_scope_as = laamp
}
valid_laamp_basic_trigger = {
EMPLOYER = scope:employer
LAAMP = scope:laamp
}
custom_tooltip = {
text = councillor_leaving_court_message_title
scope:employer = {
OR = {
AND = {
cp:$COUNCILLOR_TYPE$ ?= {
is_performing_council_task = $COUNCIL_TASK_TYPE$
}
valid_laamp_basic_trigger = {
EMPLOYER = scope:employer.cp:$COUNCILLOR_TYPE$
LAAMP = scope:laamp
}
}
AND = {
is_performing_council_task = $COUNCIL_TASK_TYPE$
valid_laamp_basic_trigger = {
EMPLOYER = scope:employer.liege
LAAMP = scope:laamp
}
}
}
}
}
}As written in game/common/scripted_triggers/00_laamp_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls council_task_contract_valid_employer_trigger.
Task contracts (4)
- laamp_help_fabricate_claim_contract
- laamp_help_faith_conversion_contract
- laamp_help_find_secrets_contract
- laamp_help_train_commanders_contract
Source: game/common/scripted_triggers/00_laamp_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.