Regeneration while "Hidden"

Weyird

Member
Reaction score
5
I've got my friendly vampire hero working nicely now. He is no Edward, he burns in the sun, all is well. Because nobody wants to die just because its day I've given him an ability to hide in a coffin during the day - triggered to create the coffin unit and "hide" the vampire. I want him to regen 1% hp per sec while "in the coffin". So the trigger also gives him an ability based off the fountain of life's healing.
Unfortunately, it doesn't seem to affect him. He regenerates, but so slowly that it must be his own natural regeneration. Any way to fix this? Or a trigger to modify his natural regeneration rate?
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Not sure on your events and conditions.
Trigger:
  • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((Max life of (Triggering unit)) / 100.00))
 

Weyird

Member
Reaction score
5
That won't work Hex because its not an "every second" trigger. It runs once when the ability is cast to put him in coffin, and another trigger performs all functions to set things back to normal when he hops out.

Is there a "set regeneration" code in JASS I could use?

EDIT: I thought maybe its just the fountain's regen that doesn't affect hidden units so I tried giving the vamp unholy aura instead, setting the regeneration to max. That doesn't work either :(
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
you can make a passive ability that adds health regeneration (probably based off one of the item abilities), and then add that to your hero

or use Status by Jesus4Lyf
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Well when he starts the ability make it run this new trigger as a loop every 1 sec. And when it cancels make this turn off simple.
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
nooo, don't use the auras or the life regeneration fountain aura thing, those suck

use the ability that the Ring of Regeneration is based off
 

Weyird

Member
Reaction score
5
I guess it would have to be another "every second" trigger. How I loath them :(
But ja, gots it working now.. At least it only runs when he in his coffin.

EDIT: Thank you :)
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
if i post shock images in this thread would op notice?

just do what I said, it will work i am 100% sure
 

Weyird

Member
Reaction score
5
The problem with Ring of Regen based ability is that it's not percentage based. If I make it a set value it will be too strong early, and too weak later.
Thanks thou :)
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
try using unholy aura with negative regeneration %
 

Avaleirra

Is back. Probably.
Reaction score
128
Trigger:
  • Trigger 1
    • Events
    • A unit starts the effect of an ability
    • Conditions
    • Ability being cast equal to coffin
    • Actions
    • Set Caster = triggering unit
    • trigger - turn on Trigger 2
    • wait X seconds
    • trigger - turn off Trigger 2

Trigger:
  • Trigger 2
    • Events
    • Every 1 second of game-time
    • Conditions
    • Actions
    • Unit - Set life of Caster to (life of caster + (0.01 x life of caster)



*Note - not MUI + freehand
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top