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

Ordering unit to deal max damage

Status
Not open for further replies.
Is it possible to trigger a unit to deal the maximum damage it can upon attacking if it has a buff?

So if the unit's damage range is 15-18, then it deals 18.

If the unit has a damage bonus such as command aura +3, so it's 15-18 +3 then it deals 21.


The long way would be to manually add it all up and deal the damage the long way... But that would either require a damage system, or a crap load of code.


That is a very kewl idea though!!

but as far as I know, there is no easy solution.
 
I don't think so, not without disabling both of his attacks at least.

For units you can always replace a unit (without removing/recreating) by using the Chaos ability, which would allow you to use alternate units that have their damage as "18-18" in the example you gave. The problem with this is that it does not work properly on heroes, because their attributes are added together or something along those lines.

There really isn't a lot available for changing object characteristics at run-time (in game). Sure, there is SetUnitMoveSpeed, I don't understand how much more difficult it would have been to have a SetUnitDamage as well. Hopefully there this kind of stuff if available in the Galaxy editor, I hate being so limited by the API.
 
It is possible if we just use a hero and the hero's damage from his main attribute. See the test map attached.
But when direct damage increase are added, they are not detected or can be detected by adding more trigger functions.
 

Attachments

Status
Not open for further replies.
Back
Top