It Was a Dark and Stormy Night by Janet Ahlberg
A small boy who has been kidnapped by brigands, passes a dark and stormy night in their cave weaving for them incredible stories of their own exploits. Through the stories he solves his own problem and manages to escape.