Policies (Help)

Riker13

King
Joined
Nov 9, 2001
Messages
859
Location
UK
Can Policies be made Unique to just your own Civ?
If so how please, XML if possible.
Would it be as a Trait?

Riker13:crazyeye:
 
Last edited:
How many Traits can a Civilization have, as if more than one maybe make a Policy also a trait?
Would that work?
 
Last edited:
Looking at the tables I don't see how you could do it directly, but I'm thinking that there may be a workaround: Maybe you could make a policy that has modifiers that only work for a particular Civ. REQUIREMENT_CIV_TYPE_MATCHES might do the job for you, but it comes with a huge caveat – None of the existing code uses it, so you'll just have to hope that the code to make it work exists (and of course that I'm not talking complete rubbish, which is possible as I've only been modding Civ VI for a few weeks).
 
I think that there is another huge flaw to this solution: Any civ could put that policy card into one of their slots, but it wouldn't have any effects to them. This is especially problematic in terms of AIs not knowing what they are doing.

What I don't really understand is why you would want to make a policy unique to a civ, as policies are basicly boni, that can be given to civs by simply using traits.
 
Yeah. I thought of that. Sadly there's no REQUIREMENT_CIV_TYPE_DOES_NOT_MATCH. You could code one modifier for each Civ, but it would be a task, and wouldn't work on any mod civs that weren't included. Unless REQUIREMENT_CIV_TYPE_MATCHES actually uses a regex comparison rather than equality test. Then you'd only need to create two modifiers.

I'm unfamiliar with how the AI prioritises the policy choices or if it even does, but there may be a way to get the AI for a civ to avoid a specific policy.
 
Hi Guys, thanks for responding. After mucking about with it for a day! I decided to go another way with what I was after and turned a modifier into a Trait which worked :) thank the Lord as I am losing enough of my hair as it is.
After successfully dealing with this I do wonder if I can turn a Policy into a trait which would make it Unique, I may have a go and see.
Im sure CiV was easier to mod.
 
Yep, that's possible, you can simply use the modifier you find in PolicyModifiers and add it to your trait in TraitModifiers. To make it unique you'd want to remove, or even better replace the Policy.
 
Cool, I thought that might be the case, after figuring out what I done yesterday things started to become a little clearer. :)
I may even get to play my own Mod one day. ;)
 
Back
Top Bottom