Stop unit from using spell jass or gui

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

siang05
Newcomer
Posts: 24
Joined: September 1st, 2008, 12:33 am

Stop unit from using spell jass or gui

Post by siang05 »

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.
Arabidnun
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

Post by Arabidnun »

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?
siang05
Newcomer
Posts: 24
Joined: September 1st, 2008, 12:33 am

Re: Stop unit from using spell jass or gui

Post by siang05 »

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.
Hmm, i mean it will show "invalid target/must target on hero", while u target the point on the non-hero.
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?
Arabidnun
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

Post by Arabidnun »

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*
siang05
Newcomer
Posts: 24
Joined: September 1st, 2008, 12:33 am

Re: Stop unit from using spell jass or gui

Post by siang05 »

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*
sorry, i don't get it. can you take some screenshot?
Arabidnun
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

Post by Arabidnun »

Sorry, I went to sleep lol. Try this screenshot see if it helps.

Image
siang05
Newcomer
Posts: 24
Joined: September 1st, 2008, 12:33 am

Re: Stop unit from using spell jass or gui

Post by siang05 »

Arabidnun wrote:Sorry, I went to sleep lol. Try this screenshot see if it helps.

Image
i have tried, but it is not working.
siang05
Newcomer
Posts: 24
Joined: September 1st, 2008, 12:33 am

Re: Stop unit from using spell jass or gui

Post by siang05 »

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.
Arabidnun
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

Post by Arabidnun »

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.
siang05
Newcomer
Posts: 24
Joined: September 1st, 2008, 12:33 am

Re: Stop unit from using spell jass or gui

Post by siang05 »

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.
Hmm, i know the toss ability is custom, and i just found out how to do that. But i have a big problem now.
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.