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

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:
Level 21
Joined
Dec 4, 2007
Messages
1,482
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
 
Level 21
Joined
Dec 4, 2007
Messages
1,482
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.
 
Level 3
Joined
Nov 18, 2007
Messages
48
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.
Top