Page 1 of 1

Number of scenarios

Posted: Fri Mar 09, 2018 3:45 pm
by Intervention
Hi, I would like to ask how I am able to know the number of scenarios my database has via code?

Re: Number of scenarios

Posted: Fri Mar 09, 2018 3:51 pm
by Tony Li
Hi,

Do you mean quests, conversations, or something else?

To check the number of quests:

Code: Select all

using PixelCrushers.DialogueSystem;
...
int numberOfQuests = DialogueManager.MasterDatabase.quests.Count;
To check the number of conversations:

Code: Select all

int numberOfConversations = DialogueManager.MasterDatabase.conversations.Count;

Re: Number of scenarios

Posted: Fri Mar 09, 2018 3:58 pm
by Intervention
Hi, it is the number of conversations, thank you so much!