Hello!
I would like to implement a server side Energy/Stamina system for my game.
I guess it’s should be in the Economy - Currency tab, since the “tokens / points” doesn’t have any uniqueness from one another.
Starts with amount of X max cap is W - this part is okay,
then there should be a refill rate? Or similar to that…
How do you implement energy systems in your games? Server side of course.
I’m reading the docs and the sample projects and I couldn’t find a single entry about how to implement a server authoritative energy/stamina regen system.
I have done this before using Playfab. It was quite easy there…
1 Like
Hi @BalazsJozsef ,
I suggest to have a look at our inventory management system:
https://docs.unity.com/economy/en/manual/item-types#Inventory_item
Let me know if you have further questions. Hope it helps!
@Arnaud_Gorain
I did have read the docs, and make my question even simpler:
How to regenerate currencies automatically?
This is from Playfab. They allow the users to make a currency, initial and max deposit.
And there is a rechage rate per 24h field. <=== I’m asking about this, just to be clear.
1 Like
Hi @BalazsJozsef ,
We do not have a direct field for recharge rates as you are pointing out. But, you can add custom data, which can handle this use case and any specific needs your game might require:
Hello @Arnaud_Gorain
How is a custom data going to help me to implement this on the server side (as the question in the original post I have asked)?
How am I suppose to use this in an actual code ON the server?
1 Like