Extending the patrol behavior of immobile builders

Extending the patrol behavior of immobile builders

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
jivvz
Posts: 38
Joined: 04 May 2009, 00:03

Extending the patrol behavior of immobile builders

Post by jivvz »

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
Post Reply

Return to “Lua Scripts”