A novelist and television scriptwriter whose 200-plus screen credits included several episodes of Doctor Who and The Professionals.