Hi everyone
I couldnt find a topic which answers my question. If i have overseen something then im sorry.
I started on a round based Project with Final Fantasy X like Gameplay System.
I have a campaignmap where you walk around with a character. This one should be switchable like you may know it from the Lego Star Wars Games.
Every Character has its own Stats, containing things like abilities, health, Equipment and other RPG elements.
My idea was to have one Pawn / Character Class for the Campaign Gamemode.
For every Character i would make one SaveGame Object / Slot (im not used to it right now) which contains all those Informations in structs (i saw a Topic where this was recommended for saving and loading multiple values).
When i switch between the Characters, the active Pawn class saves its current stats to the corresponding Character SaveGame Object / Slot and loads the stats from the choosen Character in.
In this way, i think the stats are persistent, dont get loose and shouldnt have a huge impact on the Performance like if you possibliy would have it, with a class for every Character and hide everyone, except for the one you wanna have as active Character. Or dont they need ressources if they are hidden?
When i save the Game itself on quit, the Information of all the Character-SaveGame Objects / Slots get saved in the actual Game-SaveGame Object / Slot.
If i enter a Fight, the Character Infos can be loaded in a Fightmap.
Is this the way to go? Are there other, better and/or easyer Ways to Achiev this?
How could i Store the Items each Character is Carring with its own stats? I have read using individual ID’s for the Objects. But what about improvements with runes for example?
Create SaveGame Objects for those too?
I feel strange about this Way, because it needs so much Saveobjects.
And how would i change the Maps? The Fight Maps are small, the Campaignmap is large. I looked at Submaps but dont know if those are meant for this and also dont know what impact this has on the Gameperformance.
I hope you get what i try to achieve. And sorry if my English isnt perfect, its not my native Language.
Please give me some hints, links or tutorials if you know some. Most Tutorials i have found only show the basic Save and Load System for base Types like int, float etc. and only for one Character. without Armor, weapons, entchantments and so on.
Thank you very much.