Can you remove Move, Stop, and Attack ability?

crabbb622

New Member
Reaction score
9
I'd like to replace move, stop, and such with my own abilities that are kind of replacements for them. And if i do, can i still order the unit to move using triggers? And can the player still activate the "smart" order (smart is when the player right clicks, id' like to keep that)?
 
Reaction score
341
call UnitRemoveAbility(udg_u, 'Aatk') // attack
call UnitRemoveAbility(udg_u, 'Amov') // Move

Not sure about rest.
 

Hellohihi

New Member
Reaction score
42
Add ward classification to the unit.

When classified as a ward, the command buttons are hidden.
 

crabbb622

New Member
Reaction score
9
Ok...I've never used JASS before...

Trigger:
  • REMOVE
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
    • Actions
      • Custom script: call UnitRemoveAbility(<GetTriggerUnit()>, 'Asto')
      • Custom script: call UnitRemoveAbility(<GetTriggerUnit()>, 'Amov')
      • Custom script: call UnitRemoveAbility(<GetTriggerUnit()>, 'Aatk')


Expected valid argument list
 

WolfieeifloW

WEHZ Helper
Reaction score
372
I don't know how to do Stop actually...
But do this still:
Code:
Custom script:    call UnitRemoveAbility(<UNIT>, 'Aatk')
Custom script:    call UnitRemoveAbility(<UNIT>, 'Amov')

Note though;
Removing "Attack" also removes the units damage.
Removing "Move" also removes Hold Position and Patrol.
 

crabbb622

New Member
Reaction score
9
Bah...Still having problems. Removing the stated in this manner makes the "smart" order impossible :(
Any way around this?
 

Frosthowl

TH.net Regular
Reaction score
15
You have only two ways of doing this. You can put your abilities inside a spell book, or you can follow this tutorial and replace the 5 command abilities with 5 other abilities that will be displayed for all units: http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=87702. There is no other way to accomplish what you are trying to do. I beleive that the default actions of the spells will still be present, but this way, you can change where they are and how they look.
 

crabbb622

New Member
Reaction score
9
So...what I need to do is change the tooltip of all those commands for one type of unit.
And this is impossible?
 

Exide

I am amazingly focused right now!
Reaction score
448
You can remove a unit's attack ability by adding the ability: Orc (Burrow) (or something like that, you'll find it.) :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top