Is there any way to show different messages based on active actor?

Hey everyone! Is there any way (plugin/script call/etc) to show different message based on your active party member. For example, you have a villager and he says Hi, then your active actor is X, but he will say Bye if your active character Y.
By "active party member", do you mean the party leader?

If so, try this: Conditional Branch > Script >
Code:
$gameParty.leader().actorId() === x
(Replace x with the ID you want to check.)
By "active party member", do you mean the party leader?

If so, try this: Conditional Branch > Script >
Code:
$gameParty.leader().actorId() === x
(Replace x with the ID you want to check.)
Yeah, I meant party leader. Thanks for answer!

Original thread: https://forums.rpgmakerweb.com/threads/is-there-any-way-to-show-different-messages-based-on-active-actor.92125/