Deus Ex Machina: Difference between revisions

no edit summary
m (update links)
No edit summary
 
(32 intermediate revisions by 13 users not shown)
Line 1:
{{trope}}{{Needs Disambiguation}}
[[File:godman_2061godman 2061.jpg|link=Tom the Dancing Bug|rightframe]]
 
{{quote|''"''That'' certainly is convenient."''|'''Tyrone''', ''[[The Backyardigans]]'', ([[Catch Phrase|frequently]])}}
|'''Tyrone'''|''[[The Backyardigans]]'', ([[Catch Phrase|frequently]])}}
 
A common form of [[Ass Pull]] or [[Writer Cop Out]], a [['''Deus Ex Machina]]''' is an outside force that solves a seemingly unsolvable problem in an extremely unlikely (and, usually, [[Anticlimax|anticlimactic]]) way. If the secret documents are in Russian, one of the spies suddenly reveals that [[Suddenly Always Knew That|they learned the language]]. If the writers have just lost funding, a millionaire suddenly arrives, announces an interest in their movie, and offers all the finances they need to make it. If [[The Hero]] is [[Literal Cliff Hanger|dangling at the edge of a cliff with a villain stepping on his fingers]], [[Giant Robot Hands Save Lives|a flying robot suddenly appears to save him]].
 
The term is Latin for ''god out of the machine'' ([[Latin Pronunciation Guide|pronunciation]]: '''Day-oos eks MAH-kee-nah''') and has its origins in [[Older Than Feudalism|ancient Greek theater]]. It refers to situations in which a crane (''machine'') was used to lower actors or statues playing a god or gods (''deus'') onto the stage to set things right, often near the end of the play. It has since come to be used as a general term for any event in which a seemingly fatal plot twist is resolved by an event never foreshadowed or set up.
 
There are four primary forms a [[Deus Ex Machina]] can take:
# [[Ass Pull|Total Deus Ex Machina]] -- A—A plot element that didn't previously exist and has no logical explanation behind it. Let's say the hero has been pummeled to an inch of his life and the villain has regained control of his gun. The hero then finds a magical remote control under a nearby couch that allows him to pause the scene, take the gun away, and shoot the villain.
# Illogical placement and timing Deus Ex Machina -- WhenMachina—When something is established and explained in the work, but its [[Contrived Coincidence|use in that situation]] is jarring and impossible to believe. Building from the example above, let's say that instead of a magical remote, the [[The Cavalry|local militia bursts in and shoots the villain]]. Maybe it was established earlier that the militia protects the countryside, but for them to somehow divinely know that there is a fight going on at this isolated farm and to burst in just in time to save the day is a [[Deus Ex Machina]].
# Cut and paste Deus Ex Machina -- WhenMachina—When [[Chekhov's Gun]] is quick-drawn, but it's done in a clumsy way that makes one realize that the author obviously just couldn't write them out of the situation with what they have, so they went back to some earlier point and put in one or two throwaway lines to set up a victory down the road. From the example above, perhaps the hero randomly decided to put a tiny pistol in one of his pockets and just happened to forget that he had it until now.
# [[Fridge Brilliance]] -- When—When something seems to be a [[Deus Ex Machina]], but really isn't. The writers were just a bit too clever for their own good. To build from the above, let's say that in some early scene the hero intentionally rigged his gun to blow up should it ever be fired and it both fits with his personality and seems like a logical thing he would do. It might seem like a cop-out at first, but one then remembers he's a [[Technical Pacifist]] who [[Doesn't Like Guns]] and never wants to fire one in his life in spite of his job. See also [[Chekhov's Gun]].
 
Note that the Romans and Greeks used type 1 and 2. This was mainly due to tradition; unlike today, audiences in ancient times were openly violently hostile to excessive innovation to the point that they would break out in riots if a writer tried to go too far. Some moderns assume, [[Values Dissonance|wrongly]], that true art sticks it to the man and always has, and crow that ancient writers were cowed by "royalty" not to be controversial. In reality theatric performances were staged by the aediles, minor elected officials who didn't have the authority to arrest anyone. The Emperors (when they did arise -- forarise—for most of this time period Rome was a ''republic'' and ''had no royalty'') treated theatre as if it were beneath their notice -- innotice—in fact, the only theatre person to get in serious trouble did so after cuckolding the Emperor (plus Nero, who thought he was a theater person and got in trouble for unrelated reasons).
 
The lines between [[Deus Ex Machina]] and other devices are thin and blurry. If the villain above suddenly falls a victim to an offscreen sniper's shot without any plot connections it would likely be type 2: [[Big Bad]] is likely to have foes, but here's a [[Contrived Coincidence]]. If this sniper turns out to be some long-forgotten Victim Of The Week or a relative, it's type 3. If one of hero's potential allies did [[Abandoned By the Cavalry|refuse to participate in the action]], but decided to act on his own and it's in character, it may be type 4. If the villain was earlier attacked by some enemies, lurked in his lair with tight security, but then went out of his way to punish the hero and made a good target of himself by posturing and gloating in the open, it's not even [[Chekhov's Gun]], just a [[The Coroner Doth Protest Too Much|death by carelessness]].
 
In the early years of the film industry, however, the concept came back into vogue due to the [[Hays Code]]. Villains, and anyone else who didn't toe the moral line, were absolutely not allowed to get away with their crimes, but as everyone knows, [[Do Not Do This Cool Thing|Evil is Cool]]. [[Getting Crap Past the Radar|The solution]] was to let them be awesome for the duration of the movie, then [[Dropped a Bridge on Him|drop a bridge on them]] in the last five minutes. It worked, of course.
 
In spite of the above, even the dreaded Deus Ex Machina - perhaps the most notorious of tropes among readers, beating out [[Mary Sue]] - [[Tropes Are Not Bad|can be pulled off]]. There are ways to have a Deus Ex Machina resolution and still come to a satisfying conclusion - see the entire "Rule Of X" series of tropes: [[Rule of Cool]], [[Rule of Cute]], [[Rule of Empathy]], [[Rule of Fun]], [[Rule of Funny]], [[Rule of Romantic]], [[Rule of Scary]], [[Rule of Sexy]] (for those ever-so-fun [[Deus Sex Machina|Deus Sex Machinas]]s), [[Rule of Symbolism]], and ''especially'' [[Rule of Drama]]. The key word, of course, is "satisfying." It's definitely more difficult to achieve with some Rules than with others but not impossible for any of them.
 
As noted below, this happens plenty in real life. Of course, [[Real Life]] is a much more complex system than most fictionalized versions of it, and so this ends up a legitimate plot twist. Fiction is also limited by the [[Law of Conservation of Detail]], while real life clearly is not.
 
The [[Reset Button]] often depends on [[Deus Ex Machina]]. A subtrope of [[Ass Pull]]; see also [[Diabolus Ex Machina]]. Particular types of deus ex machina include [[Coincidental Broadcast]], [[You Didn't Ask]], and often, [[Eureka Moment]]. Sometimes lead to a [[Gainax Ending]]. Also consider [[Suspiciously Specific Sermon]] for deus ex machinas that are actually religiously related.
 
The wordterm ''"Deus ex Machina''" is also taken literally as a term for [[A God Am I|making ourselves gods]] [[Transhumanism|through the application of technology]], e.g. [[The Singularity]]; this isn't what it means at all! (Not that it wasn't a clever attempt at wordplay in the titles of the cult PC video game classic ''[[Deus Ex]]'', [[Deus Ex: Invisible War|its]] [[Deus Ex: Human Revolution|sequels]], the unrelated manga ''[[Deus Ex Machina (manga)|Deus Ex Machina]]'', or the trope [[Deus Est Machina]]).
 
'''Warning: Ending SPOILERS below.'''
 
''Also'' also, '''please make sure you have read the above criteria BEFORE submitting an entry. This is a not a place to [[Complaining About Shows You Don't Like|Complain About Plot Twists You Don't Like]].'''
 
{{Unmarked Spoilers}}
 
{{endingtrope}}
{{examples}}
== [[Anime]] and [[Manga]] ==
 
== Anime and Manga ==
* ''[[Bleach]]'' has so many examples it's hard to list, for the sake of space, probably the worst/ most blatant instance:
** The much reviled and oft-mentioned moment of Ichigo being able to go [[Super-Powered Evil Side|full Hollow]] is often accused of being this, but it ultimately did make sense. [[Only the Author Can Save Them Now|It wasn't good writing]], but it was foreshadowed a number of times. {{spoiler|Aizen's final defeat}} is the true deus ex machina, because of [[New Powers as the Plot Demands]]. [[Only the Author Can Save Them Now|Having proven to be increasingly invincible against the strongest members of the cast]], Ichigo scores a new, never before mentioned power, and utterly destroys him.
* Played absolutely straight in ''[[Slayers]] NEXT''. Nearly the entire plot revolves around Lina's [[Holding Back the Phlebotinum|refusal to cast the Giga Slave]] after her discovery that miscasting it may end the world. Hellmaster Phibrizo eventually blackmails Lina into casting it and ensures that the casting fails, only for the power called upon by the spell, the supreme creator goddess of the Slayers universe, the Lord of Nightmares, to take Lina's body as an avatar instead and promptly annihilate the previously invincible (to the heroes) demon lord with a casual gesture. She also plays [[Reset Button]] by bringing everyone back to life that Phibrizzo had killed (Lina's breaking point about casting the spell was his threat to [[Deader Than Dead|obliterate their souls as well]]).
** Not only [[Justified]] and foreshadowed ''just'' enough to turn the event from a [[Ass Pull|cop-out]] to a [[Crowning Moment of Awesome]], but implications of [[The Reveal]] cast the whole series in a [[Mysterious Employer|very different light]].
* The final episode of the ''[[Angel Sanctuary]]'' OVA is about as literal an example of this trope as it gets.{{context}}
* ''[[Outlaw Star]]'' featured something known as the Galactic Leyline as the main driving point for the entire series. It turns out that the leyline is an almost literal translationinstance of a deus ex machina. It's aan extremely complex spaceship that collided with the center of creation creating a being that can manipulate time, reality, perception and essentially grant whoever approaches it anything they wish. It is literally a god created from a machine.
* ''[[Pokémon (anime)|Pokémon]]'' loves and thrives on this, and many seemingly unwinnable situations are weaseled their way out of by Arceus Ex Machina.
** The second involves a situation involving a showdown between Team Rocket and "the twerps" where either Team Rocket seems to have the upper hand or the two sides have been forced into a dangerous stalemate. Cue a single, recurring Pokémon, typically either Marker-Jigglypuff or Misty's Togepi. The former will sing their soothing music and cause everyone to fall asleep (thus enraging it and causing it to doodle vengefully on everyone), or the latter will start using the metronome attack, which causes a burst of random Deus Ex Machina energy to fill the room and set everything right.
Line 48 ⟶ 49:
*** It was explained (in the tag scene) as a function of the Sea Temple, but wasn't really adequately foreshadowed (to put it kindly).
** There was one episode where Team Rocket grabs Pikachu and flies off in their balloon. How does Ash get him back? He ''jumps five stories straight up'' into the balloon basket, with no assistance from any nearby plot devices. It looked exactly as ridiculous as it sounds.
** The ''[[Pokémon: The First Movie|Pokémon the First Movie]]'' features Ash running between a beam struggle between Mew and Mewtwo that [[Taken for Granite|turns him to stone]]. When a few shocks from Pikachu make it clear that [[The Hero Dies|Ash is, in fact, dead]], all of the Pokémon cry... and their tears swirl over to Ash's body and bring him back to life. Nowhere else in the entire series is the fact that Ash was literally brought back to life brought up.
*** This was actually foreshadowed earlier in the movie.
** In the ''[[Pokémon Special]]'' manga, Ruby can't penetrate through the lightning that a machine made to be able to defeat the [[Big Bad|Big Bads]]s. What does he do? The only logical thing, of course, call out {{spoiler|Celebi}} which, doesn't make sense because {{spoiler|Celebi}} isn't more resistant to electricity than Swampert, but that's not all. Then {{spoiler|Celebi}} proceeds to use its {{spoiler|time powers to revive Norman, Steven, and the Team Magma girl. And Celebi's not even caught in a GS Ball, which the Mask of Ice needed a full blown out plan to get!}}
** There's a subversion in the Ash vs. Paul full battle by Lake Acuity. Even though Ash's Chimchar evolves into Monferno after beating Paul's Ursaring, it's unable to beat his Electabuzz. Though even if it ''had'' been able to, Ash would've lost eventually because Paul still would have had three Pokémon left.
** What may be the most ridiculous was Ash's battle against Tate and Liza, where Ash's Pikachu and Swellow, the last of which was at a disadvantage against their Lunatone and Solrock, inexplicably pulled out the infamous golden "lightning armor" gambit and knocked their opponents out.
Line 57 ⟶ 58:
* Batou is saved from certain death in ''[[Ghost in the Shell: Stand Alone Complex]]'' by an extraordinary literal example.
* The heroes in ''[[Yu-Gi-Oh!]]'' seem to win solely on pulling the one card out of a forty card plus deck that can save them from doom. Many times, these cards are not alluded to prior to their save the world moment and turn the tide of the battle completely 180 degrees. After all, how many times have you heard the line "It all comes down to this one card" only to have them draw a complete waste of a card?
{{quote|'''[[Yu-Gi-Oh!: The Abridged Series|Yami Yugi]]''': I activate "Deus Ex Machina"!<br />
'''[[Yu-Gi-Oh!: The Abridged Series|Weevil]]''': ([[Beavis and ButtheadButt-Head|Beavis-esque voice]]) Hee hee! Hey! No fair! You can't use spell cards on my turn!<br />
'''[[Yu-Gi-Oh!: The Abridged Series|Yami Yugi]]''': Tell it to the writing staff!! }}
** In the manga version of the story, this is actually ''Yami Yugi's superpower''. Which of course says nothing about the fact that other characters pull the same stunt.
Line 67 ⟶ 68:
*** In Seasons 2 and 3, Marik's Millennium Rod likes showing Kaiba visions, since Kaiba owned the Rod in a past life. When Marik orders the Rod to show him those same visions, it doesn't obey him.
** Some episodes attempt to justify this by having characters note they need the right card to turn the duel around, but they don't get it for several turns and they have to stall. And there ''are'' only 40-45 cards in the decks, if you stall long enough you'll draw what you need sooner or later.
* Speaking of ''Yu-Gi-Oh'', the card "Miracle Tuner - Savior Dragon" ("Majestic Dragon" in the dub) from ''[[Yu-Gi-Oh! 5D's|5Ds]]'' has earned the nickname "Deus Ex Machina Dragon" within the fanbase, as it's a card that ''appears'' in a character's deck when the Crimson Dragon (our resident God for this series) wants it to. Not only that, but it allows whichever character that uses it to summon ''another'' monster that isn't actually in their Deck (well, Extra Deck technically, but still).
* ''[[Sonic X]]'' has one of these in the finale of its final season, where the stone Cosmo has been wearing since the beginning of the series is revealed to be a magical amulet that can automatically accelerate her growth so that she reaches the stage of becoming a tree (as is apparently the fate of all her species) early, attaches herself to the bad guy and weaken him so that the Good Guys can shoot and destroy. We had heard pretty much nothing about this earlier in the series.
** Said stone MAY only be magical by default, depending on whether you believe the dubbing. Previously ALL seedrians were seen to be wearing a similar stone, so it might just be a general species thing. Either way it was still kind of an Asspull.
Line 74 ⟶ 75:
** In an earlier series, this is what saved Star Saber from Deathsaurus in ''[[Transformers Victory]]''. Deathsaurus delivers a vicious, merciless beatdown, driving Star Saber to the point of deactivation. He's about to deliver the final blow when his living metal-destroying cannon...runs out of batteries.
** Another example comes from ''[[Transformers Zone]]'': Metrotitan is devastating Earth with a freeze gun, and Dai Atlas and Sonic Bomber are for some reason powerless to stop him. All of a sudden, Road Fire appear, with a heat ray that's just the thing to revert Metrotitan's effects, and then proceeds to single-handedly kick Metrotitan's retrocharger.
* ''[[Eureka Seven]]'' grants us the wonderful moment where the protagonist ''magically creates'' a [[New Powers as the Plot Demands|new, super-powerful unit]] out of thin air by the {{smallcapssmall-caps|[[Power of Love]]}}!
** Note: this is very likely true. Also note that it's not nearly as bad as it sounds because this series takes [[The Power of Love]] and runs with it.
** There is some [[Fridge Brilliance]] to be had here, too. Considering that the Scub Coral was in the process of awakening ([[The End of the World as We Know It|which would ultimately cause reality to unravel]]) and given the link between the coral and the giant mech itself, it is reasonable to think that some new powers would become available.
Line 91 ⟶ 92:
** Another one comes at the end of Part 5, when Giorno fights Diavolo. Giorno is {{spoiler|pierced by the Requiem Arrow}}, and his Stand Gold Experience gains the ability to {{spoiler|''negate any action taken by an opponent.''}} Stands had been shown to develop new abilities thanks to the arrow before, but that power is ridiculously broken.
* A borderline case appears in the second season of ''[[Mobile Suit Gundam 00]]'': with the forces of {{spoiler|Celestial Being}} about to be defeated, {{spoiler|Setsuna, who has been slowly undergoing Innovation (a cornerstone of the show's ongoing [[Gambit Roulette]]), finally achieves it. This, in turn, triggers a hidden system of his machine, the [[Trans Am]] Burst, which spread on a much larger scale the effects the machine was already known to have (healing, telepathy, etc). Given that [[The Chessmaster]] had already been established to have built-in hidden subroutine in his mobile suit to be triggered as his roulette demanded, and that it's shortly thereafter that a world-wide mind-meld was a key point of said roulette}}, fan opinion is divided as to how much of a Deus Ex this is, if at all, and if so, whether it qualifies as an old school Greco-Roman Deus Ex, or the [[Fridge Brilliance]] variety.
** ''Gundam 00'' practically spammed Deus Ex Machina from beginning to end. Almost every time Celestial Being came even ''remotely'' close to defeat, A.) one or more of the Gundam Meisters would reveal a weapon or a feature that was previously not shown nor hinted at before, such as the case of the Nadleeh and later its Trial System or B.) be saved by the intervention of an outside force like the Thrones or C.) one of [[The Chessmaster|old man Aeolia's]] little hidden features (i.e. Trans Am) would trigger, essentially a more grandiose version of A. This was especially insulting for their opposition, who would make painfully detailed strategies that exploited the Gundams' (known) weaknesses and would have otherwise been successful until Deus Ex Machina kicked in.
* In ''[[Asatte no Houkou]]'', Karada and Shokou are able to {{spoiler|switch back to their original ages}} when {{spoiler|Kotomi gives them a second wishing stone}}, which she had never previously mentioned or hinted at having. This, of course, didn't happen in the manga.
* ''[[Star Blazers]]'' (Comet Empire War); The near-Godlike Treleina of Telezart turns up at the very last moment to {{spoiler|obliterate Prince Zordar's warship and save Earth.}} Possibly partially subverted as Captain Wildstar had already begun the process of {{spoiler|sacrificing the Argo in a ramming attack}} to achieve the same end.
* A literal Deus Ex Machina is attributed to everyone's survival after the [[Final Battle]] of ''[[Rave Master]].'' This despite several characters using a [[Dangerous Forbidden Technique]] to win their battles. The characters theorize that since they saved the world, the world decided to save them back.
* ''[[Tengen Toppa Gurren Lagann|Gurren Lagann]]'' did this over and over... sort of. Essentially a "logical" Deus Ex Machina was set up for the shows entirety with Spiral Energy, literally giving characters the ability to do the impossible ({{spoiler|the chance of Kittan's giga-drill that freed the crew from the spiral-draining sea thing succeeding was given as 0% but through a great speech and shouting he succeeded}}) through their, sheer willpower and greatness. On paper it sounds like an extreme Deus Ex Machina, but when watching/reading it it's exciting and used enough to not feel like the giant cop out it may first appear.
** Gainax being Gainax, they then hang a lampshade in the last act of the anime that is summated "using Spiral Energy too much will destroy the universe" (read: "using a [[Deus Ex Machina]] too often can ruin a series"). That's cheeky.
* Mic Sounders of ''[[GaoGaiGar]]'' is arguably a walking Deus Ex Machina. His Disk P [[Theme Music Power-Up]] powers up (and seemingly to a small degree repairs) all of the heroes within earshot (and is also continually used throughout the series). Disk M can disable mechanical systems in only the bad guys (it?s ability to selectively deactivate the bad guys system is in itself somewhat deus ex machina-y). On the much more dangerous side he has his disk x which destroys things at the molecular level, meaning there is literally nothing it cannot destroy and the even more powerful disk F which {{spoiler|can produce a Gao Figh Gar armed with the Goldion Hammer}} to destroy anything in his path. Basically if Mic were to ever receive a major upgrade, much like some of the other mechas receive, then he would render GGG totally obsolete since the only step up from Disk X and F is a disk that completely controls the very fabric of reality.
* A staple of the ''[[Sailor Moon]]'' anime. Two notable instances would be all the heroines dying only to be randomly resurrected; and our heroine throwing herself from a floating island, then inexplicably sprouting wings on the way down.
Line 106 ⟶ 107:
* Played straight (and literally) in the last few volumes of the ''[[Fushigi Yugi]]'' manga. Taka buys Miaka a pager. {{spoiler|Suzaku then ends up taking up residence, essentially, in the pager, so that he can contact his priestess.}}
* In ''[[Initial D]]'', when Takumi battles the Todo School's rally driver with the School's demo car at Happogahara, he is absolutely going to lose {{spoiler|until a cat jumps out in front of the Civic just before the final corner. When the driver swerves to miss it, Takumi passes, not seeing the cat because his lights were off.}}
* The ''[[Rozen Maiden]]'' manga was [[Cut Short]] by LaPlace announcing that the Alice Game of that era had come to an end, leaving all the action that currently was building up gone by a bloody rabbit deciding that the game will not continue within the very timeframe of the story, inevitably leading some fans to believe that they will never find out who wins. However, with the reboot of the manga and the "tales" being released on a monthly basis, this theory is thrown out the window, since the same dolls now appear in an alternate timeline in which Jun chose not to wind up Shinku. Indeed, it is too revealed that it wasn't so much of a [[Deus Ex Machina]] as simply [[Enigmatic Minion|LaPlace]] speaking in riddles, as he usually does. Indeed, the events of the original timeline did, in fact, happen, and the two timelines are revealed to actually be connected.
** The ''[[Rozen Maiden]]'' anime's second season, Traumend, also ends with a major Deus Ex Machina. {{spoiler|All of the dolls are defeated in the Alice game, and Barasuishou becomes Alice. Just when everything looks lost, she suddenly starts to crumble apart. This is explained along the lines of "she can't handle the purity of Alice", or something like that, as she's not really a Rozen Maiden. All the other dolls return to life, and everything works out fine.}}
*** Not all. {{spoiler|Only those killed by Barasuishou. Those killed by legitimate Rozen Maiden stay dead.}}
Line 116 ⟶ 117:
** Arguably, Trunks killing Frieza was of little consequence, since Goku arrives not long afterwards and it was Frieza's plan from the start to wait for Goku to arrive before destroying the planet. The very existence of Trunks's future implies that Frieza had little time to terrorize the Earth before Goku arrived and defeated him. Perhaps a better example of Deus Ex Machina in Dragon Ball Z happens in the movies. In order to beat powerful enemies like Lord Slug and Broly, the Z Fighters transfer their power to Goku, which gives the latter a tremendous boost in strength, more than enough to destroy the enemy in a dominating fashion. Said ability is never elaborated (at least not to that extent) in the main series, where it would have no doubt made some of the biggest fights a lot simpler.
* ''[[Detective Conan]]'', Conan can do ''anything'' at given times from riding a motor boat, a helicopter, and shooting guns with a common excuse of "My dad thought me that in Hawaii."
* In ''[[Yu Yu Hakusho]]'', Yusuke winning Genkai's tournament could apply. Ignoring the fact he was lucky enough to have Kibano [[Explaining Your Power to the Enemy|tell him about his helmet]], the [[Bowdlerise/Anime and Manga|edited]] [[Dub -Induced Plot Hole]] qualifies because it [[No Smoking|removed the cigarette]] that led to his victory. Kazemaru lost because the throwing stars locked on to his energy at the same time Yusuke slipped into the mud; Genkai acknowledged that victory was a fluke. Rando attempts to shrink Yusuke the same way he did to Kuwabara, but it backfires. Genkai explains that a chant will do so if it can't be heard by the victim and it turns out at that moment Yusuke had algae in his ear.
** There's also Hei [[Changed My Mind, Kid|deciding to help]] just as Sniper blows up the truck.
* Brilliantly justified and subverted in ''[[Puella Magi Madoka Magica]]''. At first, it would seem completely coincidental how Homura seemed to arrive on the screen to save the day it seemed, as well as extremely unlikely. {{spoiler|It turns out, however, that she is a Time Traveller and had repeated the same span of time over and over again, knowing what events were to happen and when the events would occur. With her power over time, she could appear when it is thought to be very unlikely.}}
* In ''[[Cardcaptor Sakura]]'', [[The Power of Love]] proves itself to be quite this trope. At the end of the TV series, Sakura ''accidentally'' ends up creating a new nameless Card when her powers react spontaneously to her tears at Syaoran's departure. At first glance it appears to be a [[Sequel Hook]], but fast forward to the end of the Sealed Card movie, where at the last moment, it negates the Void Card's power and combines with it to form the Hope card, protecting Syaoran from losing his love for Sakura and allows it to be captured, restoring everything (and everyone) back to normal.
** And another one is when Sakura encounters the illusion card, which, on the date of her dead mother's birthday, adopts her form, and thus lures Sakura into falling off a cliff. Before hitting the ground nonetheless a translucid hand (that of her real mom) appears out of nowhere and slows down her fall. And as a backup Deus Ex Machina Yukito just happened to be passing by at that precise moment to come and catch her.
 
== [[Comic Books]] ==
 
* Lampshaded word for word in the ''[[Spider-Man]]'' comic "Reign", where an old-ified Spidey is saved from the now-registered-heroes Sinister Six, having been sicced on him by Venom in the first place (LONG story, and [[It Makes Sense in Context]]), by the [[Empathic Weapon|disembodied tentacles]] of the long-dead Doctor Octopus.
== Comic Books ==
* The Marvel Character, [[The Sentry]], is so powerful (he had to create a nemesis from his own being in order to counter balance his abilities), that formal story arcs are no longer written about him. Instead, he is used as a "hero" ex machina, bursting in at the critical moment to save other Marvel characters. He is brilliant in that he is an in -universe hero, who some would argue is expected to be there to save the day.
* Lampshaded word for word in the [[Spider-Man]] comic "Reign", where an old-ified Spidey is saved from the now-registered-heroes Sinister Six, having been sicced on him by Venom in the first place (LONG story, and [[It Makes Sense in Context]]), by the [[Empathic Weapon|disembodied tentacles]] of the long-dead Doctor Octopus.
* The Marvel Character, [[The Sentry]], is so powerful (he had to create a nemesis from his own being in order to counter balance his abilities), that formal story arcs are no longer written about him. Instead, he is used as a "hero" ex machina, bursting in at the critical moment to save other Marvel characters. He is brilliant in that he is an in universe hero, who some would argue is expected to be there to save the day.
* [[Batman]] often solves situations by just happening to have a gadget on hand.
** "[http://www.youtube.com/watch?v=X0UJaprpxrk Hand me down the shark repellent Bat-Spray!]"
** On [[Batman (TV series)|the TV series]], anti-[fill-in-the-blank] pills were commonplace, including Anti-Penguin-Gas (taken before attending a town hall meeting held by The Penguin) and Anti-Hypnosis (to block the effect of The Joker's hypnotic music box) pills.
** Back [[The Golden Age of Comic Books|when he killed people,]] Batman once confronted a Doctor Doom (No, not ''that'' [[Fantastic Four (Comic Book)|Dr. Doom]] ) who threw a grenade at him. Batman then shields his and Robin's body with...[https://web.archive.org/web/20140102074929/http://i.crackedcdn.com/phpimages/article/5/8/2/100582.jpg?v=1 this.] It's not even a frickin' ''gadget!''
* The titular character of ''[[The Adventures of Tintin]]'' was saved many, many times by a Deus Ex Machina. To the point where he really should look into playing the lottery.
** ''Tintin In America'' alone must have set some kind of record:
Line 144:
** And don't forget Sergeant Blip and the Rubber Pants Commandos, they are almost a Deus Ex Machina incarnated; They only appear to save Sam & Max of whathever. Almost every time without an explanation.
*** Taken to the extreme in the Hit the Road comic that the Lucasarts game was based on. Sam and Max narrowly avoid being dunked in scalding hot wax by nefarious pirates by [[Remember the New Guy?|Ratso, Sam and Max' octopus pal]]
* Brutally and hilariously parodied in the third volume of ''[[Scott Pilgrim]]'' (even more hilarious when you realize it was actually a [[Chekhov's Gun]]):
{{quote|Scott Pilgrim - "I can't even get near him! I need some kind of... like... [[Lampshade Hanging|last minute, poorly-set-up Deus Ex Machina]]!!"<br />
{{spoiler|Vegan Policeman (to the villain) - "FREEZE! Vegan police. You were caught eating gelato this morning."}} }}
* Utterly lampshaded in ''[[Fables]]'' spinoff ''Jack of Fables'', whose characters include the Literals, [[Anthropomorphic Personification|Anthropomorphic Personifications]]s of literary devices. Just as Jack is about to be killed by the Knife-Johns with no apparent way out, Dex - the AP of the Deus Ex Machina - turns up out of nowhere and proclaims that the Knife-Johns all unexpectedly died of instant pneumonia. Which they do. Just to rub it in, he's accompanied by the AP of the [[Fourth Wall]] who's been narrating the story.
** Lampshaded again in the Great Fables Crossover by Science Fiction, the AP of the science fiction genre, who proclaims that the Fables would be wiped out by a surprise legion of Nebularian attack cruisers, because otherwise, how would they win at the end? Dex also makes an appearance to mock the trope, popping up several times throughout the story to inform anyone who will listen that he won't do anything yet, and only showing up to save the day when it was decided that it was impossible to permanently stop the [[Big Bad]].
* In the "Caged Angels" arc of ''[[Thunderbolts]]'', a group of telepaths mange to infiltrate Thunderbolts Mountain and wreak havoc by mentally controlling the team. The telepaths are finally defeated when Bullseye (who was critically injured in the previous arc and hadn't shown up at all for several issues) wakes up in the hospital and randomly decides to do target practice in the holding cells.
** On top of which, for some sudden handwaved reason, said telepaths couldn't control his mind. Note that Bullseye is [[Badass Normal]] and until then did not have any kind of immunity from [[Psychic Powers]].
*** Possibly explained due to the fact many of Bullseye's bones including spine and skull are reinforced with strips of adamantium (think a lesser version of Wolverine's procedure). This could account for the immunity.
* In a certain ''[[The Creeper]]'' story Ryder's psyche gets unbalanced which {{spoiler|releases Creeper as a separate creature and several other Creeper-like monsters}} to plague the city and this problem is suddenly resolved when {{spoiler|due to some sort of metaparadox a god-like giant Creeper from different time and planet emerges from the original Creeper and collects all escaped monsters. He stores them inside the Creeper again and makes Ryder and Creeper shake hands and make up their internal fight.}}
* [[Superman]] builds a literal Machina with the Miracle Machine in ''[[Final Crisis]]''.
* [[Lampshade Hanging|Referred to]] in ''[[Watchmen (comics)|Watchmen]]'', even though it never actually happens. Dr. Manhattan even provides the translation.
{{quote|'''Dr Manhattan''': Now, I believe we have a conversation scheduled.
'''Laurie''': God, Yes. Yes, I was just thinking... But Jon, how did you know? I need to see you, you appear... I mean, it's all so Deus Ex Machina...
Line 163:
* Justified by the [[Time Travel]] plot in ''[[Universal War One]]'': {{spoiler|the heroes are saved by invincible warriors coming from a civilization they will create in the past.}} It is one of the very few examples of a plot-relevant ''deus ex machina''.
* The Mirage ''[[Teenage Mutant Ninja Turtles Mirage]]'' comics were a ''little'' too fond of having the day saved by some random (and often unannounced) outside element instead of letting the Turtles themselves contribute to the solution of the plot. Occasionally, though, it was put to [[Rule of Cool|very good effect]], such as Renet's unexpected appearance in ''Juliet's Revenge'' or Splinter being able to send a devastating psychic strike at the bad guy from ''several miles away'' in the last part of the ''River'' trilogy.
* Used very well in Morrison's run of ''[[Animal Man]]''. {{spoiler|[[Grant Morrison]] himself shows up in the final issue of his run, titled Deus Ex Machina, to explain to Buddy that he's just a comic book character, with no free will at all. Buddy gets pretty angry, for good reason, but eventually calms down, and asks about his family, who were all killed. Morrison decides that he can't come up with a good enough reason to keep them dead, so he just tells Buddy to go home, where he wakes up, and it was all a dream.}}
** Of course, {{spoiler|Grant Morrison's run was all about toying around with the fourth wall, so it doesn't really come out of left field as one might expect from the above description.}}
* ''[[Bio Apocalypse]]'' has a {{spoiler|literal example of this, with God sending the Angel of Death to abort a 50 mile tall fetus, after the space fleet failed to destroy it}}.
 
== [[Fan FictionWorks]] ==
 
* [[Nightmare Fuel|Chillingly]] done in the ''Pokémon'' fic ''[[No Antidote]]''. {{spoiler|After realizing a poisoned trainer is completely an [[Empty Shell]], a ghost Pokémon, under orders from Giratina, takes control. The motives claim to be for the benefit of the "Starter" Pokémon that unquestionably follow their leader but...}}
== [[Fan Fiction]] ==
* [[Nightmare Fuel|Chillingly]] done in the Pokémon fic [[No Antidote]]. {{spoiler|After realizing a poisoned trainer is completely an [[Empty Shell]], a ghost Pokémon, under orders from Giratina, takes control. The motives claim to be for the benefit of the "Starter" Pokémon that unquestionably follow their leader but...}}
{{quote|{{spoiler|''Ghost Controlled Trainer''}}: This is the most fun we've had in decades!}}
* ''[[Naruto Veangance Revelaitons]]'' has quite a few. The most blatant is when Ronan and Sakura are fleeing Madara, only to get intercepted by Taliana. A bolt of lightning suddenly strikes Taliana, incapacitating her and enabling them to escape without [[God Mode Sue|Ronan]] having to do anything.
* In ''[[In This World and the Next]]'', [[Harry Potter|Harry and Hermione]] are sentenced to the [[Fate Worse Than Death|Dementor's Kiss]] for killing [[Ron the Death Eater]]. Instead, the Dementor ''[[Made of Explodium|explodes]]'' and releases their life force, allowing them to [[Peggy Sue|go back in time]].
 
== [[Film]] ==
 
* A literal example in ''[[The Matrix Revolutions]]''. Just as it looks like the Sentinel army is about to completely destroy Zion, Neo travels to the Machine City and asks the god-like supercomputer that rules the Machines (who has never been mentioned before this point) to consider peace. The supercomputer agrees, and the Machines immediately break off their attack. The supercomputer's name? "[[Deus Ex Machina]]"--a—a literal and figurative "God from the Machine".
== Film ==
* Infamously done in ''[[The Adjustment Bureau]]'', where the main characters are predictably surrounded with no escape. Realizing they're about to be separated forever or worse, they kiss passionately...[[Overly Long Gag|for quite a while]]...and then they're alone, with the one good "bad" guy telling them that, LITERALLY''literally'', God decided to give them a happy ending because they tried really hard.
* A literal example in ''[[The Matrix Revolutions]]''. Just as it looks like the Sentinel army is about to completely destroy Zion, Neo travels to the Machine City and asks the god-like supercomputer that rules the Machines (who has never been mentioned before this point) to consider peace. The supercomputer agrees, and the Machines immediately break off their attack. The supercomputer's name? "[[Deus Ex Machina]]"--a literal and figurative "God from the Machine".
* Infamously done in [[The Adjustment Bureau]], where the main characters are predictably surrounded with no escape. Realizing they're about to be separated forever or worse, they kiss passionately...[[Overly Long Gag|for quite a while]]...and then they're alone, with the one good "bad" guy telling them that, LITERALLY, God decided to give them a happy ending because they tried really hard.
* In the movie adaption of ''[[The Bad Seed]]'', Rhoda has gotten away with murder, so in the last second of the movie, she is hit by a bolt of lightning and falls into the nearby wharf, supposedly from God's wrath.
* The example listed in [[Fridge Brilliance]] comes from ''[[Die Hard]]'', where [[Family Matters|Carl Winslow]], who doesn't ever want to use his gun in the line of duty, shoots [[Not Quite Dead|the suddenly-risen]] Karl from behind to save [[Bruce Willis|John McClane]].
* Semi-literal in ''[[Contact (film)|Contact]]'', where {{spoiler|after the original alien machine was blown up, we find out that a totally separate yet completely identical machine was built half-way across the world,}} thus not only solving the problem but also putting the main character in the driver's seat of the machine. This also occurred in the [[Contact (Literature)|novel]] the film is based on.
* [[Lampshade Hanging]] in ''[[DodgeBall: A True Underdog Story]]'', where the {{spoiler|treasure chest that allows Vince Vaughn to not only save his gym, but buy out his competitor,}} is clearly labeled "[[Deus Ex Machina]]."
** An unusual example of a deus ex machina as a [[Take That]]: [[Executive Meddling]] forced the creators to {{spoiler|change the ending from the heroes losing to them finding the aforementioned treasure chest}}. Hence the obvious [[Lampshade Hanging]].
*** This is debatable. The "original ending" scene may have been part of a gag, as the film would have left several CheckovChekhov's guns unfired had it not been included.
* Used spectacularly in ''[[The Abyss]]''.
* In ''[[Raiders of the Lost Ark]]'', Indiana Jones {{spoiler|fails in his mission to stop the Nazis from using the Ark, and it is literally God who kills them.}} Some extra emphasis {{spoiler|on the "Deus}}" in this trope.
** Actually, it's not so much {{spoiler|God killing the Nazis}} that falls under this, as it is established throughout the movie that the {{spoiler|ark contains the power of God}} but rather the way that {{spoiler|Indy and Marian are saved from it; by shutting their eyes}}. That comes out of absolutely nowhere.
** Those who've read [[The Bible|The Book of Samuel]] (as Indy presumably did when researching the Ark) know that {{spoiler|to either touch or look into the Ark means instant death. Indy, when hearing the strange noises that the Ark was giving off, must've realized that something supernatural was occurring and that the only way to survive it was by keeping one's eyes shut.}} This is not so much a case of [[Deus Ex Machina]] as it is a case of much of the core audience not having read that section of [[The Bible]] that foreshadows that plot point. Which, when considering that the film is promoting the researching nature of archeology, and that as an archeologist [[An Aesop|Renee Belloq's greed and pride cause him to be inattentive to the exact information it was his job to be an expert in]] (contrasting with Indy of course), is arguably some high-minded [[Fridge Brilliance]].
** This one bears some analysis. It is indeed a very formal example of Deus Ex Machina, in which our protagonist loses his agency altogether and becomes a passive bystander, a witness (or non-witness, as the case may be) to the climax. And yet few people walk away from the film complaining about this fact. In other words, Tropes Are Not All Bad.
* In ''[[Stranger Than Fiction]]'', Kay Eiffel {{spoiler|uses a [[Deus Ex Machina]] to save Harold Crick. From his real death.}}
** This was foreshadowed from the beginning. But, given the overall plot, it could have been retroactively included by Eiffel to {{spoiler|foreshadow the [[Deus Ex Machina]] that she came up with at the end.}} Indeed, she even says she'll need to re-write other parts of the story to justify the new ending.
* Used magnificently in the climax of ''[[O Brother, Where Art Thou?]]'', in which after saying their prayers, the four main characters are miraculously saved from hanging by a scheduled flood, lightly mentioned earlier within the film.
* Towards the end of ''[[South Park: Bigger, Longer and& Uncut]]'', Canadian comedians Terrance and Phillip are gunned down by Kyle's mother, triggering Satan and Saddam Hussein's takeover of the world. All seems to be lost until Saddam insults Satan one too many times after receiving several brutal electric shocks from Cartman's V-chip. Satan finally stands up to Saddam and kills him, thanking Kenny for giving him the courage to get out of his abusive relationship, and grants him one wish. Kenny's wish is for all the horror and tragedy of the US-Canada war to be undone, even if it means going back to hell himself. [[Reset Button|Within a matter of seconds, everyone who died in the war is revived and Canadian/American relations are restored.]]
** Also, instead of going back to hell, as a reward for his sacrifice, Kenny {{spoiler|is sent to heaven where he is greeted by large-breasted angels.}}
* In ''[[Shakespeare in Love]]'', [[Shakespeare|The Bard's]] latest play is about to be shut down due to rules against letting women on stage, but then Queen Elizabeth stands up and inspects Viola, and strongly implies Viola isn't female -- andfemale—and that this queen should know such things.
** Regina ex machina. But wasn't the idea supposed to be that Queen Bess is on Shakespeare's side, and deliberately helping him?
** There's also the line where she asks Shakespeare to come as "himself", heavily implying that she knew when he was disguised as "Wilhelmina" at the court in Greenwich.
Line 202 ⟶ 200:
** That was not a deus ex machina. The ending of ''Jurassic Park 3'', however, definitely was.
*** Considering the T-Rex is huge and loud, his sudden appearance is hard to explain.
**** We witness dinosaurs attacking other dinosaurs a few times beforehand. That T-Rex being unnoticed by the characters is a case of [[Behind the Black]], not [[Deus Ex Machina]].
*** The original script had the bones of the T. Rex skeleton falling on and killing the Raptors. Rexxy showed up because the animators felt it was just too awesome not to use again. The end of 3 is more-or-less faithful to the book, with the Costa Rican government saving the day.
** See the bottom of the article for [[Samuel L. Jackson]] for more on the stealthy T-Rex.
Line 210 ⟶ 208:
** It's suggested that {{spoiler|the butler is Harry's hallucination, representing his good side}}.
*** If so, that [[Voodoo Shark|makes it even worse]].
* The ''[[Godzilla]]'' films of the 1960s-1970s were notorious for this. The two most infamous examples are the "Flying Godzilla" scene from ''Godzilla VSvs. The Smog Monster'' and Jet Jaguar somehow programming himself to grow to the size of Godzilla in ''Godzilla VS Megalon''.
* The ''[[James Bond]]'' films liberally feature number 3. Typically the writers would put Bond in the most impossible situation they could come up with, and then figure out what kind of weird gadget could get him out of it before going back to the Q Branch scene to write in a bit of dialogue about it. Though sometimes they didn't even bother; witness Bond's magnet watch in ''[[Live and Let Die (film)|Live and Let Die]]'' which in the climax turns out to also be able to cut through ropes with zero setup beforehand. Ironically, that was one of the more plausible [[James Bond]] gadgets.
** Also, the watch laser that Bond uses in ''[[GoldeneyeGoldenEye (film)|GoldenEye]]'' to escape from the train car. Not ''too'' far-fetched since it's James Bond movie, but what makes it fall under this category is it not being shown during the scene with Q, where all the other gadgets are introduced and talked about. Bond just pulls the laser out of nowhere and it's ''conveniently'' the perfect gadget to use in such a situation.
* In the 2008 remake of ''[[Day of the Dead]]'', the zombified Bud, despite being a zombie, {{spoiler|suddenly remembers how to shoot a gun and wants to help humans instead of eat them, and shoots a zombie attacking the lead character, letting her escape and kill them all.}} Towards the beginning of the movie, Bud explains that {{spoiler|he is a vegetarian}}.
* In ''Dresden'' the protagonist and his love interest are holed up to avoid the carbon monoxide poisoning and fires (yeah, THAT will work), while their oxygen slowly runs out. Then, suddenly the protagonist sees a miraculous chink of light, where fresh air is coming in! They dig themselves out into another room, which has an iron-rung staircase leading out - saved!
* In ''[[National Treasure]]'', the characters follow cryptic clues all over the world to discover a massive treasure hidden under Trinity Church, but only after the [[Big Bad]] has left them stranded underground with no way out... except for the convenient back door exit to the treasure room. Somewhat justified, seeing as the main characters tricked the [[Big Bad]] into leaving them stranded, specifically because they had guessed that there would be a back door.
* Used in ''[[Monty Python and the Holy Grail]]'', both times for laughs. When the characters are being chased by a large animated monster, the animator abruptly has a heart-attack and the monster disappears. The cops at the end are a #4 example, as the movie had been setting them up throughout. The instigation for the police involvement - i.e. the somewhat random killing of the historian - also serves as a sort of Chekov'sGuns Gun in an [[Unwitting Instigator of Doom]] fashion.
** In ''[[Monty Python's Life of Brian]]'', where Brian nearly falls to his death, a passing UFO just happens to abduct him and then crashland shortly afterwards. Brian is fine.
*** Random Camp Passer-By: Ooh, you ''lucky'' bastard!
Line 235 ⟶ 233:
* ''[[Tyler Perry|The Family That Preys]]'' had one at the end when Alice, Pam, and Nick come in to the board room meeting as major stockholders, something never explained prior, and voted to prevent Charlotte from getting voted out of her own company.
* ''[[Apocalypto]]'' {{spoiler|has (in a scene strikingly similar to the Lord of the Flies example) Spanish Conquistadors and Missionaries as this trope}}, however for some people this carried [[Unfortunate Implications]].
* One of the finer examples of the trope in film history can be found in ''[[Robin Hood: Prince of Thieves]]'', wherein the ''deus ex machina'' is not only set up at the very beginning of the film but also made into the resolution of a story-long running gag. In the opening, Robin saves Azeem's life and Azeem is determined to follow him wherever he goes until he can return the favor, but throughout most of the film every time Robin is in danger and Azeem is nearby there is always something preventing this from happening: he can't get behind a locked door, or he is captured, or he is busy doing something else and doesn't want to be bothered (odd priorities this man has, but Robin does stay alive so maybe he does really have his back). Then at the end of the film, after Robin kills the Sheriff with [[Chekhov's Gun]]--er—er, Chekhov's Knife--theKnife—the fallen witch gets back up and attacks him from behind. During the entire fight between Robin and the Sheriff, Azeem, once again, was stuck behind a door, but when the witch performs her surprise attack he finally breaks through and spears her from across the room by throwing his scimitar, then says, "I have fulfilled my vow."
* The [[Michael J. Fox]] film ''For Love Or Money''. He gets the girl but loses the guy who has agreed to finance the construction of his hotel. On his wedding day, Mike is called by a real estate tycoon who agrees to bankroll the project. The tycoon was [[Chekhov's Gunman|the man who's marriage Mike helped rekindle]].
* The Disney film ''[[The Black Cauldron]]''. While the cauldron is the first artifact and/or character introduced, the [[Deus Ex Machina]] is how it takes out {{spoiler|The Horned King}}. While it was explained that a living person entering the cauldron of his or her own free will would seal its powers, it is not explained why it kills the guy and destroys the castle. It's implied that it's just that evil, but that's a rather [[Hand Wave|flimsy explanation]]. It is also highly anticlimactic, because the {{spoiler|King}} doesn't get to DO anything, despite being hinted as being a powerful sorcerer. Another is supplied by the witches, who {{spoiler|revive the person that jumped into the cauldron}}. And why is it that the witches have this cauldron in the first place and the heroes practically fall on top of apparently the only society that knows where they are?
** Much of this can be blamed on [[Adaptation Decay]]. The book explains a lot of these questions, especially why the witches had the cauldron and how the heroes were able to find them.
* Billy Preston in ''[[Sgt. Pepper's Lonely Hearts Club Band (film)|Sgt. Pepper's Lonely Hearts Club Band]]''. He appears just before the end as a weather vane brought to life, then {{spoiler|bringsresurrects Sandy Farina back to life and basically [[Reset Button|sets the rest of the action back to the beginning of the movie]]}}, all while singing "Get Back." Shame he couldn't have done something similar with the Beatles themselves...
* ''[[George of the Jungle (film)|George of the Jungle]] 2'' uses a #2 version for laughs. The villain has the heroes at gun point then begins arguing with and then insulting the narrator. [[Tempting Fate|Then he asks the narrator what he is going to do.]] It turns out the narrator is [[God|the big man himself]] and a giant hand descends from the sky and carries off the villain while giving him a wedgie.
* ''[[Casino]]'': Though based on a real-life event, the {{spoiler|metal plate under the driver's seat of Sam's car comes across as this}}.
Line 249 ⟶ 247:
* In the climax finale of ''[[The Traveler]]'', {{spoiler|Detective Black stumbled upon his daughter Mary's ghost and acquired a life-saving tip that can enable him to defeat Mr Nobody}}.
* ''Inverted'' in the western ''Ulzana's Raid''. The renegade Apaches have a settler trapped inside his house, which appears to be well-built to resist such an occurrence. Suddenly we hear the sound of a bugler sounding "Charge", the Apaches disappear, and the settler exits his house, praising God. It turns out that {{spoiler|one of the Apaches had a bugle and they were just luring him out of his house}}. When the real cavalry arrives hours later, they find the man [[Nightmare Fuel|tortured to death]].
* One occurs in the climax of ''[[Tangled]]'', but it's actually done pretty cleverly. {{spoiler|The film puts such an emphasis on her hair, that when it is cut right before Eugene dies, leaving no way to save him, it seems set up for a [[Downer Ending]]. Then Rapunzel starts crying...and everyone familiar with the original story goes, "Ah-HA!"}}
* The 2010 remake of ''[[The Crazies]]'' pulls a type 2 several times. Each time a crazy person with a melee weapon is about to kill off one of the good guys. As they raise their weapon to strike... they get shot by someone off screen - one time, through a second floor window by someone outside the building.
* A very good type 4 happens near the end of ''[[The Naked Gun|Naked Gun 2½: The Smell of Fear]]''. The villain survives falling out of a window thanks to an awning cushioning his fall. When he gets up, [[Karma Houdini|it seems like he is going to escape]]. Just then, a lion appears out of nowhere and kills him on the spot. It looks like a type 1 until one remembers that earlier in the film Drebin released a bunch of animals from the zoo.
 
== [[Literature]] ==
 
== Literature ==
* Most famously portrayed in ''[[Little Red Riding Hood]],'' with the woodcutter appearing out of nowhere to save her just in the nick of time; though he is established earlier in the plot, nevertheless he isn't following Red around to protect her, but pops up to kill the Wolf anyway.
** That's because in the original version there was no woodcutter.
* [[L. Frank Baum]] ''loved'' using this. Virtually all of the [[Land of Oz|''Oz'' books]] end this way. Sometimes there's an attempt at setting things up via [[Chekhov's Gun]], but just as often the ending comes completely out of the blue.
** In his sixth Oz book, ''The Emerald City of Oz'', the Nomes and a few other unruly tribes of creatures plan to invade Oz, destroy it, and enslave the people. The surprise is initially ruined by Ozma's convenient Magic Picture, allowing her to plan ahead of time. With her trusty [[Chekhov's Gun]], the Magic Belt Dorothy stole from the Nome king in a previous book, Ozma uses its power to dehydrate the army, whose invasion tunnel is conveniently right next to the fountain containing the Water of Oblivion, which makes anyone who drinks of it forget everything. The first thing the invaders do when they come out of the tunnel is drink the water; war avoided.
* [[Cory Doctorow]] ''loves'' this trope. In ''[[Little Brother]]'', the protagonist is being waterboarded and the cavalry rush in to save the day, in Someone Comes To Town Someone Leaves Town the protagonist's flying girlfriend whisks him away from danger to a desert island and in [[Eastern Standard Tribe]] the protagonist just happens to become friends with a doctor at the asylum he is in who can and will free him.
* Richard Adams' ''[[Watership Down]]'' has the rabbit protagonist saved by a human in one of the final chapters (appropriately named "dea ex machina"). Whether this is a true Deus Ex Machina is debatable, because the event is very logical from a human point of view, if not from a rabbit's.
** A similar example comes earlier in the book, when the heroes cross train tracks safely, but their pursuers aren't so lucky. The rabbits take it for a literal Act of Frith (god), one unironically says something like, "You might think it's amazing to be saved by Frith, but it's really quite terrifying."
** If you thought that was [[Deus Ex Machina]], you have no idea what Adams is capable of. In his third book, ''The Plague Dogs'', Adams does an [[Ass Pull]] and saves the day, with a [[Lampshade Hanging|poem that is basically a back and forth between the author and the reader]] in which the reader complains that the ending sucks, and the author agrees to change it just to shut the reader up. It was so bad that the movie version's ending is preferred, despite the fact it is basically [[Kill'Em All|the two dogs drowning pointlessly.]]
* ''[[The Eye of Argon]]'' has a beauty. Grignir, the barbarian protagonist, is locked in combat with a bunch of cultistcultists. During the fight, one of his opponents just drops dead in the middle of the fight from an epileptic seizure.
* [[Jane Austen]]'s ''[[Northanger Abbey]]'' ended with a [[Deus Ex Machina]], which felt quite jarring compared to the rest of the book.
** Since that novel is a parody of gothicGothic novels, one assumes that Austen did this intentionally.
** It WAS''was'' intentional, and in fact stated in the text. It was even ''foreshadowed'' just so she could write it that way.
** Especially as we know that General Tilney is not amazingly steadfast, we've seen him be fickle in the course of the story, so we know that ''something'' will make him relent.
* The entire plot of ''[[Jules Verne]]'s'' ''[[The Mysterious Island]]'' is about characters trying to find out why and how someone bails them out of seemingly hopeless situations. (And that "someone", being {{spoiler|Captain Nemo}}, does it in the [[Big Damn Heroes|most dramatic manner possible]] all the time.)
Line 272 ⟶ 269:
** In the book after spoiler: the [[Fallen Angel]] Lasciel's Shadow (who had been providing him with [[Hellfire]]) {{spoiler|sacrifices herself to save Harry from a psychic attack}}, he is provided in the next book with access to Hellfire's [[Good Counterpart]], Soulfire, by [[Archangel Uriel]].
* Beginning with the novel ''Sahara'', author Clive Cussler has often written his heroes into impossible situations, whereupon a minor character shows up and gives them the assistance they need to continue - a minor character by the name of [[Author Avatar|Clive Cussler]]!
** Granted, it's never an ENORMOUS''enormous'' Deus Ex Machina; usually just Cussler serving to get the plot back on the rails, usually by providing the heroes with direction or transportation. Also, the practice of Cussler writing himself into his books actually began with ''Dragon'', though it wasn't until ''Sahara'' that he began interfering in an important way.
** A lot of the ridiculous gadgets and technologies that can be accessed from anyone on earth and from anyone who owns them in a matter of hours is a bit of a consistent Deus Ex Machina. In ''Golden Buddah'', for example, the Oregon is facing a couple of Chinese warships, so they just call in favors from an American submarine nearby that has on board a super-high-tech, top-secret missile that blasts a huge EMP to disable the warships.
** The entire ''Oregon Files'' series centers around the ship which is nothing more than a giant floating Deus Ex Machina. Able to blow apart battle ships from various navies without blinking, a propulsion system that the second law of thermodynamics frowns at, armor that shrugs off almost anything thrown at it, a captain's barge that is essentially an Oregon Lite. It shows up just in the nick of time to save the away team or the captain's love of the week with just the right weapon to blow the bad guys to Davey Jones.
* ''The Mill On The Floss'' by George Elliot. When Maggie runs off with Stephen and returns, she is shunned by her brother and has insulted Phil. While sitting in her cabin alone and brooding, a flood rips through the town and drowns our main character before she has an opportunity at reconciliation. References throughout the novel to the flooding of the countryside and water in general place this in the second variety of [[Deus Ex Machina]].
* Steven Erikson's ''[[Malazan Book of the Fallen]]'' has Dei Ex Machina galore. Some examples:
** The appearance of the titular Gardens in ''Gardens of the Moon''.
Line 281 ⟶ 278:
** The appearance of {{spoiler|the army of Bridgeburner ghosts}} in ''House of Chains''.
* In [[Raymond E. Feist]]'s ''[[The Riftwar Cycle|Tear of the Gods]]'', the bad guy, "Bear", kills a bar girl somewhere around chapter 2. Her boyfriend vows revenge. The rest of the book happens, and the good guys finally manage to corner Bear. Unfortunately, they are unable to kill him because he is literally invincible and super strong. Suddenly, the god of vengeance incarnates in boyfriend and strikes Bear down. Good guys return victorious.
* [[Jasper Fforde]]'s ''The Well of Lost Plots'' -- part—part of the ''[[Thursday Next]]'' series, which is dedicated to playing with literary devices -- featuresdevices—features a literal deus ex machina. It's a mysterious device given to all Jurisfiction agents in case of completely unstoppable disaster; when a conspiracy that would have ruined all of fiction was coming to imminent fruition, Thursday activated the device and God came down and fixed everything.
* Played painfully straight in Goodkind's ''[[Sword of Truth]]'': Richard [[It Was His Sled|Rahl]]'s Gift (basically magic) is [[Deus Ex Machina]]. At the end of a book, expect him to know how to perfectly use it to get out of the dire situation of the week, while at the beginning of the next book he's so clueless about how to use it that the events of the last book [[Bag of Spilling|might as well have not happened]].
* [[Stephen King]]'s ''[[The Dark Tower]]'' series, which relied upon the conceit that King himself was [[Literary Agent Hypothesis|authoring the events as they took place]], includes several instances in which King throws a bone to the characters to get them out of a sticky situation. In one [[Lampshade Hanging]] moment, a character finds a note from King reading "DON'T WORRY; HERE COMES THE DEUS EX MACHINA!"
* The ''[[Alex Rider]]'' series follows the third way to the letter just like the James Bond movies. A teenage spy is sent into a mission with a small collection of gadgets. Of course he uses them all to save his own neck just in time and stop the current madman from destroying the world.
** Another one happens when Alex is running from some gunmen and ultimately runs to the rooftop of a building with no way done and the gunmen on the stairs. BUT WAIT!!! Alex remembers seeing a giant orange cone/construction equipment (not mentioned before) and jumps off the building into, allowing him to slide from safety away from his assailants!
* Also by King: ''[[The Stand]],'' which inspired a limerick: Oh, the Superflu caused so much pain, oh! / And with evil a raging volcano / Flagg's triumph seemed certain / Until King rang the curtain / By pulling a ''Deus ex ano!''
Line 291 ⟶ 288:
** Though, not all of those are actually Deus Ex Machina. {{spoiler|All of the information on vampires not being able to reproduce was always said from a man's perspective, never on the female side of it. Stephanie Meyer was actually clever withholding that information because she didn't want anyone to guess her plot twist. And with Bella's ability, it was foreshadowed in the second book that her ability was beyond the Volturi's powers, when they couldn't effect her as a human. Considering other vampires can extend their powers as well, it wasn't a surprise that she could as well. Though, Jacob falling in love with the baby was pretty much spot on for Dues Ex Machina.}}
* In [[James Thurber]]'s ''[[The 13 Clocks]]'', when Prince Zorn and the Golux have brought the duke the jewels, he counts them: they are nine hundred and ninety-nine, not the thousand he had demanded. The Golux stares at his ring, and a diamond falls out. Which lets the duke gnarl about a ''Golux ex machina''.
* [[J. R. R. Tolkien|JRR Tolkien]] occasionally uses Giant Eagles to whisk his heroes away from danger. These aren't just at the end of ''Rings'', but show up in ''The Hobbit'' to rescue dwarves from burning trees that are surrounded by wolves, to tip the scales in the book's great battle, and in ''Rings'' to rescue Gandalf from the roof of the Tower of Orthanc as well. Tolkien seems to have been unable to resolve the issue of characters marooned on top of high things as well as unable to resist putting them there. Whether these are a Deus Ex Machina is often debated:
** Tolkien called them a dangerous machine that he dared not use often with credibility. He thought them a deus ex machina, though in the books he justified them better.
** The Eagles are Manwë's messengers, so this is a arguably a legitimate case of a true Deus Ex Machina.
** ''[[Bored of the Rings]]'' had onetheir ofcounterpart themliterally ''stamped'' with the label "Deus Ex Machina Airlines."
** Common objections: The Eagles' place in Middle-Earth's greater cosmology that's [[All There in the Manual]], Gandalf being a wizard and getting this sort of thing as a perk, defining Deus Ex Machina to play a crucial role in the quest when, in ''Rings'', the quest was completed on the main characters' own power and getting out of Mordor alive was no part of it.
** What's most irritating about the Giant Eagles is that they [[Fridge Logic|raise]] serious [[Plot Hole|questions]] about [http://www.angryflower.com/lordot.gif the story's foundations]. Possible objections: Sauron would definitely notice and set up Nazgûl interception and/or tens of thousands of Orcs on the mountain, the Eagles weren't even at the Council of Elrond, Manwë wouldn't send his eagles on a suicide mission, God thinks that defeating evil effortlessly would eventually backfire, Mount Doom is the seat of the greatest power in Middle-Earth and it's uncertain whether anyone could toss away its embodiment there willingly, the Ring corrupts the powerful so that Galadriel and Gandalf refuse to even touch it - and you want to put the thing on Gwahir the Windlord for days on end?!
Line 312 ⟶ 309:
** The main reason Firestar was able to win his fight against Tigerstar in ''Forest of Secrets'' was because Tigerstar slipped on some blood. No, really.
** For that matter, {{spoiler|Brambleclaw picking up a wooden stake and twisting around just in time to impale Hawkfrost with it as he was about to deliver his killing blow}} at the end of ''Sunset'' seems a bit ''too'' convenient.
* Near the end of ''[[The Last Colony]]'', John sends Zoe off to give a message to General Gau. She returns with a "sapper field", just what's needed for the Roanoke colony to win the final confrontation. This one irritated readers so much that [[John Scalzi]] devoted the closing third of ''Zoe's Tale'' to explaining how exactly she got it -- itit—it was ''much'' trickier than it looked from the outside.
* How many fairy tales have one of these? In multiple versions of "[[Snow White and The Seven Dwarfs (novel)|Snow White]]" and "[[Sleeping Beauty]]" (their Disney versions being huge exceptions), the prince never appears until the end to perform his heroic deed. In Snow White's case, the fact that a kiss can wake her isn't previously mentioned. Rapunzel's tears cure the prince's blindness. A hunter just happens to walk by Grandma's house as the wolf is attacking Red Riding Hood. Although it occurs midway in the story, there is also Cinderella's fairy godmother.
* Spike Milligan's ''Badjelly the Witch''. The titular witch is chasing the hero and heroine, who are fleeing her lair, when {{spoiler|''God Himself''}} intervenes. When she refuses to back down and tries to {{spoiler|blind him ''with her fingernails''}}, he annihilates her.
* In ''[[The War of the Worlds (novel)|The War of the Worlds]]'', the martianMartian forces are almost unaffected by everything the humans throw against them, until {{spoiler|the entire invasion force is wiped out by an epidemic of ''[[Weaksauce Weakness|the common cold]]'', which martianMartian biology conveniently happened to have no immunity to.}}
** Not totally out of the blue, however, as, this is probably an analogy to {{spoiler|Europeans dying of malaria when invading Africa}}.
* The first ''[[Discworld]]'' book, ''[[Discworld/The Colour of Magic|The Colour of Magic]],'' has some rather literal applications of Deus Ex Machina. There are two that are justified in that [[Chew Toy|Rincewind]] is Lady Luck's favorite game piece in the [[Cosmic Chess Game|tabletop RPG]] of the gods. Another at the end of the third chapter relies heavily on [[Rule of Funny]].
** ''[[Discworld/Monstrous Regiment|Monstrous Regiment]]'' plays the trope much straighter, which brought about much debate and anger from the readership.
* In [[Harry Turtledove]]'s ''Wisdom of the Fox'', {{spoiler|The protagonists manage to trick the gods into solving the apparently impossible problem for them.}}
* [[Michael Crichton]] novels live on this. The main characters work heroically to try to solve a problem (which as often as not was created essentially by a couple of bad decisions, followed by a series of events where ''exactly the worst possible thing'' happens in each case), almost but not quite succeeding at several points, only to find out in the end that the problem effectively goes away on its own. To be fair, that can be part of the appeal.
* A {{spoiler|[[Incredibly Lame Pun|Draco Ex Machina]] conveniently kills the villains}} at the end of ''[[Earthsea Trilogy|Tehanu]]''.
* At the end of Dave Duncan's tetralogy ''A Handful of Men'', the heroes are in a totally hopeless situation. Thanks to his army of sorcerers with [[Mind Control|loyalty spells]] on them, the [[Big Bad]] has become the most powerful sorcerer ''ever''. He's even become more powerful than the main character was at the end of the previous series - and said main character was a demigod (one [[Power Level]] higher than a sorcerer) who only avoided a [[Superpower Meltdown]] because his [[Love Interest]] managed to [[De-Power]] him before he burst into flames and died from. Having been on the run from the [[Big Bad]] throughout the whole series, the heroes have finally been captured and are about to be killed. They end up being saved when {{spoiler|two of the heroes achieve the [[Power Level]] above "sorcerer" without having a [[Superpower Meltdown]] by becoming a complete god instead of a demigod, and proceed to free everyone from the [[Big Bad]]'s [[Mind Control]] sorcery. Several of the main characters knew how to do this, but, normally, becoming a full-fledged god means that you [[Ascend to a Higher Plane of Existence]] and simply stop caring about what happens to mere mortals, so it's never mentioned as a way to stop the [[Big Bad]] until it happens.}}
* Bjorn Nyberg and [[L. Sprague de Camp|L Sprague De Camp]]'s "The Return of Conan" has [[Conan the Barbarian]]'s god, Crom, intervene at the climax to save Conan. Early in the novel, Conan has a vision that Crom is speaking to him; later, Conan sacrifices to Crom. It seems the authors--whoauthors—who took over the Conan canon from the creator, [[Robert E. Howard|Robert E Howard]], after Howard's suicide and the success of the character--wantedcharacter—wanted to imbue Conan with middle-class values, and making him more religious went along with that. Still, this is a textbook example: the god actually intervenes to save the hero.
* M.M. Buckner's titular ''Watermind'' survives everything the humans throw at it before being killed by {{spoiler|contact with salt water.}} Okay, there was foreshadowing, but getting it would have taken someone who was both better at science {{spoiler|(salt water being a better electrical conductor than fresh)}} ''and'' geography {{spoiler|(the lake they were driving the Watermind into being a tidal basin)}} than the protagonists, which takes [[Viewers Are Geniuses]] to levels that would make [[Death Note|Light Yagami]] throw up his hands in disgust.
* A frequent criticism of ''[[The Adventures of Huckleberry Finn]]'', where after Tom's plan to free Jim fails miserably, he reveals that Jim's owner had died off-screen, her will manumitting him, and the whole thing had just been for fun. [[Ernest Hemingway]] famously referred to this ending as "cheating."
* Anything by Simon R. Green, especially his ''Deathstalker'' series, lives and sustains itself on this trope. All of the heroes' asses must be sore from pulling plot devices and powers out of them.
* Parodied to death and back in ''Suvi Kinos'', where the little heroine's five uncles share a ''nom de plume'' and a serial story in a magazine which they write in turns. In a brotherly contest of wits, each uncle attempts to end their chapter in such a situation that the next in turn will have as much trouble as possible continuing. When the previous writer had left the story's heroine buried alive in a ridiculously secluded location, everyone was thrilled to read the next chapter, only to be let down with a blunt "''after she managed to miraculously escape, she had tea under the pergola''".
* There are roughly 2two actual concrete examples of this trope in ''[[Harry Potter (novel)|Harry Potter]]'', allboth of them intentional. The first instance is in book one, {{spoiler|when Harry's mother's love saves him from the wrath of Professor Quirell.}} However, due to the [[Rule of Symbolism]], this ending works out quite satisfyingly. The other is when {{spoiler|Harry is saved by the ''Priori incantatem'' at the end of book four in his duel with Voldemort}}. Both of these play a huge role in the later events of the series.
** You could say that {{spoiler|Fawkes coming into the Chamber of Secrets to save Harry}} is a ''[[Subverted Trope|subversion]]'' of this trope if you assume that it was foreshadowed by Dumbledore's vague parting words before he was asked to leave Hogwarts.
*** This leads to [[Fridge Brilliance]] when you realize that Dumbledore stated that he'd only ''truly'' be gone from the school when there were none left who were loyal to him. Fast-forward to {{spoiler|Harry's conversation with Tom Riddle in the Chamber, and we see him say that Dumbledore is the world's greatest sorcerer, not Voldemort, showing his loyalty}}.
** All other accused instances of [[Deus Ex Machina]] in ''[[Harry Potter (novel)|Harry Potter]]'' actually turn out to be [[Chekhov's Armoury]] and more [[Fridge Brilliance]].
* In ''[[The Blue Sword]]'' by [[Robin McKinley]], the main character, Hari, is vastly outnumbered by the enemy army but she sends her ragtag group of friends out to fight them anyway. Then, {{spoiler|most of them die, and she gets super upset. She climbs to the top of a mountain that wasn't there a minute ago, and uses her amazing magic powers that she didn't know she had to bring an entire mountain range down on the enemy army. Wouldn't it have been nice if she'd done that to begin with?}}
* Happens in ''[[The House of Night]]'', with a literal goddess (Nyx) appearing in ''Awakened'' at {{spoiler|Jack's funeral}} to comfort Jack's boyfriend Damien, and to help the Raven Mocker Rephaim get over his demonic nature (by turning him into a boy at night) so he can truly love Stevie Rae.
* [[Invoked Trope]] and [[Lampshade Hanging|lampshaded]] in the ''[[Star Trek]]'' novel ''I, Q'' by John de Lancie, in which Q, suddenly powerless, finds himself trying to survive on a raging battlefield and is surprised that he's lasted this long. The next time a rabid fighter charges him he just stands there until he's about to be torn apart when... [[Anvil on Head|an anvil falls on his attacker.]] Q is quite disappointed with this [[Deus Ex Machina]] largely because the Deus in question turns out to be an old enemy of his.
* The reason why the final work of [[David Eddings]], the ''Dreamers Tetrology'', was so poorly received was because every single book ended with the titular Dreamers having a dream that causes a natural disaster that destroys the enemy army. By the third book, ''the entire cast'' is fully aware of this fact, and knows that their job is to buy time until the next Deus Ex Machina solves areall their problems. Then in the final book, another Deus Ex Machina turns up which causes the [[Big Bad]] to have actually been defeated several centuries in the past, making the entire series technically ''never happen.''
* Deliberately done in ''[[Lord of the Flies]]'', where after {{spoiler|Jack sets the island on fire to kill Ralph}}, a Navy ship shows up out of nowhere to rescue them, symbolizing how quickly the appearance of an authority can change everything.
* At the end of ''[[A Tale of Two Cities]]'' its mentioned that Darnay and Carton happen to look a lot alike. {{spoiler|Carton uses this to switch places with Darnay in prison, so the cad is redeemed with his sacrifice and Darnay gets to live out his life with Lucy.}}
** Actually, the resemblance is mentioned early on in the story, {{spoiler|when Darnay is on trial for being a "spy".}}
* This happens almost constantly in the first book of ''[[The Bartimaeus Trilogy]]'', where something coincidentally happens to save the titular character when he gets into a seemingly inescapable situation(managing to escape from captivity when a little girl crashes her bike into the bushes where he's being interrogated in).
* Throughout David Weber's ''[[Out of the Dark]]'' the Shongairi invaders consistently lose ground battles to humans but [[Death From Above|pulverize the entire area from orbit]] afterwards. Towards the end they learn enough human tactics to capture a rebel village without resorting to orbital bombardment and develop a bioweapon to destroy what's left of humanity. But just as they're about to deploy the virus {{spoiler|the leader of the village they captured to experiment on turns out to be freakin' ''[[Dracula]]'' and he and a handful of newly-spawned vampires single-handedly wipe out the entire invasion force}}. Hints that {{spoiler|Dracula}} was present were scattered throughout the book, but were relatively subtle, and the reader is expecting a hard sci-fi war novel, and not {{spoiler|fantasy elements to creep in and sucker punch them}}.
* In Bulgakov's ''[[The Fatal Eggs]]'', an army of giant tropical animals is advvancing towards Moscow, when they are all killed off by an unexpected frost. Bulgakov calls the chapter "A Frosty Deus Ex Machina".
* In ''[[Who Cut the Cheese?]]'' by Stilton Jarlsberg, a cat slaughters the rats in CheesyUniverse and saves Ho from starvation.
 
== [[Live Action TV]] ==
* Some ''[[Buffy the Vampire Slayer]]'' fans would nominate the sudden appearance in "Touched" of a [[Forgotten Superweapon]] in the sewers, immediately followed in "End of Days" by the discovery of a "feminine counterbalance" to the Watchers (who had female members anyway) hiding in a pyramid-shaped crypt that Buffy had patrolled past for the entire seventh season.
** The conclusion of series 4, when they suddenly discover that they can all magically pool their power together so that Buffy is some sort of demigod, allowing a previously nigh-on indestructible foe to be abruptly, casually eliminated with a single blow. They then never use this power again (although this is explained by the potentially fatal nightmares it causes in the next episode).
** Or that in the Seventh Season Buffy is able to start telepathically talking to Willow and Xander. It's previously been established that *Willow* can talk to them all using telepathy, but this is because *''she*'' is thea witch and had presumably cast a spell to do so. There is also no indication that they can talk back to her, much less to each other. One would think it would have come up in the series previously that the characters could start talking to each with their minds at any given moment.
*** A definite runner up would be Olaf's Troll Hammer suddenly being the weapon of a god.
* On ''[[Angel]]'', Lilah actually uses the trope (although she says ''God'' ex Machina) to describe the situation after Angelus tricks everyone into believing he was Angel again.
** Episode 3.19, "The Price", {{spoiler|the little demon slug things are all miraculously destroyed by a previously unknown and completely unexplored power of Cordelia's, that she managed to not figure out how to access earlier in the episode. Sure, we get that Cordy has new powers that we're still learning about, but they certainly lucked out that one of them just happened to be demon slug extermination.}}
** The power doesn't just exterminate demon slugs. It purifies darkness. Huge light = death to creepy monsters from "Darkest of the Dark Worlds".
* When the time came for hosting duties to be handed over on ''[[Mystery Science Theater 3000]]'', Joel Robinson's escape was facilitated by a hidden escape pod actually ''called'' the ''Deus Ex Machina''; the explanation for its remaining undiscovered throughout the run of the series was that it had been hidden in a crate of Hamdingers, a particularly repulsive snack food that none of the crew wanted to touch.
Line 356 ⟶ 353:
* In the ''[[Doctor Who]]'' episode "Doomsday", reversing the effects of opening a breach to the void that's been pulling Cybermen and Daleks through not only seals the void, but pulls back in any material that passed through it due to them holding background radiation. Also, it can be closed from one end.
** The Season 3 finale is a glaring example of a Deus Ex Machina. A satellite network which was used for subtle mind control by the Master is suddenly capable of giving the Doctor superpowers (telekinesis, regeneration, de-aging, flight and a force-field) provided everyone in the world thinks the word "Doctor" at the same time.
** Finally, in "Journey's End" it is established that Donna will die if she remembers her time with the Doctor, there's an entire scene dedicated to how important it is that she never remember. In "End of Time" a year later, it's revealed that the Doctor was being somewhat melodramatic as he had in fact installed a buffer to prevent her from suffering any harm whatsoever if and when she remembers.. and just forgot to tell her family. In fact the act of remembering her previous life is actually pretty beneficial as it knocks out a bunch of master clones with no ill effects whatsoever.
** The series also occasionally uses [[Stable Time Loop|Stable Time Loops]]s as [[Deus Ex Machina]] as well:
*** In "The Big Bang", the Doctor is permanently sealed inside the Pandorica with his Sonic Screwdriver, which is the only thing that could be used to open it from the outside. Suddenly, a future Doctor appears to give Rory the Screwdriver, allowing him to open the Pandorica, thus allowing the Doctor to escape and give the Screwdriver to Rory.
*** Other examples of Deux Ex Machina [[Stable Time Loop|Stable Time Loops]]s saving the day: In the short ''"Time Crash''", the Tenth Doctor knows what to do because he saw what he did when he was the Fifth Doctor watching the Tenth Doctor do it. In the shortsshort ''"Time/Space''", an Eleventh Doctor from slightly into the future comes back and tells the present Doctor which level to pull. These shorts were for charity, though.
* ''[[Supernatural (TV series)|Supernatural]]'', "All Hell Breaks Loose": Okay, so the gates of hell had been opened but it's still a bit unbelievable/convenient that just as Azazel is about to shoot a restrained Dean, Sparkly!John fights him off just in time for Dean to get the Colt and finally kill the [[Big Bad]] himself.
* Used repeatedly by ''[[Monty Python's Flying Circus]]'' for comic effect, when they weren't otherwise deconstructing narrative convention. Think Graham Chapman's colonel stopping a sketch because it had become "silly". They have stated that they would do this when they had no idea how to end a sketch.
** ''[[MontyThere Python'swas Flyinga Circus]]'' has acomically literal example in the "Church Police" sketch. The mystery of the murder is solved by... The Church Police beseeching [[God]] for an answer. The Hand of God is immediately lowered onto the set (by a crane no less) and points out the killer. Very much [[Played for Laughs]].
* At the end of 1984's ''[[V (TV series)|V]]: The Final Battle'', Diana has activated a thermonuclear device that will destroy Earth. All attempts to deactivate it or remove it from Earth's atmosphere fail. At this time, [[Half-Human Hybrid]] Elizabeth, who is only a few weeks old but has [[Plot-Relevant Age-Up|aged inexplicably]] to a 10 year- old, steps forward, grabs the doomsday device, ''begins to sparkle and glow'', and somehow deactivates the nuke. There is absolutely no suggestion at any earlier time that Elizabeth might have magical powers, nor are magical powers any part of the preceding nine and a half hours of the science fiction miniseries.
** In A.C. Crispin's novelization, instead of sparkle-glow, Elizabeth hacks into the doomsday weapon's countdown sequence, and inserts an infinite loop. This was at least somewhat more justifiable, in that the novel contains earlier scenes in which Elizabeth was ''seen'' demonstrating a knack for mathematical puzzle-solving to go along with her unusally-rapid physical growth. The change to Sparkly Psychic Powers was the due to the usual [[Executive Meddling]], because we all know that [[Viewers are Morons]] and wouldn't be able to get their heads around the idea of a 6-year-old alien star child being able to hack a computer.
* In ''[[Star Trek: Deep Space Nine|Star Trek Deep Space Nine]]'', the founders remove the minefield across the Wormhole, so they can get nearly three thousand ships in reinforcements. This would tip the balance in the Dominion war. Sisko and crew head into the wormhole to [[You Shall Not Pass|try and stop them]], despite the fact they have no chance. In the Wormhole, they see the thousands of ships and are ready to throw down when the Prophets tell him he can't sacrifice himself because he is important to them and to Bajor. Sisko tells them that he has to try to stop them, then tells them that if they want to save Bajor, they're going to have to do something about the thousands of ships. So they do. What happens no one quite knows. Sisko's relationship with the Prophets had [[Character Development|grown to the point]] where asking them for a miracle may seem like the next logical step.
* Happened in several ''[[Star Trek: The Original Series|Star Trek the Original Series]]'' episodes.
** "Charlie X". At the end the Thasians show up and take Charlie away.
** In "Shore Leave", after the Enterprise crew faces innumerable threats to their safety, the Keeper shows up and reveals that the planet is just an amusement park.
Line 374 ⟶ 372:
** And then there's possibly a third Deus Ex Machina with the whole event that started the war. When humans and Minbari first meet, the humans accidently killed a few Minbari. What are the chances that the first Minbari ship they ever encounter was currently transporting the supreme religious leader and that he would be among those killed by exploding power lines?
* ''[[Medium]]'' had two Deus ex Machinas when Allison was faced with spiritual enemies: {{spoiler|The bad doctor (played by [[Battlestar Galactica|Romo Lampkin]] is finally caught by (presumably) the spirits of his wife and his mother. The [[Knight Templar]] stalker (he thinks psychics interfere with God's plan by catching criminals and saving people) is dragged to hell by the victims (almost two dozen in the space of about a week) of his psychic interference.}}
* The [[Battlestar Galactica (2004 TV series)|new ''[[Battlestar Galactica Reimagined'']]'' iswas full of them, more and more as the series progresses, and {{spoiler|it wrapswrapped up with a gigantic and very literal [[Deus Ex Machina]], when God using his "angels" rescues everybody and takes them to a pastoral paradise}}.
* ''[[Primeval]]'' had one of these at the end of the most recent series, when a baby raptor just happened to follow Helen and Danny Quinn through an anomaly and then proceeded to leap at Helen, throwing her off a cliff just as she was about to leg it. A real [[Incredibly Lame Pun|Deus Rex Machina]].
** Since the entire series is about creatures randomly wandering through time anomalies, it's not so much of an example. A much better example is the end of the first season: {{spoiler|The monster from the first episode shows up for no reason and eats the monster of the last episode. Completely awesome, but completely out of nowhere. }}
*** Well, seeing as the cast was in the gorgonopsid's ''time period'', it isn't that unusual that a gorgon would come charging down to face an intruder in its territory. In fact, seeing as the {{spoiler|Permian segment of this episode [[Timey-Wimey Ball|takes place before the Permian events of the first]], this could in fact be the same gorgonopsid seen in the very beginning of the series.}}
* Children's light-drama series ''[[Byker Grove]]'' had a spectacularly blatant [[Deus Ex Machina]] in its final episode - the episode in question was even * titled* "Deus Ex Machina". The characters are informed by the unseen Writers that they are fictional, and that their youth club and indeed their whole world is also fictional. The Writers are planning to end the story after this final episode by having the Grove bought and knocked down, but can't bring themselves to destroy their creations, so they give the characters some magic script paper to write their own endings. [[Hilarity Ensues]] as the characters write their dream endings, but forget to try to save the Grove until the last moment, when it is saved by [[The Ditz|Stumpy]], possibly the dumbest one of the whole bunch, who finds some previously unmentioned buried treasure (lazily foreshadowed just 2 minutes earlier in the episode). He buys the Grove, thereby saving it, and the moral of the story is that the characters have the ability to write their own story, and are no longer dependant on their creators for their existence.
* Season 2 of ''[[Dexter]]'' had a false [[Deus Ex Machina]]. {{spoiler|Doakes was inches away from being discovered being held captive by Dexter, and Dexter was rushing to intervene, only to discover the cabin had exploded, completing his attempts to frame Doakes as the Bay Harbor Butcher. Dexter actually refers to it as a "miracle" but later finds out Lila did it.}}
* An episode of ''[[Lost]]'' titled "Deus Ex Machina" features a literal case when Locke and Boone find a crashed Beechcraft plane filled with Virgin Mary statues (which turn out to be filled with heroin) and a radio. However, this improbable event [[Diabolus Ex Machina|only makes things worse]] ({{spoiler|killing Boone, breaking Locke's faith, and fueling Charlie's drug habit}}). At the end of the episode, another literal case occurs when Locke is banging on and screaming at the metal hatch he and Boone found. A light comes out of the door which renews Locke's faith in the island ({{spoiler|although this later turns out to have been caused by Desmond}}). {{spoiler|Strangely, though, Locke's screaming actually stopped Desmond from committing suicide, so this was a real Deus Ex Machina moment after all}}.
* ''[[iCarly]]'' has Freddie invent a '[[My Sensors Indicate You Want to Tap That|mood app]]' that can apparently detect that Sam is 'in love'. How it got made was never discussed. It never showed up in a previous episode. Despite being illogical and unworkable even by [[iCarly]] standards, for some reason everyone in the show takes it at complete face value the instant they turn it on. A total [[Deus Ex Machina]] used as a lazy [[Ass Pull]] to setup a 5 part [[Romance Arc]] without having to go through any of that pesky character development.
* ''[[Stargate Atlantis]]'' featured several Deus Ex Machinas in the form of the ''Daedalus'' ship.
** Or the ZPM conveniently found in Egypt in the season 1->2 Siege storyline, enabling {{spoiler|the Marines to come to the rescue.}}
*** In continuity of ''[[Stargate Atlantis]]'' it is, but at the same time ''[[Stargate SG-1]]'' [[Crossover|had two-parter about making ZPM be found in Egypt]]
** In ''[[Stargate SG-1]]'''s fan-special ''200'', this trope (among others) is parodied and [[Lampshade Hanging|lampshaded]] by the characters. The Deus Ex Machina comes in the form of the Asgard beaming the heroes out of danger [[Just in Time]], which happened a few times in the show normal.
* The producers of the Aussie soap ''Return to Eden'' were sort of forced into making one to tie up the loose ends from the final ep's [[Cliff Hanger]] ending, under the belief that they couldn't sell a show like that overseas. [http://www.youtube.com/watch?v=mzZsI79jghI Video.]
* Planned but unused literal example: {{spoiler|''[[Mortal Kombat: Conquest|Mortal Kombat Conquest]]'''s finale has Shao Kahn having an army [[Kill Them All|kill almost all of the good guys]], and [[Talking to Himself|gloating about this]] to the lone survivor Raiden. The plan was that Shao had broken the rules, so the Elder Gods would push the [[Reset Button]].}}
* In the finale of ''[[Power Rangers in Space]]'', [[Big Good|Zordon]] pulls off an [[I Cannot Self-Terminate]] suicide bomber attack that kills all the villains, transforms the redeemable ones into [[Human Aliens]] free of the taint of evil magic, and brings the red ranger's dead sister back to life after a few minute delay, neatly tying up all the loose ends of the series.
* ''[[Prison Break]]'' season four opens with Sucre, Bellick, and T-Bag somehow escaped from Sona. T-Bag could actually be explained, but not the other two.
* ''[[Monty Python's Flying Circus]]'' has a literal example in the "Church Police" sketch. The mystery of the murder is solved by... The Church Police beseeching [[God]] for an answer. The Hand of God is immediately lowered onto the set (by a crane no less) and points out the killer. Very much [[Played for Laughs]].
 
== [[Music]] ==
 
== Music ==
* In the [[Music Video]] for Cyndi Lauper's ''"The Goonies 'R' Good Enough"'', [[Andre the Giant]] appears out of nowhere (literally, just a puff of smoke, and there he is) to chase off the bad guys.
 
== [[Oral Tradition]], [[Folklore]], Myths and Legends ==
 
== Mythology ==
* Funnily enough, there are many times in Greek Mythology where the gods and goddesses fail to do this all the way through; they may do something which only partly rectifies the situation or has its own shortcomings to it - though that may be due to them being [[Jerkass Gods]].
** Not all instances from classical mythology are subversions, though. For example, at one point Hera offers her aid to the argonauts to get them through. It's the only time in all of antiquity when she was depicted as acting nice, let alone toward heroes. In fact, the entire name of the trope came from the theatrical device used (via a cherry-picker like machine) in ancient Greek plays based on the Greeks' myths.
 
== [[Radio]] ==
* While writing the first installment of ''[[The Hitchhiker's Guide to the Galaxy]]'', [[Douglas Adams]] found himself faced with a writer's dilemma: His characters had just gotten thrown out an airlock, and would pass out and die from lack of oxygen in 30 seconds, and it was so utterly improbable that another spaceship would come around within those 30 seconds to rescue them that to have had that happen would've been nothing short of a [[Deus Ex Machina]]. This gave him the idea for the Infinite Improbability Drive.
 
== [[RadioTabletop DramaGames]] ==
* While writing the first installment of ''[[The Hitchhiker's Guide to the Galaxy]]'', [[Douglas Adams]] found himself faced with a writer's dilemma: His characters had just gotten thrown out an airlock, and would pass out and die from lack of oxygen in 30 seconds, and it was so utterly improbable that another spaceship would come around within those 30 seconds to rescue them that to have had that happen would've been nothing short of a [[Deus Ex Machina]]. This gave him the idea for the Infinite Improbability Drive.
 
 
== Tabletop Games ==
* For some DMs, this is going to happen eventually. Whether it be a [[Total Party Kill]] where it shouldn't be, the players making a decision that turns out to be much worse than they could imagine, or other misadventure, a group of players will find themselves in a situation where the only way out is to basically cheat. Some DMs will just rewrite recent events, but for DMs who like to maintain the narrative, this may be the only way out.
* This is pretty much Modus Operandi for the Legion of the Damned chapter of Space Marines in ''[[Warhammer 4000040,000]]''. They appear without warning and aid beleaguered Imperial forces against the enemies of mankind, then disappear as soon as the battle is won just as suddenly as they came.
** Notably, this is one [[Deus Ex Machina]] that creeps the fuck out of the Imperials.
** Interestingly, one of the theories behind the Damned Legionnaires' appearance is that they are extensions of the God-Emperor's will. Although he's more like [[Incredibly Lame Pun|Deus IN Machina]]. {{spoiler|[[Don't Explain the Joke|You know, the Golden Throne?]]}}
* ''[[Warhammer Fantasy Roleplay]]'' and ''[[Dark Heresy]]'' have the [[1-Up|Fate Points]], which will unfailingly pull a character out of certain death and put them in a position where you are safe for the immediate moment. For small stuff a Fate Point will turn a killing blow to a glancing one, cause the enemies to take you prisoner instead of killing you on the spot, or let you dodge that lethal fall pit, but it becomes one of these when, say, you've just been killed by being spaced, caught inside a collapsing mine or building, or by having a [[Cosmic Horror]] biting your head off.
Line 415 ⟶ 408:
* In ''[[GURPS]]'', a character can buy an Advantage called Serendipity, which allows one extremely fortunate event per game session to take place at the player's discretion. Who knew "Deus Ex Machina" and "Serendipity" rhymed?
** The Gizmos advantage is designed to let players imitate fictional characters like Batman and James Bond, as described above.
* In ''[[Spirit of the Century]]'' Playersplayers may use their characters' Aspects, a Declaration, or even certain Stunts to create an unlikely coincidence happen. Players can also have gadgets and artifacts with undefined abilities, so you can decide that they do exactly what you want at the right moment (of course, once you've decided it stays that way at least until the end of the adventure)
* ''[[Shadowrun]]'' actually has a rule about this, called Hand Of God. When a PC ends up in some sort of [[No One Could Survive That|hopeless situation]], the PC's player can invoke the Hand Of God, having the GM save the PC via some form of Deus Ex Machina. There's a catch, of course: it has a hefty experience-point cost, and it can only be used once per character.
** Karma points can also be used to "purchase" smaller tweaks to fate, such as getting a success on a critical roll that had failed.
* In the tongue-in-cheek RPG ''[[In Nomine Satanis/Magna Veritas]]'' from [[Steve Jackson Games]], which is played with rolls of 3d6, anyone rolling 111 means a direct and usually over-the-top divine intervention happens. Which can be a very good thing if you're playing an angel, and a very ''bad'' thing if you're a demon. And of course, a roll of 666 causes a direct satanicSatanic intervention, which is... yes.
* An actual game mechanic in ''World of Synnibarr'' (really). If your character is on the verge of death with no hope of salvation, you actually get a ''dice roll'' to see if your patron deity turns up to haul your arse out of the fire.
 
== [[Theatre]] ==
 
* In [[Euripides]]'s ''[[Iphigeneia in Tauris]]'', the play ends with Iphigeneia fleeing with her brother and his friend. They are pursued over the sea, and a wind appears to make their escape more difficult -- butdifficult—but Athena appears to order the pursuit to stop. Many critics have noted that apparently Euripides introduced the wind, which serves no other plot function, ''solely'' in order to have an excuse to make Athena appear.
== Theater ==
* In [[Euripides]]'s ''Iphigeneia in Tauris'', the play ends with Iphigeneia fleeing with her brother and his friend. They are pursued over the sea, and a wind appears to make their escape more difficult -- but Athena appears to order the pursuit to stop. Many critics have noted that apparently Euripides introduced the wind, which serves no other plot function, ''solely'' in order to have an excuse to make Athena appear.
** Euripides is actually pretty notorious for this: he did it in ''[[Alcestis]]'' and ''[[Medea]]''. [[Aristotle]] called him on it in ''[[Poetics]]''.
*** And [[Aristophanes]] made him a character in one of his plays who at one point enters the stage with a crane.
Line 429 ⟶ 422:
*** Compare with the other Orestes, by [[Aeschylus]], the idealist of Greek theater. In his version (the play is called ''[[Eumenides]]''), it is Athena and not Apollo who sets things right in the end, and she calls for a trial. She suggests that the matter should be resolved not by blind obedience to the ancient law, but by having the accused judged for his crime in a court of law. Essentially, she says that human beings have matured enough to dispense justice themselves, without relying on supernatural forces and beliefs, and to vote whether they should punish or absolve, in the spirit of fairness. Moreover, the law should err on the side of compassion: when the jury comes up with a split vote, Orestes is found innocent. So, although technically you still have an actor and a crane at the end, this is NOT a deus ex machina. The goddess appears, but for a reason. Indeed, she drives home the whole point of the play. Aeschylus made a social commentary about crime, punishment and justice, and the goddess is a legitimate storytelling device. While Euripides made an action flick, pushed himself into a corner with a ridiculously convoluted plot, and then had to resort to a deus ex machina, a god who simply barges in and announces that Orestes is innocent for no apparent reason. Happy ending, have a good night. (At the time, that was actually considered modern, since a tragedy's normal ending was a huge bodycount.)
* In the prologue to his ''Amphitryon'', the Roman playwright [[Plautus|Titus Maccius Plautus]] parodied and [[Lampshade Hanging|lampshaded]] this trope somewhat by having the god Mercury explain to the audience that there's a precedent for having the gods be active characters in this play: wasn't it just last year that somebody performed a play on this very stage in which someone in dire straits called on Jupiter and (lo and behold) out popped Jupiter to save the situation?
* Shakespeare was generally good at averting and subverting this. ''[[Measure for Measure]]'' has an ending that probably seems like Deus Ex Machina to the characters, but we the audience have spent the entire play watching the[[The Chessmaster]] set it up. ''[[A Midsummer Night's Dream|A Midsummer Nights Dream]]'' ends amicably when the fairies step in and fix everything with magic, but it takes them three tries to get it right and in the meantime they screw everything up even worse. The ending of ''[[The Winter's Tale|The Winters Tale]]'' is either this or [[Fridge Brilliance]], depending on how you read it. But the pastoral comedy ''[[As You Like It]]'' is a straight example, with the father arriving out of the blue to put all conflicts to rest.
** In Shakespeare's ''[[Hamlet]]'', act IV, scene VI, {{spoiler|Hamlet is kidnapped by pirates on the way to England, who kindly return him to Denmark.}}
* The Mozart opera ''Idomeneo'' includes a literal [[Deus Ex Machina]]. Idamante is about to be sacrificed to Neptune, when the god's voice proclaims that he is to live instead and take the throne from his father.
* In the musical ''[[City of Angels (musical)|City of Angels]]'', writer Stine finally snaps after witnessing the culmination of the [[Executive Meddling]] on his [[Film Noir]] screenplay, and the producer sics the studio cops on him. Detective protagonist Stone (appearing as Stine's [[Spirit Advisor]] after his part was brutally miscast by the studio) goes over to Stine's typewriter and does a little [[Rewriting Reality]], making Stine beat up the cops and defeat the producer. For an encore, Stone types a little more and reunites Stine with the wife he cheated on: "A Hollywood ending!"
* Parodied in P.D.Q. Bach's ''The Stoned Guest''. At the end of the opera, [[Kill'Em All|every character is killed or otherwise dies]]. Then, for literally ''no reason at all'', they all spring back to life and sing about how it's a happy ending.
* Parodied in the [[Bertolt Brecht|Brecht]] play ''[[The Threepenny Opera]]'', where the playwright actually goes to the length of having his characters explain that the play really ends differently... but, for the sake of a happy ending, a royal official enters on horseback to make everything better. The play ends with a comment saying how unlike real life this is.
Line 438 ⟶ 431:
** Brecht was very fond of parodying - and thwarting - an audience's need for closure and happy endings, as it was part of his theatrical manifesto to leave an audience ''un''satisfied, and thus hopefully motivated to go out into the world and change things for the better.
* This is the case for a good 90% of [[Gilbert and Sullivan]] operettas.
** Parodied by the ending of ''[[The Pirates of Penzance]]''. Turns out {{spoiler|all the pirates are noblemen.}}
*** Or maybe it's when it when they all instantly surrender when ordered to do so in the name of the Queen. The person who announces that they're all {{spoiler|noblemen who have gone wrong}} [[Blatant Lies|doesn't seem to have any way of knowing]].
** cf. ''Trial by Jury'' and ''HMS Pinafore''
Line 444 ⟶ 437:
**** It's not Ralph it's Reif
* [[Moliere]] tended to lean on this to wrap up many of his comedies. In ''[[Tartuffe]]'' the protagonists are saved in the last act when a police officer shows up out of the blue with an order from the king arresting the villain. The conclusion of ''The School for Wives'' is so bizarrely complicated that we're still not quite sure what happened, but the gist is that the starcrossed lover's respective families show up to let them know that they had arranged their marriage years ahead of time (without either of them knowing it).
* Spoofed, perhaps even [[Deconstruction|deconstructed]] by [[Woody Allen]] in his one-act play ''[https://web.archive.org/web/20070516031656/http://members.fortunecity.com/bookdepository/plays/god/god2.html God]'', an excellent if strange production which has [[No Fourth Wall]] whatsoever; it's nominally about two Ancient Greeks trying to put on a play right there, when [[Theme Naming|Trichinosis]] shows [[Theme Naming|Diabetes]] his new invention, a machine for lowering the gods to the stage in order to solve characters' problems. (He boasts that he's going to make a fortune with it: "Sophocles put a deposit on one. Euripides wants two.") Unfortunately, when turned on, it winds up strangling the actor playing Zeus.
{{quote|'''Diabetes''': God is dead.}}
 
== Tabletop[[Video Games]] ==
 
== Video Games ==
* While ''[[Deus Ex]]'', along with the two other games in the series, were ''named'' after the trope, they do not really feature it, though the original game does feature a [[Deus Est Machina]].
** The protagonist of the first game was the dues ex. The beginning of the game is set in a crapsack world where corporations and conspiracies rule the world and it looks like nothing can improve it. Then Denton comes along and everything is changed. Almost no one could have predicted Denton's actions or just how drastically he would change the world around him. Thus to the any normal person looking to change the world Denton would appear to be a Deus Ex Machina. This is made all the more obvious by the fact that Denton is arguable a [[Deus Est Machina]] himself, being one of the worlds first nano-augmented soldiers.
* Possible subversion in the ''[[Mortal Kombat]]'' series; Raiden, Earthrealm's god of thunder and supposed Protector, seems to be in the perfect position to pull this each and every time the baddies go after our home realm (which they do in every game), but due to harsh Prime Directive meddling by his supervisors the Elder Gods, can't get away with it without either giving up his godly status temporarily and/or hiring human proxies to do his work for him...and even then, he's punished severely for his meddling.
** Also subverted in the opening to ''[[Mortal Kombat: Deception]]'' - Raiden uses a previously unmentioned, non-foreshadowed release of his essence in the form of a massive explosion in an attempt to kill [[Big Bad|Onaga]]. He doesn't even blink.
* Regal Bryant from ''[[Tales of Symphonia]]''. For the entire game, he runs around wearing shackles, and fights with nothing but kicks. However, at one point late in the game, {{spoiler|everybody is caught and put into a cell. Regal then casually uses his hands and destroys the bars of the cell with a chi blast, a feat that no other character can accomplish... then tells everybody that he'll continue fighting with his feet only.}}
** Justified, as Regal had said he wouldn't take his shackles off until [[Big Bad|Cruxis]] was defeated and that he would never kill with his hands again. Also justified in that he said he was much more powerful fighting with his hands than with his feet.
Line 459 ⟶ 451:
** The only inclination the player had about that is that {{spoiler|Sonic hadn't shown up yet, despite being the most awaited character in the game.}}
** Slightly justified due to [[Real Life]] circumstances. {{spoiler|Sonic was added to the game very late in the development process, likely when the whole Subspace Emissary story was nearing completion. Of course, the developers had to add him into it ''somewhere.''}}
* Parodied in ''[[Banjo-Kazooie]] Nuts and Bolts'' with the [[Dungeon Master|Lord of Games]]. Technically, his powers are limited in that he only can control [[Video Game|Video Games]]s...but given that this ''is'' a [[Video Game]], his power is at [[Reality Warper]] levels.
* ''[[Sonic Rush Series|Sonic Rush Adventure]]'': Following the fight between Super Sonic & Burning Blaze and the Egg Wizard, the mech begins to unleash its ultimate attack, only to be distracted by Marine firing some kind of energy beam from her fist. Up until this point, there was nothing in the story that suggested that she was anything but a normal, if a tad annoying, little girl.
** In ''[[Sonic the Hedgehog (2006 (video game)||Sonic the Hedgehog 2006]]'', Sonic gets killed [[Plotline Death|plot-wise]]. However, suddenly Elise feels "Sonic's presence in the wind" and someone has an idea to try to bring him back with the power of the Chaos Emeralds.
* In ''[[Marathon Trilogy|Marathon]]'', those useless BOBs who would get in your way just to get shredded by aliens save your life after you are captured. TWICE.
* The existence and implications of Deus Ex Machinas is a huge plot point in ''[[Resonance of Fate]]''.
Line 467 ⟶ 459:
* At the end of ''Ys V'', when the [[Ominous Floating Castle|city of Kefin]] is disintegrating, all the characters manage to escape except for Nina, and she is at first presumed to have been destroyed along with the city. However it is later revealed that the phantom Stoker teleported her out at the last second.
** In the ending of ''Ys: The Ark of Napishtim'', Adol is trapped inside the collapsing [[Evil Tower of Ominousness]] of Napishtim, with no apparent way out, and it seems [[No One Could Survive That]]. Even worse, Napishtim has summoned a Mega Tsunami in a final act of [[Gaia's Vengeance]] {also a [[Diabolus Ex Machina]]} to wipe out the "false civilizations" of Eresia. Then the goddess Alma(or some say it's a manifestation of the souls of the Rehda), in the form of a glowing angelic figure, descends from the heavens and casts a [[Beam Spam]] which nullifies the mega-tsunami and the Great Vortex, averting [[The End of the World as We Know It]], and Adol is safely returned to shore.
* At the end of ''[[EarthboundEarthBound]]'', the player characters are absolutely helpless until ''the player him/herself'' kills the final boss.
* [[Lampshade Hanging|Lampshaded]] in ''[[Mother 3]]'' when Lucas and company fall from an aircraft. Lucas and Boney land in a conveniently-placed pile of hay. Turns out the ghost of Hinawa told Alec to pile hay in the exact spot where they would fall, through a dream. Wess remarks on this dream of Alec's, saying it's "as strange as strange can be".
** Oh, and additionally, Kumatora and Duster just happen to land in places where they are rescued by friendly folk. This part is not lampshaded, or even explained at all.
* The dramatic mood of the scene betrays the fact that the 'Azoth Dagger' from ''[[Fate/stay night]]'' came out of nowhere. The fact that Rin had been brutally assaulted such that there is no way she could have hidden it, makes you wonder about the possible meanings of it's name...
** No so much out of nowhere if you know ''[[Fate/Zero]]''. But yeah, the hiding this is a bit weird, unless she has a pocket large enough to fit a shortsword in her Grade S [[Zettai Ryouiki]] skirt.
* ''[[Kingdom Hearts]]'' has gained a reputation for [[Kudzu Plot]] and some rather bizarre twists (even for a series whose basic premise is Final Fantasy meets Disney), but few of them are introduced simply to pull the cast out of an unsolvable deathtrap. During the final battle in ''II'', Xemnas collapses his tower and takes off on a giant mechanical dragon, with Sora and Riku trapped on the crumbling base. Their escape route? A previously-unseen hover bike. The bike's presence there is the unexpected part, not that it could exist in the first place - it just appears out of nowhere so the two of them can keep up with their enemy.
* ''[[Mega Man X]] 6'' had a huge ass pull when regarding the return of Zero. Despite being blown up with nothing but an upper body torso left in ''X5'', he appears healthy and alive in ''X6'' with [[Unexplained Recovery|absolutely no explanation of how he survived]]. Though this is easily side stepped by the fact that he is a robot, and robots don't truly die.
** Fortunately, X6 at least acknowledges this. Though Zero claims that he 'hid himself away to repair himself', there's a conversation between Zero and Dr. Light where Zero asks Dr. Light if he knows who it was that repaired him. He doesn't get an answer, but it's still a better explanation than the [[Ass Pull]] one that Zero gives.
Line 495 ⟶ 487:
** The second example may be somewhat justified, as it's implied that {{spoiler|it was done by [[God|Arceus]]}}
* ''[[Riviera: The Promised Land]]'' has one of those right in the ending, when {{spoiler|the girl you love, having been sacrificed by Hector to bring Seth back, is revived with no further explanation by Ursula.}}
* For the finale of ''[[Ōkamiden|Okamiden]]'', you're whisked away to what seems like another dimension. The only one who came with you, other that the [[Big Bad]] {{spoiler|who is possessing Kuni}} and his [[The Dragon|Dragon]] {{spoiler|Kurow}}, is a tiny poncle named Ishaku. No one thinks that Chibi can take on the [[Big Bad]] alone, so you help Ishaku summon your partners... by ''cutting space and time''.
* In ''[[Final Fantasy IV]] -Interlude'', after {{spoiler|Rydia}} leaves the party while going up {{spoiler|the tower of Babil}} you are attacked by three robots. After taking some damage they unite into one robot which proceeds to knock you into critical status. {{spoiler|Edge}} comes out of nowhere and helps you saves you by stunning it. {{spoiler|Lampshaded by the fact its name is the Deus Ex Machina.}}
* In ''[[Final Fantasy VIII]]'', late in the third disc of the game Squall and Rinoa have been set adrift in space, and are rapidly running out of oxygen. Then, out of nowhere, a massive adrift spacecraft known as the Ragnarok floats toward them without warning and they manage to board it. It fortunately has enough oxygen and working systems that they can pilot it back to the planet. Though it does come out of nowhere at first, exactly why the Ragnarok was out there and how it came to its current state is eventually explained.
* In ''[[The World Ends With You]]'', {{spoiler|[[The Bad Guys Win]] (it helps that it was a case of [[Evil Versus Evil]]), and technically speaking, Shibuya should have been destroyed. Why wasn't it? Well, because the one who had planned on destroying it developed a fascination with the protagonist's ass.}} No, really.
** The reason behind ''why' {{spoiler|it wasn't destroyed}} is actually not a Deus ex Machina if you follow what Neku says at the end and possibly {{spoiler|his refusal to shoot Joshua}}. The game gives a perfectly legitimate reason behind why it happened like it did.
* In ''[[Video Game/Crash OfBandicoot The(video Titansgame)|Crash Ofof Thethe Titans]]'', Coco Bandicoot requests Crash Bandicoot to hand her the "Transpalooper" a purple device. They are interrupted by Dr Cortex, and Crash simply pockets the device. After the final boss, Coco brings up that the giant killer robot can be shut down if she simply had her "Transpalooper", which Crash conveniently has had this whole time. A perfect example of the third Deus Ex Machina.
* Although not part of the story, Saber in Fate/Extra tells the player character a story that introduces about ''one hundred'' characters, only for them to all be ignored. When asked about what happened to them, she mentions they're all made happy by a Deus ex Machina.
* {{spoiler|The Catalyst and the Crucible}} at the end of ''[[Mass Effect 3]]''. Though their existence and purpose had been either foreshadowed or known throughout the game, their true nature and abilities seem to come out of nowhere. {{spoiler|The Catalyst is actually [[Bigger Bad|the Reaper's master AI]], and explains how the Crucible has the power to not only destroy the Reapers, but also take control of them, or merge synthetic and organic life into a hybrid creation.}}
* ''Warcraft'' has so many "getting crap past the radar" moments combined eithwith Deus Ex Machina characters that then get sucked into the lore that Chen Stormstouts (the first real Warcraft panda) existence seems rather normal
* In ''[[The Legend of Zelda: The Wind Waker]]'', when Ganondorf is about to kill Link, Tetra literally comes out of nowhere and distracts Ganondorf. Ganondorf then strangles Tetra and soon realizes that Tetra is a descendant of Princess Zelda. Then out of nowhere, Komali and Quill The Postman swoop in and carry Link and Tetra out of the Forsaken Fortress. Valoo then rises up towards Ganondorf and then burns down the fortress with Ganondorf inside. Quill and Komali then make their escape with Link and Tetra.
* In ''[[Sonic Forces]]'', During the scene when the Resistance is fighting Eggman's army, Infinite is about to unleash an attack on the Resistance. However, E-123 Omega somehow got back into comission, and appears out of nowhere and fires lasers at Infinite. Infinite blocks the lasers effortlessly however. At the end of the game, Rouge calls out Omega for being a literal Deus Ex-Machina.
 
== [[Web Comics]] ==
 
* [[Lampshade Hanging]]: In ''[[Questionable Content]]'' the cast are trapped in an alley by a crazed [[Knight Templar]] / [[Anti-Hero]] and her robot [[Sidekick]] until they are saved at the last minute by their own [[Robot Buddy|robot sidekicks]] under the battle cry "[[Deus Ex Machina]]!". QC, one should note, is set in a slightly-warped version of the ''real'' world, somewhere between [[Mundane Fantastic]] and a [[Speculative Fiction|sci-fi]] or [[Superhero]] world.
== Web Comics ==
* [[Lampshade Hanging]]: In ''[[Questionable Content]]'' the cast are trapped in an alley by a crazed [[Knight Templar]] / [[Anti-Hero]] and her robot [[Sidekick]] until they are saved at the last minute by their own [[Robot Buddy|robot sidekicks]] under the battle cry "[[Deus Ex Machina]]!". QC, one should note, is set in a slightly-warped version of the ''real'' world, somewhere between [[Mundane Fantastic]] and a [[Speculative Fiction|sci-fi]] or [[Superhero]] world.
* In an apparently unintentional [[Lampshade Hanging|lampshaded]] example, Miranda of ''[[Dominic Deegan]]'' has taken to calling herself "Deus Ex Momina," being a rather jarring [[Parent Ex Machina]] in what is neither a sitcom nor starred by a teenager. [[Word of God]] states the joke was her terrible delivery of the joke rather than being one of the most [[Meta Guy]] moments the comic's ever had. There are other events where this happens, sometimes even being mentioned by the cast. "[http://www.dominic-deegan.com/view.php?date=2004-03-01\]"
* Justified: ''[[Sluggy Freelance]]'' features a literal Dea Ex Machina who is not a literary Deus Ex Machina in the "[http://www.sluggy.com/daily.php?date=040519 That Which Redeems]" story arc. The goddess of good has been trapped in the Demon King's refrigerator since the conquest of her world, but as the story had been told within the comic years previously, her appearance was widely predicted by the readers. So when she's freed from the fridge and sets things right, no one's really surprised.
** Also in that unsealing the goddess was a Torg's deliberate goal that he struggled and sacrificed for, whereas a Deus Ex Machina is by definition easy and out of nowhere. This is really more [[Sealed Good in a Can]] (though if it were a can instead of a leaky ziplock, we'd be short several plotlines).
** The "Holiday Wars" arc plays with it and [[Double Subversion|doubly subverts]] the [[Deus Ex Machina]]. We learn that there exist three magic "Deus ex ova", Latin for "God from the eggs", magic eggs created by the Greek gods that will hit the [[Reset Button]] if broken, and that Bun-Bun's main antagonist [[Santa Claus]] has one of them. Finally, when Santa is left with no other options, he tries to use it, but {{spoiler|Bun-Bun, being the Easter Bunny, has hidden the egg}}. Later, {{spoiler|Bun-Bun himself is forced to use it to save his own life, magically bringing all of his enemies back to life and defeating him, but leaving him alive.}}
** The end of 'Oceans Unmoving' literally has a god from out of nowhere, or at least his blood relative. While the sudden appearance of the brother of a Time God living in the basement of a timeless dimension is thematically consistent, he really seemed to appear just in time to wrap up the storyline quicker. Bonus points for wrapping the continuity to the beginning of the series though, and explaining Bun-bun's appearance without revealing any mysteries about his past.
*** This is lampshaded, since Uncle Time automatically assumes that Bun-Bun [[Riddle Me This|solved his riddle]], which led him there. Bun-Bun has never even heard of the riddle or Uncle Time, despite all of the lore and myths that the story invokes.
* The plot of ''[[Errant Story]]'' is kicked off when Meji casts a spell to invoke a Deus Ex Machina so she can find a way to complete her senior project and graduate from wizard school. As a result, she accidentally discovers, in the school library, the only surviving copy of a book that contains some information that the elves were trying to keep secret. Oddly, despite the [[Lampshade Hanging|name of the trope being mentioned]], this is ''not'' a normal example of the literary trope, because it serves to drive the plot rather than resolve it.
* ''[[The Adventures of Dr. McNinja]]'' hangs a lampshade on this [httphttps://wwwweb.archive.org/web/20090228161007/http://drmcninja.com/page.php?pageNum=9&issue=3 here].
* [[Dinosaur Comics|T-Rex]] explains it in his inimitable style [https://web.archive.org/web/20081218123133/http://www.qwantz.com/archive/001354.html here].
* [httphttps://wwwweb.archive.org/web/20130510202542/http://somethingpositive.net/sp02132009.shtml The resolution] of the sexual harassment subplot in ''[[Something *Positive]]''.
** Fits to a tee, but not the first time it's happens. So at least the author can claim he didn't ''completely'' [[Ass Pull|pull out from nowhere]].
* ''[[Schlock Mercenary]]'' on several occasions. Also lampshaded [http://www.schlockmercenary.com/d/20050319.html here].
* ''[[The Order of the Stick|Order of the Stick]]'': The MitD plays this role in [http://www.giantitp.com/comics/oots0661.html this comic]. While the Monster in the Darkness is a mystery to everyone except Rich Berlew; this new ability introduced comes right out of nowhere and at the most convenient of times for our heroes. The fact that it also reunites them back with their friends does not help.
** There is [[Wild Mass Guessing]] that it can do that because it has Wish as a spell-like ability. However, almost all creatures with such abilities are Outsiders, which have oddly-colored [[Speech Bubbles]] in ''[[The Order of the Stick|Order of the Stick]]''. The MitD has normal [[Speech Bubbles]].
*** Seeing as different Outsiders have different [[Painting the Medium|speech bubble colors]] and OoTS is [[No Fourth Wall|exactly the sort of series]] that would use [[Medium Awareness]] as a plot point, it's fully possible that MitD is just a kind of creature that uses [[Speech Bubbles]] that are white with black text and outlines.
Line 528 ⟶ 521:
** [http://www.giantitp.com/comics/oots0441.html This comic] also features something that is hard to accept at face value (no air turbulence and coincidence). It's deliberately played off under [[Rule of Funny]] so it is excusable, but still tastes like a [[Writer Cop Out]]. Receives [[Lampshading]] [http://www.giantitp.com/comics/oots0504.html here].
* ''[[Bob and George]]'', where rather often various "convenient plot devices" were thrown in (to the point that even the author of the series himself became a regular cast member).
* Parodied in ''Tom the Dancing Bug'' [https://web.archive.org/web/20130804011437/http://lost.co.nz/library/godman/strips/25-Billy_Dare_Smugglers_Cape_chapter_MVLXX.html here].
* In ''[[Game Destroyers]]'', Ferahgo is a purposeful example of this, and Jipples has become a minor, though lazy, example of this as well.
* ''[[Kevin and Kell]]'' has seen its fair share of these in its [[Webcomics Long Runners|ten years or so as a comic]], though one arc taking place during June of 2011 involving factional elections amongst rabbits comes to an end with a completely unexplained, contrived resolution that [[Status Quo Is God|restores the status quo]], just in time for [[Invincible Hero|the Dewclaw family to escape their latest conundrum.]] Made all the more jarring by their salvation in this situation spontaneously appearing and disappearing with no indication from where or why it came and left as it did.
* Actually named in ''[[Gone With the Blastwave]]''.
* In ''[[Sinfest]]'', [httphttps://wwwweb.archive.org/web/20140209191913/http://sinfest.net/archive_page.php?comicID=3544 Lil' Evil complains to God that an event is one.]
* The ''[[Dreamwalk Journal]]'' [[Spin-Off]] ''Nightshade the Merry Widow'' has two big deus ex machinas:
**In the "Beewolf" arc, the heroes suffer a major [[Oh Crap]] moment when they accidentally destroy the Beewolves' hideout and think they've killed everyone. (The comic depicts a society in which nobody ''ever'' kills anybody. Go figure.) They are relieved to discover that the local deity has stepped in and rescues everyone at the last moment - literally a ''deus'' ex machina.
**In the "Bahoogie and Beans" arc, our heroes are baffled as to how the Redlip ant queen could have survived a plunge into the deep realms, where the atmospheric pressure and composition should be lethal to anyone from the upper realms. It turns out they've been saved by {{spoiler|the [[Living Ship]] that originally seeded their planet with their human-arthropod hybrid ancestors}}. In this case, a deus ex ''machina''.
 
== [[Web Original]] ==
 
* In ''[[The Gamers Alliance]]'', when Leon is about to die in battle, a black wolf appears all of a sudden and saves his life. It later turns out that the wolf was in fact [[Anti-Villain|Kagetsu I]] whom Leon had unknowingly freed earlier. [[Worldwide Punomenon|Technically Kagetsu was only a half-god, though.]]
== Web Original ==
* [[Lampshade Hanging|Lampshaded]] in ''[https://web.archive.org/web/20130627031718/http://onering.legendaryfrog.com/movies_or2_w.php The One Ring to Rule Them All 2]''. Frodo and Sam escape their lava trap with no other explanation than "plot device, Mr. Frodo, plot device".
* In ''[[The Gamers Alliance]]'', when Leon is about to die in battle, a black wolf appears all of a sudden and saves his life. It later turns out that the wolf was in fact [[Anti-Villain|Kagetsu I]] whom Leon had unknowingly freed earlier. [[Worldwide Punomenon|Technically Kagetsu was only a half-god, though.]]
* [[Lampshade Hanging|Lampshaded]] in [http://onering.legendaryfrog.com/movies_or2_w.php The One Ring to Rule Them All 2]. Frodo and Sam escape their lava trap with no other explanation than "plot device, Mr. Frodo, plot device".
* Critics of the ending to ''[[Survival of the Fittest]]'' v1 tend to claim that the only reason that Adam Dodd won was a series of these. Others who believe that the alternate universe "Afterlife" RP signifies the existence of the supernatural in SOTF claim that the spirits of [[True Companions|his dead friends]] may have been [[The Power of Friendship|protecting him]].
* [[Played for Laughs]] in ''[[The Onion]]'' Sports Dome reporting a collapse of the Staples Center had brought an early end to a basketball game between the Los Angeles Clippers and the Phoenix Suns where the home team Clippers were in a losing end of a [[Curb Stomp Battle]].
* Averted during the course of [[The Nostalgia Chick|The Dark Nella Saga]] with the jar of mayonaise. While it does allow for teleportation {{spoiler|and resurrection}} it was shown being injected with "a plot device" by Lord [[MacGuffin]] early on in the saga. The only remaining question is how [[Mad Scientist|Dr.]] [[Hot Scientist|Tease]] got the jar in the first place...
* ''[http://www.wowwiki.com/Chronicle_of_the_Annoying_Quest Chronicle Of The Annoying Quest]'' features a character ''named'' "Dues X. Machina" (Pronounced "doose"). The name seems to be an ironic joke, however, as he doesn't actually do anything plot-related in his first appearance (though he does provide another excuse for [[Hilarity Ensues|hilarity to ensue...]])
 
 
== [[Western Animation]] ==
* The end of the ''[[The Secret of NIMH]]'' film just ''screams'' [[Deus Ex Machina]]. Supposedly, the "stone" that does [[MacGuffin|something...powerful]] manages to respond to Mrs. Brisby's...emotion and then pulls the cinderblock out - with no loss of life (or mud, which had been flooding the house). Auntie Shrew likely survived because she fell into a [[Plot Hole]] when the mud started flooding the house.
** This was clearly meant to be a [[Chekhov's Gun]] given Nicodemus' earlier line "Courage of the heart is very rare...The stone has a power when it's there." However, given that the power is never specified, it qualifies as a Deus Ex.
** May be [[Fridge Brilliance]] though; the stone represents all that the rats have been trying to achieve - a higher level of existence and independence, maybe even obtaining supernatural powers (although that may be too far out).
** The stone was given to Mrs. Brisby by Nicodemus. He's got mysticism and uncertain yet mighty power all over the place when he's on screen, even before we fully see him. It would be a shocker if the stone ''wasn't'' profoundly magical in some way that Nicodemus failed to mention.
* Parodied in an episode of ''[[American Dad]]''; just when Stan and his family are about to be stoned to death, George Bush and the army arrive to save them with the line "Democracy has arrived!", throwing an American flag through the judge. Instantly, all of Saudi Arabia becomes some kind of democratic paradise, and Stan gives a line parodying the end of [[It's a Wonderful Life]]. However, none of it mattered in the end, as it was [[All Just a Dream]].
** Though a real [[Deus Ex Machina]] took place in the form of Roger using his "husband"'s (long story) apparent political influence to call the Saudi executioners just in time to call off the stoning and free the Smiths.
* ''[[Megas XLR]]'' got most of its humor from the fact that the titular [[Humongous Mecha]] was a literal [[Deus Ex Machina]]. In fact, one of the numerous buttons on its control panel was even marked "Save the World" (which was actually missing).
** More often it was subverted as whatever was supposed to be a [[Deus Ex Machina]] of the episode backfired or misfired and the thing that ends saving the day turns out to be [[Brick Joke|a seemingly unimportant plot element from earlier in the episode]].
* Spoofed in the [[Christmas Special]] ''[[Olive the Other Reindeer]]'': Olive gets locked in the van of a mean-spirited mailman who wants to ruin Christmas. Her method of escape is contained within a box addressed "To: Olive From: Deus Ex Machina"
* ''[[South Park]]'': Mintberry Crunch of the Superhero arc, full stop.
Line 559 ⟶ 553:
** Don't forget the ''[[Lord of the Flies]]'' parody episode where all the kids are left stuck on the island at the end and [[James Earl Jones]], in a voiceover narration role, says that they were eventually saved by "...oh, let's say, Moe".
** [[Played for Laughs]] in ''[[The Simpsons Movie]]'', where Maggie shows up to defeat the villain completely out of nowhere.
** That infamous episode where Bart &and Lisa help a homeless man win a lawsuit against Itchy & Scratchy studios. Itchy & Scratchy gets back on its feet thanks to two kids named [[Identical Stranger|Chester & Elisa]].
* The ''[[Aladdin (Disney film)|Aladdin]]'' TV series [[Lampshade Hanging|hung an enormous lantern]] in the form of a [[Parental Bonus]]: One episode involved the hunt for the "Orb of Machina", a [[MacGuffin]] intended to cure Genie's cold.
* At the end of the ''[[Transformers Generation 1]]'' episode "A Prime Problem", Megatron throws Spike out of his rocket, but then Powerglide shows up out of nowhere and saves him. It could be assumed that he was there all along and simply hadn't appeared on screen, except for the fact that before this episode, all but two of the Autobots had had land-based altmodes.
** Later, in ''[[Transformers Super God Masterforce]]'', The Autobots are revealed to be equipped with non-lethal knockout gas just as Decepticon zombies attack Rome.
* ''[[The SpongeBob SquarePants Movie]]'' writes itself into a corner that can only be rectified by a wonderfully ridiculous parody of [[Twisted Sister]]'s I Wanna Rock. The villain's plans are undone by the explosive [[The Power of Rock|power of rock]] music. Once the smoke clears, SpongeBob is left dangling on the end of a rope suspended above the stage in a neat reference to the literal Greek tragedy deus ex machina.
* ''[[Avatar: The Last Airbender]]'' series finale had a two for one special. Aang is [[Incredibly Lame Pun|Aangsting]] about what to do about Ozai so he consults his past incarnations. The majority vote goes to "Kill the bastard" but Aang, being an [[Actual Pacifist]] on account of Airbender teachings, holds out (despite that his Airbending predecessor advising him that he should [[Shoot the Dog]]). Then it turns out he was on the back of a lion-turtle all along, and it teaches Aang Energybending, allowing him to stop Ozai without killing him.
** It's a bit of a subversion because in "The Library" Sokka observes [[Chekhov's Gun|a picture of a Lion Turtle]].
* ''[[Camp Lazlo]]'': Lumpus is riding atop his walking lawnchair the elves built him (don't ask). He has Santa, who is armed with naught but a tetherball, down on the ground (''don't'' ask). Slinkman and the kids have failed in rescuing the jolly old elf and are lying in a heap. This looks like the end...'til Lumpus is hit by a meteor. There ''was'' mention of a meteor shower at the very beginning, but still.
Line 571 ⟶ 565:
** Perry and Doof in "Phineas and Ferb Get Busted".
* ''[[Teen Titans (animation)|Teen Titans]]'' loved doing this.
** Season 3: Cyborg is the only Titan left who can resist Brother Blood's [[Mind Control]]. Blood has effortlessly torn Cyborg's leg and arm off, controlled the other Titans, and is ripping Cyborg's circuitry apart, trying to find the component that makes Cyborg immune. Cyborg announces [[Heroic Resolve|"It's my SPIRIT!"]] instantly rebuilds a replacement arm and leg, ignores Blood's energy blasts (the same ones that blew his arm and leg off 15fifteen seconds ago) and takes Blood out with one punch.
*** They at least [[Lampshade Hanging]] it this time.
{{quote|'''Beast Boy''': [[Doing inIn the Scientist|So are you magic now or something?]]<br />
'''Cyborg''': I'm sure it was a one-time deal. }}
**** And they explain the mechanic fine (Blood was trying so hard to use his [[Psychic Powers]] to control Cyborg's mind that he accidentally allowed Cyborg to access them). The problem was, they explained this ''after the fact'', with no indication beforehand that something like this was possible or that Blood had anything but complete control over his powers. This is especially jarring precisely because it ''wouldn't have taken much foreshadowing to establish the mechanic beforehand''. Sigh.
Line 581 ⟶ 575:
'''Rhinox''': ''History's still being made!'' }}
** Actually, it's not a Deus Ex Machina. If you watch the of Optimal Situation, you can see the Maximals constructing an outpost inside of Mt St. Hillary out of scrap metal, but their only use of the Ark is piggybacking on its power systems. [[Fridge Brilliance|Presumably,]] [[Butterfly of Doom|they didn't want to screw with history anymore than they absolutely had to.]]
* ''[[The Fairly Odd ParentsOddParents]]'' [[Musical Episode]]: the loophole in Flappy Bob's contract that defeated the pixies isn't even hinted at until the final act.
* ''[[Winx Club]]'': In the tenth episode of season 2, Bloom discovers her healing powers when she brings Sky back from the dead.
* In ''[[Tiny Toon Adventures: How I Spent My Vacation|Tiny Toon Adventures How I Spent My Vacation]]'', Buster and Babs are saved from a fatal fall by a plot hole (a literal hole in the ground, that magically transports them back home).
{{quote|'''Buster:''' I was wondering how our hack writers would get us out of this one.}}
* Several ''[[Earthworm Jim (animation)|Earthworm Jim]]'' episodes ended with very blatant examples, all operating under [[Rule of Funny]]. An example is when Evil the cat unleashed a [[Monster Clown]] [[Cosmic Horror]] that was unstoppable. Jim calls an [[Obstructive Bureaucrat]], who demands the [[Cosmic Horror]] obtains a license to destroy the universe, the stacked-up application form for which extends above the atmosphere. Which must be filled in in triplicate of course. This is discounting the many times were the bad guy is beaten, somehow gets back into power in the last few seconds, then gets hit by the [[Running Gag|falling cow.]]
* Invoked in ''[[Re BootReBoot]]''. Mainframe is damaged beyond repair and there's nothing anyone can do to stop the system from crashing and killing everyone. Bob's "last resort" is to backup everyone, let the system crash, and pray for a system restart from the user. Sure enough, the User restarts his computer and saves everyone, including the people already killed before the crash.
** Before [[Cerebus Syndrome]], an episode about Hexadecimal changing all of Mainframe [[Taken for Granite|to stone]] concluded with Hex deciding she was bored and snapping her fingers to de-petrify everyone. Admittedly, it took a little [[Talking the Monster to Death|prompting]] from Bob. And it is [[Mad God|Hexadecimal]]...
*** This one is excusable. Hexadecimal's main purpose is to spread chaos, and while the Medusa bug was causing chaos at first, the end result was order. Bob merely pointed this out to Hexadecimal and that was enough to make her delete the bug.
* '''[[Toy Story (franchise)||THE CLAW]]''' at the end of ''[[Toy Story 3]]'' is a ''[[Fridge Brilliance|literal]]'' Deus Ex Machina, given that the LGMs treat "the claw" as their deity and it is also the machine that {{spoiler|saves all of the toys from burning in the garbage furnace.}} Its arrival is accompanied by a choir of angelic voices on the soundtrack.
* The ending of the ''[[Family Guy]]'' episode "Lois Kills Stewie". No, before we find it out it was a [[All Just a Dream|simulation]]. When Stewie is about to shoot Lois, she is saved when he is shot by Peter... who was last seen on the couch at home.
* Many of [[Doug]]'s problems were solved in this way. Some examples include being able to wear a mask at the party to cover a pimple because it's a costume party and his video that he doesn't want Patti to see actually going to Mr. Bone.
* ''[[Transformers Prime]]'' has an episode titled [[Invoked Trope|Deus Ex Machina]]. In it the B plot of Miko caught by a security guard is wrapped up by Agent Fowler suddenly showing up to solve the problem. Miko even [[Lampshade Hanging|explains how the trope works]] just before Fowler shows up to execute it.
* The [[Fantastic Four (animation)|90s1990s ''Fantastic Four'' show]] has "Where Calls Galactus", where [[Galactus]] decides to consume Earth after [[Enemy Mine|allying with the Four against a common enemy]]. All seems lost... {{spoiler|until [[Ghost Rider]] shows up out of ''nowhere'', uses his guilt-inducing power to incapacitate Galactus, and then vanishes into the night.}}
** It should be noted that the episode is based on a comic book arc by John Byrne, and it makes much more sense in the original.
* A few episodes of ''[[Angry Beavers]]'' turn out to be this, with special mention for Moby Dopes. Dagget brings home a killer whale to their pond, thinking it to be as kind as [[Free Willy|Willy]], but is really a carnivorous beast eating everyone and everyTHING in sight. It looks like it's about to be the end of the beavers... until a T-rex comes in and eats it. Norbert even lampshades this.
{{quote|'''Norbert''': Where in the name of Deus Ex Machina did that T-REX come from?!}}
** {{spoiler|As it turns out, [[What an Idiot!|Dagget happened to bring home the T-rex from an amusement park prior to the Killer Whale,]] [[Here We Go Again|and are promptly chased by a new more vicious predator]].}}
 
== [[Real Life]] ==
 
== Real Life ==
* The ''shinpu'' (in English, "Divine Wind", also known as "kamikaze") were a set of typhoons in the years 1274 and 1281 which prevented Mongol invasions of Japan.
** Note: Typhoons in that area only happen once in a thousand years.
Line 607 ⟶ 600:
** The Russian term for it is General Winter. He defeats a lot of enemies.
* The "Protestant Wind" is a name used for two extremely unlikely yet valid incidents. One is the storm which wrecked the Spanish Armada in 1588, saving England from a Spanish invasion (Spain being a Catholic country, hence "Protestant Wind"). The other is the bizarre wind patterns that allowed William III of Orange to ''successfully'' invade England and depose King James II in the "Glorious Revolution" of 1688. (James II was a Catholic, which his subjects did not like, and William was a Protestant. Again, "Protestant Wind".)
** Inverted (in that France is considered Catholic): [http://www.cracked.com/article_18894_6-real-historic-battles-decided-by-divine-intervention_p2.html?wa_user1=5&wa_user2=History&wa_user3=article&wa_user4=recommended Joan of Arc] was trying to gain entry into Jean de Dunois's war counsels, but Dunois blew her off because a wind "which had absolutely prevented the ships in which were the food supplies for the city of Orleans from coming upriver." But then in that moment "changed and became favorable. From that moment I had good hope in her, more than ever before." Not only did the Siege of Orleans end up being considered Joan of Arc's greatest victory, Dunois thereafter became one of her biggest fans.
* [http://www.cracked.com/article_18894_6-real-historic-battles-decided-by-divine-intervention.html Deus Ex Machina] basically gave America the win for quite a few battles in some pretty important wars.
** Funnily enough, one of thethese occursoccured after a priest [[Clap Your Hands If You Believe|prays]] for favorable conditions. Your Mileage ''Will'' Vary as to whether this is meaningful or not.
 
{{reflist}}
[[Category:Idealism Tropes{{PAGENAME}}]]
[[Category:Tropes of Legend]]
[[Category:Plot Device]]
[[Category:Sealed Index in A Can]]
[[Category:Wish Fulfillment]]
[[Category:Trope Names From Other Languages]]
[[Category:Just in Time]]
[[Category:Continuity Tropes]]
[[Category:Index to The Rescue]]
[[Category:Bad Writing Index]]
[[Category:Consistency]]
[[Category:Continuity Tropes]]
[[Category:Ending Tropes]]
[[Category:Happy Ending]]
[[Category:Idealism Tropes]]
[[Category:IndexInd toEx The RescueMachina]]
[[Category:Sealed Index into AThe CanRescue]]
[[Category:Just in Time Tropes]]
[[Category:IndLit ExClass MachinaTropes]]
[[Category:Plot Device]]
[[Category:Plot Twist]]
[[Category:LitSealed ClassIndex Tropesin A Can]]
[[Category:Suspiciously Convenient Index]]
[[Category:Trope Names Fromfrom Other LanguagesLatin]]
[[Category:Tropes of Legend]]
[[Category:Wish Fulfillment]]
[[Category:Writer Cop Out]]
[[Category:Ind Ex Machina]]
[[Category:Deus Ex Machina]]