How to Check if an Actor has been Recruited

I'm using Yanfly's Common Event Menu plugin, and I want a particular common event to only be visible if an actor has been recruited (aka already in my party, but not necessarily in my active party.)

<Menu Visible Eval> if (actor has been recruited) { visible = true; } else { visible = false; } </Menu Visible Eval>

What do I put as condition?
I don't use Yanfly's plugins, but I think you can put script in there?

Try this:
$gameParty.members().contains($gameActors.actor(5))

replacing 5 with whatever actor id you're interested in (no leading zeros)
I don't use Yanfly's plugins, but I think you can put script in there?

Try this:
$gameParty.members().contains($gameActors.actor(5))

replacing 5 with whatever actor id you're interested in (no leading zeros)


Doesn't this script check only battle members, or does it include ones in reserve?

EDIT: Just checked, it works. Thank you! This thread can be closed now.
Moved to: Plugin Support

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-if-an-actor-has-been-recruited.121114/