Yanfly Party Command lock actor? VX Ace (Solved)

Discussion in 'RGSSx Script Support' started by Zayber, Jun 20, 2012.

Thread Status:
Not open for further replies.
  1. Zayber

    Zayber Veteran Veteran

    Messages:
    38
    Likes Received:
    0
    First Language:
    English
    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.
     
    #1
  2. MyLordRobinson

    MyLordRobinson Emperor of Carnelia Veteran

    Messages:
    881
    Likes Received:
    84
    Location:
    Cherokee Nation, Oklahoma
    First Language:
    English
    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)
     
    #2
  3. Zayber

    Zayber Veteran Veteran

    Messages:
    38
    Likes Received:
    0
    First Language:
    English
    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?
     
    #3
  4. MyLordRobinson

    MyLordRobinson Emperor of Carnelia Veteran

    Messages:
    881
    Likes Received:
    84
    Location:
    Cherokee Nation, Oklahoma
    First Language:
    English
    Yanfly Core Engine and Yanfly Party Commands should do it. Perhaps the Yanfly Menu system as well.
     
    #4
  5. Zayber

    Zayber Veteran Veteran

    Messages:
    38
    Likes Received:
    0
    First Language:
    English
    It still didn't work. o_O
     
    #5
  6. Gleen

    Gleen Veteran Veteran

    Messages:
    98
    Likes Received:
    21
    First Language:
    portuguese
    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.
     
    #6
  7. Zayber

    Zayber Veteran Veteran

    Messages:
    38
    Likes Received:
    0
    First Language:
    English
    Thank you! It worked. :)
     
    #7
  8. Mr. Bubble

    Mr. Bubble Makes stuff. Member

    Messages:
    853
    Likes Received:
    163
    Location:
    Portland, Oregon
    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.
     
    #8
Thread Status:
Not open for further replies.

Share This Page