Checking number of Policies in a group.

JFD

Kathigitarkh
Joined
Oct 19, 2010
Messages
9,132
Location
The Kingdom of New Zealand
EDIT: Nevermind, I found a way to do what I want, although I would still appreciate advice on cross-referencing.

How can I create a function to check if a Player has a certain number of social policies from a certain group (not necessarily a branch) of policies? And would I be able to cross-reference this function, so that I didn't have to include it in every file that needed the results? I have seen a few things about "include" and "MapModData" but nothing that really tells me what they do, or how to get them to work.

For a specific example on the first thing, I want to check if the Player has at least five policies from the Piety branch and if they do then return that that player's epithet should be "the Pious." However, I would also like to be able to check if the Player has at least 2 policies from a group of policies in the Rationalism branch (say Humanism, Sovereignty and Scientific Revolution).
 
Back
Top Bottom