you would have to use party1target as focus is a local variable

of you could predefine macros for each of your characters and assign them hotkeys, perhaps the numpad or an xkeys unit.