Vivek Deshpande suggested an idea · Oct 12, 2017 at 10:40 AM · CloudScriptLeaderboards and Statistics
I'm trying to create a delayed rewards window that shows up when a leaderboard finishes and the user has placed inside one of the specific reward tiers. To achieve this, I'm triggering a cloudscript function as part of the prize table which stores the reward tier. I'd also like to store his final leaderboard score and the leaderboard version. Looking at the raw event data, I see that a JSON container already exists which has this information embedded (named "TriggeringEventData").
I'd like to request having a boolean that , when checked, passes this data from a prize table to a cloudscript function as a parameter.
Brendan commented · Oct 12, 2017 at 07:35 PM
That information is already sent to the Cloud Script you're triggering in the Prize Table. All PlayStream Action-triggered Cloud Scripts are sent the player profile info and the event details in the context. In the case of a Prize Table Action, the event is player_ranked_on_leaderboard_version.
Have a look at this guide for more details on how to use the context in Cloud Script: https://api.playfab.com/docs/tutorials/landing-automation/using-cloud-script-actions-with-playstream
Oh, I completely forgot about the context param. Thanks!
We would love to know what you need. Submit your ideas and upvote others to help us prioritize.
No one has followed this yet.
Get whole http.result object through Cloud Script server API using http.request
Modifying contact email with cloudscript
Set Title News from CloudScript
GetLeaderboardAroundSharedGroup or GetLeaderboardAroundGroup
Include logs when CloudScriptExecutionTimeLimitExceeded error occurs
Simplified batched purchases or purchase API for CloudScript
Add "Avg" as a leaderboard aggregation method and use existing leaderboard vals