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.
By default, an object that you have just added one or more states to has no “current” state, and will thus not respond via your state scripts. Therefore, in your object’s Create event, you may want to set the object’s first state like so:
PRStateSet(self, “Idle”); 
The above code sets the current object’s current state to Idle. This means that the object’s state scripts will begin to execute at the appropriate times. You need not set the object’s initial state in its Create event, you can set it later on in your game if it makes more sense for that object.