A pretty popular narrative-scripting “engine” for all kinds of dialogue branching. https://www.inklestudios.com/ink/
I have searched this forum for a bit, but couldn’t find anyone mentioning it. But usually some guy pops up in the comments with the solution.
So the question - is there a Defold / Lua runtime for this already?
Interesting. I played around a bit with Twine (another IF format) a while back. I haven’t heard of Ink before though. There’s a Lua parser for a subset of the features: https://github.com/premek/pink