• 🏆 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!

[Trigger] Fix equip trigger

Status
Not open for further replies.
Level 8
Joined
Nov 21, 2008
Messages
316
The problem is after the unit is replaced the items in the item slot dont show up. they still disappear. where did i go wrong or am i forgetting something. plz correct

  • Troll Axethrower
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to |cffff8c00Battle Axe|r
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set item[(Integer A)] = (Item carried by (Triggering unit) in slot (Integer A))
          • Unit - Replace (Triggering unit) with a Troll Axe Thrower using The old unit's relative life and mana
          • For each (Integer A) from 1 to 6, do (Actions)
            • Loop - Actions
              • Hero - Give item[(Integer A)] to (Last created unit)
 
  • Item
    • Events
      • Unit - A unit Uses an item
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set Items[(Integer A)] = (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
      • Unit - Replace (Triggering unit) with a Blood Mage using The old unit's relative life and mana
      • Hero - Create Items[(Integer A)] and give it to (Last replaced unit)
      • Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))
 
Level 8
Joined
Nov 21, 2008
Messages
316
this is basic layout for the trigger, i need to kno wat needs to be added to make items stay

  • Troll WitchDoc
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to |cffff8c00Witch Doctor Club|r
    • Actions
      • Unit - Replace (Triggering unit) with a Troll Witch Doctor using The old unit's relative life and mana
 
  • Item
  • Events
  • Unit - A unit Uses an item
  • Conditions
  • Actions
  • For each (Integer A) from 1 to 6, do (Actions)
  • Loop - Actions
  • Set Items[(Integer A)] = (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
  • Unit - Replace (Triggering unit) with a Blood Mage using The old unit's relative life and mana
  • For each (Integer A) from 1 to 6, do (Actions)
  • Loop - Actions
    • Hero - Create Items[(Integer A)] and give it to (Last replaced unit)
  • Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))
 
  • Item
  • Events
  • Unit - A unit loses an item
  • Conditions
  • Actions
  • For each (Integer A) from 1 to 6, do (Actions)
  • Loop - Actions
  • Set Items[(Integer A)] = (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
  • Unit - Replace (Triggering unit) with a YOUR UNIT using The old unit's relative life and mana
  • For each (Integer A) from 1 to 6, do (Actions)
  • Loop - Actions
  • Hero - Create Items[(Integer A)] and give it to (Last replaced unit)
  • Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))
 
Status
Not open for further replies.
Top