Many plea negotiations take place before or between court dates. If you have an attorney he or she could negotiate with the prosecutor before you go to court. If you don't have an attorney, the prosecutor most likely will not deal with you until after you have acknowledged your right to be represented by an attorney and you waive that right in writing.