[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