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

Scripted effect · All Under Heaven files

set_or_change_offered_tribute_value_effect

set_or_change_offered_tribute_value_effect = { TYPE = … VALUE = … }

game/common/scripted_effects/tgp_tribute_mission_scripted_effects.txt, line 464 (15 lines). Parameters: $TYPE$, $VALUE$.

set_or_change_offered_tribute_value_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 464 of its file. A call passes 2 parameters: TYPE and VALUE. The game's script calls it in 1 place, among them Select Gold Tribute (interaction). Patch 1.20.1.2, from game/common/scripted_effects/tgp_tribute_mission_scripted_effects.txt.

What it does

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

The script as written (15 lines of game script)
set_or_change_offered_tribute_value_effect = {
	if = {
		limit = { has_variable = offered_$TYPE$_value }
		change_variable = {
			name = offered_$TYPE$_value
			add = $VALUE$
		}
	}
	else = {
		set_variable = {
			name = offered_$TYPE$_value
			value = $VALUE$
		}
	}
}

As written in game/common/scripted_effects/tgp_tribute_mission_scripted_effects.txt.

Where it is used

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

Character interactions (1)

Source: game/common/scripted_effects/tgp_tribute_mission_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?