Ready an Action
You can prepare to take an action when a certain trigger occurs by using a standard action. Decide on a standard, move, or swift action and a trigger. You can take the action you chose when the trigger happens. This changes your initiative count to the current initiative count for the remainder of the combat. If you used a reaction on your previous turn and then chose to ready an action, you still regain your reaction at the beginning of your original turn, not when you take your readied action.
If your readied action is purely defensive, such as choosing the total defense action if a foe you are facing shoots at you, it occurs just before the event that triggered it. If the readied action is not a purely defensive action, such as shooting a foe if he shoots at you, it takes place immediately after the triggering event. If you come to your next turn and have not yet performed your readied action, you don’t get to take the readied action (though you can ready the same action again).
Source
Core Rulebook pg. 249