• 🏆 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!

Make an icon for a behaviour appear after upgrade?

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
I have added a behaviour to a unit and I´ve made an upgrade for it. The behaviour starts to work when the upgrade is researched. Everything works fine.

I use an icon on the unit to show what the behaviour does. I want it to be dark when the upgrade is not researched plus that it shall say "- requires upgrade X".
Like on a normal ability button for a unit.

How do I do this?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,201
Use a requirement. The use section must be set so that it is only enabled when the passive should be used.

You then add this requirement to the behaviour.

You can also add it directly to the unit's command card passive button but I am not sure if this will disable the behaviour's effect.
 
Status
Not open for further replies.
Top