Tarantino will write the script and direct a film inspired by "the grand swashbuckling epics of stage and screen."