What I'm looking to do is to have dialog buttons control abilities that the player has access to, but not any belonging to any specific unit that he owns.
So some examples of this would be in Command and Conquer where you have these little buttons that sit on the side of your screen and you click them to call in artillery or missiles or air strikes or whatever.
What I'm looking for specifically would be this:
I click the "airstrike" button, whatever units I currently have selected stay selected, an underlay is shown below the cursor that shows me the radius of the airstrike, I click the mouse and that calls in the attack.
If that's too complicated, can I use one click of the dialog button to select some building and an ability that it has? That way, clicking the dialog button would de-select my previous guys but at least it would immediately bring up the area icon. I could just have buildings sitting in a hidden part of the map and give them the abilities that I want.
I don't need a really specific answer to this question, but a vague idea of what triggers to use would be greatly appreciated.
What I'm looking to do is to have dialog buttons control abilities that the player has access to, but not any belonging to any specific unit that he owns.
So some examples of this would be in Command and Conquer where you have these little buttons that sit on the side of your screen and you click them to call in artillery or missiles or air strikes or whatever.
What I'm looking for specifically would be this: I click the "airstrike" button, whatever units I currently have selected stay selected, an underlay is shown below the cursor that shows me the radius of the airstrike, I click the mouse and that calls in the attack.
If that's too complicated, can I use one click of the dialog button to select some building and an ability that it has? That way, clicking the dialog button would de-select my previous guys but at least it would immediately bring up the area icon. I could just have buildings sitting in a hidden part of the map and give them the abilities that I want.
I don't need a really specific answer to this question, but a vague idea of what triggers to use would be greatly appreciated.
Laying this out as if you have already created the units from C&C Barracks and Infantry
Global Variables
Set Main Barracks
Initialize Dialog Build Menu
Process Dialog clicks
@SouLCarveRR: Go
Yeah, i guess his problem is this part: * Do actions for that specific dialog button . . .
As far as i know both is not doable without pretty big workarounds, sadly.
This is completely doable. I edited it above.