Hello,
I'm using Unity to build a monster-taming game, similar to Pokémon or Temtem.
The difference is that the tamer (player) also have statistics (e.g. strength, vitality, ...) and a level system.
I'm a bit confused about how I should handle the data in PlayFab. The game is mainly single player but 1v1 battles will take places online.
1) Should the tamer attributes be written in Player => Statistics?
2) Should I use Player Data or Characters for the tamer's monsters team (which also have levels, health, spells, etc...)? Something else?
3) Where should I save the Vector3 position and the scene the player is in or such informations so that it is loaded upon logging in?
Thank you for your precious help!
Kind regards
Answer by SethDu · May 04, 2021 at 08:29 AM
Thank you for your answer!
I'm trying to understand how to implement server authority with CloudScript.
For example, I want to send an input that the player choose an attack, but on the server, I want to make sure it's the correct attack/damage etc...
For now, I have:
- an Attack class (which stores the data about an attack: damage, precision, element, etc)
- a Monster class (which contains the monster's stats used to calculate the damage).
I'm wondering for example where should I store the monster's attack, as they are items?
Thank you for your help!
May I ask does the game contain PVP contents? There are many solutions for server authority, but it depends on the design of your game. Here is an example from external community: networking - Should damage calculation in a competitive multiplayer game be done client-sided or server-sided? - Game Development Stack Exchange
>>I'm wondering for example where should I store the monster's attack, as they are items?
Please check the 2nd paragraph of my previous answer.
Thank you for your answer.
Indeed, it contains PVP. I will have a look at the link, thank you!
About my monster's attack, sorry I didn't mean the "attack" stat but instead I meant the "skills", "spells", etc... I should have been more precise, sorry!
Should this also be stored in Custom Data?
For now, I have a Monster class which has reference to a list of Spell (another class). I understand that I should use Playfab Items for my monster class, but I don't know where I should "store" my spells class.
Stay logged in when the scene changes 1 Answer
After trying to delete userdata (for testing) with DeleteAll() function, it doesnt work anymore? 1 Answer
What happens after I overstep the free limit of updates per user 1 Answer
Questions on storing a list of strings on PlayFab to be accessed by all users, or similar methods 2 Answers
Saving a custom character as a JSON 1 Answer