Change the Player Character?

● ARCHIVED · READ-ONLY
Started by Damenshi 17 posts View original ↗
  1. So, like it says, I'm trying to figure out a way to switch the player character mid-game.

    Here are the details:

       My game starts in a sort of "flashback" scenario, where you play as a party that is entirely separate from the group that you will use for the rest of the game. I'd like to find a way to then switch out the entire prologue party for the starting one afterwards.

    In short, I want to switch out a 5 member group for a single entirely different character.

    Thank you all in advance.
  2. You have to use the event editor. Picture attached.

    Capture.PNG
  3. If using that prologue character for an extended period of time (where they will pick up items and use them, etc) then a separate inventory script will be needed. Otherwise, just fade to black, remove all the main party people, add in the prologue character, then do the reverse after the prologue starts.
  4. So, you're saying I just "remove" the old party and "add" the new one?

    Unfortunately, I tried that, but it apparently conflicts with a script I have in place.

    My apologies, I should have mentioned that detail.

    Script Image.png

    It's part of Galv's "Character Effects" script.

    Here's the error itself.

    Error Message.png
  5. how did you add and remove the actors? That should not conflict with galv's script...
  6. Andar said:
    how did you add and remove the actors? That should not conflict with galv's script...
    Via the "Change Party Member" function in the event commands.
  7. Damenshi said:
    Via the "Change Party Member" function in the event commands.
    That was clear from the post above - I wanted to know how exactly you did that (screenshot of the commands).
    One possibility might be that Galv's script reacts badly to an empty party, which means that you have to add first and delete second (instead of deleing first and adding second), or it might be that you're having a problem with the notetags on the new actors.


    But we need more info to even guess what's happening...
  8. Andar said:
    That was clear from the post above - I wanted to know how exactly you did that (screenshot of the commands).

    One possibility might be that Galv's script reacts badly to an empty party, which means that you have to add first and delete second (instead of deleing first and adding second), or it might be that you're having a problem with the notetags on the new actors.

    But we need more info to even guess what's happening...
    Okay, well here's the command list.

    Script Image 2.png

    What ends up happening, though, is that it seems to prioritize placing the only remaining actor into a "follower"

    position, rendering him immobile.

    (Because, well, there's no longer a Player Character to move with.)

    There is also nothing printed in the notetags on any of the actors.

    If, by notetag, you mean this.

    Reference.png
  9. Sounds like there is another script at work here. Do you have any party scripts? I do know that there's at least one (can't recall the name or the scripter) that fixes a character's position in the party, so if you add someone when you already have 4, they will go into slot 5, and if you remove the original 4 they won't shuffle up to take their spot.


    What happens to the inventory the first party has collected? Does the new character get all of that? Or is the first party for a cutscene only, where the player doesn't actually get to adventure around with them and collect things? If they do have their own inventory and you don't want it to pass to your second (one-person) party, then you will need to use a party system script, so all of the above (using Change Party command) will be unnecessary anyway.
  10. Shaz said:
    Sounds like there is another script at work here. Do you have any party scripts? I do know that there's at least one (can't recall the name or the scripter) that fixes a character's position in the party, so if you add someone when you already have 4, they will go into slot 5, and if you remove the original 4 they won't shuffle up to take their spot.

    What happens to the inventory the first party has collected? Does the new character get all of that? Or is the first party for a cutscene only, where the player doesn't actually get to adventure around with them and collect things? If they do have their own inventory and you don't want it to pass to your second (one-person) party, then you will need to use a party system script, so all of the above (using Change Party command) will be unnecessary anyway.
    I currently have a "Party System" script by Yanfly. Though, I haven't actually implemented it into the game yet.

    I also have a Menu Organizer by CSCA, if that could possibly be affecting it.

    The prologue is currently set up as a short, player-controlled sequence,

    but none of the prologue party's inventory will be transferred to the new party.
  11. What you do mean, you "haven't implemented it into the game yet"? Have you added the script in the script editor? When you go into the menu to change formation, do you see Yanfly's script at work. That is probably the same one I'm referring to. If you do a search in the Script Support thread you will probably find a few other people who had troubles with that script not moving actors to the front of the lineup when you remove party members.
  12. Shaz said:
    What you do mean, you "haven't implemented it into the game yet"? Have you added the script in the script editor? When you go into the menu to change formation, do you see Yanfly's script at work. That is probably the same one I'm referring to. If you do a search in the Script Support thread you will probably find a few other people who had troubles with that script not moving actors to the front of the lineup when you remove party members.
    I mean the script itself has not been added to the script editor.

    The page with the script on it is currently in a text document, separate from the game.

    I noticed a "Swap Order Fix" Add-on for it, and thought that might be usable to fix this issue.

    The script call for the add-on reads:  $game_party.swap_order(n,n)
  13. no, don't think so. That wouldn't be used unless you wanted to swap the order. I'm curious about the fix though - have never heard of a problem with the existing one.
  14. Shaz said:
    no, don't think so. That wouldn't be used unless you wanted to swap the order. I'm curious about the fix though - have never heard of a problem with the existing one.
    What "existing one" are you referring to?

    Well, regardless, maybe I can find another way around this.
  15. the existing swap order method
  16. Shaz said:
    the existing swap order method
    Oh, M'kay.

    I may have to get the information across using a cutscene or something,

    because I'm running out of ideas. Other than fishing through every possible

    piece of code and command sequence.

    Thank you all for your help, by the way.

    --------------------------------

    Wait!

    I figured it out.

    I have the prologue characters moving as the screen fades, and when it loads the next scene,

    the new character tries to finish moving, but gets stuck.

    I just removed the movement from the prologue characters.

    Now I don't have discard my opening!

    Thanks again, everybody.
  17. If you're going to use Yanfly's party script, implement it and use it. As I said, if you're going to use a party swapping script, all the instructions you've been given above will be irrelevant, because the script will have its own way of setting up and swapping parties.