• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Life Regeneration while fighting

Status
Not open for further replies.
Level 3
Joined
Oct 8, 2007
Messages
60
hi again, this is what im looking for:

while a unit is fighting that his life will not regenerate... how do i do that?
i want to use the trigger function, "generic unit event - a unit becomes attacked" and then turn it back on when it stopes from being attacked...
 
You'll have to make the unit gain hp regeneration through a trigger. Then when the unit is attacked (turn of the hp regen trigger) and set a timer to 5 seconds. So that the timer will constantly be set to 5 seconds every time the unit is attacked. When the timer goes off, (the unit must have been out of combat for at least 5 seconds) turn the hp regen trigger back on.
 
well i was acualy thinking about useing add abillity, i created a ability off unholy aura and set the life reg to -9000.00. is there a way that when the unit is being attacked it adds the abillity to the unit and when it is not attacked it removes the abbility?
 
You can use the same method I put above. Except removing/adding an ability instead of disabling/reinabling a trigger.
However -9000 might make the life go down not just stand still.
 
oh... there a problem, these are heros, (makeing a rpg) and per level they get more str - and per str the health reg rises abit... so that with the aura wont work... how i pause the reg while infight :P?
 
and another thing i got a problem with: i have a base armor of 40... and want the damaged reducment to be likeso: 1 armor = 0.19% damage reducment. for example: if the units armor is 47 - dmg would be reduced by 8.83%
 
and another thing i got a problem with: i have a base armor of 40... and want the damaged reducment to be likeso: 1 armor = 0.19% damage reducment. for example: if the units armor is 47 - dmg would be reduced by 8.83%
Check out the "gameplay constants" in the advanced menu. There is a constant called "Combat - Armour Damage Reduction Multiplier".
 
Status
Not open for further replies.
Back
Top