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

outlawing2

Sergeant
2 Badges
Aug 4, 2012
92
1
  • Crusader Kings II
  • 500k Club
I'm trying to implement a caste system somewhere else than India and so far it goes terribly. I was able to create the castes I wanted with their tier but here they are the issues I am encountering:

- if I don't add parameters to exclude Indian characters (culture_group, religion, etc.), it always includes them in the population eligible to have theses castes, in addition of the old ones.
- if I add these parameters, it entirely breaks the customized castes, they appear IG but they have no impact on the character stats and are not transmitted to children.
- I can't find the script that automatically gives the apropriate caste to Lords, Mayor or Priests. I created a decision to add a caste for every character in X region but I still can't transmit it from the previous ruler to the new one, specially for priests and mayors.

Does someone have tips?
 

ngppgn

Field Marshal
19 Badges
Jan 29, 2011
3.508
656
  • Crusader Kings III
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
The caste system is hard-coded to only work with the Indian religions. I don't think there's a way to mod it except by cannibalizing the indians.

What do the caste traits do that any normal trait doesn't anyway? (besides the inheritance, which can be easilt incorporated by an on_birth event)
 

Patroclusmega

Leonardo Saponara
17 Badges
Sep 24, 2014
325
192
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Crusader Kings II
  • Victoria 2
  • Cities: Skylines
  • Crusader Kings II: Horse Lords
  • Knights of Pen and Paper 2
  • Surviving Mars
  • Age of Wonders III
  • Shadowrun Returns
  • Imperator: Rome Sign Up
  • Victoria 3 Sign Up
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
You can mod caste trait and also define them as caste and they will work for every religion. I'm the one then with ngppgn scripted the caste system of Thedas King so I know then you can, we also did a special inheritance system based on the sex of newborn.
 

Daronaollard

Useless modder
99 Badges
Feb 15, 2013
364
430
  • Humble Paradox Bundle
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Crusader Kings III
It's very sad, RoI is out for a long time now and the caste moddability didn't improve. I was hoping that the new patch improved it but meh.

I agree. I really do hope caste modding becomes a thing though. There still might be hope.
 

Daronaollard

Useless modder
99 Badges
Feb 15, 2013
364
430
  • Humble Paradox Bundle
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Crusader Kings III
Mother of God am I became invisible ? Caste modding is possible and I've done it.

Who...who said that? :rolleyes:

Seriously though, I must not have read your reply properly. I went back and reread it. Now I understand what you said. I had just woken up when I was reading this thread. :p
 

Patroclusmega

Leonardo Saponara
17 Badges
Sep 24, 2014
325
192
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Crusader Kings II
  • Victoria 2
  • Cities: Skylines
  • Crusader Kings II: Horse Lords
  • Knights of Pen and Paper 2
  • Surviving Mars
  • Age of Wonders III
  • Shadowrun Returns
  • Imperator: Rome Sign Up
  • Victoria 3 Sign Up
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
Castes are simple trait with
caste_tier = X
inside their traid modding where X is the rank of the caste, higher X is higher is the rank of the caste. You can mod opinion modifier like every trait and they act like every trait with the exception then if an event give the trait to a character he will lose the former trait caste and then the castes traits are inheritable. The sons/daughter always inherit the caste of lower_tier but you can mod it with an on_birth event.
 
  • 1
Reactions:

Voltspark

Captain
17 Badges
Aug 2, 2013
348
260
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Crusader Kings III
  • Stellaris: Ancient Relics
  • Prison Architect
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Cities: Skylines
Caste traits made using the caste flag in the traits file will always mess up the Indian religions unless you make some maintenance events that fix it. Working on Adjustments for Unusual Heresies, I made the Yazidi caste system completely separately from the Indian castes by using a ton of events including on_birth evens and an event that fires for generated Yazidi characters with no parents to assign them a caste.

Here's a link to my forum thread: https://forum.paradoxplaza.com/foru...ts-for-unusual-heresies.841544/#post-19010335

I'm taking a break from active development at the moment, but from looking at the changes in the recent patch, my Yazidi caste events should still be functional, even if the rest of the mod is currently broken due to changes in folder structures.
 

ngppgn

Field Marshal
19 Badges
Jan 29, 2011
3.508
656
  • Crusader Kings III
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
What they are saying, if I'm reading correctly, is that if, in a mod where the indian_group religious group is defined, the vanilla caste inheritance will only work for that religious group. Also, if you don't use random = no the game will always give them to indians, specificying a potential doesn't help, you need to expresely say not = {religion_group = indian_group }. Also the vanilla castes are somewhat hardcodedly associated to holding types and this is not reproducible naturally (wthout heavy scripting). But when we enter into heavy scripting, then there is nothing to distinghuish caste traits than every other trait
 

Patroclusmega

Leonardo Saponara
17 Badges
Sep 24, 2014
325
192
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Crusader Kings II
  • Victoria 2
  • Cities: Skylines
  • Crusader Kings II: Horse Lords
  • Knights of Pen and Paper 2
  • Surviving Mars
  • Age of Wonders III
  • Shadowrun Returns
  • Imperator: Rome Sign Up
  • Victoria 3 Sign Up
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
Caste traits made using the caste flag in the traits file will always mess up the Indian religions unless you make some maintenance events that fix it. Working on Adjustments for Unusual Heresies, I made the Yazidi caste system completely separately from the Indian castes by using a ton of events including on_birth evens and an event that fires for generated Yazidi characters with no parents to assign them a caste.

Here's a link to my forum thread: https://forum.paradoxplaza.com/foru...ts-for-unusual-heresies.841544/#post-19010335

I'm taking a break from active development at the moment, but from looking at the changes in the recent patch, my Yazidi caste events should still be functional, even if the rest of the mod is currently broken due to changes in folder structures.
The caste flag is also an optional, anyway if you don't want to use it you can do it with simple 2 event, the on_birth event for assign caste to newborn and an event then fire on_startup and on_yearly_pulse then give caste to who hasn't....
 

Voltspark

Captain
17 Badges
Aug 2, 2013
348
260
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Crusader Kings III
  • Stellaris: Ancient Relics
  • Prison Architect
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Cities: Skylines
The caste flag is also an optional, anyway if you don't want to use it you can do it with simple 2 event, the on_birth event for assign caste to newborn and an event then fire on_startup and on_yearly_pulse then give caste to who hasn't....

That's what I did in my mod. In order to prevent people who converted to Yazidi from receiving a caste without taking the decision for it, I had an on startup event fire that flagged anyone who existed at gamestart, and then another event with a mean time to happen of one day that would fire for Yazidi with no parents that didn't have a caste trait or a flag from the previous event.
 

ngppgn

Field Marshal
19 Badges
Jan 29, 2011
3.508
656
  • Crusader Kings III
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
That's what I did in my mod. In order to prevent people who converted to Yazidi from receiving a caste without taking the decision for it, I had an on startup event fire that flagged anyone who existed at gamestart, and then another event with a mean time to happen of one day that would fire for Yazidi with no parents that didn't have a caste trait or a flag from the previous event.

Are you sure a periodical on_whatever_pulse wouldn't be more practical than a 1 day mtth event?
 

Voltspark

Captain
17 Badges
Aug 2, 2013
348
260
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Crusader Kings III
  • Stellaris: Ancient Relics
  • Prison Architect
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Cities: Skylines
The one day thing fires almost instantly and is only valid on the characters specified in the trigger. I haven't noticed any issues with using it and it is significantly faster than the pulse events.
 

Patroclusmega

Leonardo Saponara
17 Badges
Sep 24, 2014
325
192
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Crusader Kings II
  • Victoria 2
  • Cities: Skylines
  • Crusader Kings II: Horse Lords
  • Knights of Pen and Paper 2
  • Surviving Mars
  • Age of Wonders III
  • Shadowrun Returns
  • Imperator: Rome Sign Up
  • Victoria 3 Sign Up
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
The one day thing fires almost instantly and is only valid on the characters specified in the trigger. I haven't noticed any issues with using it and it is significantly faster than the pulse events.
But It require a lot more of cpu use, I suggest you to use only on_xxx_pulse for that sort of thing but it's just a suggestion.
 

pkent

Corporal
31 Badges
Jan 21, 2016
45
1
  • Europa Universalis IV
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Conclave
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Jade Dragon
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Stellaris: Nemesis
  • Europa Universalis IV: Pre-order
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
You can mod caste trait and also define them as caste and they will work for every religion. I'm the one then with ngppgn scripted the caste system of Thedas King so I know then you can, we also did a special inheritance system based on the sex of newborn.

Where can I go to view an example of this? Also a special inheritance system? I would really like this for a group of traits id like to create. Can you expand or direct me to an example? Ideally what I would like is something similar to sayyid/mirza but a bit different and id like to use a trait other than those two.

Also do you know if you can have caste tiers higher than 3?
 

TheBeetlejuice

Private
53 Badges
Aug 26, 2016
15
9
  • Victoria 2: A House Divided
  • Crusader Kings II
  • Hearts of Iron III
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Nemesis
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV
  • Stellaris: Federations
  • Stellaris: Ancient Relics
  • Prison Architect
  • Imperator: Rome
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Distant Stars
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Victoria 2
  • Crusader Kings III
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
Where can I go to view an example of this? Also a special inheritance system? I would really like this for a group of traits id like to create. Can you expand or direct me to an example? Ideally what I would like is something similar to sayyid/mirza but a bit different and id like to use a trait other than those two.

Patroclusmega hasn't been online in over half a year, but for reference on what you want to do you could take a look at the vanilla sayyid/mirza traits, particularly the agnatic/enatic flags, possibly coupled with on_birth events. You might also want to check out the mod they mentioned.

I believe castes are still hardcoded to indian religions though.
 

pkent

Corporal
31 Badges
Jan 21, 2016
45
1
  • Europa Universalis IV
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Conclave
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Jade Dragon
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Stellaris: Nemesis
  • Europa Universalis IV: Pre-order
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Patroclusmega hasn't been online in over half a year, but for reference on what you want to do you could take a look at the vanilla sayyid/mirza traits, particularly the agnatic/enatic flags, possibly coupled with on_birth events. You might also want to check out the mod they mentioned.

I believe castes are still hardcoded to indian religions though.
Thank you. I cant seem to find anything about the Sayyid/Mirza trait though. It isnt obvious to me how that mechanism works but it makes sense that it must be an on birth event now