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

decentralized_rule_removal_effect

decentralized_rule_removal_effect = yes

game/common/scripted_effects/01_dlc_fp1_scripted_effects.txt, line 1091 (44 lines). No parameters.

decentralized_rule_removal_effect is a scripted effect in Crusader Kings III, in the The Northern Lords files, written at line 1091 of its file. It takes no parameters: decentralized_rule_removal_effect = yes. The game's script calls it in 2 places, among them on_death_relation_friend (on action) and on_remove_relation_friend (on action). Patch 1.20.1.2, from game/common/scripted_effects/01_dlc_fp1_scripted_effects.txt.

What it does

  • If

    Then

    • If

      • Decentralized rule perk value at most decentralized rule max
      • Decentralized rule perk value more than 0
      • Any in list:

      Then

      • If has the Modifier: Decentralized Rule: Loses “Decentralized Rule”

• 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 (44 lines of game script)
decentralized_rule_removal_effect = {
	if = {
		limit = {
			dynasty ?= {
				has_dynasty_perk = fp1_adventure_legacy_5
			}
		}

		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
				var:decentralized_rule_perk_value > 0
				any_in_list = {
					list = decentralized_rule_friends
					count < var:decentralized_rule_perk_value
					NOT = { has_character_flag = about_to_die_but_not_dead_yet_flag  }
				}
			}
			
			if = {
				limit = {
					has_character_modifier = decentralized_rule_perk_modifier
				}
				remove_character_modifier = decentralized_rule_perk_modifier
			}
		
			change_variable = {
				name = decentralized_rule_perk_value
				subtract = 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 decentralized_rule_removal_effect.

On actions (the game's own hooks) (2)

  • on_death_relation_friend
  • on_remove_relation_friend

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?