Changing animations with Player Character

Hi!

I am making a game that starts with a personality quiz for the player and ends up with the game giving them a character based on their personality (think Pokémon mystery dungeon) and I am now trying to figure out how to have the animations of the player change between the possible characters, since I want the player character to have animations outside of battle (such as the player lying unconscious, striking a pose, looking shocked, etc). Is there any way to do this in-engine or with the help of a plugin?

Please let me know if I didn't explain this very well and I will try to re-explain it the best I can.

Thanks.
Don't you just change their spritesheet? Otherwise you need to be more specific on what you want to change from the default settings.
Don't you just change their spritesheet? Otherwise you need to be more specific on what you want to change from the default settings.
I have the different characters separated from each other by being completely different actors, since they have different classes and stats and such. I need the game to automatically change what sprite to pull based off of the character the player is currently playing as. is there a way for me to make the game read this and give the corresponding sprite?
Add that actor to the party and remove whoever the default actor is?
If I understand you correctly, you want to have certain "motions" that your characters can do on the map, like being knocked out and posing and such, but you want to play these kinds of motions out for different characters with different sprite sheets, in a way that's streamlined, ideally down to one command that's applicable to all characters?

You can accomplish this via common events. Just make one common event for each motion type you want (so one is "unconscious", one is "posing", etc.). Then inside those common events you put a bunch of conditional branches that identify your current main character and pulls the correct sprite sheet.

Then, whenever you want to play that motion, you can just call the respective common event.
Add that actor to the party and remove whoever the default actor is?
I don't think I'm explaining this very well sorry.

Currently the player is able to get given their character just fine, there aren't any problems there.

The problem I'm having is that in the game, just say the player would be in a story event where they are knocked unconscious lying on the floor face-down, or was celebrating a victory and striking a pose, I need the game to know what sprite to get from the files based on the character the player was assigned at the start of the game.

For example, if character 1 was given to the player at the start of the game, and I had to call an animation for the character, the game would play the animation for character 1, and the game would do the same if the player was given character 2 at the start of the game instead, by calling the same animation, but the sprite assigned to character 2 instead.

I need the game to know what character the player was given at the start of the game, so that the game can play the correct animation for the correct player, since at the moment there are 3 playable characters and I will be adding more down the line.

Does that make sense?
How are you implementing these extra poses or motions?

It will be less confusing if we use the word "animation" to just refer to Animations as they appear in the database.

I think you need to figure that out first - there are a number of plugins for map poses. When you decide on that, and see how that plugin takes the filenames for poses, it should give you your answer.

For example, if you can pass the argument into the plugin of "current actor's filename"+_shocked, then you can simply organize all of your possible actors as:
Actor1
Actor1_shocked
Actor2
Actor2_shocked
etc.
If I understand you correctly, you want to have certain "motions" that your characters can do on the map, like being knocked out and posing and such, but you want to play these kinds of motions out for different characters with different sprite sheets, in a way that's streamlined, ideally down to one command that's applicable to all characters?

You can accomplish this via common events. Just make one common event for each motion type you want (so one is "unconscious", one is "posing", etc.). Then inside those common events you put a bunch of conditional branches that identify your current main character and pulls the correct sprite sheet.

Then, whenever you want to play that motion, you can just call the respective common event.
Yes this is exactly it, and should work perfectly, thank you! I'm not the most experienced with RPG maker but I knew there was some way to do it. Thanks a lot for your help!

So what I want to do is set a switch to ON corresponding to the player character when they have their character, and the common event would have something like "if switch'character1' on, then play sprite1"?
If you have several possible starting characters and are aiming to add even more, it would be better to do it with a variable instead of a switch. Slightly less of a hassle that way.
How are you implementing these extra poses or motions?

It will be less confusing if we use the word "animation" to just refer to Animations as they appear in the database.

I think you need to figure that out first - there are a number of plugins for map poses. When you decide on that, and see how that plugin takes the filenames for poses, it should give you your answer.

For example, if you can pass the argument into the plugin of "current actor's filename"+_shocked, then you can simply organize all of your possible actors as:
Actor1
Actor1_shocked
Actor2
Actor2_shocked
etc.
the animations are only 3 frames long at the moment, so I'm going to be experimenting with the same way the game uses to animate doors opening, which should work fine, unless i can figure out an easier/better way of animating the character.
Okay! I seem to have figured out how I am going to be changing the animations with the player and my question has been thoroughly answered. Thank you for the help @gb3792 and @ATT_Turan !

Original thread: https://forums.rpgmakerweb.com/threads/changing-animations-with-player-character.160395/