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

Vision of target carrying an item

Status
Not open for further replies.
  • Trigger
  • Events
    • Unit - A unit acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to X
  • Actions
    • For each (IntegerA) from 1 to 12, do (Actions)
      • Loop - Actions
        • If - Conditions
          • ((Triggering unit) belongs to an enemy of (Player(IntegerA))) Equal to True
        • Then - Actions
          • Unit - Grant shared vision of (Triggering unit) to (Player(IntegerA))
        • Else - Actions
  • Trigger2
  • Events
    • Unit - A unit loses an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to X
  • Actions
    • For each (IntegerA) from 1 to 12, do (Actions)
      • Loop - Actions
        • If - Conditions
          • ((Triggering unit) belongs to an enemy of (Player(IntegerA))) Equal to True
        • Then - Actions
          • Unit - Deny shared vision of (Triggering unit) to (Player(IntegerA))
        • Else - Actions
 
Level 1
Joined
Mar 20, 2010
Messages
2
@Pharaoh could you please upload a game with that trigger in please im not so good with integers.
 
Status
Not open for further replies.
Top