Hello. I have a question about friends. Is there a way to give virtual currency (stamina, points, etc.) to a player when they press a button in the friends feature?
Hello. I have a question about friends. Is there a way to give virtual currency (stamina, points, etc.) to a player when they press a button in the friends feature?
In what format are your stamina and points generated?
If it is an item, you can use Grant Items To User.
If it is virtual currency, you can use Add User Virtual Currency.
If it is statistics, you can use Get Player Statistics to get it, and then use Update Player Statistics to update it after modification.
The APIs I mentioned above are all server-side, you can use them in AzureFunction. Then call ExecuteFunction on the client and pass in PlayFabId as a parameter.
2 People are following this question.