Hello everyone!
I've been looking for the past two days for a way to change or set a player's CO2 value, the same way we could update the gold or diplomatic victory points with a method such as
but I couldn't find anything so far. I searched in the Game, GameClimate, Player and GameConfiguration classes, but couldn't find anything. The CO2 update seems to be done internally. The only way it can be altered is through the modification of the save file itself.
I also tried to find a property that I could set with Game or GameConfiguration, in vain.
I don't think there is any way to do so for now. But maybe one of you guys has found something that I haven't been able to find.
Help would be greatly appreciated!
Thanks.
I've been looking for the past two days for a way to change or set a player's CO2 value, the same way we could update the gold or diplomatic victory points with a method such as
Code:
ChangeGoldBalance(-100); -- substracting 100 golds from the player
but I couldn't find anything so far. I searched in the Game, GameClimate, Player and GameConfiguration classes, but couldn't find anything. The CO2 update seems to be done internally. The only way it can be altered is through the modification of the save file itself.
I also tried to find a property that I could set with Game or GameConfiguration, in vain.
I don't think there is any way to do so for now. But maybe one of you guys has found something that I haven't been able to find.
Help would be greatly appreciated!
Thanks.