How do you deal with a narcissist in court?

The involved party presents evidence to prove or refute the claim being made. Plaintiffs and defendants do not "deal" with each other, that is an issue for legal counsel and the judge. If the parties are representing themselves (Pro Se), they communicate with the judge not each other.