How to choose the conversation and start the game?
-
- Posts: 1
- Joined: Tue Dec 27, 2022 10:20 am
How to choose the conversation and start the game?
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!
Re: How to choose the conversation and start the game?
Hello,
Try this:
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.
- Quick Start: How to start conversations.
- Interaction: See 07:00 of the video for an explanation of how to pause action during the conversation.