Hey guys, I want to make an ability that changes the attack patterns of an uncontrollable unit.
The abilities I wish to make will toggle attack preference between "most health, least health, closest and furthest"
a toggle between target type preference "caster, melee, ranged"
and a toggle between unit behavior "passive, aggressive, defensive, supportive"
I've been going over it in my head trying to come up with the best way of doing this, all these units are "controlled" by the player though so AI doesn't really work right for it
I was thinking that, but then it would disable them from attacking the other types as well, I still want them to hit other targets if nothing matches it's current target type.
So I was thinking giving each behavior a periodic trigger that searches for the best unit matching the conditions and order this unit to attack it, but that will fire like, every 1s per behavior per unit and is almost garunteed to lag the game, not to mention it would be hard to modify those search areas for passive, defensive, aggressive traits
I guess I mostly want things that can change attack priority per unit. I could give each class a different priority and have each behavior change what priority that unit looks for, but I'm not even sure if that's possible
Hey guys, I want to make an ability that changes the attack patterns of an uncontrollable unit.
The abilities I wish to make will toggle attack preference between "most health, least health, closest and furthest"
a toggle between target type preference "caster, melee, ranged"
and a toggle between unit behavior "passive, aggressive, defensive, supportive"
I've been going over it in my head trying to come up with the best way of doing this, all these units are "controlled" by the player though so AI doesn't really work right for it
could you do it with an upgrade? like one that modifies the weapon's target priority?
@joey101d: Go
I was thinking that, but then it would disable them from attacking the other types as well, I still want them to hit other targets if nothing matches it's current target type.
So I was thinking giving each behavior a periodic trigger that searches for the best unit matching the conditions and order this unit to attack it, but that will fire like, every 1s per behavior per unit and is almost garunteed to lag the game, not to mention it would be hard to modify those search areas for passive, defensive, aggressive traits
I guess I mostly want things that can change attack priority per unit. I could give each class a different priority and have each behavior change what priority that unit looks for, but I'm not even sure if that's possible
target priority doesnt work for weapons, never did. you have to do it with a switch effect, first effect in line is the one with highest priority.