I have everything in an array like so:
LET active_baddies$ = 1,2,3,
where there are three baddies, named baddie 1, baddie 2, and baddie 2
To make a baddie active, I simply add an "a" after the baddie number. Example:
LET active_baddies$ = 1,2a,3,
That would mean that baddie 2 is active.
To figure out which baddie is active, you just search the array for the character "a", and then the number before that is the active baddie.