question

elephrates avatar image
elephrates asked

Check players first use

I want to set profile data and check this data on first account created/first player use. Set profile data to Tutorial, Yes for instance

Then later check that variable from the profile data and decide wether to run tutoiral or not

I read the other threads on this and they say the best way is to use a function from cloud script to add the profile data from the event: https://learn.microsoft.com/en-us/gaming/playfab/api-references/events/player-added-title

But how do I run some code based on that event and add it to my cloudscript?

CloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

You can create a rule which is triggered by the event "player_added_title" and set rule’s Action Type to "Execute CloudScript" so that you can run your cloud script based on this event. For more information, you can refer to https://learn.microsoft.com/en-us/gaming/playfab/data-analytics/acting-data/action-rules-quickstart .

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.