Lock/unlock actor in Yanfly Party System

I have been using Yanfly's Party System script, found here

I thought I had locked actor 1 at the beginning of the game.  I now wish to unlock her, but the script call is not working.  She remains locked.

When I was looking at the script, I saw that locking actor 1 as default was set to 'true', so I changed it to 'false' in case that was preventing the script call from working.

On testing in a New Game, locking actor 1 was now not working, leading me to think that maybe all that had happened in the past was the the default at 'true' had been operative, not the script call.  

The section on the script call is as follows:

*IMPORTANT* These script calls require the new party menu to be enabled to# use them. Otherwise, nothing will happen.# # lock_actor(x)# unlock_actor(x)# This will lock actor x in its current position in the party if the actor is# in the current party. The actor is unable to switch position and must remain# in that position until the lock is removed. Use the unlock script call to# remove the locked status. This script requires the actor to have joined and# in the current party before the script call will work.I used the calls exactly as set out there without any additions i.e. I used

lock_actor(1) 

and

unlock_actor(1)

Should I have done something else as well?

In case you wonder about the bit where it says that if the new party menu is not enabled, nothing happens, it is enabled.  Here is how I have set it in the script.

ENABLE_MENU = true # Enables party menu. Default: falseCan anyone help me to identify what is happening here?  Is it a bug in the script?  Is it me being an idiot? (not for the first time).

Thanks.
I hit the same bug in my game. I remember you found the bug in my cutscenes where if you moved actor 1 it had two Sarahs in a cutscene. Well, I tried locking the lead actor and the command didn't work. The only thing I could do was set it to true, which revoked a lot of strategy of my game.

I had to get Sixth to write me a script so that I didn't need the first actor locked but could have actor 1 show as the player character in cutscenes regardless of who was in the 1st party member slot to get around this bug. If you would like to try that approach, PM me.

Otherwise, I'm curious too if this can be fixed, as that seems like a pretty critical bug to slip into a script.
I remember running into this problem too and there was some minor error in the script. Here we go. I think this is the one:

http://www.rpgmakervxace.net/topic/24033-is-anyone-having-problems-with-yanfly-partys-lock-actor-feature/
Its lines 408 and 418 on my version of the script. Testing now.

Edit: It works. Change lines 408 and 418 to read return unless $game_party.battle_members.include?(actor)

Script works for me once those are changed.
For me it's lines 392 and 402.  I wonder what else you have in your script to push everything down?  I thought I had the latest version. 

Thanks Matseb for the info.  It is so nice to 

a) get it sorted and

😎 know that it wasn't me being an idiot.
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/lock-unlock-actor-in-yanfly-party-system.40304/