Hello there, for the past few days I’ve been making a Quest System. However, I’ve stumbled across an issue that I have been trying to solve for a few hours.
Above is a picture of my issue. The QuestsCompleted folder has 2 quests that are completed. However, whenever I try to print it into the output, it only says that one quest is completed. This only occurs after I’ve successfully completed the first quest for some reason. If needed, I will add the entire Quest script as well.
Here is what my module script looks like:
local QuestLine1 = {
CharacterName = 'John';
Quests = {
[1] = {
Objective = "Find John's Shovel";
QuestNum = 'Quest1',
Requirements = {
Shovel = 1, -- Shovel is the name of the thing you need to collect; 1 is the value of it that you need to collect so in this case you need to colllect ONE shovel
-- Honey = 1000,
};
Description = {
'Hello, I need some help.',
"I can't seem to find my shovel.",
'Hello I am weird.',
'I am not feeling good.',
'Could you please find it for me?',
};
Completed = {
"Hey, you found it! Thanks for finding my cat. As a reward, I'll give you some COINS.",
};
InCompleted = {
'Please come back when you have found my shovel.',
};
};
[2] = {
Objective = 'Blah blah',
QuestNum = 'Quest2',
Requirements = {
-- Honey = 1000,
Food = 2,
IceCream = 5,
};
Description = {
'Hey there, Im John!',
'I need some help if you do not mind.',
'Could you please help me collect some food and icecream for the nearby vendors?',
'Thanks alot!'
};
Completed = {
"Hey thanks a lot!",
};
InCompleted = {
'Please come back when you have colleted all of the items!',
};
};
[3] = {
Objective = 'Boomer',
QuestNum = 'Quest3',
Requirements = {
-- Honey = 1000,
Food = 2,
IceCream = 5,
};
Description = {
'Hey there, Im noobie!',
'I need some help if you do not mind.',
'Could you please help me collect some food and icecream for the nearby vendors?',
'Thanks alot!'
};
Completed = {
"Hey thanks a lot!",
};
InCompleted = {
'Please come back when you have colleted all of the items!',
};
};
};
}
return QuestLine1
Thanks a lot in advance.
