Good day!
Our sales department would like to reach players by sending them an email with a discount code.
The thing is that they would like to introduce a delay of 45 minutes from the moment the player reaches the success screen until the mail is sent.
We are currently storing the time the player takes to finish the game in the field name "GameCompletionTime".
We have set the SMPT add-on, made an email template and created the correspondend scheduled task, but we are lost on what are we supposed to code in the JSON cloud script in order to achieve the expected result.
Could somebody who has done this before give us a hand?
Thanks in advance for your time and help,
Gerardo from SkyrocketYourTeam.com
To better understand your scenario, may I know more details about your current flow, like the configurations of the scheduled task, how "GameCompletionTime" is used, etc. ?
Thank you for your answer!
The configuration of the scheduled task is a question for us on its own.
We get some functions available (probably coming from the photon integration?) in the drop down menu but we are not very sure how to use them.
Gamecompletion time is curently storing the time (in seconds) that passes between a player starts playing until the escaperoom is completed, and it shows up in the success screen letting the player know how long it took for him/her to complete the room.
The question is how to extract that time to put it into the email, which on its own would need to be sent when this value is created. Or can it be done by using the function "completed level" so after the last level is completed, the email is sent?
In any case, we don't really know what to write in the JSON code to make it work.
Thank you very much in advance for your time and help!
First, those functions in the drop down menu are not supposed to be used in your case. And, is Gamecompletion stored in Player Data? In that case you can not extract it to put into the email because only the following data can be personalized:
Please check out the "What's this" section in the "New Email Template" page for more details:
Thank you ery much @Citrus Yan for your detailed answer. We will give it a go and see where do we get!
Regards from Estonia and have a lovely start to the week.