Codified Finite State Machine Use code to model your character's state transition - Let there be fantasy