Party Member Swapping Trouble

Discussion in 'RPG Maker MV' started by Scrumplet, Apr 18, 2016.

  1. Scrumplet

    Scrumplet Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    N/A
    So, I'm having a ton of trouble trying to create a Swapping system for my game. For example. One section has an npc (event) that states, "you have too many people in your party, would will you remove?" At this point, each choice has a defined variable saying that variable is equal to the actor ID of whoever is in that party Member slot. This is the point where I'm totally stumped. I don't know much at all about scripting, but I simply want the event/actor to replace whoever is in that chosen party Member space, regardless of what actor it might be.


    I can add pictures of my process upon request.
     
    #1
  2. Shaz

    Shaz Veteran Veteran

    Messages:
    36,935
    Likes Received:
    10,870
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    If you're using variable 2 and it has the actor id of the person you wish to remove, do this in a script call:

    Code:
    $gameParty.removeActor($gameVariables.value(2))
     
    #2
  3. Scrumplet

    Scrumplet Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    N/A
    I'll give it a shot now, thank you for the rapid response! For me, it'll be variable 1, which is set to the game data, "Actor ID of the party member #2"


    By script call, you mean using the Script option during an event, yes?
     
    #3
  4. Shaz

    Shaz Veteran Veteran

    Messages:
    36,935
    Likes Received:
    10,870
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    yes.


    If you're using variable 1, just put 1 instead of 2 in the script call.
     
    Last edited by a moderator: Apr 18, 2016
    #4
  5. Scrumplet

    Scrumplet Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    N/A
    IT WORKED TO PERFECTION! I have no idea who you are, but I could kiss you.
     
    #5
  6. TNID

    TNID Villager Member

    Messages:
    28
    Likes Received:
    0
    First Language:
    English
    is this going to be a player swap during battle script?
     
    Last edited by a moderator: Jun 12, 2016
    #6
  7. Shaz

    Shaz Veteran Veteran

    Messages:
    36,935
    Likes Received:
    10,870
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Battle scripts change things around.  Please don't hijack someone else's topic with your own questions.
     
    #7
    TNID likes this.

Share This Page