1 Day Quests System

How can I make it so every time you talk to a quest npc, you have to wait another day to talk to them again? (and not just 1 person because there’d be a bunch of npcs)

It’s not allowed to ask someone to make entire scripts for you. Have you tried looking on the developer wiki for a solution?

I’ve tried. I’m not asking for an entire script, I just want to know what I’d use.

Well, it’s a little hard to tell what you’re trying to do. I suggest following the suggested format:

  • What are you trying to achieve?

  • What is the issue?

  • What solutions have you tried so far?

???

I’m tryna make quest npcs that wait a whole day for your player (in their timezone) til you can talk to them again.

My problems are a little too over the top to explain in full detail. All you need to know is that I can’t seem to do this, and I’m relying on help.

I have not tried any solutitons, because I can’t figure out how implement this feature. That’s why I came here.

Make use of DataStores and os.time. If a user accepts a quest, save when they last got a quest with os.time. When they attempt to speak to the NPC again, check if 86400 seconds (one day in seconds) has passed since their last interaction. If so, repeat the process. If not, don’t grant a quest.

1 Like

Alright, I’ll give that a go thanks for the help.

I’m no way an expert at scripting, but I suggest using a wait() with whatever time you want the wait to be, and changing up the NPC’s dialogue with the wait.

That doesn’t sound like it would work, but thanks for your help.