• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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