Hello!
I hope to have an aura ability that grows with the hero. You do not have to spend points on it, it will just level up like a stat would. Right now I have a dummy aura that fires a search that will runs several behavior applications (one for each level of the aura) on all units nearby. Up to this point everything works as it should! But obviously I don't want all the auras firing at once. So how can I add validators to limit them?
I searched validators and used Veterancy compare validator, but that for some reason only fires once. Oddly if the requirements are met at the start of the map, it works but the validaotr is then never used again, or at least doesn't correctly return false when you level beyond that particular aura's range. So thus it stays at level 1 aura across all levels, however lets say I change aura level 1 validator to return true when veterancy stat is 1 (my equvalance of being level 2), it never fires and the aura does not turn on.
Why?! Is there a better way to do this? Like specifically valid a unit's level? This must be doable since I have seen those level 6 ability upgrades that are only able to be picked when you hit level 6.
Those level 6 abilitys are realized using requirements, which you can use for your behaviors as well. Just use the behavior - requirement instead of the validator fields.
I might mention that these hero units are not unique and a player might obtain several of them. If I understand requirements right, they are global and not individual based, right? As is once a requirement's switch is flipped, it is flipped for all units. Or am I wrong about this notion?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello! I hope to have an aura ability that grows with the hero. You do not have to spend points on it, it will just level up like a stat would. Right now I have a dummy aura that fires a search that will runs several behavior applications (one for each level of the aura) on all units nearby. Up to this point everything works as it should! But obviously I don't want all the auras firing at once. So how can I add validators to limit them?
I searched validators and used Veterancy compare validator, but that for some reason only fires once. Oddly if the requirements are met at the start of the map, it works but the validaotr is then never used again, or at least doesn't correctly return false when you level beyond that particular aura's range. So thus it stays at level 1 aura across all levels, however lets say I change aura level 1 validator to return true when veterancy stat is 1 (my equvalance of being level 2), it never fires and the aura does not turn on.
Why?! Is there a better way to do this? Like specifically valid a unit's level? This must be doable since I have seen those level 6 ability upgrades that are only able to be picked when you hit level 6.
Thanks!
Those level 6 abilitys are realized using requirements, which you can use for your behaviors as well. Just use the behavior - requirement instead of the validator fields.
I might mention that these hero units are not unique and a player might obtain several of them. If I understand requirements right, they are global and not individual based, right? As is once a requirement's switch is flipped, it is flipped for all units. Or am I wrong about this notion?