I overstayed here in Taiwan because of an accident: my apartment was burned so the owner of the apartment filed a civil case for me. The court said I can't exit the country and I can't renew my visa because of that. If I am deported, will it be to my country or origin or would I be allowed to go another country?
To start by answering the question you asked, most countries that deport you will do it to a country of their choice. You may ask to be sent to somewhere specific, but they may or may not do that.
But to answer some questions you didn't ask, you should be actively engaging with immigration to sort this out. You should also get yourself a lawyer who can advise you. That may seem expensive but having a deportation on your record is going to seriously restrict your travel and employment in the future. You are going to need one to fight your civil case anyway. You really want to sort this out without being forced to leave, or having an overstay on your record.
Options you should be looking at include:
- getting your visa renewed while still in the country (even if that is not normally possible there may be exceptions)
- making a voluntary departure instead of being deported