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

Item trigger (one more)

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
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