Yanfly Party Command lock actor? VX Ace (Solved)

You have to use lock_actor(1) wich is refering to the first actor in your database. If nothings happens when you use this, you're missing another option or something isn't working as expected.

Did you configure any other options? If yes, wich options and how you configured them?

How many actors are in your database?

If you answer that questions i may be able to reproduce your error and see what's happening... or you can upload a demo of you problem so i can take a look.
I have 12 actors in my database. The only two things I changed in the script is the max party to 4 and I turned display faces on.
Instead of lock_actor(name) use lock_actor(1) or (2) or whatever the ID of your characters is. For instance, if you want your main character, which is Actor 1 to be locked, do lock_actor(1), instead of (001)
Instead of lock_actor(name) use lock_actor(1) or (2) or whatever the ID of your characters is. For instance, if you want your main character, which is Actor 1 to be locked, do lock_actor(1), instead of (001)
I've tried that. I did that before trying the others. None of it seems to work for some reason... Is there another Engine I need with this one besides the core engine?
Yanfly Core Engine and Yanfly Party Commands should do it. Perhaps the Yanfly Menu system as well.
Yanfly Core Engine and Yanfly Party Commands should do it. Perhaps the Yanfly Menu system as well.
It still didn't work. 😳
Ok, i did a little research and found that lock_actor(x) has a bug in the released version, but a comment posted on Yanfly's blog fixed that.

Here's how to do it. Edit line 392 and 402 from:



Code:
return unless $game_party.battle_members.include?(actor.id)
to this:



Code:
return unless $game_party.battle_members.include?(actor)
And it'll work.
Ok, i did a little research and found that lock_actor(x) has a bug in the released version, but a comment posted on Yanfly's blog fixed that.

Here's how to do it. Edit line 392 and 402 from:



Code:
return unless $game_party.battle_members.include?(actor.id)
to this:



Code:
return unless $game_party.battle_members.include?(actor)
And it'll work.
Thank you! It worked. 🙂
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/yanfly-party-command-lock-actor-vx-ace-solved.2589/