Motifs in the James Bond film series the degree to which Bond girls are pivotal to propelling the plot forward varies from one film to the next. Five of the Bond girls are "bad" girls (or at least working for the villain) who turn "good" (or switch sides) usually due to Bond's influence. Bond has fallen in love with only Tracy di Vicenzo in "On Her Majesty's Secret Service" and Vesper Lynd in "Casino Royale", but both of them die at or near the end of the respective films. Roald Dahl, a screenwriter of "You Only Live Twice", said he was given a formula to work to
Vesper Lynd on an early hand. Shortly afterwards, she saves Bond's life. Poisoned by Le Chiffre's girlfriend, Valenka, Bond struggles unsuccessfully to connect a key wire to his automatic external defibrillator, but Vesper arrives and makes the proper connection, allowing the machine to revive him. After Bond wins the tournament, Le Chiffre kidnaps Vesper, and Bond gives chase. They fall into Le Chiffre's trap, but both are saved by Quantum henchman Mr. White, who shoots and kills Le Chiffre for misappropriating the organisation's funds. While both are in a hospital to recover from torture, Bond and Vesper fall deeply in love, and