My name is Mitch. I'm the creator of NarrativeFlow.
Here, in this repo, you'll find the Interpreter Scripts for using your compiled NarrativeFlow project files with your game engine.
Don't know what NarrativeFlow is?
If you're a video game dev who needs stellar narrative for your game, NarrativeFlow gives you the freedom to visually design powerful narrative—fast.
Check out NarrativeFlow here: NarrativeFlow
If you're already familiar with NarrativeFlow, you're probably here to get the Interpreter Script for your game engine.
The NarrativeFlow Interpreter Script is already available in:
- C#
- C++
- Lua
- JavaScript (i.e. for Construct 3, Phaser, ImpactJS),
- Python (i.e. for Ren'py),
- GML (GameMaker Studio),
- GDScript (Godot Engine)
You can scroll up and download your version from the repository file tree.
Lua and C++ don't have native JSON parsing features, so for your convenience, I've already included relevant code within those Interpreter Script versions for using a common JSON parsing library: dkjson for Lua, and nlohmann/json for C++.
You'll need to download the relevant code library/script and include it in your code for the JSON parsing to work:
- dkjson (for the Lua version)
- nlohmann/json (for the C++ version)
If the respective JSON parsing library works for your needs, great! If not, then feel free to use whichever JSON parsing library you want, no hard feelings.
While I'm comfortable with all of the programming languages listed above, I'm certainly not a master of any of them.
So if there's an obvious optimization or better way of doing something, thank you for understanding, and feel free to suggest improvements.
To learn how to use the Interpreter Script in your game engine, be sure to read the NarrativeFlow docs page about it.
In an effort to protect my livelihood (thank you for supporting my family!), I use a slightly modified MIT license.
Don't worry, the only reason I'm using a custom license is to prevent the standalone selling of the Interpreter Script itself.
Other than that, I want you to use the Interpreter Script in your commercial products and modify it according to your needs, so have fun!
If you have any questions about the license or Interpreter Script, please reach out to me here.
NarrativeFlow Interpreter Script Code License – Modified MIT License
Copyright (c) 2025 NarrativeFlow LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, merge, publish, and distribute the Software, subject to the following conditions:
-
The Software may be used in personal and commercial projects, including but not limited to, games, applications, educational content, and interactive experiences.
-
The Software may be included in commercial products, provided that it is not the primary value of the product (e.g., inclusion in a game or educational course is allowed and encouraged, but selling the code itself as a standalone template or package is not).
-
You may not sell, sublicense, or redistribute the Software on its own, or as part of a product where the main offering is access to the source code or derivative works of the Software, whether free or paid.
-
This copyright notice and permission notice must be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
I'm so excited to see the incredible video game narratives that you've created with NarrativeFlow!
Thank you for your support and kindness,
— Mitch