• 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.

david3k

Second Lieutenant
7 Badges
Nov 11, 2010
150
2
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis IV
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Crusader Kings III
I tried modding crown laws in the following way:
Code:
	centralization_1 = {
		show_as_title = yes
		group = centralization
		
		feudal_opinion = -5
		
		potential = {
			NOT = { has_law = centralization_1 }
		}
		allow = {
			OR = {
				has_law = centralization_0
				has_law = centralization_2
			}
			OR = {
				AND = {
					NOT = { title = e_hre }
					TECH_LEGALISM = 1
				}
				TECH_LEGALISM = 2
			}
		}

This was supposed to add an additional requirement when centralizing to Low CA to have the legalism tech at least on level 1 if you are not HRE, or level 2 if you indeed are the HRE.

In-game it displayed the requirements as
Code:
(X)One of the following must be true:
Titile is NOT: 'Holy Roman Empire'
Legalism level at least 1
Legalism level at least 2

Which clearly doesn't represent the syntax. So I double- and triple checked it but I can't seem to find a flaw.

I loaded up a game at AD 1337 start (so that I have a guaranteed level 1 Legalism) as HRE - and unsuprisingly I can't centralize.

So I loaded as France and suprisingly I can not centralize even though the game displays the sufficient requirement as not being the HRE... so everybody should centralize theoretically.

Anyway, I thought maybe I have the "title" trigger understood wrong, or maybe the TECH_LEGALISM must be on a concrete province scope... so I changed it to this:
Code:
	centralization_1 = {
		show_as_title = yes
		group = centralization
		
		feudal_opinion = -5
		
		potential = {
			NOT = { has_law = centralization_1 }
		}
		allow = {
			OR = {
				has_law = centralization_0
				has_law = centralization_2
			}
			capital_scope = { TECH_LEGALISM = 1 }
		}

This time it should just check your capital for the required tech level, no messing with HRE etc. In-game, the requirement simply doesn't display at all in the tooltip, and I can't change the law as France in AD 1337, when Paris has legalism at level 2.

Clearly I must not understand something and support from one of the scripters would be much appreciated.
 
Upvote 0
The scope for these decisions is a title so you can't use capital_scope or tech triggers. Try to first switch to holder_scope before using capital_scope = { TECH_LEGALISM = 1 }.