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

Item question

Status
Not open for further replies.
Level 2
Joined
Aug 24, 2004
Messages
18
This may be in the wrong place, but I was unsure which category it would fall under.

My question is, is there a way to either make a new item or convert an existing one to make a "bow"?

For example, taking a claws of attack +3 damage and modifying it to affect only ranged units (similar to Alleria's Flute of Accuracy, but remove the aura). I want only a missile hero to be able to get a benefit from it, not allied troops, and not melee heros.

The best I can think of is to make a trigger that every second looks through all hero's inventories and removes items they should not have. This seems cumbersome though, and could cause lag in multi-player games unless I am mistaken.
 
Level 13
Joined
May 5, 2004
Messages
1,330
For the bow-Item: Hm, I would use an item with an edited Alleria's Flute of Accuracy ability, so it only affects the carrier of the item (this way shouldn't be too difficult)

For the trigger you can use one like this:

Event
Unit - A Unit aquires an item
Condition
none
Action
If item being manipulated equal to [bow] and unit type of manipulating item equal to [the hero type unable to carry a bow] then Drop item being manipulated from hero manipulating item else do nothing

Do the last one for every item / hero type (I recommend that you use the If/Then/Else (multiple functions) function, then it won't take too long to create/edit the action for every hero/item type via CnP)
 
Status
Not open for further replies.
Top