• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

hide a hero unit abbility

Status
Not open for further replies.
Level 13
Joined
Dec 21, 2010
Messages
541
the unit wont be able to cast the ability if it is disabled in Map Initialization... if you are talking about when the unit cast the ability then disabling it by a trigger then the answer is no.. it doesn't stop the ability unless the event is "Unit begins casting an ability"
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
You can hide the ability but you won't be able to cast it, even with hotkeys.
For passive abilities, this is used a lot of times.
You put the ability inside a spellbook and give the spellbook instead of the ability.
On map initialization, you disable the spellbook for all players so the spell book is not working/showing. The content of the spellbook still is. (Working, not showing.)
 
Level 4
Joined
Dec 4, 2014
Messages
97
skill inventory

i mean this with skill inventory
 

Attachments

  • skill inventory.png
    skill inventory.png
    275.9 KB · Views: 84
Level 24
Joined
Aug 1, 2013
Messages
4,657
If you want "<unit> has <ability> equal to true" then you should use "Integer Comparison - Level of <ability> for <unit> is greater than 0"
That one is actually the same for buffs.

I think both spellbook and actual ability would work.
 
Status
Not open for further replies.
Top