Is it possible to update a setting from in game with a LUA funtion/UI button?

Mwellrett

Chieftain
Joined
Oct 5, 2010
Messages
8
I ask because I think it would be interesting to add 2 buttons to the Workers, allowing you to do traditional automation, where the AI will perform as normal, spamming Trading Posts and chopping down forests, one which will save all existing improvements and only build on unimproved tiles, but will still chop down trees, and one that won't overwrite, and will also preserve forested tiles.

The settings in question are

{Game Directory}\Assets\Gameplay\XML\GameInfo\CIV5Player Options.xml

<GameData><PlayerOptions><Row><Type>PLAYEROPTION_SAFE_AUTOMATION

And

<GameData><PlayerOptions><Row><Type>PLAYEROPTION_LEAVE_FORESTS

I guess alternatively one could re-write the automation AI script, but that seems a bit beyond my depth.
 
Back
Top Bottom