HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Item Removal

12-28-2005, 05:19 PM#1
Murder1833
I was working with a trigger to get it to remove an item from the shop after it has been bought. Only problem is, somethings wrong, either my Event or Condition.

Code:
Event
Unit - A unit sells an item (from shop)

Conditions
(Item Type of (Sold Item)) Equal to (*NAME OF ITEM HERE*)

Actions
Neutral Building - Remove (*NAME OF ITEM HERE*) from all marketplaces

Ok, now is where i need the help. Someone correct my trigger.
12-28-2005, 05:41 PM#2
Vexorian
Is the store a marketplace?
12-28-2005, 07:54 PM#3
Murder1833
Yes its a marketplace. Is that good or bad?
12-28-2005, 08:55 PM#4
Naakaloh
I don't believe that matters, but if your marketplace doesn't have the "Sells Items" ability it may be affected, which may be the case if you created a custom unit or modified the abilities. I can't be sure about it though; I haven't really worked with shops much.
12-28-2005, 10:37 PM#5
Murder1833
Yeah, it has sell items, and the items are custom.
12-29-2005, 04:27 PM#6
shadow1500
Not sure but i think u can only remove the items if u added them through triggers as well.
12-29-2005, 04:31 PM#7
Murder1833
Ok thx, I'll try that out.

Edit: Ty, it worked, not like I planned, but it worked. I didn't need the trigger to remove it as it was automatically removed once purchased.