HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Buy item into shop

01-07-2005, 09:13 AM#1
TheXenocide
I have a shop that is a unit (not a building), and this unit has the ability to hold items, and sell items. I would like him to be able to sell the items into his own invintory, does anyone know a way to do this?
01-07-2005, 05:55 PM#2
HEZZA
E:Unit - purchases an item

C:unit type = to ur unit

A:Item move item to (triggerunit or heromanipulating item...) inventory
01-08-2005, 02:06 AM#3
TheXenocide
Quote:
Originally Posted by HEZZA
E:Unit - purchases an item

C:unit type = to ur unit

A:Item move item to (triggerunit or heromanipulating item...) inventory

As far as I can tell, there is no "Unit - purchases an item" condition, however there is this one, "Unit - A unit Sells an item (from shop)," but it doesn't seem to work. :(

I have this code, and it doesn't do a thing:
Code:
Sell Equipment
    Events
        Unit - A unit Sells an item (from shop)
    Conditions
    Actions
        Hero - Give (Last created item) to (Triggering unit)
01-08-2005, 03:32 AM#4
Quickshok
Last created item is used for items made by triggers. Instead use:

Event Response - Sold Item
01-08-2005, 09:15 AM#5
HEZZA
try hero manipulating item instead triggering unit