[SOLVED] Party Member ID Script Call

Discussion in 'RPG Maker MV' started by Speedvore, Oct 14, 2019.

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

    Speedvore Villager Member

    Messages:
    12
    Likes Received:
    3
    First Language:
    English
    I'm trying to reference the agility parameter of a party member, rather than a specific actor in the database since the party will be constantly changing/chosen by the player throughout my game.

    So basically what I'm trying to find is the agility parameter of party members 1, 2, 3, and 4.

    I know that you can reference the 2nd actor's agility parameter like this:
    Code:
    $gameActors.actor(2).agi
    And the 2nd enemy's agility parameter like this:
    Code:
    $dataEnemies[2].params[6]
    What is the script call to reference the 2nd party member?
     
    #1
  2. standardplayer

    standardplayer Keeper of Kitties Veteran

    Messages:
    410
    Likes Received:
    1,573
    First Language:
    English
    Primarily Uses:
    N/A
    $gameParty.members()[1].agi
    $gameParty.members() returns an array. Since arrays are 0-based, you would use 1 to get to the 2nd member.
     
    #2
    Speedvore likes this.
  3. Speedvore

    Speedvore Villager Member

    Messages:
    12
    Likes Received:
    3
    First Language:
    English
    Thank you so much for your quick response! It works perfectly for me now :)
     
    #3
  4. slimmmeiske2

    slimmmeiske2 Little Red Riding Hood Moderator

    Messages:
    5,679
    Likes Received:
    4,162
    Location:
    Belgium
    First Language:
    Dutch
    Primarily Uses:
    RMXP

    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.

     
    #4
Thread Status:
Not open for further replies.

Share This Page