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

3inar

Major
44 Badges
Apr 30, 2010
507
7
  • Crusader Kings II: Charlemagne
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Pre-order
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Europa Universalis III: Chronicles
  • Deus Vult
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: Cadet
  • Crusader Kings III: Royal Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings III
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
  • Cities: Skylines
I cant seem to figure what is wrong with this code:

Code:
decisions = {
	create_k_smaland = {
			hide_if_not_possible = yes
			is_high_prio = yes	
		potential = {
			is_ruler = yes
			min_age = 16
                      	prisoner = no
                     	independent = yes
                      	NOT = { trait = incapable }
			primary_title = { title = d_smaland }
			NOT = { FROM = { 
                              tier = emperor 
                              tier = king
                              } 
			}
		}
		allow = {
			FROM = { title = k_smaland }
			religion = norse_pagan
                      	NOT = { trait = incapable }
			prestige = 200
			wealth = 100
			piety = 50
			}
		effect = {
			k_smaland = { gain_title = FROM }
			wealth = -100
			piety = 200
			prestige = 200
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}		
	}
 

xxxltravislxxx

Sergeant
51 Badges
Jan 18, 2011
54
0
  • Crusader Kings II
  • Europa Universalis IV
  • Sengoku
  • Stellaris: Distant Stars
  • Stellaris: Necroids
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Prison Architect
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Season pass
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Age of Wonders: Planetfall - Revelations
  • Prison Architect: Psych Ward
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Island Bound
  • A Game of Dwarves
  • Crusader Kings II: Conclave
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Stellaris: Apocalypse
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings Complete
  • BATTLETECH
  • Stellaris: Synthetic Dawn
1 have you actually created the kingdom in question in your mod files?
2 you have the title k_smaland as a requirement for its own creation, and you dont need to put the incapable part in twice. i would suggest keeping it under the potential category instead of allow and you might want to move the religion part up to potential as well to prevent characters from other religions from being able to see the decision.
hope this helps
 

3inar

Major
44 Badges
Apr 30, 2010
507
7
  • Crusader Kings II: Charlemagne
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Pre-order
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Europa Universalis III: Chronicles
  • Deus Vult
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: Cadet
  • Crusader Kings III: Royal Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings III
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
  • Cities: Skylines
Thanks, the second one was actualy the problem. First time I make a decision so I wasent aware off what everything meeant.

BTW the"primary_title" line does that meen that this title have to be the main one and if so what is the line for just being the holder of a specific title instead of having it shown as primary?

Im more or less thinking about how the AI will cope in making the title if they have to have duchy of småland as there main title but dosent.
 

xxxltravislxxx

Sergeant
51 Badges
Jan 18, 2011
54
0
  • Crusader Kings II
  • Europa Universalis IV
  • Sengoku
  • Stellaris: Distant Stars
  • Stellaris: Necroids
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Prison Architect
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Season pass
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Age of Wonders: Planetfall - Revelations
  • Prison Architect: Psych Ward
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Island Bound
  • A Game of Dwarves
  • Crusader Kings II: Conclave
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Stellaris: Apocalypse
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings Complete
  • BATTLETECH
  • Stellaris: Synthetic Dawn
yea, "primary_title" means the character in question must show up on the map as the duke of smaland.
and you could try just having "has_d_smaland = yes" under the potential list. im not sure if that would work though.
 

3inar

Major
44 Badges
Apr 30, 2010
507
7
  • Crusader Kings II: Charlemagne
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Pre-order
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Europa Universalis III: Chronicles
  • Deus Vult
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: Cadet
  • Crusader Kings III: Royal Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings III
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
  • Cities: Skylines
No dosent seem to work, I also tried a bunch of other things but I have had no succes of making it work so It seemes its not possible to create from a title that is not primary.

Anyone care to deny my theory? :)