Extending the patrol behavior of immobile builders
Posted: 24 Jan 2016, 18:34
Hi!
I haven't done any lua widgets scripting before but I would like to extend / tap into the prioritizing of nano towers.
I found this in the ta-repo https://github.com/n3wm1nd/TA/blob/mast ... uilder.lua.
The functionality I'm after is for the nano tower to be able to switch between assisting construction of different eco buildings depending on resources. So one solution without messing with the standard widget would be to fetch all the nanos that have patrol on (CMD_FIGHT with "meta"?) via the spring api and start directing them on specific buildings in my lua widget. And maybe put them back on patrol on some condition. So that would just be another widget on top. This is probably what I will try. Sounds reasonable? Would it be easier to replace the standard widget somehow?
// his_face
I haven't done any lua widgets scripting before but I would like to extend / tap into the prioritizing of nano towers.
I found this in the ta-repo https://github.com/n3wm1nd/TA/blob/mast ... uilder.lua.
The functionality I'm after is for the nano tower to be able to switch between assisting construction of different eco buildings depending on resources. So one solution without messing with the standard widget would be to fetch all the nanos that have patrol on (CMD_FIGHT with "meta"?) via the spring api and start directing them on specific buildings in my lua widget. And maybe put them back on patrol on some condition. So that would just be another widget on top. This is probably what I will try. Sounds reasonable? Would it be easier to replace the standard widget somehow?
// his_face