CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger

can_create_transport_contract_trigger

can_create_transport_contract_trigger = { EMPLOYER = … LAAMP = … }

game/common/scripted_triggers/00_task_contract_triggers.txt, line 227 (42 lines). Parameters: $EMPLOYER$, $LAAMP$.

can_create_transport_contract_trigger is a scripted trigger in Crusader Kings III, written at line 227 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_transport_group-contracts

What it checks

Every line of it is script with no tooltip text: the script is below.

The script as written (42 lines of game script)
can_create_transport_contract_trigger = {
	$LAAMP$ = {
		OR = {
			can_create_task_contract = { 
				type_name = laamp_construction_contract 
				employer = $EMPLOYER$ 
			}
			can_create_task_contract = { 
				type_name = laamp_treasure_hunting_contract 
				employer = $EMPLOYER$ 
			}
			can_create_task_contract = { 
				type_name = laamp_transport_vip 
				employer = $EMPLOYER$ 
			}
			can_create_task_contract = { 
				type_name = laamp_transport_artifact 
				employer = $EMPLOYER$ 
			}
			can_create_task_contract = { 
				type_name = laamp_transport_gold 
				employer = $EMPLOYER$ 
			}
			can_create_task_contract = { 
				type_name = laamp_transport_ward 
				employer = $EMPLOYER$ 
			}
			can_create_task_contract = { 
				type_name = laamp_transport_explorer 
				employer = $EMPLOYER$ 
			}
			can_create_task_contract = { 
				type_name = laamp_transport_animal 
				employer = $EMPLOYER$ 
			}
			can_create_task_contract = { 
				type_name = laamp_transport_explorer 
				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_transport_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.

Spotted a mistake on this page?