gungnirind In GDScript, a script file is a class; you could make, say, [tt]fsm.gd[/tt] with the variables and functions you need, then load and instantiate it from other scripts. You can also make subclasses with the [tt]class[/tt] keyword. [url=http://docs.godotengine.org/en/latest/reference/gdscript.html#classes]The docs[/url] have more info.
Haplotyper There have been at least two FSM modules(Wildregar and MrGreenTea were authors) implemented for Godot. They are on the old forums. Have you seen those?
Haplotyper [url=https://github.com/MrGreenTea/statemachine]https://github.com/MrGreenTea/statemachine[/url]Here is his original post on it:http://godotdevelopers.org/index.php?topic=12991.0