Page 1 of 1

Finite State Machines (FSM) in LUA

Posted: Fri Dec 06, 2019 2:33 pm
by SeaQueen
I've recently come up with a problem in LUA that would best be modeled as a FSM. Has anyone implemented one in LUA before? Could you point me to some good examples?

RE: Finite State Machines (FSM) in LUA

Posted: Tue Dec 10, 2019 11:13 pm
by angster
Try:
https://github.com/kyleconroy/lua-state-machine

Alternatively you can try a behavior tree which is a subset of FSM
https://gist.github.com/mrunderhill89/6 ... 7d382bdb00

Ares AI use an implementation of behavior tree:
https://www.matrixgames.com/forums/tm.asp?m=4382966


RE: Finite State Machines (FSM) in LUA

Posted: Fri Dec 13, 2019 5:54 pm
by SeaQueen
Thanks! Particularly on the guts of Ares. I wasn't expecting that. :-)