So here’s a function that’s supposed to produce a quest ID. Currently I’m just adding a fixed name, indexed. (temporary) The real function is remmed. At the middle, there’s a list declaration, but I’d like to create a new list for each quest based on the incoming ID. Is this possible at all? The other question is: is this a good approach?
{
string questID = "QuestID_";
if (temporary == 1)
{
questID = questID+index.ToString();
}
else
{
//questID = AcquireInfoFromXML();
}
// Creating a list for a particular quest
**List<string> questID_Entries = new List<string>();**
for(int j = 0; j <= entry_Max; j++)
{
string entry = GetQuestEntries(j);
if (entry!="")
{
questID_Entries.Add(entry);
Debug.Log(questID+questID_Entries[j]);
}
}
///////////////////////////////////////////////////////////////
return questID;
}