Scripted effect · Roads to Power files
laamp_spawn_valid_task_contract
laamp_spawn_valid_task_contract = { SPAWN_POINT = … TASK_CONTRACT_TYPE = … }game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 2842 (22 lines). Parameters: $SPAWN_POINT$, $TASK_CONTRACT_TYPE$.
laamp_spawn_valid_task_contract is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 2842 of its file. A call passes 2 parameters: SPAWN_POINT and TASK_CONTRACT_TYPE. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The comment above it in the file
spawns a valid task contract for a landless adventurer root = landless adventurer TASK_CONTRACT_TYPE = type name of a task contract you want to spawn SPAWN_POINT = where you want the task contract to appear on the map
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (22 lines of game script)
laamp_spawn_valid_task_contract = {
$SPAWN_POINT$ = {
save_scope_as = spawn_location
}
random_ruler = {
limit = {
root = {
can_create_task_contract = {
type_name = $TASK_CONTRACT_TYPE$
employer = prev
}
}
}
save_scope_as = employer
}
create_task_contract = {
task_contract_type = $TASK_CONTRACT_TYPE$
task_contract_tier = scope:employer.task_contract_tier_value
location = scope:spawn_location
task_contract_employer = scope:employer
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
No file of common/, events/ or history/ calls it.
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.