[SOLVED]Is there a way to make a npc only say a dialog line if the actor is named a specific name?(RPG MAKER MV)

Is that possible in vanilla rpgmaker mv or do i need plugins for that, because I have seen that on other rpgmaker mv games.
It should be something like
If: $gameParty.leader()._name =="Harold"
as a parallel option incase your party order can be changed
Code:
$gameActors.actor(1).name()=="Bobothy"
or instead of scripts, you could simply use the default conditional branch options to check for actor names.
Yeah, there's no need to be looking at scripts at all for this.

1721878898136.png
or instead of scripts, you could simply use the default conditional branch options to check for actor names.
Yeah, there's no need to be looking at scripts at all for this.
huh. would you look at that. there it is 🤣

I vaguely remembered that was an option in the conditional branch window, but by it having to be asked i assumed either i misremembered or that it was an MZ addition
I still made a note of AquaEcho and Robro33's suggestions because I might want to do this for nicknames. [Nicknames can change in my games, for instance, if the actor does something mildly scandalous.]

Original thread: https://forums.rpgmakerweb.com/threads/solved-is-there-a-way-to-make-a-npc-only-say-a-dialog-line-if-the-actor-is-named-a-specific-name-rpg-maker-mv.170597/