Possible? Using a lua script to change tech/civic costs in-game.

Eudaemonia

Chieftain
Joined
Aug 5, 2017
Messages
6
Hey all

Sadly the June 2019 patch seems to have broken the GlobalParameters around EraGates in the GS ruleset. See my bug report below:
https://www.reddit.com/r/civ/commen...t_megathread/eru1ma6/?st=jx8qisep&sh=70dbadf5

My Stronger Era Gates mod was a super simple little mod that relied on these parameters:
https://steamcommunity.com/sharedfiles/filedetails/?id=1765781407


One idea I'm toying with at the moment, given my lua experience in creating Gaia Map Script and Azimuthal Map Script is the following:

Would it be possible to create an in-game lua script that applies a cost multiplier to techs and civics, based on the Game Era and the Era the tech/civic belongs to - essentially re-creating the effect that was possible before the patch broke things.

I've done some Googling today and have found Gedemon's Lua Objects spreadsheet, though there doesn't appear to be a function that actually changes the cost of techs/civics.

Does anyone have experience in this area that might be able to comment?


- Eudaemonia
 
Try SetResearchProgress, ChangeCurrentResearchProgress, ChangeCurrentCulturalProgress, SetCulturalProgress.
 
Back
Top Bottom