Create ability which need only be clicked, then detect it with event "starts effect of an ability", then create an unit and force the player target that. That way it would be able to detect, if you want to build stuff you must force the player target the builder agen, give it som buildable building which he wants to build. Then allow player finally place the building.
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory