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

[Solved] Make Hardened Skin behave different on Range and Melee units?

Status
Not open for further replies.
Level 12
Joined
May 16, 2020
Messages
660
why not have two hardened skin abilites on the item - 1 only affects melee units and 1 only affects ranged? (Haven't tried it but sounds like it could work...)

(ability "overloading")
I believe the default values on Hardened Skills are about if you take reduced damage FROM a melee/ranged unit, not if your unit is melee/range.

Or what do you mean with overloading?
 
Level 25
Joined
Mar 29, 2020
Messages
1,466
yeah, I guess you need to just trigger it...

if you want instead of triggering the ability from scratch you could just add/remove versions of hardened skin to the carrier according to if they are ranged or melee.

overloading functions in some languages is when you have different versions of the same function with different argument types, so this kind of reminded me of that. ability overloading isn't really a term people use...sorry for the confusion...
 
Status
Not open for further replies.
Top