Hi, I will try to explain what I need to implement. First say that actually I know how to solve this, but maybe there are better / cleaner / more correct ways to implement this.
The player can have multiple characters, say ten.
Each character belongs to a specific class like “warrior”, inheriting from a base class.
The player can increment stats for every character, change equipment, etc, classic RPG mechanics.
From that ten characters the player can select a subgroup, say 4 of them .
This four characters are the players team, and can be changed anytime in expiration mode.
Then the players enter to battle mode.
Here I have other characters that represent the four selected in Exploration mode.
I am not using the same characters, because the mechanics from the exploration mode and Battle mode are totally different.
Example: In Exploration mode you can freely walk with WASD and mouse, and interact with actos in the world. In battle mode I have a turn based mechanic, likely Final fantasy games.
The battle mode is other map/level (or maybe could be the same?), so I need to transfer all the data from the four characters team (GameInstace could be helpful here?), and recreate the corresponding battle mode characters.
So, how / what / which is the best way to, based in the four selects characters in Exploration mode, create and spawn the 4 corresponding “battle characters” .
Taking into account the all the stats needs to be obtained, the equipment, etc.
Is there a nice and clean way to do this? How can I manage all the information I need to keep between levels/maps, then analice it, then create the correct “battle characters”, then if for example the health ends being 40/100, match the battle character to the corresponding “exploration character” and set the correct health update when exit the battle?
Correspondientes I think is a little tricky to manage and I want to do it in a nice way. Because it could turn into a truly mess
thanks and I am sorry for my English.