Scripted trigger
can_create_learning_contract_trigger
can_create_learning_contract_trigger = { EMPLOYER = … LAAMP = … }game/common/scripted_triggers/00_task_contract_triggers.txt, line 135 (34 lines). Parameters: $EMPLOYER$, $LAAMP$.
can_create_learning_contract_trigger is a scripted trigger in Crusader Kings III, written at line 135 of its file. A call passes 2 parameters: EMPLOYER and LAAMP. The game's script calls it in 2 places, among them 1025_randomize_and_remember_contract_type_effect (local effect) and 5025_can_spawn_contract_trigger (local trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_task_contract_triggers.txt.
The comment above it in the file
This should list _ALL_ laamp_contracts_learning_group-contracts
What it checks
Every line of it is script with no tooltip text: the script is below.
The script as written (34 lines of game script)
can_create_learning_contract_trigger = {
$LAAMP$ = {
OR = {
can_create_task_contract = {
type_name = laamp_base_4001
employer = $EMPLOYER$
}
can_create_task_contract = {
type_name = laamp_base_4011
employer = $EMPLOYER$
}
can_create_task_contract = {
type_name = laamp_base_4021
employer = $EMPLOYER$
}
can_create_task_contract = {
type_name = laamp_base_4031
employer = $EMPLOYER$
}
can_create_task_contract = {
type_name = laamp_base_4100
employer = $EMPLOYER$
}
can_create_task_contract = {
type_name = laamp_help_faith_conversion_contract
employer = $EMPLOYER$
}
can_create_task_contract = {
type_name = laamp_fight_faith_conversion_contract
employer = $EMPLOYER$
}
}
}
}As written in game/common/scripted_triggers/00_task_contract_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls can_create_learning_contract_trigger.
Scripted effects inside an event file (1)
- 1025_randomize_and_remember_contract_type_effect
Scripted triggers inside an event file (1)
- 5025_can_spawn_contract_trigger
Source: game/common/scripted_triggers/00_task_contract_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.