Mirage Forest | Narrative Systems
- Hayashi Tensai
- Aug 2, 2018
- 1 min read
Updated: Jun 10, 2020
Full script can be viewed at:
This system composed of two scripts the Narrative Database Script and the Narrative Control Script.
Narrative Database Script:
Overview of the script

This script stores all the data required for the Narrative. First, there is a <Dialogue> class that stores the required data for each dialogue.

It stores the name of the character that is speaking, ID that identifies that character, the content of the speech, duration on how long the dialogue should be, the angle of the camera and as well the animation played.
Next, there is a <NarrativeDatabase> class that stores the data required for each conversation.

It includes the name of the conversation, the ID number of the conversation, the description of the conversation for internal uses and as well a list of <Dialougue> that forms the whole conversation.
Last but not least, there is a list of <NarrativeDatabase> to store multiple conversations

Narrative Control Script:
Overview of the script

Firstly, let’s look into function called Load Conversation( ), this function handles the extraction of data from Narrative Database Script to a temporary list to handle the current conversation.

On Update, the next dialogue can be triggered by click, or when the duration for that dialogue is up.

Comments