I'm creating a cricket game where the users are given 11 players initially once they login for the first time. How do I do this? Can someone post the code.
I'm creating a cricket game where the users are given 11 players initially once they login for the first time. How do I do this? Can someone post the code.
You can define different durable items as different players.
So my remediation is defining 11 durable catalog items according to these 11 players and defining a bundle that contains these catalog items. When the player first logs in, grant the player the bundle. The bundle is preferably configured as consumed by time, the items in the bundle are automatically released into the player's inventory after a few seconds.
As for the timing of granting the player the bundle, you can define Rules to react to player_added_title event(This event is triggered when a player creates a new account for a title) in real time, and set the action to Execute Cloud Script to grant the player the bundle.
2 People are following this question.