Implementing daily quests

Hello everyone! I am fairly new here. Looking forward to making great apps using Corona SDK. 

I am thinking of making an app that includes a daily quest system, where the quests will be taken from a pre-set list, and they are reset at a certain time of day (e.g. every 12 AM). Is there any way to implement that in corona SDK, especially the daily reset aspect? As for the listeners of the quests themselves, for the first iteration of this app I only want the players to see the list and are able to press ‘complete’ right away (no verification from the game at all, so more in the line of daily to-do list), so I think it won’t be complicated as I am a beginner after all. Pardon me if this question has already been asked. I tried looking for it using the search term daily, quest, reset, but didn’t find anything.

Also, is there a tutorial on how to create an in-game tutorial (as in the introduction of the game itself when the player first opens the app, and will only appear once)? I don’t know if there’s a better way of doing it but what I gather is if the player has completed the tutorial, the app saves a file/marker and the next time they open the app, when the “play” button in the menu is pressed the composer checks for that saved marker, and if it exists, it will load the actual gameplay scene instead the tutorial scene. Would that be ideal? I tried looking for the guides but the search term ‘tutorial’ only yielded basic tutorial pages.

Thank you in advance!

To do your daily quest, save the date in a json file when the user open it and compare this save date to the actual date. If the difference is higher than 24h cancel the quest and propose a new one. And save the new date.

For tutorial I don’t know other way than have some if quite everywhere and save somewhere a value who told if it’s already done. There is probably way to rebuild code or use a special lua file with all tutorial (and a part of the game). Lua files a not heavy at all, it could be a good way to improve your app if some of “if tutorial” are call hundred/thousand times per sec

Tip: Ask one major question per post.  Otherwise you won’t get the kind of help you want.  It is too hard to answer 2+ unrelated questions in the same post.

To that end, I’m ignoring the tutorial question and addressing the daily quest system question since it was first.

Yes, you can easily make a quest system that has any kind of time/date dependency you want.

Things you’ll need to do:

Please note, this really isn’t a beginner level topic as there are a lot of moving parts on top of the assumption that you are already very competent with Corona, Lua, device debugging, publishing,etc.  This is actually more of an intermediate level topic.

That said, please keep striving and feel free to ask more questions here.

Welcome to the community.

Thank you so much for the replies! I’ll try to get into it the best I can :slight_smile:

Sorry for asking two questions in one topic btw. I appreciate the tip.

To do your daily quest, save the date in a json file when the user open it and compare this save date to the actual date. If the difference is higher than 24h cancel the quest and propose a new one. And save the new date.

For tutorial I don’t know other way than have some if quite everywhere and save somewhere a value who told if it’s already done. There is probably way to rebuild code or use a special lua file with all tutorial (and a part of the game). Lua files a not heavy at all, it could be a good way to improve your app if some of “if tutorial” are call hundred/thousand times per sec

Tip: Ask one major question per post.  Otherwise you won’t get the kind of help you want.  It is too hard to answer 2+ unrelated questions in the same post.

To that end, I’m ignoring the tutorial question and addressing the daily quest system question since it was first.

Yes, you can easily make a quest system that has any kind of time/date dependency you want.

Things you’ll need to do:

Please note, this really isn’t a beginner level topic as there are a lot of moving parts on top of the assumption that you are already very competent with Corona, Lua, device debugging, publishing,etc.  This is actually more of an intermediate level topic.

That said, please keep striving and feel free to ask more questions here.

Welcome to the community.

Thank you so much for the replies! I’ll try to get into it the best I can :slight_smile:

Sorry for asking two questions in one topic btw. I appreciate the tip.