Plugin : Round FSM
Author:Rex.Rainbow
- A finite state machine to descript a round
Download
Properties
Activated
- Enable if you wish this to begin at the start of the layout.
Actions
1. Request: "Idle"
Action:Start
- Start a round. It will push state from "Idle" to "GetSource"
2. Request: "GetSource"
Action:Get source
- Get source. It will push state from "GetSource" to "GetCommand"
- Source ( number or string ) : Source instance(s)
3. Request: "GetCommand"
Action:Get command
- Get executed command. It will push state from "GetCommand" to "GetTarget"
- Commands ( number or string ) : Executed command
4. Request: "GetTarget"
Action:Get target
- Get target. It will push state from "GetTarget" to "AcceptCommand"
- Target ( number or string ) : Target instance(s)
5. Request: "AcceptCommand"
Action:Accept command
- Accept command. It will push state from "AcceptCommand" to "RunCommand"
6. Request: "RunCommand"
Action:Finish
- Finish this round. It will push state from "RunCommand" to "Idle"
Activated
Action:Set activated
- Enable fsm transfer.
- Activated ( Combo ) : Enable fsm.
Request
Action:Turn off
- Turn off this fsm. It will push state to "Off" and set activated to "No"
Request: Cancel
Action:Cancel
Expressions
Command
Expression:Source
Expression:Command
Expression:Target
State
Expression:CurState
Expression:PreState
Conditions
1. "Idle" state
Condition:On enter "Idle"
- Trigger when state enter to "Idle".
Condition:On exit "Idle"
- Trigger when state exit from "Idle".
2. "GetSource" state
Condition:On enter "GetSource"
- Trigger when state enter to "GetSource".
Condition:On exit "GetSource"
- Trigger when state exit from "GetSource".
3. "GetCommand" state
Condition:On enter "GetCommand"
- Trigger when state enter to "GetCommand".
Condition:On exit "GetCommand"
- Trigger when state exit from "GetCommand".
4. "GetTarget" state
Condition:On enter "GetTarget"
- Trigger when state enter to "GetTarget".
Condition:On exit "GetTarget"
- Trigger when state exit from "GetTarget".
5. "AcceptCommand" state
Condition:On enter "AcceptCommand"
- Trigger when state enter to "AcceptCommand".
Condition:On exit "AcceptCommand"
- Trigger when state exit from "AcceptCommand".
6. "RunCommand" state
Condition:On enter "RunCommand"
- Trigger when state enter to "RunCommand".
Condition:On exit "RunCommand"
- Trigger when state exit from "RunCommand".
Debug
Condition:On state changed
- Trigger when state changed.
State
Condition:Current state
- Compare current state.
- State ( Combo ) : States in Round FSM
- Options : ["Idle","GetSource","GetCommand","GetTarget","AcceptCommand","RunCommand"]