• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Problem holding an Item in order?

Level 5
Joined
May 8, 2020
Messages
81
1712422460208.png


I have 1 line: I want
When I hold an item in slots 1 it will create a copy (another item) in slots 1 delete Accuracy
and when
When I hold an item in slots 2 it will create a copy (another item) in slots 2 and delete Accuracy

Is there any way to do this?
 
Level 21
Joined
Feb 27, 2019
Messages
657
Maybe this? I am not quite sure what exactly it is you want.
  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Alleria's Flute of Accuracy
  • Actions
    • Hero - Drop (Item being manipulated) from (Triggering unit).
    • Item - Remove (Item being manipulated)
    • Hero - Create Mask of Death and give it to (Triggering unit)
EDIT: I cant imagine many scenarios that would require what I posted first so my second guess is youre after something like this?
  • For each (Integer ItemL) from 1 to 6, do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item being manipulated) Equal to (Item carried by (Triggering unit) in slot ItemL)
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Triggering unit).
          • Item - Remove (Item being manipulated)
          • Hero - Create ItemType[ItemL] and give it to (Triggering unit)
          • Custom script: exitwhen true
        • Else - Actions
 
Last edited:
Top