If you can stomach archaic gameplay mechanics (lots of hidden content in game, locked content in NG+ and grindy gameplay loop) and an asshole protagonist then go for Rance [
1-7,
8 (or called Quest),
9 and lastly
You must be registered to see the links
(not translated due to how big the game is which a lot of people claims to have the longest script in all of gaming)] assuming you don't know that game at all since you did not mention it.
Most "well-written" games are often in the visual novel category so look at
You must be registered to see the links
if you want. I suggest looking at a lot of
You must be registered to see the links
games, they prioritize making games with mid to great gameplay and engaging story, characters and world (also banging soundtracks). I already mentioned it (Rance) but others such as
Dohna Dohna, Evenicle games (
1 and
2), Dai games (
Daibanchou,
You must be registered to see the links
[this one has MTL translation]) and the Beats series (
Haruka,
Escalayer) are great too.
You must be registered to see the links
is a contender too such as the Meister games (
Kamidori Alchemy, Amayui
Castle and
Labyrinth,
Himegari Dungeon) and Ikusa Megami series (
Zero and
Verita) also
Arterial of Origins.
Another is SofthouseChara with their Bunny Black series (
1,
2 and
You must be registered to see the links
[untranslated]) and
You must be registered to see the links
(borrowed from
You must be registered to see the links
[linked is not a remake though] which also falls in your criteria).
I can name a few more or describe the games in greater detail but I need to look deeper in my list, I do have some games that are one and done (not in a series, most likely a long game) if you want. What I named here are games which prioritizes story, characters, world and/or gameplay over h-scenes.