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 assolutoracingofficial · Nov 07, 2017 at 12:32 AM · CloudScriptPlayer DataPlayer InventoryPlayStream

How to revoke player inventory item from the console and automatically update the player data

We are using playstream and cloudscript when we grant an item to a player from the console using player_inventory_item_added and a custom cloudscript. This let's us grant a player an item from the console and automatically updates that player's data to reflect the change.

Looking through the default options for playstream events we didn't see any option for revoking (ie player_inventory_item_removed) similar to granting an item. We would like to revoke the item in the console and set up a playstream event and cloudscript that automatically updates the player data.

We found player_item_consumed but this wasn't triggerable when we revoke an item in the console and doesn't reflect the use case for a durable item.

What is the best way to achieve this?

Comment

People who like this

0 Show 0
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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Nov 07, 2017 at 12:34 AM

Correct, as we mentioned in this thread (https://community.playfab.com/questions/7391/revoke-item-event.html), we have a backlog item for an "item revoked" event, but there isn't one in the service currently. Since item revocation can only be done via a targeted API call or through the Game Manager though, right now you could simply have the process be to do both steps - revoke the item, then update the data. The simplest would be to do this via a script that does both API calls for you, using the Server API.

Comment

People who like this

0 Show 0 · 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

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

    1 Person is following this question.

    avatar image

    Related Questions

    Are event triggered calls to cloud script functions processed sequentially? 1 Answer

    Passing custom data in player_inventory_item_added event 1 Answer

    PlayStream and updating internal user data 1 Answer

    Item expiration and events 1 Answer

    Sending analytics events to Gcloud bucket 2 Answers

    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