Test to determine nature of action

What determines whether an action is real or personal? The nature of the action is determined from the allegations of  the complaint, the character of the relief, its purpose and prime objective. When the prime objective is to recover real property, it is a real action.