If you are not already happy with setting up custom hotkey actions, there is another thread you should read about this first.
(Forum software won't let me post a link to this, but thread id is 8230!)
[update: so I can post links now, and the thread I was talking about is here viewtopic.php?f=41&t=8230]
So then I have a bunch of hotkey actions for different unit types, and selection filters, e.g.:
- Code: Select all
['Select onscreen idle artillery'] = {
order = 32,
action = 'UI_SelectByCategory +inview +idle MOBILE LAND ARTILLERY',
category = 'Selection Matrix'
},
Now, with this mod, I can also add hot keys like the following:
- Code: Select all
['AddOne idle artillery'] = {
order = 34,
action = "UI_Lua import('/mods/AddNearestByCategoryToSelection/lua.lua').AddNearestByCategoryToSelection('+idle MOBILE LAND ARTILLERY')",
category = 'Selection Matrix'
},
Have fun!
Thomas
(Mod posted as attachment, because I couldn't get the mod upload thing to work, in the mod vault..)