MODULE: Finite State Machines v1.0

Started by HeirOfNorton, Sat 11/06/2005 23:00:13

Previous topic - Next topic

HeirOfNorton

After seeing strazer's success at converting plugins to script modules, I decided to try my hand at it as well, so here's my version of a Finite State Machine for AGS v2.7, inspired by the FSM plugin by Frederico Jeronimo.

This module allows you to create Finite State Machines, useful for keeping track of complex game states and for simulating character AI.

Features:
* Create more complex AI separated from implementation
* Unlimited number of FSMs or States
* Save FSM maps in external files, making them easier to change
* cross-platform compatibility
* extensible and customizable

Note that this is not a direct 1-to-1 conversion like strazer's, but a slightly different take on the same idea. If anyone would be interested in a full-blown replacement for the plugin (one that would allow you to remove the plugin and insert the script module without changing your existing code) please reply to this thread and I'll write it as an add-on.

Download here

The zip file includes the script module, documentation, an executable compiler (for those external files I mentioned), and c++ source for same.

There you go, hope you can use it,

HoN

Pumaman


edmundito

Great, man! I think I'm going to sit down and write down a little open-source module myself to share with you all, too!

Btw, shouldn't we put these modules on the script archive? :)
The Tween Module now supports AGS 3.6.0!

SMF spam blocked by CleanTalk