Scripted effect · Roads to Power files
player_adventurer_contract_generation_on_wait_in_place_effect
player_adventurer_contract_generation_on_wait_in_place_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 2783 (20 lines). No parameters.
player_adventurer_contract_generation_on_wait_in_place_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 2783 of its file. It takes no parameters: player_adventurer_contract_generation_on_wait_in_place_effect = yes. The game's script calls it in 3 places, among them on_game_start_after_lobby (on action), on_travel_plan_abort (on action) and on_travel_plan_complete (on action). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
What it does
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (20 lines of game script)
player_adventurer_contract_generation_on_wait_in_place_effect = {
if = {
limit = { player_adventurer_sufficient_distance_for_contract_spawn_trigger = yes }
# Track where we are.
set_variable = {
name = contract_passive_spawn_location
value = location.kingdom
}
# Reset the tally.
set_variable = {
name = contract_passive_spawn_tally
value = 0
}
# Queue up an additional contract.
trigger_event = {
id = ep3_laamps.9981
months = { 4 6 }
}
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls player_adventurer_contract_generation_on_wait_in_place_effect.
On actions (the game's own hooks) (3)
- on_game_start_after_lobby
- on_travel_plan_abort
- on_travel_plan_complete
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.