• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Item trigger (one more)

Uncle

Warcraft Moderator
Level 74
Joined
Aug 10, 2018
Messages
7,954
How can I do a trigger

action
peansant sells an item in unit y
Events related to items:

A Unit sells an item to another unit;
  • Events
    • Unit - A unit Sells an item (from shop)
In other words, you buy an item.

A Unit sells an item to the shop:
  • Events
    • Unit - A unit Pawns an item (to shop)
In other words, you sell an item.

Then you can check the Units involved using the Unit/Unit-Type conditions:

Any unit of a given type:
  • Conditions
    • (Unit-type of (Buying unit)) Equal to Peasant
    • (Unit-type of (Selling unit)) Equal to Peasant
A specific unit:
  • Conditions
    • (Buying unit) Equal to Peasant 0001 <gen>
    • (Selling unit) Equal to Peasant 0001 <gen>
1731129236876.png
 
Last edited:
Top