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 /
  • API and SDK Questions /
avatar image
Question by Siddharth · Jun 21, 2018 at 02:47 AM · CloudScriptPlayer Datascheduled tasks

How to Subtract certain amount of virtual currency from all the players by using segment and automation of schedule task,How to Subtract certain amount of virtual currency from all the players ?

How to Subtract certain amount of virtual currency from all the players by using segment and automation of schedule task. it is allowed only grant the virtual currency to all the players, How do i subtract certain amount of virtual currency from all the players. please help me to resolve this problem.

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 · Jun 21, 2018 at 06:47 AM

What is the feature you're trying to implement, exactly? If this is something you want to occur on a regular basis, we should discuss the details so that we can work out the best approach. If you want to do a blanket, one-time reduction in VC from all players, you could potentially use a Cloud Script, but there are likely better approaches. The more details we have about the design-level vision of what you're going for, the better we can advise you on this.

Comment

People who like this

0 Show 4 · 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 Siddharth · Jun 21, 2018 at 06:03 PM 0
Share

yes, i want to subtract 50 virtual currency from all the users for one time only.

avatar image Brendan ♦♦ Siddharth · Jun 22, 2018 at 08:47 AM 0
Share

Then I would recommend using a Cloud Script call as the action, and in that call, use SubtractUserVirtualCurrency.

avatar image Siddharth · Jun 23, 2018 at 09:07 PM 0
Share

I never used any cloud script before.

avatar image Brendan ♦♦ Siddharth · Jun 23, 2018 at 10:13 PM 0
Share

There's an example Cloud Script in all newly created titles, as revision 1 in Automation->Cloud Script. It shows how to perform a range of tasks, including calling Server API methods.

There are also tutorials on using Cloud Scirpt here: https://api.playfab.com/docs/tutorials#landing-automation

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

    Leaderboard related Questions 1 Answer

    Custom data fields and tables 1 Answer

    Scheduled task to update Store 1 Answer

    Scheduled Task args through cloudscript Azure function 1 Answer

    Email Templates variables 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