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

Help with Changing a Unit's Attack Range

Status
Not open for further replies.

Winter

W

Winter

Ok, what i need help w/ is say a melee unit picks up a bow(item), how do i make his attack range change?
Is there a way to so the upgrade "Improved Bows" an item ability? or atleast have the effects?

Please help, Thanks
 
You could use
Code:
Event - Whenever a unit acquires an item
Condition - Item being manipulated is equal to BOW
Action
- Set current research level of BOW RANGE to 1 for player (owner of hero manipulating item)

And then for if it drops

Code:
Event - Whenever a unit drops an item
Condition - Item being manipulated is equal to BOW
Action
- Set current research level of BOW RANGE to 0 for player (owner of hero manipulating item)

And ofc give al units effected by the bow the upgrade.[/code]
 
Ok, i did everything u said but the drop trigger isnt working...like say u use the sword ul have the sword range, then u drop that and then u pick up a bow ul have the bow's range (all ok there)
But then after u do all that say u drop the bow and pick up the sword again ul stil have the bow's range :shock:

Please help
 
Status
Not open for further replies.
Back
Top