Hi CTG,
How goes it?
Maybe I could put Deus Ex Machina in different way. As if to say that the characters are given a quest, like cast the one ring in the fiery depths of Mount Doom. Readers know that and they ultimate want to see it happening, but they don't see the twist. Golum gets the ring and takes it with him to the end. In there both accounts has been fulfilled. One was known from the beginning and one couldn't be seen happening.
This isn't deus ex machina, though. The fact that the plot had been carefully set up and that no-one but a post modern numpty would seriously doubt for more than one second that the ring would be destroyed is not the same thing. Frodo and Sam stood or fell by their choices. At the crucial moment, Frodo had a wobbler and Gollum had to finish the job, but by that time Gollum was an intrinsic part of the plot
and the resolution - he hadn't just been wheeled on at that moment to interfere with, and direct, the all-important final resolution.
By way of contrast, the following outcomes
would have been deus ex machina:-
1. The LOTR Pedant Universal Whinge Resolution. As Frodo keels over on Mount Doom, Gwaihir the Windlord appears out of the mists, picks the ring up, drops it into the mountain and then goes home to eat some more rabbits.
2. The Older Forces are at Work Resolution. Right at the point that Frodo keels over, blue-hatted snake-oil vendor Tom Bombadil suddenly bounces up the mountain with a "hey derry whack fol diddle in the merry merry month of May, me hearties!" Confuscating the Nazgul with a series of tawdry card tricks and by magically producing toffees from behind his ear, Tom flicks the ring into the fire and then prances back down the slope like a superannuated fairy, no doubt twittering all the while about how "Goldberry is a-waiting."
3. The Hollywood Blockbuster Resolution. As Frodo keels over, a Great Hero with a Massive Gun (choose from an ageing actor in a vest, Will Smith with an enormous cigar or a detachment of US Marines) drops out of a Chinook, blasting the Nazgul with HE rounds and sassy one-liners. The Great Hero picks up the ring and, remembering some past agony (choose from the orcs killing his Dad, the Nazgul killing his son or Sauron furtling his goldfish), wipes away a tear and drop kicks the ring into the fire, whilst a hastily assembled cast of oppressed villagers whoop like a bunch of retarded baboons.
Regards,
Peter