How would you decide which Policy locks which? I mean, if it is a locked relationship from the code I can work it no problem, if it changes from game to game (can't think of many reasons why) it's cool too, but if it is customizable I can't help you in that regard.
I'll make the code with placeholder locks just to see how the AI behaves and will get back to you, if it works well, we get to your policies. Fair?
Fair enough
I suppose, for "customizable", you mean with an XML table, right ?
If that's the problem, I just need the codes as example ("x AND y", "x OR y", "only x")
Then, I'm "opportunist"
enough to copy the code, changing the policy names, every time I want to apply it.
XML, or even better, SQL tables are easy, orderly and very cool
but not absolutely necessary.
I'm not finished with the policy system so I can't tell you exactly which policy depends from which. I completed most of them but there are still some key decision to make, especially regarding the government forms and how the player adopts them, that can push me to add or delete more branches.
By the way, I'm
shameless ... but maybe there's one little thing i could ask, when you've time...
In the vanilla game if X and Y Policy Branches are mutually exclusive, you can choose X and after, if you cange your mind, you can choose Y
(of course disabling all X's policies and losing their bonuses).
For a Human is ok, for the AI less...
I wish to prevent the AI to waste culture points without reason, making the choice permanent.
If, for example, Liberty and Tradition are mutually exclusive, once I choose Liberty I can no longer choose Tradition after... Tradition is blocked forever.
In my policy system there some branch that are really not compatible with each other, so or I make them mutually exclusive or I have to change them.
But I fear the AI is not wise enough about this... and if I'm right about the AI, this code could be considered more as a bugfix than as a feature, because I don't think the AI has the ability to evaluate correctly when wasting an entire branch...
I hope I'm not asking too much...
anyway, as always, thank you in advance for your efforts!