question

Rizwan Babar avatar image
Rizwan Babar asked

Can we do action when Leaderboard is reset?

Is it possible to perform an action when leaderboard is reset? What I want to do is that, the leaderboard will reset daily and when it resets, it changes a value in title data of player with most value of certain stat in leaderboard which is reset.

Player Dataunity3dLeaderboards and StatisticsdataTitle Data
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

·
Rick Chen avatar image
Rick Chen answered

You can use the prize tables to do a set of actions on a group of players within a range of ranks when the leaderboard resets. Please note that there is a limit on the number of top-ranked participants from the leaderboard that fire rank events when the leaderboard version changes, and it is 1000 in default. You could check the limit on [Your Game Manager]->[Title Settings]->[Limits]. In your case where you want to change a value of Player Data for the player when the leaderboard resets, you could write a CloudScript to update the Player Data, then add an action to execute this CloudScript in the prize table.

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.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]