Note: This PRState documentation is out-dated and is for an older (pre-GMS v2.3) version of PRState. For the most up-to-date docs on the latest version of PRState, please refer to this page as well as the documentation included in the PRState package.
Once you have an object that conforms to PRState, you can begin to add states to that object. For example, in the Create event, after PRStateInit();, you may want to add the following states:
PRStateAdd(self, “Idle”, characterIdleState); PRStateAdd(self, “Run”, characterRunState); PRStateAdd(self, “Jump”, characterJumpState); 
The above code adds 3 states to the current object with the names “Idle”, “Run” and “Jump” and assigns the given script names to those states. Then for each state you’ve added, you must create those script objects in your project with the same names. In the above example, the script named characterIdleState will be responsible for handling the object’s Idle state, and the script named characterRunState will handle the object’s Run state and finally the script named characterJumpState will handle the object’s Jump action.