HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Removing items from a shop

01-10-2006, 08:25 PM#1
Whitehorn
This won't remove the ability to sell items:

Trigger:
Buy Tavern
Collapse Events
Unit - A unit Sells an item (from shop)
Collapse Conditions
(Item-type of (Sold Item)) Equal to Requisition Tavern
Collapse Actions
Unit - Remove Sell Items from (Selling unit)
Unit - Change ownership of (Selling unit) to (Owner of (Buying unit)) and Change color

And this won't remove the item:

Trigger:
Buy Tavern
Collapse Events
Unit - A unit Sells an item (from shop)
Collapse Conditions
(Item-type of (Sold Item)) Equal to Requisition Tavern
Collapse Actions
Neutral Building - Remove Requisition Tavern from (Selling unit)
Unit - Change ownership of (Selling unit) to (Owner of (Buying unit)) and Change color

Enlighten us
01-10-2006, 08:32 PM#2
Immoralis
Quote:
Originally Posted by Whitehorn
This won't remove the ability to sell items:

Trigger:
Buy Tavern
Collapse Events
Unit - A unit Sells an item (from shop)
Collapse Conditions
(Item-type of (Sold Item)) Equal to Requisition Tavern
Collapse Actions
Unit - Remove Sell Items from (Selling unit)
Unit - Change ownership of (Selling unit) to (Owner of (Buying unit)) and Change color

And this won't remove the item:

Trigger:
Buy Tavern
Collapse Events
Unit - A unit Sells an item (from shop)
Collapse Conditions
(Item-type of (Sold Item)) Equal to Requisition Tavern
Collapse Actions
Neutral Building - Remove Requisition Tavern from (Selling unit)
Unit - Change ownership of (Selling unit) to (Owner of (Buying unit)) and Change color

Enlighten us

Are you trying to make it so the shop is unable to sell anything else after it sells item "Requisition Tavern", because if so I think removing "Select unit/hero" for the shop will do that.
01-10-2006, 08:43 PM#3
Whitehorn
Tried that. 1. It doesnt have select hero in the first place. 2. Remove select unit didn't work.
01-10-2006, 08:46 PM#4
Immoralis
Can't you just make a new dummy shop? Unless you're useing this many times it shouldnt matter.
01-10-2006, 08:51 PM#5
Vexorian
Removing items from stock (Neutral Building - Remove Requisition Tavern from (Selling unit)) works perfectly on marketplaces. If you duplicate the abilities of marketplaces in your new building and also use add item to stock instead of just setting the item to be sold there with the object editor, it will work
01-10-2006, 08:56 PM#6
Whitehorn
Alright, but the items need to be sellable to units, not heroes.
01-10-2006, 10:34 PM#7
Blade.dk
This map should do as you described (using marketplaces), else I misunderstood it. You can even add extra units when the marketplace is bought, but remove that if you don't want to.

Tell me if something is wrong/not like you wanted it to be.
Attached Files
File type: w3xmarketplace.w3x (21.3 KB)