Warcraft III resources & community, 2003–2006 · archived

Weird sort of Passive move needed

4 posts
#1

Weird sort of Passive move needed

Does anyone happen to know of a way i can make a hero heal allies with his regular attack for a % of his base dmg? (85% preferably) and maybe have his attacks cost a small amount of mana? Any help on this would be GREATLY GREATLY appreciated >_<.
#2
Actually I believe it might be possible. Have two attacks: One which works for allies, and one which works for enemies. They should have identic stats. And now, for the one for allies, have all the values for damage negative. I think this might not work, but I really hope it does.

And for the mana, check everytime an ally is attacked by the unit whose unit type is equal to the hero/unit whose stats you changed for damage. And then you can just decrease that unit's mana.

And to stop the unit from healing, check every attempt of a such unit whose mana is lower than x, to attack a friendly unit, and stop that unit immediately.

This is a brief introduction, if you can't get this working, I'll think of something else.

~Daelin
#3
Ty for the help, but a few things i forgot to mention, i want the only people he CAN attack to be his allies, the other thing i forgot to mention is that i am quite the nub with triggering, conditions, and whatnot. Despite my faults, any help would be doubly appreciated >_<.
#4
Hi, Fruit. You can always set his attack to allies only. I have no idea why you'd want 85% though? For the other part, however, I can help!

Events
- A unit is attacked

Conditions
- Type of (Event Response - Attacking Unit) equal to (Pacifist)

Those are the events and conditions. I'd do the rest for you, but I'm quite lazy right now and WE isn't open.