The captor judge should just be entitled to set a ransom price for all his captives (individually), and then the judges of the other realms would be given a link to "pay ransoms...", with the nobles of their realms listed, the number of days they have been there, and the price for the ransom. Probably simpler to code to a back and forth trade/negotiation mechanic.