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

unmerged(197405)

Recruit
1 Badges
Mar 1, 2010
7
0
  • Crusader Kings II
So i wanted to add building that will be only possible in province Poznanskie/with title Duchy of Greater Poland - my local patriotism
But AI 0 or -300 still build it some times. I have no idea about programing so help me plz!
No other mods in building files.
 
Last edited:
not sure you can tide a building to a title/province. valid for culture tough.
 
I'm pretty sure you can lock to a certain province/title. But I don't have the files at home so I can't check. Post the requirements of any of the other special buildings here and I can probably figure it out fro that.
 
Have you tried primary title = d_?
For the specific Provence i do not think things work that way. You could add a building that costs so much money no one will ever be able to build it and make it a upgrade from that. And give it to that Provence only.
 
That might do the trick:
Code:
polish_propaganda = {

	potential = {
		or = {
			province = 429 #- Gnieznienskie
			province = 430 #- Lubusz
			province = 431 #- Poznanskie
			province = 432 #- Kaliskie
		}
		FROM = { title = d_greater_poland }
	}
	
	build_cost = 50
	build_time = 50
	
	tax_income = 3 #Replace by desired building effects
	
	ai_creation_factor = 100
		start = {
	}
}
 
It seems that province checks are not allowed on building scope. :(

edit:
nope, can't get it to work. And time is short.
Someone else has to take over... >_<
 
Last edited:
That might do the trick:
Code:
polish_propaganda = {

	potential = {
		or = {
			province = 429 #- Gnieznienskie
			province = 430 #- Lubusz
			province = 431 #- Poznanskie
			province = 432 #- Kaliskie
		}
		FROM = { title = d_greater_poland }
	}
	
	build_cost = 50
	build_time = 50
	
	tax_income = 3 #Replace by desired building effects
	
	ai_creation_factor = 100
		start = {
	}
}

The buildings are not in a province scope but the barony title scope. So you need a location = {} around that or case. And instead of FROM = { title = d_greater_poland } try duchy = { title = d_greater_poland }.
 
Last edited:
Code:
polish_propaganda = {

	potential = {
		location = {
			OR = {
				province = 429 #- Gnieznienskie
				province = 430 #- Lubusz
				province = 431 #- Poznanskie
				province = 432 #- Kaliskie
			}
		}
		duchy = { title = d_greater_poland }
	}
[...]