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

Weird sort of Passive move needed

Status
Not open for further replies.
Level 2
Joined
Jul 24, 2005
Messages
11
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 >_<.
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
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
 
Level 2
Joined
Jul 24, 2005
Messages
11
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 >_<.
 
Level 6
Joined
Feb 4, 2005
Messages
302
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.
 
Status
Not open for further replies.
Top