Just adding another alternative to Newt Ideas for variation
it could be to do a (Ranking System) you have a really nice example from R0J0hound on this thread:
https://www.construct.net/wf/forum/construct-2/beginners-questions-19/how-do-i-make-a-positioning-sy-87052
-Put all the (CPUs(Red) & the Player) in a Family
-Create an (Instance Variable: Ranking) and use the system Ranking from the Link
Now whenever you need to Pick who is in front of the Player then just compare the Variable Ranking
Example:
Pick Family: Where >>>>>>Ranking) = (Player.Ranking-1) >>>>>> Do your Staf