• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Jia Xu

Strategist
64 Badges
Feb 27, 2010
4.899
9.717
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Sign Up
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
  • Europa Universalis IV
  • Europa Universalis IV: Call to arms event
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Deus Vult
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
I want to set up a decision which will change crown laws. Does anyone know what the exact command is? In the history files law = centralization_4 and the like is enough. It's not working for decisions though, and I'm left wondering what the proper command is if it's not law =.
 
from the cb_types.txt.
Code:
any_demesne_title = { # All titles
				limit = {
					OR = {
						tier = king
						tier = emperor
					}
					is_titular = no
					NOT = { has_law = centralization_0 }
				}
				if = {
					limit = { has_law = centralization_1 }
					add_law = centralization_0
				}
				if = {
					limit = { has_law = centralization_2 }
					add_law = centralization_1
				}
				if = {
					limit = { has_law = centralization_3 }
					add_law = centralization_2
				}
				if = {
					limit = { has_law = centralization_4 }
					add_law = centralization_3
				}
			}
		}
or
Code:
if = {
			limit = { has_law = centralization_1 }
			add_law_w_cooldown = centralization_0
		}
		if = {
			limit = { has_law = centralization_2 }
			add_law_w_cooldown = centralization_1
		}
		if = {
			limit = { has_law = centralization_3 }
			add_law_w_cooldown = centralization_2
		}
		if = {
			limit = { has_law = centralization_4 }
			add_law_w_cooldown = centralization_3
		}
 
Crown laws are already decisions, basically. Unless you have a compelling reason otherwise, I'd suggest just altering the decisions/crown_laws.txt...

Crown laws in game can only be changed once per ruler, have to undergo the voting process, bla, bla, bla. I was just going to mess around with decisions to cut right to the chase. I'm just playing around right now, getting a hold on things. What CK2 really lacks is realm specific flavour decisions seen in other PI games. For example, in EU3, France gets a special decision which lets it switch to Absolute Monarchy before everyone else. It's a nice little nod to the Bourbon absolutism. I don't know where I'll apply these law changing decisions yet, but the first step with modding is always learning how to do it first.
 
Crown laws in game can only be changed once per ruler, have to undergo the voting process, bla, bla, bla. I was just going to mess around with decisions to cut right to the chase. I'm just playing around right now, getting a hold on things. What CK2 really lacks is realm specific flavour decisions seen in other PI games. For example, in EU3, France gets a special decision which lets it switch to Absolute Monarchy before everyone else. It's a nice little nod to the Bourbon absolutism. I don't know where I'll apply these law changing decisions yet, but the first step with modding is always learning how to do it first.
Ah. Sensible enough, I suppose. Good luck!