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

Polak

Léonard devint ch'ti
3 Badges
Sep 24, 2001
2.869
14
  • For The Glory
  • March of the Eagles
  • 500k Club
I begin to work a little the religions files. Interesting, but seems a little hard to understand the fonctionnement. Espiecially if we add more religions than in the vanilla.

So, scripting become very long and boring cause we must to rewrite each relations between each religions. There is no way to simplificate this ?

For example, the tolerance
Code:
		catholic = {
			catholic = { display = yes name = catholic default = 10 }
			oriental_orthodox = { display = no value = orthodox }
			orthodox = { display = yes name = orthodox default = -3 }
			sunni = { display = yes name = muslim default = -5 }
			shiite = { display = no value = sunni }
			ibadi = { display = no value = sunni }
			vajrayana = { display = no }
			theravada = { display = no }
			mahayana = { display = no }
			taoism = { display = no }
			confucianism = { display = no }
			hinduism = { display = no }
			shinto = { display = no }
			pagan = { display = no }
		}

It permits to represente the tolerance slider for some religions. Are we obliged to describe each religion with a display = no (as they don't appear in the window information) ?
is it possible to simplificate the code and use group religion instead of subgroup religion ?

For exemple :

sunni = { display = yes name = muslim default = -5 }
shiite = { display = no value = sunni }
ibadi = { display = no value = sunni }
will become

muslim = { display = yes default = -5 }
with the same effects ?
 
I don't really know anything about this, but I remember that when playing with some religions you can see "Muslim" or "Christian" in the tolerance sliders, so that is a possibility. You should try it.
 
Finally, i tested :

i would change
sunni = { display = yes name = muslim default = -5 }
shiite = { display = no value = sunni }
ibadi = { display = no value = sunni }

by
muslim = { display = yes default = -5 }

And it doen't work.
So sad, i have to rewrite each religion...
 
Now I understand how it works, it gives one of the religions a name and value and links any other ones you want to it, in other words, it's manual.

Code:
		sunni = {
			catholic = { display = yes name = christian default = 0 }
			hussite = { display = no value = catholic }
			orthodox = { display = no value = catholic }
			miaphysite = { display = no value = catholic }
 
Yes, but very long to script....:(
 
Welcome to my world! I added 6 or 7 new religions to A4K and it almost drove me insane to edit that religious_flags file. I can only add one per day, then I need rest from the sheer insanity building up during the process.:rofl: