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.
Yanfly Party Command lock actor? VX Ace (Solved)
RGSSx Script SupportInstead 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.
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:
to this:
And it'll work.
Here's how to do it. Edit line 392 and 402 from:
Code:
return unless $game_party.battle_members.include?(actor.id)
Code:
return unless $game_party.battle_members.include?(actor)
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/