SorFox
Chieftain
As far as I am aware of, the topic has been of interest for scenario developers quite a while. Many within the community have addressed the issue about transport mechanics to TheNamelessOne as well, but it was – sadly enough – never part of one of his releases. However, I think with Lua he gave us a tool to come pretty close to what the idea is all about.
At least one dimension of the concept is to give a land unit (call it “truck”) the ability to carry other land units, like freighter units do on see domain. Before Lua I was never completely happy with the following workaround applied:
Apparently, with Lua and the civ.scen.onKeyPress function a nice option appeared to let a land unit do this job (of carrying other land units) in a more logic, efficient and straightforward way.
Please find attached a basic solution for this concept which can be integrated into a TOT scenario using Lua events and TOTPP. The ‘events.lua’ file provides a working and adjustable implementation – feel free to incorporate and customize it to your needs!
Moreover, to have a basic setup for doing some quick tests on your own, I have attached other files as well. Simply unpack them and copy the folder ‘landTransporter’ into your TOT scenario directory.
Finally, I would like to thank three persons who made it possible to write the code. Firstly, the guy which most Civ2 enthusiast have to mention
TheNamelessOne, for giving us all the wonderful options with the TOTPP. Secondly, Prof. Garfield, with his tireless and highly appreciated effort to tackle the issue of Lua programming for the general community. Lastly and in particular, Knighttime, who helped me (as Lua newbie) every time I got stuck with all his super helpful tips.
Happy Civing!
At least one dimension of the concept is to give a land unit (call it “truck”) the ability to carry other land units, like freighter units do on see domain. Before Lua I was never completely happy with the following workaround applied:
- attaching sea units the paradrop ability and give them the right picture and name
- declare ocean tiles as impassable terrain, and
- give every real sea unit the ability to ‘override impassable terrain’ via rules.txt – except the truck unit.
Apparently, with Lua and the civ.scen.onKeyPress function a nice option appeared to let a land unit do this job (of carrying other land units) in a more logic, efficient and straightforward way.
Please find attached a basic solution for this concept which can be integrated into a TOT scenario using Lua events and TOTPP. The ‘events.lua’ file provides a working and adjustable implementation – feel free to incorporate and customize it to your needs!
Moreover, to have a basic setup for doing some quick tests on your own, I have attached other files as well. Simply unpack them and copy the folder ‘landTransporter’ into your TOT scenario directory.
Finally, I would like to thank three persons who made it possible to write the code. Firstly, the guy which most Civ2 enthusiast have to mention

Happy Civing!
Attachments
Last edited: