Pazyryk
Deity
- Joined
- Jun 13, 2008
- Messages
- 3,584
I need to deduct a certain amount of science from a player. GetScience() gets me a player's science this turn, but unfortunately I can't change this directly with a SetScience() function (because there isn't one).
Does anyone have any tips for deducting research points from a player? It could be as a set number of research points or a percent of total. I don't care how kludgy it is: via building, policy, whatever. My understanding is that negative yields (from buildings or tiles) don't work. (Even if the later statement is true for initial table values, do folks know for sure that city:SetBuildingYieldChange can't subsequently apply a negative modifier?)
One idea I had is to use Policy_YieldModifiers, with policies that apply -10, -20, etc. (percent?) to science yield. However, this table isn't used in base so I don't know if it works. Or if it does, it probably doesn't deduct from global yield as I am trying to do here.
Does anyone have any tips for deducting research points from a player? It could be as a set number of research points or a percent of total. I don't care how kludgy it is: via building, policy, whatever. My understanding is that negative yields (from buildings or tiles) don't work. (Even if the later statement is true for initial table values, do folks know for sure that city:SetBuildingYieldChange can't subsequently apply a negative modifier?)
One idea I had is to use Policy_YieldModifiers, with policies that apply -10, -20, etc. (percent?) to science yield. However, this table isn't used in base so I don't know if it works. Or if it does, it probably doesn't deduct from global yield as I am trying to do here.