Hi,
Thanks for using the Dialogue System! The free visual novel framework on the
Dialogue System Extras page uses one conversation. You can link to other conversations from this one conversation, though.
If you want to start different conversations from a map, here's a suggestion:
1. Write your conversations and make a note of each conversation's Title (e.g., "France").
2. Make each location a Unity UI button.
3. In the button's OnClick event, add an entry and point it to the Dialogue Manager.
4. In the entry, select DialogueSystemController.StartConversation.
5. In the text field, enter the conversation's Title (e.g., "France").
Once you get this working, you may want to lock off locations until the player has unlocked them. If you want to do this, define variables in the Variables section of the Dialogue Editor. Let's say the player can't click on the France location until they've visited Spain.
1. Create a variable named something like "FranceUnlocked". Set its Type to Boolean. Its default value is False.
2. In the Spain conversation, use the Lua wizard to set FranceUnlocked to True. This means some dialogue entry node in the Spain conversation will have a Script field with this:
3. On the France button, add a Conversation Trigger and an Alert Trigger.
4. Set up the Alert Trigger like this:
- Message: "This location is locked."
- Condition > Lua Condition: Variable["FranceUnlocked"] == false
5. Set up the Conversation Trigger like this:
- Trigger: OnUse
- Conversation: France
- Condition > Lua Condition: Variable["FranceUnlocked"] == true
6. On the France button, change the OnClick event. Point it to the France button itself, instead of the Dialogue Manager. Select AlertTrigger.OnUse. Then add another entry to the OnClick event, assign the France button, and select ConversationTrigger.OnUse.
I realize this is quite a lot of information. If you have any questions, please let me know how I can help. If you get stuck, feel free to send me an example project and let me know what version of Unity to use. I'll be happy to take a look.