You can fill an event leaderboard with dummy users and assign random scores to them for testing purposes.
This is intended for debugging use only.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
varfill_request=Hiro.EventLeaderboardDebugFillRequest.new()fill_request.id="leaderboard_1"fill_request.target_count=50# Optional target cohort size to fill to, otherwise fill to the max cohort size.varscores_request=Hiro.EventLeaderboardDebugRandomScoresRequest.new()scores_request.id="leaderboard_1"scores_request.min="1"scores_request.max="100"scores_request.subscore_min="1"scores_request.subscore_max="100"# Fills cohort with debug playersvarfill_leaderboard=awaithiro.eventLeaderboardDebugFill(session,fill_request)print(fill_leaderboard)# Sets randomly generated scores between a range for other players (does not change the user's score)varscores_leaderboard=awaithiro.eventLeaderboardDebugRandomScores(session,scores_request)print(scores_leaderboard)