Scripted trigger · Roads to Power files
ep3_adventurer_ai_valid_contract_trigger
ep3_adventurer_ai_valid_contract_trigger = { EMPLOYER = … LAAMP = … }game/common/scripted_triggers/07_ep3_triggers.txt, line 1525 (73 lines). Parameters: $EMPLOYER$, $LAAMP$.
ep3_adventurer_ai_valid_contract_trigger is a scripted trigger in Crusader Kings III, in the Roads to Power files, written at line 1525 of its file. A call passes 2 parameters: EMPLOYER and LAAMP. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_triggers/07_ep3_triggers.txt.
What it checks
Every line of it is script with no tooltip text: the script is below.
The script as written (73 lines of game script)
ep3_adventurer_ai_valid_contract_trigger = {
$LAAMP$ = {
OR = {
# DIPLOMACY
can_create_task_contract = { type_name = laamp_base_0001 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_0011 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_0021 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_0031 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_0011 employer = $EMPLOYER$ }
# MARTIAL
can_create_task_contract = { type_name = laamp_base_1001 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_1011 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_1021 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_1031 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_1041 employer = $EMPLOYER$ }
# STEWARDSHIP
can_create_task_contract = { type_name = laamp_base_2001 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_2011 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_2021 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_2031 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_2041 employer = $EMPLOYER$ }
# INTRIGUE
can_create_task_contract = { type_name = laamp_base_3001 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_3011 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_3021 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_3031 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_3041 employer = $EMPLOYER$ }
# LEARNING
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_4041 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_4100 employer = $EMPLOYER$ }
# PROWESS
can_create_task_contract = { type_name = laamp_base_5001 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_5011 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_5021 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_5031 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_5041 employer = $EMPLOYER$ }
# JUSTICAR
can_create_task_contract = { type_name = laamp_base_6001 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_6011 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_6021 employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_base_6031 employer = $EMPLOYER$ }
# EXTRA
can_create_task_contract = { type_name = laamp_boost_legitimacy_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_rid_councillor_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_gain_wanderer_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_find_secret_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_eliminate_heir_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_steal_artifact_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_construction_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_cultural_minority_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_religious_minority_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_prison_break_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_join_faction_contract 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$ }
can_create_task_contract = { type_name = laamp_help_fabricate_claim_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_help_increase_control_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_help_find_secrets_contract employer = $EMPLOYER$ }
}
AND = {
has_realm_law = camp_purpose_mercenaries
OR = {
can_create_task_contract = { type_name = laamp_raid_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_join_war_contract employer = $EMPLOYER$ }
can_create_task_contract = { type_name = laamp_help_claimant_contract employer = $EMPLOYER$ }
}
}
}
}As written in game/common/scripted_triggers/07_ep3_triggers.txt.
Where it is used
No file of common/, events/ or history/ calls it.
Source: game/common/scripted_triggers/07_ep3_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.