I have a negative XP multiplier buff that is applied to targets that get to close to a unit. The multiplier is set at 0.9 so they lose 10% of their experience when around the unit.
The strange thing is when the buff is on it actually prevents the unit from leveling up. I have triggers when conditions are met level up the unit to level 2.
I have tested the triggers and when they get sufficient experience it fires over and over but the unit wont level up until it moves outside of the range of the negative XP buff aura.
It's very strange indeed. Perhaps someone knows of some particular setting in the veterancy behavior which interferes with that negative buff?
(UPDATE)
While I have not figured out why this strange effect happens, I have a temporary work around, which disables the buff for a 0.5 seconds, enough time to allow the unit to level up. However, I'd still be interested to hear if someone knows why this is currently occurring.
Otherwise I'd propose to the community that the veterancy behavior is bugged when used in combination with a Buff Behavior and using a negative XP Multiplier.
What about instead of using a negative multiplier, you can add arithmetic (real) for your buff, then multiply by 0.9. This is because when you multiply an equation with a negative, then the whole equation will be negative. This is the principle of mathematics rather than being a bug itself.
Hmmmm, well in Behavior Buffs, there are only the following fields for modification to a unit for experience:
XP Multiplier
Kill XP Bonus
XP Scaled Bonus
XP Unscaled Bonus
I'm using the XP Multiplier and my value is set to 0.9. So I am not using a negative value. Sorry the title of this post then is technically incorrect.
SC2 Editor Veterancy Behaviors are very finicky. A lot of people use triggers alone to award experience due to the problems associated with Veterancy.
Also the unit still gains experience, it just gains 10% less experience then it normally would.
I have a negative XP multiplier buff that is applied to targets that get to close to a unit. The multiplier is set at 0.9 so they lose 10% of their experience when around the unit.
The strange thing is when the buff is on it actually prevents the unit from leveling up. I have triggers when conditions are met level up the unit to level 2.
I have tested the triggers and when they get sufficient experience it fires over and over but the unit wont level up until it moves outside of the range of the negative XP buff aura.
It's very strange indeed. Perhaps someone knows of some particular setting in the veterancy behavior which interferes with that negative buff?
(UPDATE)
While I have not figured out why this strange effect happens, I have a temporary work around, which disables the buff for a 0.5 seconds, enough time to allow the unit to level up. However, I'd still be interested to hear if someone knows why this is currently occurring.
Otherwise I'd propose to the community that the veterancy behavior is bugged when used in combination with a Buff Behavior and using a negative XP Multiplier.
What about instead of using a negative multiplier, you can add arithmetic (real) for your buff, then multiply by 0.9. This is because when you multiply an equation with a negative, then the whole equation will be negative. This is the principle of mathematics rather than being a bug itself.
Hmmmm, well in Behavior Buffs, there are only the following fields for modification to a unit for experience:
XP Multiplier
Kill XP Bonus
XP Scaled Bonus
XP Unscaled Bonus
I'm using the XP Multiplier and my value is set to 0.9. So I am not using a negative value. Sorry the title of this post then is technically incorrect.
SC2 Editor Veterancy Behaviors are very finicky. A lot of people use triggers alone to award experience due to the problems associated with Veterancy.
Also the unit still gains experience, it just gains 10% less experience then it normally would.