Yanfly Party Command lock actor? VX Ace (Solved)

Status
Not open for further replies.

Zayber

Veteran
Veteran
Joined
Jun 6, 2012
Messages
38
Reaction score
0
First Language
English
Primarily Uses
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.
 

MyLordRobinson

Emperor of Carnelia
Veteran
Joined
May 13, 2012
Messages
881
Reaction score
84
First Language
English
Primarily Uses
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)
 

Zayber

Veteran
Veteran
Joined
Jun 6, 2012
Messages
38
Reaction score
0
First Language
English
Primarily Uses
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?
 

MyLordRobinson

Emperor of Carnelia
Veteran
Joined
May 13, 2012
Messages
881
Reaction score
84
First Language
English
Primarily Uses
Yanfly Core Engine and Yanfly Party Commands should do it. Perhaps the Yanfly Menu system as well.
 

Gleen

Veteran
Veteran
Joined
Jun 14, 2012
Messages
98
Reaction score
21
First Language
portuguese
Primarily Uses
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.
 

Zayber

Veteran
Veteran
Joined
Jun 6, 2012
Messages
38
Reaction score
0
First Language
English
Primarily Uses
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. :)
 

Mr. Bubble

Makes stuff.
Member
Joined
Mar 1, 2012
Messages
853
Reaction score
163
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.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top