• 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.

[Trigger] Dynamically enable/disable items in shops

Status
Not open for further replies.
Level 4
Joined
Sep 6, 2012
Messages
88
Hi everyone !

I want to ask if it's possible to enable/disable an item in a shop via trigger based on certain conditions. By "disable" I mean the item icon should be greyed out so everyone knows it's there, but it should not be buyable.

Thanks a lot !
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
From the Object Editor (Items Tab), you have a field called Techtree - Requirements, it can be either Upgrades or from Units.
Just fill that field with your Upgrade/Unit that you want to enable the item when the Upgrade/Unit is available.

Just like Orb of Fire (Human Item - available at Arcane Vault), you must first upgrade your main Building to Castle first in order to buy that item, yes, it is greyed out at first, and will become available when you upgrade your main hall to Castle.
 
Status
Not open for further replies.
Top