Hi
What is the best way to save over 200 Variables (Skills; like Swordmanship, One Handed, Blocking, Blacksmith and more) for use in “MyCharacter” (also the PlayerCharacter = Player).
This is for Multiplayer and need to work as deticated Server!
All Informations (MyCharacter, Skills and more), need to be saved on the Server!
I am working on a Fantasy Online RPG (like a MMORPG) and now, i need to add multiple Skills to the Character and the world, to work with them.
Example:
If i add a variable “Swordmanship” (a skills to improve the damage with Swords, depend on how high the skill is), i need 1x Base Variable, 1x Max Variable and 1x Variable to increase the damage with Swords from my Swordmanship-Skill.
Its also need 3 variables (or more) to include only that one Skills, and i have very much of them!
… Macefight, Axefight, TwoHanded, OneHanded etc. …
How can i add this big ammount of Variables to MyCharacter to avoid to add them direct to MyCharacter?
If i add more Variables to MyCharacter, the compile time is going to explode (actually 6 seconds). I dont want to raise the time for that.
Is the best way to keep all Variables in a “DataBase” or a “Struct” or in my PlayerController?
Every Character (Player) can have different Skills (Variables).
Example:
A Fighter-Class Player can have Swordmanship (Max-Skill) on 50%.
A Warrior-Class, can have Swordmanship (Max 75%).
But this is not a game with fixed stats and classes, the classes are only a simple-focus on the way you are.
Hope you can understand what i am talking about and thanks for helps
PS: VERY IMPORTANT!!!
Every Variable (from Skill list) need to be modify in the running-game.
Also a Game Master can set direct in the game, the ammount of “SwordmanShip” at Player 1 from 1 to whatever.
At the same way the GM can set the Skills on Player 2 and 3 and all other players.
Also i need a easy function to read all Skills from the Player and modify it in the game.
AND, how do i save all this Infos to the Server AND the Server gives the Player the right Skills (Owning skills)?