Warcraft III resources & community, 2003–2006 · archived

Help with Changing a Unit's Attack Range

4 posts
#1

Help with Changing a Unit's Attack Range

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
#2
You could use
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

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]
#3
MMmmmmmm Thanx dude :D
I will try it now :twisted:
#4
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