How to choose the conversation and start the game?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
supermario
Posts: 1
Joined: Tue Dec 27, 2022 10:20 am

How to choose the conversation and start the game?

Post by supermario »

conversations.png
conversations.png (7.44 KiB) Viewed 105 times
Hi! How are you?

I am trying to make my first game. It has dfferent stages.
I'd like to get some datas from DatabaseManager script which controls whole game data.

My game has few stages and every stages have 24 levels. the last level is Boss battle.
So I'd like to activate Dialogue Scene(This scene will be used only for Dialogue) for following situacions

1.in the beginning of every stages (1)
2.before the boss battle (2)
3.after boss clear. (3)

(As you can see on the attached Image, the first stage is Mexico it has 3 conversations)

Before the dialogue scene begins, I want to get current stage variable data from DataBaseManager.
Then Apply it to the Dialogue manager.

=====================================================================
For example)
current stage = mexico
activate mexico 1 conversation.

===> when the player arrives the final level

current stage = mexico
activate mexico 2 conversation.
=======================================================================
But I don't know in which script or inspector I can control this.

- what script manages the scene? to set the correspond conversation.
- And how I can uses correspond conversation?

I'd be really appreciated if you could anwer.
Thank you!
User avatar
Tony Li
Posts: 22140
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to choose the conversation and start the game?

Post by Tony Li »

Hello,

Try this:
  • Add a Dialogue System Trigger to each scene (level).
  • Set its Trigger dropdown to OnSaveDataApplied. (This works like OnStart, but it's also compatible with the save system if you end up using it.)
  • Select Add Action > Start Conversation. Select your conversation.
Two tutorials may be helpful:
  • Quick Start: How to start conversations.
  • Interaction: See 07:00 of the video for an explanation of how to pause action during the conversation.
Post Reply