• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Deny a hero to pick items? How?

Status
Not open for further replies.
Okay, so I have this issue in my map Electrum mines where when an invisible unit picks the flag, i force it to drop it aand when he does he also moves like 25-50 AoE in random direction. I don't know why that is, but I am looking for another way to handle this:

Is there another way to deny a hero to pick items?
- Removing Inventory ability is a bad idea
- forcing him to drop the item resulted in a bad idea
- putting some dummy items might be a good idea, but it becomes messed up.. Where is the image for empty slot in the MPQ?
- transformation in another unit temporarily is a bad idea, and does complications
- any other method?
 
Last edited:
I guess you want:
  • ItemPickDenied
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • ((Triggering unit) has buff Wind Walk) Equal to True
                  • ((Triggering unit) has buff Invisibility) Equal to True
            • Then - Actions
              • Set temp_point = (Position of (Item being manipulated))
              • Item - Move (Item being manipulated) to temp_point
              • Custom script: call RemoveLocation(udg_temp_point)
            • Else - Actions
        • Else - Actions
 
That's not what i could gather from your post.
You described the issue being "hero - drop item", because that would allow the manipulator to move the item inch by inch.

That's why i presented the option to instantly move the item back to its origin?!

Puzzled to what you want to achieve now.
 
the problem with invisibility is that for some reason blizzard made it so that items collision affects units/heroes with wind walk active.
instead of item you could make it a dummy unit and when you get near it you pick it up, otherwise just move the flag behind the hero or a bit away from the hero.
 
Status
Not open for further replies.
Back
Top