question

Game Developer avatar image
Game Developer asked

add a certain value to a player statistics in cloud script every time i call a cloudscript

i really need this for a highscore, so everytime a player gets a correct point they earn a score so ill add that score to highscore in cloudscript example is like "highscore += 2" the idea is like that how could i do that in proper way, can you please provide me a working code because i cant really understand things in the documentation

10 |1200

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

1 Answer

·
Seth Du avatar image
Seth Du answered

You may implement a Rule at [Game Manager] -> [Automation] -> [Rules] to monitor “player_executed_cloudscript” event. In terms of adding certain value, you may write a cloud script function and select “Execute Cloud Script” as the action of this Rule.

10 |1200

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

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.