Playmaker Forum

PlayMaker Feedback => Feature Requests => Topic started by: jeanfabre on June 28, 2011, 08:00:16 AM

Title: how to enumerate and state queries
Post by: jeanfabre on June 28, 2011, 08:00:16 AM
Hi,

 I just recently found a really nice way to counter the fact that enumaration is not really available in playmaker. I create a dedicated fsm with each state representing the enumaration list. Each state  has its own global event to trigger. Each state really does nothing ( but could, and that is great too). I simply use the FsmStateTest action (https://hutonggames.fogbugz.com/default.asp?W106 (https://hutonggames.fogbugz.com/default.asp?W106)) and that works very well.

 now, the only downside to this is that the State name variable interface doesn't show the list of available stat on that fsm.

 Is it possible to achieve something like that? just like variables can be listed for a given fsm. That would really enhance the action easyness and avoid having to look up the fsm to know what state is in. I know this is anyway only one side of the problem, because refactoring would break references. But that would be a start.

 Bye,

 Jean