Scripted effect · Khans of the Steppe files
settlement_issue_on_accepted_default_effect
settlement_issue_on_accepted_default_effect = { ARRIVAL_ID = … NUMBER = … RESET_ID = … }game/common/scripted_effects/09_mpo_settlement_issue_effects.txt, line 1 (22 lines). Parameters: $ARRIVAL_ID$, $NUMBER$, $RESET_ID$.
settlement_issue_on_accepted_default_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 1 of its file. A call passes 3 parameters: ARRIVAL_ID, NUMBER and RESET_ID. The game's script calls it in 10 places, among them nomadic_migration_contract_1 (contract), nomadic_migration_contract_10 (contract) and nomadic_migration_contract_2 (contract). Patch 1.20.1.2, from game/common/scripted_effects/09_mpo_settlement_issue_effects.txt.
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)
settlement_issue_on_accepted_default_effect = {
save_scope_as = task_contract
task_contract_taker = {
set_variable = nomadic_migration_contract_$NUMBER$
if = {
limit = {
location = root.task_contract_location
}
trigger_event = {
id = mpo_contract_events.$ARRIVAL_ID$
}
}
else = {
start_travel_plan = {
destination = root.task_contract_location
on_arrival_event = mpo_contract_events.$ARRIVAL_ID$
return_trip = yes
on_travel_planner_cancel_event = mpo_contract_events.$RESET_ID$
}
}
}
}As written in game/common/scripted_effects/09_mpo_settlement_issue_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls settlement_issue_on_accepted_default_effect.
Task contracts (10)
- nomadic_migration_contract_1
- nomadic_migration_contract_10
- nomadic_migration_contract_2
- nomadic_migration_contract_3
- nomadic_migration_contract_4
- nomadic_migration_contract_5
4 more
- nomadic_migration_contract_6
- nomadic_migration_contract_7
- nomadic_migration_contract_8
- nomadic_migration_contract_9
Source: game/common/scripted_effects/09_mpo_settlement_issue_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.