[[quoteright:222:[[UsefulNotes/{{Jesus}} http://static.tvtropes.org/pmwiki/pub/images/JesusGunDoor.jpg]]]]
[[caption-width-right:222:The readers will never [[{{Pun}} see]] ''[[{{Pun}} this]]'' [[{{Pun}} coming!]] ]]

->'''Jay:''' I think Creator/ShaneBlack did some rewrites on ''[Theodore Rex]''.
->'''Josh:''' He did such a good job that a truck explodes to stop them talking.
->'''Rich:''' That's the screenwriter saying, "We've got to stop this banter immediately! Abort! Abort!"
-->-- ''WebVideo/BestOfTheWorst'' on ''Film/TheodoreRex''

''When in doubt, have a man come through a door with a gun in his hand.''

As codified by pulp novelist Creator/RaymondChandler, Chandler's Law is a concise but evocative piece of advice for writers who have somehow painted themselves into a corner, plotwise. The addition of a new opponent or complication, usually amidst a burst of violence, can free a protagonist from where they have become mired in the current plot.

Although expressed in a form very specific to the genre in which Chandler was writing, the Law can be easily generalized to handle any type of story.

Participants in [[UsefulNotes/NaNoWriMo National Novel Writing Month]] (which emphasizes wordcount over quality) know this law by a similar mantra: "If all else fails, [[GratuitousNinja have Ninjas burst through the wall and attack someone]]", as the writer should be able to get ''at least'' a few hundred words out of the characters [[YouHaveGotToBeKiddingMe suddenly questioning]] "Ninjas? What the hell is going on here?"

This undoubtedly finds some origin in the RuleOfDrama. If guns are too dramatic for you, try [[DropTheCow dropping a cow]] for the RuleOfFunny version. If an entirely new plotline results, see HalfwayPlotSwitch. Both DiabolusExMachina and DiabolusExNihilo can operate on this principle (with varying levels of success). ConflictKiller is often a result of this. Contrast CodeSilver (which is this trope applied to medical and law dramas and otherwise non-action-packed series).

The GiantSpaceFleaFromNowhere is a video game-specific subtrope when the game has to provide ''some'' kind of challenge, even if the monster has no relation to the scene and the characters ignore it once the fight ends.



[[folder:{{Anime}} and {{Manga}}]]
* In ''Franchise/{{Naruto}}'', The [[TournamentArc Chunin Exam Finals]] culminate in a series of seven one-on-one single-elimination fights between the remaining eight participants. By the middle of the third battle, the Tournament was no longer progressing the story by itself, so the author chose that moment for [[BigBad Orochimaru]] to reveal his Evil Plan to destroy the Leaf Village.
* In season 1 of the ''Manga/AxisPowersHetalia'' anime, France, feeling left out and insecure, goes through a rather long series of flashbacks while trying to assure the viewers (and himself) that he was and is a powerful military nation. After a number of clips covering such events as the Hundred Years War, Joan of Arc, The defeat of Spain's armada by England and the War of Austrian Succession, France finally snaps back to reality just as Germany walks in/bursts through the door with a rifle in his hands, demanding France's surrender. The Dub even has Germany sarcastically apologizing for interrupting France and asking him mock nicely to put his hands up.
* Episode 8 of ''Literature/{{Hyouka}}'' references Chandler's laws by name.
* ''Manga/{{Bleach}}''. Creator/TiteKubo has stated that when he gets writer's block, making new characters helps overcome it. The trouble is, he doesn't create one or two characters, he creates entire groups which introduces a new CastHerd leaving the story with LoadsAndLoadsOfCharacters.
* ''Franchise/SailorMoon'': Initially the series was supposed to end after the first arc, but because of it's popularity Creator/NaokoTakeuchi was asked to continue the series. The result is that the manga's first arc ends with Usagi going on a date with her boyfriend after the BigBad is defeated. [[NotSoFastBucko That's when a little girl falls from the sky and points a gun at Usagi]].
* The Synchro Dimension Arc in ''Anime/YuGiOhArcV'' introduced the [[TournamentArc Friendship Cup]] as a means of allowing The Lancers to win that dimension's alliance against the [[BigBad Fusion Dimension]]. This resulted in new plot points being introduced (the Commons rebellion and Jean Michel Roget's use of mind controlling brain implants) and older plotpoints being concluded (Dennis being exposed as TheMole). Eventually, the Fusion Dimension invaded right as the tournament lost the ability to progress the plot by itself.

[[folder:Comic Books]]
* [[http://markwaid.boom-studios.net/2009/06/15-minutes-with-waid-my-good-friend-jack-daniels Mark Waid]]
** Take two characters who would otherwise have nothing in common or anything to discuss and [[LockedInARoom put them into the same room]].
** Make a list of all the horrible things that could possibly happen to your character and consider going down the list.
** To see this concept in action, read Waid's ''Franchise/JusticeLeagueOfAmerica'' arc "Tower of Babel", in which the League [[spoiler:especially Batman]] go right on down the list.
* There was an issue of ''Franchise/TheFlash'' where Wally was involved with an uncomfortable relationship talk with his girlfriend. The captions really sum it up best:
--> Then -- out of the blue -- ninjas attack.\\
Thank God.

[[folder:Fan Works]]
* In ''ComicBook/PowerGirl'' fic ''Fanfic/AForceOfFour'', Franchise/WonderWoman has just been said her daughter has a lover. Before Diana can berate Lyta for keeping things from her, Paradise Island is under attack... which Lyta Trevor is actually grateful for.
-->Wonder Woman's eyes widened. "Mother, what are you saying? Are you saying that Lyta has--"\\
Lyta's eyes were widening at the same time that her skin was flushing crimson.\\
Diana finally finished the sentence. "--has given herself to a man?"\\
"Ohhhhhhh, hell," muttered Lyta, and hid her face in her hands.\\
That was when a warning siren went off.\\
Lyta was never so grateful for such a sound in her entire life.
* ''FanFic/MyImmortal'' abuses the concept so much that it becomes a RandomEventsPlot very quickly. It's pretty coherent (Ebony and Draco meet, date, screw like bunnies, break up) until Voldemort shows up. And Snape becomes a pedophile. And Draco gets captured. And Dumbledore turns evil. And Draco commits suicide. And comes back to life. This is all in about 2,000 words, by the way.
* This is something that's acknowledged (and even encouraged) in the ''VideoGame/{{Touhou}}'' fandom. Behold, the existence of [[http://img397.imageshack.us/img397/6487/1227762377713zd9.png templates]] (which are forbidden)!
-->Magic. [[note]]Embodiment of Scarlet Devil, Imperishable Night, Phantasmagoria of Flower View, Double Dealing Character[[/note]]
-->[[MushroomSamba Eirin's shady new drug]]. [[note]]Legacy of Lunatic Kingdom.[[/note]]
-->[[BlueAndOrangeMorality Yukari is fooling around again]]. [[note]]Perfect Cherry Blossom, Immaterial and Missing Power, Silent Sinner in Blue[[/note]]
-->[[ItsAllAboutMe It's a Moriya Shrine conspiracy]]. [[note]]Everything [[MythArc from]] Mountain of Faith to Ten Desires[[/note]]
* Used to end the BreatherEpisode in Fanfic/MassEffectHumanRevolution. In a twist the gang of mercs are not there after the CowboyCop, MadScientist, {{Playful Hacker}}s and any of the [[SemperFi Marines]].
-->'''''DO YOU HEAR ME, [[PluckyComicRelief JAKE ARMITAGE]]?!'''''
* Invoked in ''Fanfic/XMenTheEarlyYears'' when Scott is having dinner with Jean's parents and he wishes for a Sentinel attack.
-->Scott ate his dinner slowly, wondering where the Sentinels were when you really needed them. The Greys were studying him with an expression that most people reserved for rather distasteful insects.

* In ''Film/LastActionHero,'' this is lampshaded when the protagonists lose track of the BigBad; said Big Bad just keeps going about his business unfettered instead of giving them another lead to chase. Only by dropping ActionHero tropes for a while and considering the situation carefully do they find him JustInTime.
* ''Film/TheBoondockSaints''
** While the film is practically made of "People Busting Through Doors and Shooting At People," there is one scene that particularly feels like this trope: The main characters are even bored, and the plot is kinda on hold; suddenly, their best friend kicks through the door and starts waving his gun around and screaming for everyone to pack their shit.
** It turns out the friend bursts in panicking because [[spoiler:he just shot and killed three people in broad daylight.]]
*** After they wrote about him bursting in, they asked themselves "now why did he burst in like that?". That's the whole point of the rule: it gives you a new direction to take and hopefully find yourself back on track. Sounds like it worked in this case.
* In ''Film/TheExpendables2'', our heroes are trapped under gunfire and the enemy has pulled out a tank. Suddenly, the enemy is quickly butchered by some unseen force. Considering the nature of the movie, this was likely a parody of this trope's place in action films. Oh, and it was '''''Creator/ChuckNorris'''''.
* ''Film/SavingPrivateRyan'' has a scene that also feels like this trope. The squad regroups with an American unit in a building, only to have a wall collapse, revealing German soldiers occupying an adjacent room, resulting in a standoff. Captain Hamill (TedDanson) and one of his men show up with Thompsons unnoticed and shoot all the German soldiers, ending the standoff.
* Happens in ''Film/CasinoRoyale2006'', when Bond is being tortured by Le Chiffre for information. Bond points out that he will never give up the information, and Le Chiffre can't kill him without it, so he decides to ''castrate'' Bond. [[spoiler: Before he can do so, armed men (working for the NebulousEvilOrganization that Le Chiffre would have gladly snitched on to [=MI6=] as a Plan B out of his situation) enter and [[HeKnowsTooMuch kill Le Chiffre]] and his henchmen.]]

* Used in Creator/RaymondChandler's Literature/PhilipMarlowe novels, [[TropeNamer naturally]]. Even [[LampshadeHanging lampshaded]] viciously in ''Literature/TheLadyInTheLake'' when Marlowe confronts a character and they pull a pistol:
-->[[MediumAwareness "I've never liked this scene,"]] I said. "Detective confronts murderer. Murderer produces gun, points same at detective. [[JustBetweenYouAndMe Murderer tells detective the whole sad story, with the idea of shooting him at the end of it.]] Thus wasting a lot of valuable time, even if in the end murderer did shoot detective. [[PlotArmor Only murderer never does.]] Something always happens to prevent it. [[DeusExMachina The gods don't like this scene either. They always manage to spoil it.]]"
* In Creator/StephenKing's book on writing appropriately titled ''On Writing'', he mentions the use of this rule to overcome a serious case of writer's block when working on ''Literature/TheStand'', namely, by having [[spoiler: Harold and Nadine place a bomb and kill several of the main characters, including Nick Andros.]] And then [[spoiler: another bomb, this one nuclear, killing tons more characters.]]
* LawrenceBlock also does this. In a book on writing, he illustrated how to maintain conflict between a protagonist and a grizzly bear until the protagonist starts escaping down the river. "Then you give the bear a canoe..."
* Creator/ChuckPalahniuk has said that, if you want to move a plot along, the best way is to just have another character enter the room and make them say something disturbing.
* Chandler's successor, Robert B. Parker, used this trope often with ''Literature/{{Spenser}}''. Being [[BoringInvincibleHero Spenser]], he usually turns the tables on his attackers. He ran into this so often that you kind of started to think that if the bad guys had just sat tight, Spenser wouldn't have had any leads to follow.
* Justified and Lampshaded in Jasper Fforde's ''[[Literature/ThursdayNext The Well of Lost Plots]]'': early in the book, Thursday purchases a 'Suddenly, a shot rang out!' plot device from one of the Well's wordsmiths. Later, when she's in a situation she can't get out of, she cracks it open...and Suddenly A Shot Rings Out! The Bookworld being what it is, there's also a logical, in-universe reason for this to happen, besides Thursday using the device.
* In ''[[Literature/{{Changes}} Changes]]'' from ''Literature/TheDresdenFiles'', Harry has been strapped to a bed by his friends (ItsALongStory), and a hit-man, presumably sent by the vampires, walks in. Naturally, the shit hits the fan almost immediately.

[[folder:Live Action Television]]
* In the American version of ''[[Series/TheOfficeUS The Office]],'' Michael Scott misuses this trope constantly at his improv class. Any time he is called to act in a scene, he pulls out a gun to increase drama because "you can't top it". Of course, nobody can top it and it ruins every improv exercise the class attempts.
** In fact, improv classes usually state as one of the first rules of scenework that pulling a gun is a "weak choice" -- as pointed out above, it keeps everyone else in the scene from contributing anything. Not to say it never happens, of course, or that it can't work when it does happen.
* {{Lampshaded}} in ''Series/ThePretender''. Jarod narrates that when in doubt, have a man walk in with a gun. A man walks in with some ice cream. As he corrects himself in the narration, the man asks Jarod whether he is Dick Dickson (who Jarod is currently pretending to be). When Jarod answers in the affirmative, the man promptly draws a gun.
* Creator/JossWhedon has been quoted as saying that whenever they needed to add to the drama in ''Series/{{Firefly}}'', they'd get someone to point a gun at [[TheHeart Kaylee.]]
** ...which was a variation of his tactic from ''Series/BuffyTheVampireSlayer'', "When in doubt, put Willow in danger."
*** Season 2 of ''Buffy'' also got a lot more interesting when Angel lost his soul. In general, each season upped the drama once the BigBad was revealed.
* ''Series/DoctorWho'' relies a lot on this, which ranges in execution from masterful tension-risers to WackyWaysideTribe {{Padding}}.
** In "The Dalek Invasion of Earth", Ian holes up with a group of survivors and things are looking quite optimistic for him, so he and the others are promptly attached by a horrible flailing monster called a Slyther that apparently the Dalek Supreme keeps as a pet. At around the same time, Susan is attempting to go through sewers with resistance members and is attacked by some [[StockFootageFailure stock footage of a rather small alligator.]]
** "Genesis of the Daleks" has a truly amazing sequence where the Doctor and Harry are being about five minutes too efficient at infiltrating Davros's lab, and so get attacked by a giant orange polystyrene land clam when [[IdiotBall Harry steps in it after the Doctor points out to him that it should be avoided]]. The clams are apparently one of Davros's experiments, but what purpose they could possibly have is never explained.
** "The Big Bang" has the stone Dalek that chases the characters around the museum, handily breaking up exposition ''three times''. Its existence is a plot-relevant clue, at least.
* Creator/JimHenson once commented on his pre-Muppet puppet sketches that when he couldn't think of how to close a sketch, he'd either have an explosion or have one character eat the other. It's pretty clear that this carried over to ''Series/TheMuppetShow''.
* ''Series/TwoAndAHalfMen'' has Alan, while writing a movie in a coffee shop, getting writer's block several times and solving it by having a meteor hit the characters.
* Occurs in the ''Series/BreakingBad'' episode, "Dead Freight". Walter, Jesse, Mike, and new NiceGuy Todd, rob a train to get a massive amount of methylamine. The robbery goes off without a hitch, but as the crew are celebrating they see a young boy on a dirt bike watching them. Cue seemingly NiceGuy Todd calmly pulling out a gun and [[WouldHurtAChild executing the kid with no warning whatsoever]], to end the [[WhamEpisode episode.]]
* Many sketches on ''Series/MontyPythonsFlyingCircus'' would end with a knight coming in and hitting someone on the head with a rubber chicken. Or a sixteen-ton weight would fall on somebody. Or [[StopHavingFunGuy The Colonel]] would come in when things got too silly.
* ''Series/{{Westworld}}'': In-universe, the park's narratives are clearly designed to interrupt any potential lull in the plot with violent plot twist. After having a party he attends turn sour from a doublecross, William accuses the creator of perpetuating a sense of urgency so the guest will be too consumed with their base urges to think.
* Subverted on ''Series/{{Cheers}}''. One eleventh season episode opens with Norm and Cliff lazily wondering what they're going to do since they're rather bored. While they're thinking this over, Andy Schroeder [[note]]The mentally unhinged man who tried to kill Diane during a performance of ''Othello''.[[/note]] bursts in wearing a belt made of dynamite and demands to see Diane. After Woody informs him that Diane hasn't worked there in years, Andy just leaves and Norm and Cliff go back to discussing what they're doing that day.
* ''Series/StarTrekTheNextGeneration'': In "[[Recap/StarTrekTheNextGenerationS2E19Manhunt Manhunt]]", Captain Picard indulges in a holodeck session as Dixon Hill, but he's only there to relax and kill time, not to engage in a story. Despite his objections, the holodeck interrupts his reverie with increasingly disruptive plot hooks--the last of which is literally a thug bursting through the door with a Tommy gun--because "the flexibility of the program is limited to the parameters of the Dixon Hill novels". Raymond Chandler was a major influence on the Dixon Hill "franchise".

* ''Music/TrappedInTheCloset'' by Music/RKelly follows this trope so much it goes from OnceAnEpisode to DrinkingGame pretty quickly.
** Parodied in the ''WesternAnimation/SouthPark'' episode of the same name, where R. Kelly is ''constantly'' pulling out his gun, usually for no reason at all.
* Many of Music/WeirdAlYankovic's parody songs are like this. A particularly egregious (but not [[SoBadItsGood actually unpleasant]]) example would be "Everything You Know Is Wrong".
** "Albuquerque", with its RandomEventsPlot, seems to be built on this trope. Specifically the instance where he finally gets to the eponymous city and is relaxing in a Holiday Inn. When suddenly a "big fat hermaphrodite with a [[Music/AFlockOfSeagulls Flock-Of-Seagulls]] haircut and only one nostril" knocks on the door [[ItMakesJustAsMuchSenseInContext to steal his lucky snorkel]].
* Music/BetweenTheBuriedAndMe often uses a stray ride cymbal to segue in to an entirely different riff or musical non-sequitor.

[[folder:Tabletop Games]]
* The ''Tabletopgame/DungeonsAndDragons'' adventure ''Whispers of the Vampire's Blade'' suggests using this trope, and includes a table of possibilities for who exactly is kicking down the door and why.
* Mentioned by name in the Tabletop RPG ''TabletopGame/FengShui,'' in the "GM's advice" section.
* This is one of the most emphasized pieces of advice for ''TabletopGame/SpiritOfTheCentury'' [=GMs=].
* ''TabletopGame/{{Warhammer 40000}}.'' When in doubt, have another Tyranid/Ork/Chaos/Necron invasion or an Imperial Crusade or have it turn out that the governer/inquisitor/whatever was actually an agent of chaos/tyranids/generic evil all along.
* ''TabletopGame/UnknownArmies'' alludes to it in the [=GMs=] section when explaining how to plot a game, suggesting that [=GMs=] throw in another faction "in case you need somebody to come through the door with a gun"
* Quoted and explained in ''TabletopGame/{{GURPS}}: Mysteries''.
* The ''TabletopGame/NinjaBurger'' RPG has a chart to determine what kind of new violence can throw spice up your mission.
* The RPG.net forums give us this gem: [[MemeticMutation Screw it, ninjas attack!]]
* The Random Events table in ''[[TabletopGame/MaidRPG Maid]]'' runs on this. It's also somewhat unusual in that, in addition to the GM using it, the players can pay Favor in order to trigger a roll on the Random Event table (assuming that the GM isn't enforcing their Rule Zero rights and saying "you can't do that", which the rulebook advises for more structured scenarios).
* This is very common advice for [=GMs=], newbie and veteran alike. Any GM of any description has experienced the awful feeling of their table group starting to screw around and make their own fun because they've grown bored with the plot. This is the smart GM's cue to have a surprise, unkown antagonist leap into the king's throne room and immediately start cracking heads or, if the party is bored of constant fighting instead of talking, to suddenly have the monster's boss walk in, surrender and attempt to talk it out.
* Battletech canon plays this straight. When the plot stops feeling like a twisted web of lies, betrayal, and deceit, assassinate a random major protagonist. Has happened at least 8 times.
* A similar mechanic exists in ''TabletopGame/{{Fiasco}}'' - at exactly halfway through the game, an event called the Tilt happens where a bunch of extra conflict elements (e.g. "a dangerous animal gets loose", "love rears its ugly head", "someone develops a conscience", "something precious is on fire")are taken from a table and thrown into the game. Played properly, everything should be [[HilarityEnsues going horribly wrong already]], and the Tilt elements are intended to create a HalfwayPlotSwitch.
* Like many other pulp settings, ''TabletopGame/RocketAge'' encourages its use to keep things lively.
* The FATE adaptation of ''ComicBook/AtomicRobo'' calls this tactic the Big Damn Explosion, because usually that's the most visible way to do it.

[[folder:Video Games]]
* In many {{FPS}}es, this is the only plot point that happens outside of a cutscene. Apparently ''Videogame/RedSteel'' was designed by Raymond Chandler.
* The Director AI in ''VideoGame/Left4Dead'' and ''VideoGame/Left4Dead2'' pulls this quite frequently: stay in one place too long instead of advancing and you'll get a bunch of Special Infected coming at you.
** It's also more likely to send a Zombie Horde at the Survivors at any given moment the slower they're progressing through the level. This can be [[UnstableEquilibrium something of a vicious cycle]] when playing on Expert.
* Stay too long in one place in ''Videogame/{{Minecraft}}'' on Hard difficulty and more monsters, with better armor and potion effects, will spawn at night.

[[folder:Web Comics]]
* [[http://www.darthsanddroids.net/episodes/0005.html This page]] of ''Webcomic/DarthsAndDroids'' uses the explosion version.
* ''Webcomic/GirlGenius'': uses the rather natural combination of this trope and MomentKiller [[http://www.girlgeniusonline.com/comic.php?date=20090511 here]].
* ''Webcomic/IrregularWebcomic''...
** ...compares this with the scene in ''Literature/TheLordOfTheRings'' [[http://www.irregularwebcomic.net/750.html here]]...
** ...and [[http://www.irregularwebcomic.net/2583.html another one]], with a link here!
* ''Webcomic/MenageA3'' had perhaps fallen into something of a rut by the end of volume 5, although lead character Gary had at least just escaped from a protracted car-crash relationship. So the writers applied this principal twice over, perhaps even to excess. First, another of the lead characters' boyfriend came through a door (and into the middle of a lesbian orgy) with a startled expression, and then, one strip later, it turned out that Gary had just come through an international plane flight with a naked {{transgender}} lingerie model.
* Nale of ''Webcomic/TheOrderOfTheStick'' spells it out in-character [[http://www.giantitp.com/comics/oots0849.html here]].
* In ''Webcomic/SluggyFreelance'' Zoe gets [[http://www.sluggy.com/daily.php?date=980902 pissed off]] at how much this trope turns up in her life.
-->'''Zoe:''' I don't ''believe'' this! Just when I think we might be having a nice, ''ordinary'' issue to deal with, like adultery, ''you'' come in screaming about ''vampires!'' What happened to normal problems, like credit-card debt?
* ''Strip Tease'' is a decent slice of life comic, until the writer decides to throw in some "drama" and has the main character's girlfriend kidnapped... three times... by the same people...
* ''Webcomic/{{Waterworks}}'' pulls this off when the plot seems to stall, and even the main character comments on how nothing vital seems to be happening. All of a sudden, after the readers have been fooled into thinking that a leisurely talk scene is about to follow, the hitherto ShroudedInMyth powerful villain bursts through a door, wrestling with a MiniMecha. Awesome three-on-one fight scene follows.
* [[http://www.wikislessons.com/index.php?date=2005-10-26 This]] ''Wiki's Lessons In Life'' comic applies this principle to conversations.

[[folder:Web Original]]
* Discussed on ''Website/{{Cracked}}'' [[http://www.cracked.com/blog/5-book-marketing-stunts-that-backfired-spectacularly/ here]] at entry #5 where the author Ray Dolin was using his [[WalkingtheEarth hitchhiking across America]] experiences to write a book up until a mysterious man shot him in the arm on a drive by shooting, creating a whole new turn of events. [[spoiler: It turns out the mysterious shooter never existed, Dolin had just shot himself on the arm to either draw publicity to his upcoming book or because he needed a plot twist to make his story more interesting. ]]
* Happened during Season One of ''Roleplay/TheMassiveMultiFandomRPG''. The game stalled due to one of the players going VillainSue (there being little prior GM oversight regarding the players' power levels), attacking the other players and easily withstanding everything they threw at him. The GM resolved the stalemate by having a [[Franchise/StarTrek Borg Cube]] suddenly appear in the sky and crush the player character, not only getting rid of the Sue but also jump-starting a new plot arc with the Borg attacking the city.

[[folder:Western Animation]]
* ''WesternAnimation/RegularShow'' uses this a lot, the episode starts with Mordecai and Rigby taking part of something plain or mundane, then before you know it, an EldritchAbomination comes out of nowhere, a normal person exhibits super natural powers, a normal object comes to life...and more.