Dialogue and quest system

Hello, i want to make a system where you can chat with an NPC and they give you a quest, tho i also want to add that when you complete the quest and talk to the NPC again, he gives you another quest. I don’t know how i’d make this, if anyone knows a tutorial or has a solution please reply. Thanks!

Devforum doesn’t make scripts & systems for you. It supports you while scripting. I would look at a video about npcs. Another tip is to have a modulescript that holds all the requirements for that quests. Once the player completes the first one, change a stringvalue to the quests name. This makes it so when you enter the npc, it knows which quests you are on.

3 Likes

To start with, I would have a module containing all the quest data (requirements, rewards, how many times can you do the quest, etc).
Then you can handle interactions with NPCs and check if the NPC has already given the player a quest and, if not, check if the player meets the requirements using your quest data module in order to dub the quest “completed”.

You could do a quick Youtube search for some examples if you’re still unsure on where to start.

1 Like

https://developer.roblox.com/en-us/api-reference/class/Dialog