Troller0001
I've anxiously awaited your arrival!
So I am currently trying to add the following to the game: Great people cost no maintenance.
My idea is to use dummy policies which add 1, 2, 4, 8, 16, 32, 64 and/or 128 free maintenance units with help of the <BaseFreeUnits>-tag (Volunteer army tenet for reference). These policies would be applied/un-applied when great people are born/expended (using Lua). I however have a question upon adding dummy policies. My current setup:
My questions:
Phew, that were quite some questions. Anyway, thanks if you decide to respond!
-Troller0001
My idea is to use dummy policies which add 1, 2, 4, 8, 16, 32, 64 and/or 128 free maintenance units with help of the <BaseFreeUnits>-tag (Volunteer army tenet for reference). These policies would be applied/un-applied when great people are born/expended (using Lua). I however have a question upon adding dummy policies. My current setup:
Spoiler :
Code:
<Policies>
<Row>
<Type>POLICY_NO_MAINTENANCE_COST_1</Type>
<Description>TXT_KEY_POLICY_NO_MAINTENANCE_COST</Description>
<PolicyBranchType>POLICY_BRANCH_LIBERTY</PolicyBranchType>
<CultureCost>-1</CultureCost>
<BaseFreeUnits>1</BaseFreeUnits>
<Level>3</Level>
<PortraitIndex>25</PortraitIndex>
<IconAtlas>POLICY_ATLAS</IconAtlas>
<IconAtlasAchieved>POLICY_A_ATLAS</IconAtlasAchieved>
</Row>
----other dummy policies------------
</Policies>
- Would I need to add any <PolicyBranchType> here?
- Could I prevent the policy from being chosen by setting the <CultureCost> to -1?
- What does level do here?
- Am I missing some other important tags here?
- I know about the "player:SetNumFreePolicies(1)"-method. However, I also read about it breaking the game and making it so that a message doesn't show up if a new policy can be acquired. Has this been fixed already or has someone come up with a solution?
- When giving the desired player a free dummy policy (so that I can safely swap it with another dummy policy so that policy costs don't increase), their score should increase. Is there a way to remove this for the specific policy?
- Score increases when a player acquires a policy, does it also decrease when one is taken away?
Phew, that were quite some questions. Anyway, thanks if you decide to respond!
-Troller0001