An Introductory Guide to Customizing Additional Hotkeys

It is sth like "AbstractSkirmisher"

it didnt work
i dont know what i did wrong.

also i need the hotkey for daymio

I tried to make one to select all the light infantry or unit of the same tag, how can I do it?

I’m a bit clumsy at programming

map("T", "Game", "uiFindAllOfTwoTypes(\"AbstractSkirmisher\", \"AbstractCounterSkirmisher\") uiCreateNumberGroup(0) uiFindAllOfType(\"Hero\")uiRemoveFromAnyNumberGroup uiSelectNumberGroup(0)")

You can change “T” to whatever bind you want.

You are the best, thank you very much

fwfwajakjf

I am trying to make a function that selects all units of the selected types. The existing command uiFindAllOfSelectedType() can only select units of one type. Even when multiple unit types are selected, it still only selects one type.

So I made a hotkey that performs uiFindAllOfSelectedType() multiple times:

map("control-`", "game", "uiCreateNumberGroup(0) uiFindAllOfSelectedType() uiCreateNumberGroup(9) uiSelectNumberGroup(0) uiFindAllOfSelectedType() uiAddSelectNumberGroup(9) uiSelectNumberGroup(0) uiFindAllOfSelectedType() uiAddSelectNumberGroup(9) uiSelectNumberGroup(9)")

Using this method, I can select all units of three selected types. However, when I add another repetition to select units of four selected types, the whole hotkey becomes invalid.

Is there a limit to the number of commands that can be chained together? For example, is the limit 10 commands at a time?

Or is there another way to achieve the effect I need?