Sid Meier's Civilization V

Sid Meier's Civilization V

Touhou - Aran's Alice Civ
aranicar  [developer] 3 Apr, 2016 @ 8:23pm
Bugs / Typos
Feel free to add a bug or typo to this discussion. I don't have that much time to test the mod past one or two games on the latest version so any bugs / typos not noted here will probably never be fixed.
< >
Showing 1-4 of 4 comments
ST 16 Apr, 2016 @ 3:28am 
if you wanna give dummy policy, you should use this code

player:SetNumFreePolicies(1)
player:SetNumFreePolicies(0)

ex)
if player:GetCivilizationType() == dollCiv then
if not player:HasPolicy(dollPolicy) then
player:SetNumFreePolicies(1)
player:SetNumFreePolicies(0)
player:SetHasPolicy(dollPolicy, true)
--print("Set to DOLL")
end
else
if not player:HasPolicy(nonDollPolicy) then
player:SetNumFreePolicies(1)
player:SetNumFreePolicies(0)
player:SetHasPolicy(nonDollPolicy, true)
--print("Set to NONDOLL")
end
end
aranicar  [developer] 16 Apr, 2016 @ 8:04am 
Originally posted by Liberty:
if you wanna give dummy policy, you should use this code

Is there a specific reason to use this method? Through my tests, just using the player.SetHasPolicy method would give that player the policy. It seems redundant to set the free policies to 1 then to 0 when we grant the policy, especially when we still grant them the policy when free policies = 0.
ST 16 Apr, 2016 @ 5:00pm 
originally quick speed first policy cost is 15
but if this code doesn't exist, first policy cost will increase to 20
aranicar  [developer] 17 Apr, 2016 @ 8:35am 
That's interesting how SetHasPolicy also adds one to the number of total policies, it has been fixed. Thanks!
< >
Showing 1-4 of 4 comments
Per page: 1530 50