Bad idea for the most part, people would abuse this way to much if the computer treated this in a realistic way.
But I do like the idea of heirs and so forth being ransomable for other things then cash, maybe ransom the king for a peace treaty or even vassal ship.
It's even kind of realistic, convincing other kings to sign treaty's at sword point in exchange for there life.