Branching Dialog System for GameMaker Studio 2

I found an old project I created in late 2015 to test GameMaker Studio 2 in the still early days of development. The project casually grew in complexity as I used it to test an expanding set of functionality, like tile sets and the Drag and Drop visual scripting. It has a lot of good and popular gameplay systems that were allowed to slowly mature over time so I checked if I could dissect a few, and the first of these gameplay systems is a very easy-to-use branching dialog system.

This is not a difficult system to write by any means and a lot of them - good, free ones - already exist for GameMaker Studio 2, but I figured that since I had it lying around I may as well clean it up and release it to the world - totally free and under the MIT License as usual.

The best thing about this system is just how easy it is to use and set up complex branching dialogs with, and that it focuses purely on making branching dialogs easy to implement rather than dictate how to display them in your game. The image below shows all the code you need to integrate the dialog system into your code - and half of the code in this image is only for the demo.

Dialog System

It has support for things like inserting string arguments from variables, and even inserting variables directly via string expansion. This allows you to write a dialog string like "no one has as many friends as the man with many ${item_name}!" and the "${item_name}" part will automatically be expanded to the value of the "item_name" variable on the calling object. It comes with a demo that shows how to use it to create dialogs (see image below), and everything works out of the box with no setup required.

Pull Requests & License

You're free to fork this project and to submit pull requests to the main repository. It's released under the MIT license. If you make good changes on a fork or personal project, everyone would benefit if you submit a pull request to bring those changes into the main repository as well.


The repository is hosted on GitHub and is available here:
It is also available on the Marketplace: