I need help, I am programming a click defense map and I'm trying to make it that when you click a point on the map while your tower is selected, it orders the tower to cast an ability at that area. It sounds simple but Warcraft is missing alot of needed variables...
m not sure i got your meaning, are you saying that you want to click a button and then target a point, or just click a tower and click a point? Or did i totaly miss the point?
The idea would be to set the rally point of the tower there. And then, every x seconds you can order the tower to cast the ability at its own rally point. It's just what you need.
Thats the thing, if I give the tower the rally ability the game crashes when he uses it, I tried using load and letting it hit terrain but that didn't work either.
You got it wrong... All buildings (atleast so far as I know) have rally point. You don't need to give it. You just have to set a rally somewhere and whenever you want to cast the spell, cast it at the rally point of the building.
Hmm... there must be a way to give it the rally point ability. I'll have to test this a little bit before I can tell you my conclusion. Probably if you don't want to get a crash, I'll have to try JASS.
You could still had it buggy but you could do the following trick. Make the unit cost very very much (impossible to hire) and name it something like Pulsar Strike, so it would be like a trick to make people try to buy it. And in its description put somethng like "does 10000 damage to all the enemy units" .