• 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?
 
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)
 
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.
 
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.
 
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
 
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:
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.
 
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
 
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....
 
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.
 
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?
 
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.
 
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.
 
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?
 
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.
 
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