'Story-line' Module?

Working on an RPG that will feature a Storyline.
However, what is the best practice for progressing through the story & animating the Custscenes?

I’m looking at storing a Value within the Player that is saved, eg, “Season 1, Chapter 1, Part 1” that will take note of where the Player is in a certain event.

When it comes to calling these events, I plan on having a folder in Replicated Storage containing modules corresponding to the Players Value.
Eg.

Storyline

Season 1

Chapter 1

Part 1
Part 2
Part 3

Etc.
Opinions?

2 Likes

I’ve worked on this kind of thing before (Though unfinished) and utilized finite-state machines, a good Lua based example of this would be this implementation which is licensed under MIT, so you’d be free to use it.

I personally wouldn’t organize chapter by chapter but rather in a continuous line with interrupts for chapter achievements as well.

If you’d like further information on the subject, here’s a good paper.