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

Scripted effect

diarch_syphon_treasury_interaction_syphon_development_growth_effect

diarch_syphon_treasury_interaction_syphon_development_growth_effect = { LOSS = … }

game/common/scripted_effects/00_diarchy_scripted_effects.txt, line 570 (39 lines). Parameters: $LOSS$.

diarch_syphon_treasury_interaction_syphon_development_growth_effect is a scripted effect in Crusader Kings III, written at line 570 of its file. A call passes 1 parameter: LOSS. The game's script calls it in 1 place, among them Skim the Coffers (interaction). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_diarchy_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 (39 lines of game script)
diarch_syphon_treasury_interaction_syphon_development_growth_effect = {
	# First, configure the development growth loss to be divided.
	save_scope_value_as = {
		name = county_attribute_loss
		value = $LOSS$
	}
	if = {
		limit = { scope:county_attribute_loss = massive_development_progress_loss }
		custom_tooltip = diarch_syphon_treasury_interaction_syphon_development_growth_massive_tt
	}
	else_if = {
		limit = { scope:county_attribute_loss = major_development_progress_loss }
		custom_tooltip = diarch_syphon_treasury_interaction_syphon_development_growth_major_tt
	}
	else_if = {
		limit = { scope:county_attribute_loss = medium_development_progress_loss }
		custom_tooltip = diarch_syphon_treasury_interaction_syphon_development_growth_medium_tt
	}
	else = { custom_tooltip = diarch_syphon_treasury_interaction_syphon_development_growth_minor_tt }
	# Now, execute our general effects.
	hidden_effect = {
		while = {
			count = syphon_treasury_recipient_county_tally
			random_held_county = {
				limit = {
					NOT = {
						save_temporary_scope_as = current_county
						any_in_list = {
							list = syphon_treasury_affected_counties
							this = scope:current_county
						}
					}
				}
				change_development_progress = syphon_treasury_county_attribute_loss_fraction
				add_to_list = syphon_treasury_affected_counties
			}
		}
	}
}

As written in game/common/scripted_effects/00_diarchy_scripted_effects.txt.

Where it is used

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

Character interactions (1)

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