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

Scripted effect · The Fate of Iberia files

purchase_truce_interaction_work_out_truce_days_effect

purchase_truce_interaction_work_out_truce_days_effect = { TARGET = … }

game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 1033 (25 lines). Parameters: $TARGET$.

purchase_truce_interaction_work_out_truce_days_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 1033 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 1 place, among them Purchase Truce (interaction). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

What it does

  • If never:
    • add_truce_both_ways = { character = $TARGET$ days = purchase_truce_interaction_truce_days_small_value name = TRUCE_PURCHASED }
  • Else, if never:
    • add_truce_both_ways = { character = $TARGET$ days = purchase_truce_interaction_truce_days_large_value name = TRUCE_PURCHASED }
  • Otherwise:
    • add_truce_both_ways = { character = $TARGET$ days = purchase_truce_interaction_truce_days_medium_value name = TRUCE_PURCHASED }

• 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 (25 lines of game script)
purchase_truce_interaction_work_out_truce_days_effect = {
	if = {
		limit = { always = scope:pt_sum_small }
		add_truce_both_ways = {
			character = $TARGET$
			days = purchase_truce_interaction_truce_days_small_value
			name = TRUCE_PURCHASED
		}
	}
	else_if = {
		limit = { always = scope:pt_sum_large }
		add_truce_both_ways = {
			character = $TARGET$
			days = purchase_truce_interaction_truce_days_large_value
			name = TRUCE_PURCHASED
		}
	}
	else = {
		add_truce_both_ways = {
			character = $TARGET$
			days = purchase_truce_interaction_truce_days_medium_value
			name = TRUCE_PURCHASED
		}
	}
}

As written in game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls purchase_truce_interaction_work_out_truce_days_effect.

Character interactions (1)

Source: game/common/scripted_effects/03_dlc_fp2_scripted_effects.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?