Adventure Game Studio

AGS Support => Modules, Plugins & Tools => Topic started by: HeirOfNorton on Sat 11/06/2005 23:00:13

Title: MODULE: Finite State Machines v1.0
Post by: HeirOfNorton on Sat 11/06/2005 23:00:13
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 (http://www.2dadventure.com/ags/StateMachine_100.zip)

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
Title: Re: HeirOfNorton's Finite State Machine script module
Post by: Pumaman on Sun 12/06/2005 15:09:14
Good work with the module :)
Title: Re: HeirOfNorton's Finite State Machine script module
Post by: edmundito on Mon 13/06/2005 03:53:34
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? :)