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

[Need Info] Regenerate HP below 50%

Status
Not open for further replies.
Level 4
Joined
Jun 20, 2009
Messages
43
Hello, I'm working on a mod for LotV, and one of the abilities I want to add to the Thor is an upgrade to make it regenerate heath when it is below 50% health(a-la the Mammoth Tank from C&C).

I don't know how to do ether of these things, though, and would very much appreciate some help making sense of the SC2 editor's utter gibberish of a data editor, thanks :infl_thumbs_up:
 
The data editor is very logical so creating what you want is a piece of cake. Give the Thor a new buff behaviour. This will not only provide the buff icon when regenerating (if wanted) but it will do the actual regeneration. Make the buff add some life regeneration under the stats it modifies.

Next you need a validator for if caster or target is below 50% life. Chances are one of these already exist as they are used by tactical AI. Link this validator in the buff's validators (disable) field. This will disable the buff when above 50% life and so stop healing.

Finally create a requirement similar to all other tech requirements such as used by stimpack. This requires that the upgrade be researched for use to be allowed. Link this in the Requirements field of the buff.

Finally give the Thor your buff. That is all that is needed.
 
Last edited:
Status
Not open for further replies.
Back
Top