As far as I know, Defold doesn’t have a built-in option for FSMs, and you would have to import a lua module like this one to get one working.
The problem is, I want to use some kind of manager object to manage game state for a turn based game, and allow other objects to get and set information on that object. My first thought was to use go.property() to set a property that held the state machine, but the modules I found create FSMs by returning a lua table, which cannot be passed into go.property().
Is there another way to do this? Or should I be using a different method for game state entirely?