• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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,258
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