I need to be able to apply a specific behavior to a unit each time it makes a kill, up to 150. From my knowledge of the data editor, the only way to do this is to make 150 different behaviors.
It would be nice if I could store all the behaviors in an array of 150, but I don't see any data structures that could store a behavior. Is it possible to do this using game links or something? Does anyone have a more sensible solution?
Edit, more details:
I have an ability where every kill a unit makes increases its damage by 2%, up to a maximum of 300% (or 150 levels). I want the unit to have one behavior with the accumulated damage bonus, not 150 stacked behaviors at 2% damage each.
I would like to be able to have an array of length 150 that stores each level of this damage boost, and then on a kill I would use a trigger to remove the previous behavior and add the next level behavior from the array.
I don't know of a way to store a behavior in a variable, and I don't know of a better way to do this using the data editor.
I would also like to know how to do this, as I am trying to create a custom function that takes a behavior as a parameter, but I currently don't think I can do this.
I need to be able to apply a specific behavior to a unit each time it makes a kill, up to 150. From my knowledge of the data editor, the only way to do this is to make 150 different behaviors.
It would be nice if I could store all the behaviors in an array of 150, but I don't see any data structures that could store a behavior. Is it possible to do this using game links or something? Does anyone have a more sensible solution?
Edit, more details: I have an ability where every kill a unit makes increases its damage by 2%, up to a maximum of 300% (or 150 levels). I want the unit to have one behavior with the accumulated damage bonus, not 150 stacked behaviors at 2% damage each.
I would like to be able to have an array of length 150 that stores each level of this damage boost, and then on a kill I would use a trigger to remove the previous behavior and add the next level behavior from the array.
I don't know of a way to store a behavior in a variable, and I don't know of a better way to do this using the data editor.
It would be easier to prescribe a solution if you were more clear about what exactly you're doing.
@SkrowFunk: Go
Use a stackable behavior. Then you will have one behavior x150 on the unit instead of 150 different behaviors.
I would also like to know how to do this, as I am trying to create a custom function that takes a behavior as a parameter, but I currently don't think I can do this.