Hey guys so i've been attempting to make a npc quest type script, but i've stumped into the issue that i can't work out a good, nice looking way to store the questing data.

Please if you can think of somthing share it :D

Below is my current ugly attempt:

local module = {
	
	["Garry"] = {
		["QuestTitle"] = "Welcome",
		["Dialog"] = {
			["Option1Text"] = "Hello you look like you're new here? Aha. I thought so! I can help you out and give you advice and some starting gear if you would do me a favor.",
			["Option1"] = "What favor?",
			["Options2"] = "No, i'm leaving",
			
			["Option11Text"] = "I gave Rydoth my old shield that was very important to me so he could put it on display inside of his premium store, but it has gone missing.",
			["Options11"] = "Okay?",
			["Options12"] = "Nevermind, I'm leaving",
			
			["Options111Text"] = " Will you go and find Rydoth's shield for me, I will reward you with gold if you do! It means a lot for me, can you please try?",
			["Options111"] = "Alright",
			["Options112"] = "No",
		},
	},
}

2 comments

0

i think u forgot to make the module return a value, try adding "return module" in the end

0

Thanks for the attempted help but the return is below the table, this was also not the question