Script command for currently selected actor

Hello everyone. I'm currently trying to add a HUD element to my battle menu. This HUD element is tied to a State only one class has, but in case the player decides to pick this class 2, 3 or 4 times (you never know), I'd like this HUD element to dynamically change depending on the actor that is currently selected (as in, the one you're currently giving orders to). Currently, the command I use is $gameParty.members()[0].getSR(102), it was only for testing purposes and obviously targets the first party member and I don't know if there is one that allows me to link the HUD Element to the currently selected actor. It'd avoid me having to put this element 4 times and lose a lot of screen space.

Thanks in advance.
Try BattleManager.actor()
Works like a charm, thanks a ton !

Original thread: https://forums.rpgmakerweb.com/threads/script-command-for-currently-selected-actor.79579/