HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Removing Attack/Attack Ground Buttons

11-17-2006, 04:39 AM#1
Fluff
I am looking for a way to remove the attack and attack ground buttons from a particular unit, or even from every unit in my map, so that they can still attack and have that ability, but it is not castable by the player. Any help would be appreciated.
11-17-2006, 04:49 AM#2
MindWorX
I think there's an "Attack # - Show UI" or something like that, try unchecking that, don't know if it works for attack ground tho.
11-17-2006, 04:51 AM#3
Rising_Dusk
call UnitRemoveAbility(YourUnit, 'Aatk')
Will remove the attack ability.

call UnitRemoveAbility(YourUnit, 'Amov')
Removes the move ability.
This method has some irreversable effects, but has it's advantages.
11-17-2006, 05:14 AM#4
Ignitedstar
Quote:
Originally Posted by Rising_Dusk
call UnitRemoveAbility(YourUnit, 'Aatk')
Will remove the attack ability.

call UnitRemoveAbility(YourUnit, 'Amov')
Removes the move ability.
This method has some irreversable effects, but has it's advantages.

Such as...?
11-17-2006, 05:31 AM#5
Jazradel
It stops your unit attacking/moving permanently.
11-17-2006, 06:42 AM#6
Hyarion
And that is an advantage how exactly?
11-17-2006, 11:50 AM#7
blu_da_noob
I don't think anyone has yet figured out a way to remove any of the basic command icons without removing the ability to attack/move etc. (Or removing all icons ala ward classification)
11-17-2006, 11:52 AM#8
Rising_Dusk
Quote:
And that is an advantage how exactly?
It's an advantage that it's the easiest way to remove attack and movement abilities from a unit, including the icons.
Once you want them back, you can replace the unit with a freshly created unit of the same type.
Just remember to reset any pointers.
11-17-2006, 12:06 PM#9
MindWorX
Whats wrong with my suggestion? ;)
11-17-2006, 12:24 PM#10
Rising_Dusk
Because it removes them for all units of that type.
That means the fix I proposed wouldn't work for your idea.
11-17-2006, 01:15 PM#11
karukef
Quote:
Originally Posted by blu_da_noob
I don't think anyone has yet figured out a way to remove any of the basic command icons without removing the ability to attack/move etc. (Or removing all icons ala ward classification)

Incorrect. Although it has certain drawbacks, the following post suits hero-oriented maps perfectly:
http://www.wc3campaigns.net/showthre...119#post859119
11-17-2006, 01:55 PM#12
blu_da_noob
Ok, basic command buttons was misused there. But it holds true for the two I mentioned.
11-17-2006, 02:12 PM#13
Rising_Dusk
I rather dislike that system, Karu.
While I'm sure if you built a map around it, it would work great --
I hate being forced to build a map around a system for me to reap it's advantages.
11-17-2006, 03:14 PM#14
blu_da_noob
Wait... since when did Show UI set to false remove the attack button? :S I thought it just didn't show the attack on the middle interface (where it shows damage etc).
11-17-2006, 04:46 PM#15
karukef
Quote:
Originally Posted by Rising_Dusk
I rather dislike that system, Karu.
While I'm sure if you built a map around it, it would work great --
I hate being forced to build a map around a system for me to reap it's advantages.

Is it important whether or not you like the system? The system is an approach. A possibility. You hating or not hating the facts and circumstances involving the approach is in my opinion not the kind of valuable information that is worth posting about in a thread that isn't even about that system. If you posted those same comments in the relevant, correct, thread, you would see right away how little they add to the discussion there.