Hi, I have question for automatic action in PlayStream.
What I want to do is I want to give user default character when they login first time. so I tried used Rules to grant item and character but It seems after finished login, granted item and character were not included on login response. so It means I should call API to get inventory item or make code on server side as custom cloud api and make it together in same API. But I was wondering.
Brian Choi
>> so It means I should call API to get inventory item or make code on server side as custom cloud api and make it together in same API. But I was wondering.
Could you please tell us what’s your detailed demand? You have granted the items and characters to the players successfully via Rules and CloudScript, is it right? Do you mean you want to write a CloudScript function that can return the Player’s inventory and characters?
Yeah, It does. but what I thought is I set 'Rules' as 'com.playfab.player_added_title' with grantItem and logged and created account. so when I get data from the server by login response. is item should be on my inventory?
I though, created Item will be in login response or there is option to get item that created by rules 'com.playfab.player_added_title' because we don't want to do ping-pong many times.
Answer by Brendan · Feb 07, 2020 at 02:39 AM
No, the login event only contains information about the login. In fact, it is generated at the same time as the player_added_title event, which means the Rule to add the item/character to the player will not actually run until the login response has already been sent.
PlayStream Event API call limits 1 Answer
Event properties in PlayStream actions 1 Answer
Is it possible to have PlayStream event when an inventory item expires? 1 Answer
PlayStream Events to Custom Game server 1 Answer
How to revoke player inventory item from the console and automatically update the player data 1 Answer