Finite State Machines (FSM) in LUA

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
User avatar
SeaQueen
Posts: 1338
Joined: Sat Apr 14, 2007 4:20 am
Location: Washington D.C.

Finite State Machines (FSM) in LUA

Post 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?
angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

RE: Finite State Machines (FSM) in LUA

Post 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

User avatar
SeaQueen
Posts: 1338
Joined: Sat Apr 14, 2007 4:20 am
Location: Washington D.C.

RE: Finite State Machines (FSM) in LUA

Post by SeaQueen »

Thanks! Particularly on the guts of Ares. I wasn't expecting that. :-)
Post Reply

Return to “Lua Legion”