State Model

by Stephen001
A library for creating finite state machines. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Stephen001.StateModel##version=1

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Stephen001.StateModel##version=1

210 downloads
Version 1.0.0
Date added: Jun 28 2011
Last updated: Jun 30 2011
7 fans
A finite state machine is a graph-like model of some interaction or behaviour, with "states" being nodes on a graph, and "transitions" being edges between nodes.

By constructing a finite state machine of allowed interactions or behaviour, you can apply all kinds of data input to the model, and states change only when their respective criteria is met.

Provided the model is correct, it is then impossible to end up in a programmatically wrong state, that could cause runtime errors.

Comments

Yusuke13: (Jul 16 2011, 1:55 pm)
Take all of your libs and turn them into the most awesomest game on BYOND. k?k
Stephen001: (Jul 15 2011, 2:37 am)
This would be good for all sorts. AI, conversation routines for Mass Affect etc. style dialogue and so on.

I'm personally incorporating it into a parsing engine.
OrangeWeapons: (Jul 11 2011, 8:15 am)
So, this would be good for people who want to create their own "things" during runtime?