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

[Solved] How to create an item replacement trigger?

Status
Not open for further replies.
Level 2
Joined
Apr 15, 2011
Messages
14
I have another question, i don't want to start another topic, so thats why i'l post it here.

I want to make a trigger, so that when i put a specific item in a region , the item disapears and a new item is created in another region.
Another alternative is that a hero with specific item in his inventory enters region 1 and item is removed from hes inventory, resulting in another item created @ region 2. If the item is not in heroes inventory, nothing hapens.

Ty in advance :>
 
Level 5
Joined
Jun 10, 2010
Messages
145
I aways use this trigger:
  • Trigger
    • Events
      • Unit - A unit enters Region 006 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Item carried by Skeleton Warrior 0007 <gen> in slot 1)) Equal to Sun Key
          • (Item-type of (Item carried by Skeleton Warrior 0007 <gen> in slot 2)) Equal to Sun Key
          • (Item-type of (Item carried by Skeleton Warrior 0007 <gen> in slot 3)) Equal to Sun Key
          • (Item-type of (Item carried by Skeleton Warrior 0007 <gen> in slot 4)) Equal to Sun Key
          • (Item-type of (Item carried by Skeleton Warrior 0007 <gen> in slot 5)) Equal to Sun Key
          • (Item-type of (Item carried by Skeleton Warrior 0007 <gen> in slot 6)) Equal to Sun Key
    • Actions
      • Item - Remove (Item carried by Skeleton Warrior 0006 <gen> of type Sun Key)
      • Item - Create Blood Key at (Center of Region 007 <gen>)
 
Level 17
Joined
Jan 21, 2010
Messages
2,111
I aways use this trigger:
  • Trigger
    • Events
      • Unit - A unit enters Region 006 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • Or - Any (Conditions) are true
        • Conditions
          • (triggering unit) has a sun key equal to true
    • Actions
      • Item - Remove (Item carried by Skeleton Warrior 0006 <gen> of type Sun Key)
      • Item - Create Blood Key at (Center of Region 007 <gen>)
there you go, much simpler, it just checking whether the hero has the item or not
 
Status
Not open for further replies.
Top