@dasch: Sounds like it could be Baldur's Gate: Shadows of Amn, a sequel to the original Baldur's Gate.
In it you start out imprisoned by the magical equivalent of a mad scientist. Imoen frees you and you must make your way out of the lab. You free a few of your old companions from the original Baldur's Gate along the way.
Log in to comment