Howdy. First post here, but I come here quite often to gain map editing wisdom...great place here! Anyway, I'm having a bit of trouble with this ability I've created, which basically functions like the healing ward from Warcraft 3. So, what I have is a unit running a 'Buff' behavior, and that behavior has a 'search area' effect which applies the medevacs healing ability to any unit around it. It works pretty well, but my problem is that I can't figure out how to prevent the healing effect from stacking. I want my healing ward to behave pretty much exactly like the healing wards from warcraft 3, where the healing rate would be constant regardless of how many wards you have set up in an area. Changing the Maximum Stack Count for the behavior doesn't seem to have any effect, but I'm guessing that setting refers to the behavior itself and not the healing effect. Any insight would be much appreciated!
You can make the Search Area's effect be an Apply Behavior type that applies a second behavior which has a maximum stack count of 1. For the second behavior, you can either A) give a health regeneration bonus (easier, but the healing is constant) or B) give a periodic effect of Modify Unit (slightly more complex, but can heal x% of a unit's total health per tick instead of a static value).
you could do as above, or on the effect of 'apply behavior' make a validator on that of type 'unit behavior count' and make it 'equal to 0' with a behvaior validation check of 'medivac healing' (or whatever buff youre using to heal units). so it will only apply the behavior if they have no buff of type 'medivac healing' or whatever youre using.
Thanks, guys! Having the Search Area set another Behavior did the trick. So now my healing ward looks like this...
1- Healing Ward has a behavior which begins a Search Area Effect.
2- Search Area Effect applies a 2nd behavior on to units in range. (Stack max set to 1)
3- 2nd behavior applies modified Medevac heal effect.
I've got it healing at 2% max HP per second, and it's not stacking anymore. Perfect! Thanks a lot.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Howdy. First post here, but I come here quite often to gain map editing wisdom...great place here! Anyway, I'm having a bit of trouble with this ability I've created, which basically functions like the healing ward from Warcraft 3. So, what I have is a unit running a 'Buff' behavior, and that behavior has a 'search area' effect which applies the medevacs healing ability to any unit around it. It works pretty well, but my problem is that I can't figure out how to prevent the healing effect from stacking. I want my healing ward to behave pretty much exactly like the healing wards from warcraft 3, where the healing rate would be constant regardless of how many wards you have set up in an area. Changing the Maximum Stack Count for the behavior doesn't seem to have any effect, but I'm guessing that setting refers to the behavior itself and not the healing effect. Any insight would be much appreciated!
@LegendsOfHyrule: Go
You can make the Search Area's effect be an Apply Behavior type that applies a second behavior which has a maximum stack count of 1. For the second behavior, you can either A) give a health regeneration bonus (easier, but the healing is constant) or B) give a periodic effect of Modify Unit (slightly more complex, but can heal x% of a unit's total health per tick instead of a static value).
you could do as above, or on the effect of 'apply behavior' make a validator on that of type 'unit behavior count' and make it 'equal to 0' with a behvaior validation check of 'medivac healing' (or whatever buff youre using to heal units). so it will only apply the behavior if they have no buff of type 'medivac healing' or whatever youre using.
Thanks, guys! Having the Search Area set another Behavior did the trick. So now my healing ward looks like this...
1- Healing Ward has a behavior which begins a Search Area Effect. 2- Search Area Effect applies a 2nd behavior on to units in range. (Stack max set to 1) 3- 2nd behavior applies modified Medevac heal effect.
I've got it healing at 2% max HP per second, and it's not stacking anymore. Perfect! Thanks a lot.