Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • PlayStream /
avatar image
Question by Brian Choi · Feb 06, 2020 at 06:00 AM · game managerPlayStream

PlayStream action for login first time.

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

Comment

People who like this

0 Show 3
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sarah Zhang · Feb 06, 2020 at 08:35 AM 0
Share

>> 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?

avatar image Brian Choi · Feb 06, 2020 at 08:45 AM 0
Share

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?

avatar image Brian Choi · Feb 06, 2020 at 08:46 AM 0
Share

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.

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

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.

Comment
Brian Choi

People who like this

1 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Brian Choi · Feb 07, 2020 at 03:22 AM 0
Share

Thank you for clarify

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    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

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges