If any of you have played warcraft 3 before you know that when a unit is under the effect of an aura it receives a blueish circle glow around it to indicate it to the player. This glow is the same no matter what the aura is (brilliance, unholy, vampiric, etc.).
I wanted to know if there was a way to design my levelable auras in such a way that I could have a single actor that covers them all in a single event, rather than have a million events listed in one actor, even though each aura will have 3 different behaviors and there will be at least a dozen auras (thats 36 behaviors which means I'd have to put 72 events in the actor!).
One idea is to have one behavior that is hidden and shared by all those auras (e.g. having these behaviors create this behavior on initial and remove it on final).
You could also use an effect on behavior initial and behavior final to do this if you want to keep buff counts down on an unit.
Just out of curiosity, what is the problem of having 72+ actor events?
I don't think it makes much of a difference if you have that many actor events or if you fire effects or add additional behaviors from a performance standpoint. Also the amount of work isn't really much of a difference (well, it could be if you have really a lot of different behaviors I guess). The only benefit is that you make the actor events for a single actor more readable, but at the cost of making every single ability and effect chain more complicated for everyone else that wants to learn how it works.
Of course you have to be careful with some actions you can do within Actor Events, like timers etc., but I'm pretty sure the events themselves are really neglectible performance wise (there are many Blizzard actors with easily 80+ Actor Events).
That said, I don't know whether or not there is a clever way to solve your problem.
Hi everyone,
If any of you have played warcraft 3 before you know that when a unit is under the effect of an aura it receives a blueish circle glow around it to indicate it to the player. This glow is the same no matter what the aura is (brilliance, unholy, vampiric, etc.).
I wanted to know if there was a way to design my levelable auras in such a way that I could have a single actor that covers them all in a single event, rather than have a million events listed in one actor, even though each aura will have 3 different behaviors and there will be at least a dozen auras (thats 36 behaviors which means I'd have to put 72 events in the actor!).
Thanks!
One idea is to have one behavior that is hidden and shared by all those auras (e.g. having these behaviors create this behavior on initial and remove it on final).
You could also use an effect on behavior initial and behavior final to do this if you want to keep buff counts down on an unit.
Just out of curiosity, what is the problem of having 72+ actor events?
I don't think it makes much of a difference if you have that many actor events or if you fire effects or add additional behaviors from a performance standpoint. Also the amount of work isn't really much of a difference (well, it could be if you have really a lot of different behaviors I guess). The only benefit is that you make the actor events for a single actor more readable, but at the cost of making every single ability and effect chain more complicated for everyone else that wants to learn how it works.
Of course you have to be careful with some actions you can do within Actor Events, like timers etc., but I'm pretty sure the events themselves are really neglectible performance wise (there are many Blizzard actors with easily 80+ Actor Events).
That said, I don't know whether or not there is a clever way to solve your problem.