I found a github repo that converts choicescript to a graphviz .dot file. Here’s my fork of it: GitHub - Flurrywinde/choicescript-graphviz: visualize ChoiceScript files as graphs using graphviz/dot
If you can get it working, it can produce output like:
Zoomed in on just part of it:
Sadly, it’s incomplete, and I had to jerry-rig it to not error out on things like *gosub, *return, *else, etc.
It’s in java, so you have to compile it. Then you need a graphviz viewer like
I’m wondering if this could be put on the web somewhere, so people could upload or paste in their choicescript, hit a button, and get the resultant flowchart. Anyone know how to do that?