I'm looking at creating a mule drop type ability using a dialog button as a trigger for it. Unfortunately I can't figure out how to give the user a targeting cursor from inside a trigger. Anyone know how to do this?
hmm, I guess I don't need that specifically. Lets see if I can be more general.
I'm looking for a means of requesting a map location via a user mouse click. Even if I can find a way to trigger an ability from a trigger, then use an ability with a targeted location.
your hitting a problem many of the coders have been fighting with since start. There really isnt a way to get the mouse location, you have to be using some sort of modification of the HIGHLIGHT option IE if unit is highlighted then do X action at UNIT location. That has you doing an effect at your mouse location. Downside, there has to be something there.
The downside is that it's still experimental, that it eats a lot of performance, that it yields delay and can get bugged by certain movements of the mouse.
I've changed my plan a bit. As the abilities exact targeting is not critical, I used the camera position to select the point. I'm not sure how intuative it will be but...well if you want to see how it turned out, I've finally submitted it.
I'm looking at creating a mule drop type ability using a dialog button as a trigger for it. Unfortunately I can't figure out how to give the user a targeting cursor from inside a trigger. Anyone know how to do this?
hmm, I guess I don't need that specifically. Lets see if I can be more general.
I'm looking for a means of requesting a map location via a user mouse click. Even if I can find a way to trigger an ability from a trigger, then use an ability with a targeted location.
@qerodar: Go
your hitting a problem many of the coders have been fighting with since start. There really isnt a way to get the mouse location, you have to be using some sort of modification of the HIGHLIGHT option IE if unit is highlighted then do X action at UNIT location. That has you doing an effect at your mouse location. Downside, there has to be something there.
@coronbale: Go
The downside is that it's still experimental, that it eats a lot of performance, that it yields delay and can get bugged by certain movements of the mouse.
So basically: No real way to do so.
@s3rius:
I've changed my plan a bit. As the abilities exact targeting is not critical, I used the camera position to select the point. I'm not sure how intuative it will be but...well if you want to see how it turned out, I've finally submitted it.
http://www.sc2mapster.com/maps/risk-rts/