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 Northern Lords files

initial_decentralized_rule_friends_modifier_effect

initial_decentralized_rule_friends_modifier_effect = yes

game/common/scripted_effects/01_dlc_fp1_scripted_effects.txt, line 997 (45 lines). No parameters.

initial_decentralized_rule_friends_modifier_effect is a scripted effect in Crusader Kings III, in the The Northern Lords files, written at line 997 of its file. It takes no parameters: initial_decentralized_rule_friends_modifier_effect = yes. The game's script calls it in 1 place, among them Decentralized Rule (dynasty legacy). Patch 1.20.1.2, from game/common/scripted_effects/01_dlc_fp1_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 (45 lines of game script)
initial_decentralized_rule_friends_modifier_effect = {
	if = {
		limit = {
			exists = dynasty
			is_ruler = yes
		}
		if = {
			limit = {
				NOT = { has_variable = decentralized_rule_perk_value } 
			}
			set_variable = {
				name = decentralized_rule_perk_value
				value = 0
			}
		}
		
		every_relation = {
			type = friend
			add_to_temporary_list = decentralized_rule_friends
		}
		every_relation = {
			type = best_friend
			add_to_temporary_list = decentralized_rule_friends
		}

		if = {
			limit = {
				exists = var:decentralized_rule_perk_value
				save_temporary_scope_as = affected_friend
				var:decentralized_rule_perk_value < decentralized_rule_max
				any_in_list = {
					list = decentralized_rule_friends
					count > scope:affected_friend.var:decentralized_rule_perk_value 
				}
			}
			add_character_modifier = {
				modifier = decentralized_rule_perk_modifier
			}
			change_variable = {
				name = decentralized_rule_perk_value
				add = 1
			}
		}	
	}
}

As written in game/common/scripted_effects/01_dlc_fp1_scripted_effects.txt.

Where it is used

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

Dynasty legacies (1)

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