question

Robert Balassan avatar image
Robert Balassan asked

Cloudscript update player data only for not existing keys

Hello,

When I create an account for my game I instantiate some player data for upgrades for example for each upgrade you have 10 levels.

Later, I want to update the application and also create the new values for upgrades in the player data, but just once during the next login prior to the update.

What is the best approach to do this? Please help me, cloudscript is driving me crazy...

CloudScriptPlayer DatadataTitle DataCharacter Data
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Seth Du avatar image Seth Du ♦ commented ·

Can you post related codes(make sure that you hide sensitive information)?

What API are you using?

In addition, set “GeneratePlayStreamEvent” as true in the request when you are calling API like ExecuteCloudScript so that you can check execution result in the PlayStream Monitor. Try to print some logs for corresponding result and we can look into it.

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.