• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Making an item unavailable for purchase from a shop

Status
Not open for further replies.
I want to make a Goblin Merchant able to sell a certain item only once, after selling it will be unavailable for the rest of the game, without affecting any other item in stock. There's a "Neutral Building - Make Item Unavailable From Shop" trigger, however it only works on a shop that has the "Sell Items" ability, but the Goblin Merchant has no such ability by default (it has Shop Purchasing Item, Select Hero, Invulnerable).
 
I found the solution.
Turns out I have to give the "Sell Items" ability to the Goblin Merchant and then, via triggers add the item to shop and remove it after someone buys it. It looks like "Sell Items" is some sort of dummy ability that's required on a neutral shop for neutral shop-related triggers to work.
Items in the field "Techtree - Items Sold" cannot be removed by any means.
Warcraft 3 is weird.
 
Status
Not open for further replies.
Top