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

[Solved] item

Status
Not open for further replies.
Level 2
Joined
Jun 3, 2017
Messages
15
Hello, can anyone help me with an item? I want to create an item that gives a bonus to damage or lowers armor etc. but I want it to work only against a specific unit.
 
Level 11
Joined
Jun 2, 2004
Messages
849
Difficult without a damage detection system. If for some reason you don't want to use one of those, the first thing that comes to mind is a modified orb of lightning that uses abilities with very strict targeting requirements (your specific unit would have a classification (like ancient) that nothing else does and that's all the orb of lightning abilities can target).
 
Level 16
Joined
May 2, 2011
Messages
1,351
Hello, can anyone help me with an item? I want to create an item that gives a bonus to damage or lowers armor etc. but I want it to work only against a specific unit.
Yes, you can easily do that.
  1. Open World Editor from your warcraft III directory
  2. Go to object editor. You can find at the top bar of WE, and you can also open by pressing f6.
  3. In the object editor, there are lots of object data used in your map, including Units, Upgrades, Buffs, and Items among others
  4. You are looking for items. Just click on the items tab to see the list of items.
  5. Pick any item you. right click the item from the list and select "New Custom item". this option will create a new item that is an exact copy of the item previously selected
  6. Edit the data of your item as you please
nvm, I just noticed you wanted it for specific unit

I'm not even sure how I would do that in damage detect system. Have you considered using the event "unit is attacked" and if the specific-unit is attacked, add the item ability you wanted. I.e. unit is attacked event with condition being specific unit? if the unit is different remove the ability?

clearly not the most effecient but might work lol
 
Level 12
Joined
Jan 25, 2017
Messages
213
Yeah it's hard to know what you mean. Do you want an item that when used/picked up it affects a specific unit on the map (ex. give enemy hero a negative passive buff) or an item that will only work with a specific unit (goggles only give the goblin hero extra armor).

If it's the latter, I'd do what Rheiko suggests. I'd make a passive ability that you want the item to be and give it to the specific unit (hiding it in a disabled spellbook), disable that ability and then make a trigger that checks for the item so you can enable it. You can do this at : Unit picks up an item (but you'll also need one for Hero drops an item), or even better just make a trigger that runs every five seconds and checks to see if the hero has item. If so, enable it, else: disable ability.

Edit: ... actually you can just use a trigger to add an item ability to the unit and it'll work okay
 
Last edited:
Level 12
Joined
Jan 25, 2017
Messages
213
^ If only wanting to target a certain type, I'd find it much easier to have only certain units be able to pick up the item.
Ex: A unit picks up an item
If item = x and if unit type = x
Then:
Else: Unit- drop item being manipulated (you can display text to the player to explaining only taurens can pick up clubs- or whatever)
 
Level 2
Joined
Jun 3, 2017
Messages
15
I will try to make it a bit clearer, sorry if it was really funky sounding xD. I want to create an item that is only effective against a specific unit (for example a boss). So let's say the item gives 1000 bonus damage, however, the bonus damage only affects one specific unit, making it useless against any other types of units.
 
Level 2
Joined
Jun 3, 2017
Messages
15
Difficult without a damage detection system. If for some reason you don't want to use one of those, the first thing that comes to mind is a modified orb of lightning that uses abilities with very strict targeting requirements (your specific unit would have a classification (like ancient) that nothing else does and that's all the orb of lightning abilities can target).
Can you elaborate a bit on that please? What is the orb of lightning doing that others are not? the damage to summoned units?
 
Level 2
Joined
Jun 3, 2017
Messages
15
Yes, you can easily do that.
  1. Open World Editor from your warcraft III directory
  2. Go to object editor. You can find at the top bar of WE, and you can also open by pressing f6.
  3. In the object editor, there are lots of object data used in your map, including Units, Upgrades, Buffs, and Items among others
  4. You are looking for items. Just click on the items tab to see the list of items.
  5. Pick any item you. right click the item from the list and select "New Custom item". this option will create a new item that is an exact copy of the item previously selected
  6. Edit the data of your item as you please
nvm, I just noticed you wanted it for specific unit

I'm not even sure how I would do that in damage detect system. Have you considered using the event "unit is attacked" and if the specific-unit is attacked, add the item ability you wanted. I.e. unit is attacked event with condition being specific unit? if the unit is different remove the ability?

clearly not the most effecient but might work lol


hmmm, that is an interesting idea, I will try it, thank you very much for the idea



EDIT: I can't seem to find the trigger for editing the item's ability while the boss is being attacked. I am pretty sure that if I had the trigger for that, it would work.
 
Last edited:
Level 16
Joined
Mar 25, 2016
Messages
1,327
Can you elaborate a bit on that please? What is the orb of lightning doing that others are not? the damage to summoned units?
Orb of lightning has an ability, that has a chance to automatically cast an ability on the attacked unit. For example the normal Orb of Lightning has a let's say a 30% chance to purge the attacked unit. You could use this and replace purge with another single target ability, that can only be cast on the boss. So you could use finger of death for example and make it so it can only target the boss. You probaly need to use classifications there like Kaijyuu said.

Kaijyuu also said, that the best solution is to use a Damage Detection System (DDS) and I agree.
Here are two DDS I can recommend:
GUI-Friendly Damage Detection v1.2.1: Easy to use and enough for this problem.
Damage Engine 3.6.1.0: More advanced with a lot of features, but still easy to use.
 
Level 16
Joined
May 2, 2011
Messages
1,351
hmmm, that is an interesting idea, I will try it, thank you very much for the idea



EDIT: I can't seem to find the trigger for editing the item's ability while the boss is being attacked. I am pretty sure that if I had the trigger for that, it would work.
there
a unit is attacked event
and
a unit is damaged

Edit: its something like this
  • Attacked
    • Events
      • Unit - specific unit event
      • Unit - Archmage 0001 <gen> Is attacked
    • Conditions
    • Actions
      • Unit - Add ability
      • Unit - Add Resistant Skin to (Event Response: attacking unit)
Does this make any sense?
 
Last edited:
Level 2
Joined
Jun 3, 2017
Messages
15
Orb of lightning has an ability, that has a chance to automatically cast an ability on the attacked unit. For example the normal Orb of Lightning has a let's say a 30% chance to purge the attacked unit. You could use this and replace purge with another single target ability, that can only be cast on the boss. So you could use finger of death for example and make it so it can only target the boss. You probaly need to use classifications there like Kaijyuu said.

Kaijyuu also said, that the best solution is to use a Damage Detection System (DDS) and I agree.
Here are two DDS I can recommend:
GUI-Friendly Damage Detection v1.2.1: Easy to use and enough for this problem.
Damage Engine 3.6.1.0: More advanced with a lot of features, but still easy to use.

Definitely not the most elegant way, but it worked! Thank you.
 
Status
Not open for further replies.
Top