• 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.

Attachments an Items questions

Status
Not open for further replies.
Level 3
Joined
Sep 4, 2011
Messages
33
Hello.
I'm new to map making and just started learning item attachments. The problem is that when i attach item by triggers its ok, but when i drop the item attachment isnt removed. How to make it to get removed after item drop.

I've got another question
How to make unit be able to wear only one sword, one helmet etc?
 
Level 8
Joined
Jan 8, 2010
Messages
493
when you use triggers to attach it, use triggers to unattach it too.

and making units wear only one sword, helmet, etc. is achieved via triggers. all same item class should have the same Item Level in Object Editor. For example, all helmets should be Item Level 20. (use Shift+Enter to be able to use values above 8). then an example trigger would be:

  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • (Item level of (Item being manipulated)) Equal to 20
    • Or - Any (Conditions) are true
      • Conditions
        • (Item level of (Item carried by (Triggering unit) in slot 1)) Equal to 20
        • (Item level of (Item carried by (Triggering unit) in slot 2)) Equal to 20
        • (Item level of (Item carried by (Triggering unit) in slot 3)) Equal to 20
        • (Item level of (Item carried by (Triggering unit) in slot 4)) Equal to 20
        • (Item level of (Item carried by (Triggering unit) in slot 5)) Equal to 20
        • (Item level of (Item carried by (Triggering unit) in slot 6)) Equal to 20
  • Actions
    • Hero - Drop (Item being manipulated) from (Triggering unit)
 
Level 13
Joined
Jun 1, 2008
Messages
360
You can easily attach effects without triggers.
Just give the item the ability 'Healing Ward Aura', set healing = 0 and target attachment to your effect.

OR if you want to use triggers you have to save the effect in a hashtable (or array) so you can access and delete it later on item drop.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
So basically, each item has 2 abilities; 1 for main ability (the original ability of what the item does) and the dummy ability (Item Damage Bonus can be your based dummy ability)

When you acquire that item, you will be granted with 2 abilities for example, 1 is +armor and another one is dummy ability which +damage by 0 (does nothing, we only want the effect of the attachment)

If you're still don't understand, I can provide you with a test map, but I think you understood pretty much up until now, right ?
 
Status
Not open for further replies.
Top