• 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
11
  • 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 ?
 

Nein

Lt. General
2 Badges
Feb 19, 2013
1.257
2.130
  • Darkest Hour
  • For The Glory
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.
 

Polak

Léonard devint ch'ti
3 Badges
Sep 24, 2001
2.869
11
  • For The Glory
  • March of the Eagles
  • 500k Club
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...
 

Nein

Lt. General
2 Badges
Feb 19, 2013
1.257
2.130
  • Darkest Hour
  • For The Glory
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 }
 

Polak

Léonard devint ch'ti
3 Badges
Sep 24, 2001
2.869
11
  • For The Glory
  • March of the Eagles
  • 500k Club
Yes, but very long to script....:(
 

Basileios II

Count of Averland
50 Badges
Sep 18, 2001
559
40
Visit site
  • Tyranny: Archon Edition
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Europa Universalis III: Collection
  • Tyranny: Gold Edition
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Charlemagne
  • 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
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For The Glory
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • War of the Roses
  • 200k Club
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
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: