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

How to remove an item from shop through triggers

Status
Not open for further replies.
Level 4
Joined
Apr 16, 2012
Messages
83
How to remove an item from shop through triggers? Self explanatory title.

Edit: Never mind, found it. Pretty simple actually I don't know how I missed it. Silly me!

All it is is under action, and then Item - Make pawnable/unpawnable.
 
Level 18
Joined
Mar 7, 2005
Messages
824
There might be a way to do this, but need to look this up.

as a fast and simple solution you could create several versions of your shop. 1 with the items and the other without, and simply replace it. But this might not work well if you have many items and can remove more than 1 or 2 items. This would need like 20 shops you need to replace with every possible solution that can be achieved.

So if you only want to remove the same item all the time, it's easy to do 2 shops, and replace it with the shop that doesn't have the item in storage.
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
if it is maket based building then simple just add and remove the sellable item

  • Neutral Building - Add Tome of Experience to (Triggering unit) with 0 in stock and a max stock of 1
  • Neutral Building - Add Footman to (Triggering unit) with 0 in stock and a max stock of 1
  • Neutral Building - Remove Tome of Experience from (Triggering unit)
 
Status
Not open for further replies.
Top