I dont know how you apply those buffs, but make the total number of buffs somehow saved in a variable.
Create another buff which reduces health regen by the equal amount the other buff increases.
And if theres an event that fires when a morph ability is cancelled, use that to remove all those debuffs. Or play around with validators, get an "IsMorphing" validator, and set it as the Remove validator for the buffs so they remove themselves when a unit stops morphing :)
If you manage to get validators, you dont even need triggers. Just have your regen bonus buff have "Effect - initial" as an apply behavior buff that applies the negative regen, "Effect - final" should be a remove behavior effect, and have the negative regen buff have the validator in the Disable field (Which will disable the buff temporarily instead of actually removing it when the validator returns false)
I did remove all reg bonus:
The problem is not reg, it is the additional HP bonus from this buff.
50 buffs = +10 hp
I hope Morph 1 is the most early stage.
I have a trigger to remove all buff at "Morph01 - Approach stage".
Unit - Any Unit uses Hybrid Power at Morph01 - Approach stage (Ignore shared abilities)
I have another trigger to add buff at "Morph16 - Approach stage".
Unit - Any Unit uses Hybrid Power at Morph16 - Mover End stage (Ignore shared abilities)
This is not working. if I use this morph, i got HP back as much as 4x hp bonus, and if i morph back, i got HP back as much as 1x hp bonus.
Problem:
U can not remove a behaviour, which is disabled temporary by a validator.
I have double amount of buffs, if I want to remove and add this buffs.
I can use a initial dmg effect to remove the life, but i can't dmg it again after the validator enable the buff again.
There is no such a event.
If i remove all the buffs with trigger, and add it after morphing, i got stil 4x of the additianl max life.
Each morph has 16 stages. why should a buff be disabled/enabled 4 times by morphing?
I think i need a trigger to dmg a unit after morphing...
This sucks...
What i really need, is the posibility to add max life without adding life.
Edit:
Final Solution:
thx guys.
Use validator to REMOVE the behaviour, NOT disable it,
because this is faster then remove it using triggers.
I made 4 IsNotMorphingXXX validator. (copied from Hive->Lair)
And before I add this this buff again, i save the life procent of the unit.
After adding buffs, I restore the old life procent.
Hi guys: I have some permanent buffs, which can stack very high. It makes life regeneration only a small bit faster. 0.004 /sec
Buf if I morph into another unit, HP raise very fast at the morph phase. After morph, regenration return to normal.
Poeple use this buff + morph to heal from 10% to 100% in less then 10 sec.
How can I stop reg at morphing?
use a behavior instead
@Xtremedesyr: Go
every buff is a behaviour?
I dont know how you apply those buffs, but make the total number of buffs somehow saved in a variable.
Create another buff which reduces health regen by the equal amount the other buff increases.
And if theres an event that fires when a morph ability is cancelled, use that to remove all those debuffs. Or play around with validators, get an "IsMorphing" validator, and set it as the Remove validator for the buffs so they remove themselves when a unit stops morphing :)
If you manage to get validators, you dont even need triggers. Just have your regen bonus buff have "Effect - initial" as an apply behavior buff that applies the negative regen, "Effect - final" should be a remove behavior effect, and have the negative regen buff have the validator in the Disable field (Which will disable the buff temporarily instead of actually removing it when the validator returns false)
p.s. anyone know why my code is in red boxes?
I did remove all reg bonus: The problem is not reg, it is the additional HP bonus from this buff. 50 buffs = +10 hp
I hope Morph 1 is the most early stage. I have a trigger to remove all buff at "Morph01 - Approach stage". Unit - Any Unit uses Hybrid Power at Morph01 - Approach stage (Ignore shared abilities)
I have another trigger to add buff at "Morph16 - Approach stage". Unit - Any Unit uses Hybrid Power at Morph16 - Mover End stage (Ignore shared abilities)
This is not working. if I use this morph, i got HP back as much as 4x hp bonus, and if i morph back, i got HP back as much as 1x hp bonus.
maybe is the validator the only hope
OK I use the validator.
Problem: U can not remove a behaviour, which is disabled temporary by a validator. I have double amount of buffs, if I want to remove and add this buffs.
I can use a initial dmg effect to remove the life, but i can't dmg it again after the validator enable the buff again. There is no such a event.
If i remove all the buffs with trigger, and add it after morphing, i got stil 4x of the additianl max life. Each morph has 16 stages. why should a buff be disabled/enabled 4 times by morphing?
I think i need a trigger to dmg a unit after morphing...
This sucks...
What i really need, is the posibility to add max life without adding life.
Edit: Final Solution:
thx guys.
Use validator to REMOVE the behaviour, NOT disable it, because this is faster then remove it using triggers. I made 4 IsNotMorphingXXX validator. (copied from Hive->Lair) And before I add this this buff again, i save the life procent of the unit. After adding buffs, I restore the old life procent.
Why dont you figure out why your unit is regenerating at all and disable it.... its in the data not the trigger....
maybe try disabling the units regeneration all together.... and try disabling your triggers that apply your regen buffs...
is the regen buff you talked about a behavior that you apply to the unit?
@SouLCarveRR: Go
Pls read the entire thread.
I have.....
Triggers are generally bad to use unless you have to. Anything that can be done in the data editor should be done in the data editor.