Number of scenarios

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Intervention
Posts: 5
Joined: Fri Mar 09, 2018 3:38 pm

Number of scenarios

Post by Intervention »

Hi, I would like to ask how I am able to know the number of scenarios my database has via code?
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Number of scenarios

Post 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;
Intervention
Posts: 5
Joined: Fri Mar 09, 2018 3:38 pm

Re: Number of scenarios

Post by Intervention »

Hi, it is the number of conversations, thank you so much!
Post Reply