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

[Trigger] Corpse Absorption

Status
Not open for further replies.
Level 10
Joined
Jun 10, 2007
Messages
557
I'm making a bunch of heroes for fun, which will be bundled into a pack and may be released. But anyway, to the point.

One of these heroes has a spell, "Absorption", that, when walking over a corpse, restores health equal to 10*Spell level, destroying the corpse in the process.

I have absolutely no idea how to code this, it seems what I think is needed doesn't exist (Generic unit comes within X range of generic unit), so I turn to you, THW. Of course rep will be given as payment.
 
Level 9
Joined
Oct 17, 2007
Messages
547
ghouls has a skill that consume the corpse to regain hp.. u can just make the datas 0 and make the duration to 1, then trigger the rest:
-everytime the hero use that skill restore the amount of hp equal to 10 * spell lv.
 
Level 9
Joined
Oct 17, 2007
Messages
547
Thats an active skill making passive is better with Jass i think. making it wit GUI is very messy.

Its true that dead corpse is a unit, but each diff corpse is a diff unit they are not the same so thats y its hard.
 
Status
Not open for further replies.
Top