On map initialization hook up GameUI/UIContainer/ConsoleUIContainer/CommandPanel/CommandButton0X (where X is the button number you want)and then save the last created dialog item as a variable.
Have a second trigger with a Dialog Item Is Used trigger for mouse entering the dialog item and a condition that makes sure the used dialog item is that from the variable and if the correct unit is selected (Selected Unit function). This trigger then primes a third trigger that uses a Mouse Clicked event.
You also need a trigger that disables the mouse clicked trigger when leaving the dialog item.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?