Obsidian for Interactive Fiction?

How feasible would Obsidian be for creating an interactive fiction story? Linking to other passages is already built into the DNA of Obsidian, so we are already halfway there.

The bread and butter of interactive fiction is conditional links. Depending on your stats, determining if you passed or failed a particular check. Based off my very limited experience with software development, I see two problems with implementing this in Obsidian:-

  1. No way to track those stats across the vault. (You need 5 points in strength for a task, how would you know if you have 5 strength unless you have a global variable tracking it?)
  2. No way to implement conditional links.

Interactive fiction stories are usually one static HTML file, and there are already many tools for converting your Obsidian vault into a website, so that is taken care of. I just want to know if it is possible to implement conditional links using a plugin, and if yes, how big of a task it’s going to be? I know more specialised applications for interactive fiction writing exist such as Twine and I use them on the regular. I use Obsidian for pretty much every other purpose including my worldbuilding and work related research. So if this is something that can be introduced to Obsidian relatively easily using a plugin, I think I would pay someone to develop a plugin and maintain it just for the convenience.

1 Like

You can do conditional links with the help of Dataview plugin, but it would require some coding.