Anyone know how to stop the casting unit when the spell is target on the terrain such as deep water.
Example 1: Lightning Grapple (Dota), if i cast on water, it will stop me from casting.
Example 2: Toss (Dota 2), if i do not target on the unit.
Stop unit from using spell jass or gui
Moderator: Cheaters
-
- Newcomer
- Posts: 24
- Joined: September 1st, 2008, 12:33 am
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Stop unit from using spell jass or gui
Explain a little more clearly please?
Do you mean, you want an ability when you cast at point X, and if point X is water, stop all units withing range X of point from casting abilites, Basically like a silence?
Do you mean, you want an ability when you cast at point X, and if point X is water, stop all units withing range X of point from casting abilites, Basically like a silence?
-
- Newcomer
- Posts: 24
- Joined: September 1st, 2008, 12:33 am
Re: Stop unit from using spell jass or gui
Hmm, i mean it will show "invalid target/must target on hero", while u target the point on the non-hero.siang05 wrote:Anyone know how to stop the casting unit when the spell is target on the terrain such as deep water.
Example 1: Lightning Grapple (Dota), if i cast on water, it will stop me from casting.
Example 2: Toss (Dota 2), if i do not target on the unit.
But this is not what i want. I want something likes Tiny in Dota allstar. If you using Toss and just target on the ground, then it will show out the message "must target on unit or something like that. I dont understand how to make it likes that, because Toss is area target skill, it can be cast no matter got unit or not right?
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Stop unit from using spell jass or gui
Oh, you must go into the ability in hero editor, find:
Stats - Targets Allowed
Then click on that and check Ground
That should do it, I think if not, experiment with clicking and unclicking the checkboxes
*Moving to General Mapediting*
Stats - Targets Allowed
Then click on that and check Ground
That should do it, I think if not, experiment with clicking and unclicking the checkboxes
*Moving to General Mapediting*
-
- Newcomer
- Posts: 24
- Joined: September 1st, 2008, 12:33 am
Re: Stop unit from using spell jass or gui
sorry, i don't get it. can you take some screenshot?Arabidnun wrote:Oh, you must go into the ability in hero editor, find:
Stats - Targets Allowed
Then click on that and check Ground
That should do it, I think if not, experiment with clicking and unclicking the checkboxes
*Moving to General Mapediting*
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Stop unit from using spell jass or gui
Sorry, I went to sleep lol. Try this screenshot see if it helps.


-
- Newcomer
- Posts: 24
- Joined: September 1st, 2008, 12:33 am
Re: Stop unit from using spell jass or gui
i have tried, but it is not working.Arabidnun wrote:Sorry, I went to sleep lol. Try this screenshot see if it helps.
-
- Newcomer
- Posts: 24
- Joined: September 1st, 2008, 12:33 am
Re: Stop unit from using spell jass or gui
This is what i mean, and the pictures below are converted become smaller size. i hope that you can understand what the picture shows
You do not have the required permissions to view the files attached to this post.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Stop unit from using spell jass or gui
The best thing for you to do is get a dota spell template and check the stats- targets allowed.
Because i know that the grapple targets are either ground + unit
However, i believe the toss ability is custom as in when he clicks where you want it to cast, count number of units in casting area and if number of units = 0, stop spell.
Thats what I believe.
Because i know that the grapple targets are either ground + unit
However, i believe the toss ability is custom as in when he clicks where you want it to cast, count number of units in casting area and if number of units = 0, stop spell.
Thats what I believe.
-
- Newcomer
- Posts: 24
- Joined: September 1st, 2008, 12:33 am
Re: Stop unit from using spell jass or gui
Hmm, i know the toss ability is custom, and i just found out how to do that. But i have a big problem now.Arabidnun wrote: However, i believe the toss ability is custom as in when he clicks where you want it to cast, count number of units in casting area and if number of units = 0, stop spell.
Thats what I believe.
As you see the screenshot i post, the message (such as "no unit around") is shown, how can i do that?
I have tried many ways, either the floating text or game message, they are not same as the screenshot above.
The message i made is attached to the point or any unit. If i move the camera away from the point or unit, i cant see the text anymore.