HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Removing Move, Patrol, Attack, etc.

03-12-2004, 01:30 PM#1
volvo64
Is there a way to remove these abilities via triggers or JASS? I searched the forums and there's already a thread on this but nothing was solved. Several of my friends and I are creating an rpg and i'd really like to know how to accomplish this. Thanks in advance for any help.
03-12-2004, 01:42 PM#2
Vexorian
It depends if you want to make the hero unable to move or attack, you can remove the abilities move and attack with triggers

But if you just want the buttons to do not appear then you are screwed
03-12-2004, 01:53 PM#3
volvo64
Quote:
Originally Posted by Lord Vexorian
It depends if you want to make the hero unable to move or attack, you can remove the abilities move and attack with triggers

But if you just want the buttons to do not appear then you are screwed

No i don't want the unit to move or attack or patrol or anything. I just want him to sit there and cast abilities. I know that you accomplished this in your excellent hero selection system and I was hoping you would reply and help me with my problem.
03-12-2004, 01:58 PM#4
Vexorian
I did, you just have to Remove the abilities called move and attack from the unit
03-12-2004, 02:08 PM#5
volvo64
Okay i'm stumped. I looked through all the hero and unit abilities and couldn't find anything that even looked like move. Could you maybe go into greater detail on how you remove those abilities? Sorry to bother you but I really want to be able to do this and I feel you know how. Thanks!
03-12-2004, 02:13 PM#6
Vexorian
You have to use triggers

Unit - Remove Ability from (unit)

then in ability put move
and in other action put attack
03-12-2004, 02:18 PM#7
volvo64
I understand how to remove abilities from units, but I still can't find the ability called move and the ability called attack. Are they unit abilities? Do I need custom ability codes to remove them? The answer is probably obvious and i'm just not seeing it. Sorry about all the confusion.
03-12-2004, 02:23 PM#8
Vexorian
Pretty lame, you need JASS

set udg_UnitVar = (insert your unit here)
Custom Script: call UnitRemoveAbility( udg_UnitVar, 'Amov' )
Custom Script: call UnitRemoveAbility( udg_UnitVar, 'Aatk' )
03-12-2004, 02:31 PM#9
volvo64
Quote:
Originally Posted by Lord Vexorian
Pretty lame, you need JASS

set udg_UnitVar = (insert your unit here)
Custom Script: call UnitRemoveAbility( udg_UnitVar, 'Amov' )
Custom Script: call UnitRemoveAbility( udg_UnitVar, 'Aatk' )

Dude, that helps a ton. Thank you so much. Awesome. Seriously. I've been looking for the solution to this little problem for about 2 days. That's a LONG time for me to look for anything because i'm a pretty good searcher. Thank you for your help. If I could give points you'd get like 10,000. Thanks :)