public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Lock/unlock actor in Yanfly Party System

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Lock/unlock actor in Yanfly Party System
  • Original author: Kes
  • Original date: May 24, 2015
  • Source thread: https://forums.rpgmakerweb.com/threads/lock-unlock-actor-in-yanfly-party-system.40304/
  • Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Script Support

Summary

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...

Archived First Post

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.

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rpg-maker-archive#rgss-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar