How to choose the conversation and start the game?
Posted: Tue Dec 27, 2022 10:50 am
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!