I believe the person who did the validator did that on purpose, they do nothing in most places in ck2 but cause no errors.@tsf4 The validator is not always up to date. I would suggest using the error logs instead.
I believe the person who did the validator did that on purpose, they do nothing in most places in ck2 but cause no errors.@tsf4 The validator is not always up to date. I would suggest using the error logs instead.
This is not really the thread for questions so for future reference ping me in the quick questions thread/some other thread or send me a PM@blackninja9939 , whats up with the "revoke_allowed" in events decisions and cb's ? Validator always picks these up as issues, and not sure what they do?
I can take a look but no promises, as I said in the addition of the set gender command it can cause wildly odd behaviour. All it does is set the gender, it does no validation about the dynastic or diplomatic relations etc of the character you are changing gender of. So what you end up with is likely to be very odd when using it which you will then have to clean up yourself for whatever you still want to keep going.@blackninja9939 would it be possible to make the consort/concubine system even more flexible by allowing either gender to take same gender concubines ? there seems to be a block in add_consort itself preventing this, considering you just added a gender change function it's going to be a edge case that needs handling anyway
I second this notion! Maybe put it in defines, so that modders could turn it on/off at will. There is currently a demand for this feature among the mod users@blackninja9939 would it be possible to make the consort/concubine system even more flexible by allowing either gender to take same gender concubines ? there seems to be a block in add_consort itself preventing this, considering you just added a gender change function it's going to be a edge case that needs handling anyway
- Added supply_limit trigger. Used in a province scope, it compares the supply in the province for a given character and their leader against a value. The leader defaults to the given character unless specified. eg: supply_limit = { for = scope <leader> = scope value > 10 }
I don't quite understand. Mind giving an example? The enclosing scope must be the province?
some_province = {
supply_limit = { for = root leader = father value > 15 }
}
some_other_province = {
supply_limit = { for = mother value > 15 } # leader will also be the mother as no other leader specificed
}
Oh hah yeah, been a while since I did script on CK2, will correct my example!An FYI, the Dot Notation for scopes doesn't work in CK2, only later versions of the engine (Stellaris and *maybe* HOI4).
The "for" parameter disconcerts me. ¿Why is it necessary? Also, what are the semantics? I thought supply limit was a purely provincial value. Or does it mean the "days of supply" thing when on foreign territory? I feel like I lack some fundamental concept here (shame on me).Code:some_province = { supply_limit = { for = root leader = father value > 15 } } some_other_province = { supply_limit = { for = mother value > 15 } # leader will also be the mother as no other leader specificed }
Supply limit is contextual, the supply that character A has in a province is different than character B in the same province as it is based on their traits and tech etc.The "for" parameter disconcerts me. ¿Why is it necessary? Also, what are the semantics? I thought supply limit was a purely provincial value. Or does it mean the "days of supply" thing when on foreign territory? I feel like I lack some fundamental concept here (shame on me).
I can take a look but no promises, as I said in the addition of the set gender command it can cause wildly odd behaviour. All it does is set the gender, it does no validation about the dynastic or diplomatic relations etc of the character you are changing gender of. So what you end up with is likely to be very odd when using it which you will then have to clean up yourself for whatever you still want to keep going.
set_gender literally changes their gender, you make a male character become female or visa versa. What I meant in the statement you quoted was that the command will not do any sort of validation to stop a character from having two fathers or mothers, or severing any diplomatic ties or giving allowances for them.I'm a little confused. Does set_gender just set the localisation gender or does it set the sex? In the mod I made, an invading horde is led by a woman. If you border her long enough, she sends out an invitation to be her "consort" (wife/husband), in exchange for your vassalage. With male characters this works fine, but with female characters this leads to a situation where both characters are considered a "husband" (and thus kinda borks up succession with children). Would set_gender fix this and allow the female invader to be considered the 'husband' and the female player to be the wife in the union?
Aka, use it at your own risk but if it does weird stuff you have been warned
"Oh, you sweet summer child"…Oh trust me, it cant get much weirder than being able to change genders on the fly.
- Un-hardcoded the republic clothing, it now works as any other portrait does via the script.