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

[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