rFSM
rFSM copied to clipboard
Using an auxiliary state machine twice in another state machine, but load and run it once.
I am wondering if there is any modification that can be done, such that I can have two load statements in the same file but still have one instance. The design of the code is such that I need to have this same auxiliary state under two composite states.
I tried to make another implementation of rfsm.load which uses require, but it fails. I have made a post here that describes my problem. Any ideas and/or pointers?
https://stackoverflow.com/questions/72721508/avoid-loading-the-same-script-twice-with-rfsm-library-in-lua