• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Is a Trigger like this possible?

Status
Not open for further replies.
Level 6
Joined
Jul 25, 2019
Messages
94
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