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

[General] Is a Trigger like this possible?

Status
Not open for further replies.
I would like to have shops that offer diffirent ammounts of gold for certain items. This would create a form of strategical item handling where you can sell one item to this shop for more but other for lees, etc.

I imagine the trigger would go something like this
lets say item we are selling is Dagger and selling value is 10 gold

Event: Unit sells item
Conditions: Sold item = dagger
(and here is what im not sure about, is there a way to make a condition like... "shop item was sold to" or "unit that bought item = shop1" or something like that. Thats my question basically)

and then Action would be
Remove 5 gold from owner of unit that sold item

cuz the shop only offers 5 gold for it even tho it is worth 10
 
Status
Not open for further replies.
Top