Change the Player Character?

Damenshi

Villager
Member
Joined
Sep 1, 2014
Messages
12
Reaction score
0
First Language
English
Primarily Uses
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.
 

TheAwakeJake

Veteran
Veteran
Joined
Jul 9, 2014
Messages
34
Reaction score
4
First Language
English
Primarily Uses
You have to use the event editor. Picture attached.

Capture.PNG
 

EternalShadow

Veteran
Veteran
Joined
Sep 16, 2012
Messages
5,781
Reaction score
1,041
First Language
English
Primarily Uses
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.
 

Damenshi

Villager
Member
Joined
Sep 1, 2014
Messages
12
Reaction score
0
First Language
English
Primarily Uses
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
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
how did you add and remove the actors? That should not conflict with galv's script...
 

Damenshi

Villager
Member
Joined
Sep 1, 2014
Messages
12
Reaction score
0
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
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...
 

Damenshi

Villager
Member
Joined
Sep 1, 2014
Messages
12
Reaction score
0
First Language
English
Primarily Uses
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
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Damenshi

Villager
Member
Joined
Sep 1, 2014
Messages
12
Reaction score
0
First Language
English
Primarily Uses
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Damenshi

Villager
Member
Joined
Sep 1, 2014
Messages
12
Reaction score
0
First Language
English
Primarily Uses
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)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Damenshi

Villager
Member
Joined
Sep 1, 2014
Messages
12
Reaction score
0
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
the existing swap order method
 

Damenshi

Villager
Member
Joined
Sep 1, 2014
Messages
12
Reaction score
0
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

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

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,081
Members
137,582
Latest member
Spartacraft
Top