Is it possible to create / modify worker actions?

Decker87

Chieftain
Joined
Oct 28, 2010
Messages
46
My idea is to introduce some new technologies which allow workers to do things such as "build canal" which would change a land tile to water tile, or "plant forest", or "create hill", etc.

Is it possible? Could anyone give me a pointer on where I could start in the XML files? Thanks in advance.
 
It is possible - see http://forums.2kgames.com/showthread.php?107689-MOD-Units-Tunnel-Boring-Machine-(TBM)

BUT you will run into two major issues
1) The 3D map view won't update for terrain changes (plains -> hills, land -> water) until the game is reloaded

2) The AI only has a concept of "worker", so trying to get it to meaningfully build and use specialist workers will be a major challenge (with may or may not be an issue depending on your personal views on subjective things such as "balance", "fairness" and "fun")

Also, the way the TBM detects tunnel completion only works if the tile is visible to a human player and the events used have also changed subtly between 511 and 675 so may no longer work. Which is why I have retired this mod - it's just not worth the effort.

The working version for 511 is attached below so you can pull out any code of use, but this will break G&K and probably 674 as it contains an old version of the core UnitPanel.lua file.
 
That's too bad. I was hoping it would be relatively low-hanging fruit; it seems it is not.
 
Back
Top Bottom