Television writers have considerable experience at creating dramatic stories out of the lives of lawyers, surgeons, school teachers, and many other professions whose real-life work is somewhat less dramatic. But occasionally they tire of making lawsuits and surgeries exciting. That's when an armed man bursts into the law office or hospital and takes hostages from the cast. This is similar to Perp and Weapon, but none of the characters are police officers and the violence is completely unexpected in the setting.
Hostage situations like this occur in real life; the trope name comes from the real code used for "combative person with weapon" in many hospitals on America's west coast. Where the trope diverges from reality is in the motivation of the hostage taker and the way the situation is resolved.
The hostage taker usually has a personal grudge against one of the characters and has carefully planned his assault. His aim may be simple revenge, or pursuit of a bizarre goal that ties into the show's setting.
Despite their inexperience, the characters usually manage to negotiate with the hostage taker and resolve the situation with minimal loss of life — it's very rare for anyone other than the gunman to die in these situations, and even he usually survives.
If "Code Silver" or its equivalent is used, it's a genuine Code Emergency. If one of the hostages is secretly a superhero who can't use their powers openly, they'll have to manage a Restricted Rescue Operation. If in addition the hostage takers are trying to provoke a confrontation with the very superhero they've unknowingly captured, they have Bruce Wayne Held Hostage. Chandler's Law is similar.
- Desperate Housewives had one set in a supermarket where a disturbed woman (Laurie Metcalf) takes everyone hostage. This kicked off a trend of "distaster episodes", which happened at least once a season for the rest of the show.
- Boston Legal: Four times, including a employee who demanded a partnership at knifepoint. At this rate, the violence shouldn't be quite so unexpected.
- At least one of these hostage situations was solved by Denny Crane shooting the dude doing the hostage taking...by grabbing one of his numerous guns he keeps in his office and telling a lesser associate to open the door when he says pull.
- Chicago Hope: A patient's brother demands a donor heart at gunpoint.
- ER: Several times, but partially justified by the hospital's dangerous inner-city location.
- Occasionally veers into the hopelessly ridiculous, though. The tank attack springs to mind.
- Even more ridiculous is that that was Ripped from the Headlines. That's right, some lunatic stole a tank and rampaged through suburbia (no hospitals were harmed).
- Occasionally veers into the hopelessly ridiculous, though. The tank attack springs to mind.
- "No Reason" subverts this, as the gunman shoots the title character and leaves, with the other characters completely ineffectual. He's never caught and we never even discover his motive. House was treating the guy's wife/girlfriend during some case before the show started. House found out that the Guy had cheated on the woman and told her, even though it was completely unrelated to her illness. After getting discharged, the woman was so distraught she killed herself. Of course, considering how rare it is for House to follow up on patients after they leave his care, it's unlikely he actually knew that; more likely was that all of this was part of the fantasy/dream/hallucination he was constructing, and therefore not real. This fits with the running theme of the episode, and the title; "No Reason".
- A later episode plays it straight, with a man taking House, Thirteen, and several patients hostage in order to force House to diagnose his unknown illness. After hours of stand-off and letting hostages go, they succeed in diagnosing him, and he injects himself with the cure just as the SWAT team breaks through the wall.
- Law & Order: The police half of this show expect armed confrontations, but the lawyers often have to deal with them too, sometimes inside the courtroom. An example is needed because these get complex: SVU has a young White Supremacist take out the defendant and judge in open court before being shot by his long-time co-whatever, actually an undercover federal agent. The agent was played by Marcia Gay Harden, and the role netted her an Emmy nomination.
- Executed quite well in an episode of Shark.
- Quentin Tarantino's guest appearance in Alias.
- M*A*S*H has done this at least three times: The first when a distraught soldier (played by a pre-Three's Company John Ritter) holds Frank Burns hostage to prevent being sent back to the front, the second when a soldier holds the doctors hostage demanding that his buddy is treated ahead of everybody else (and this is in an episode where Hawkeye is threatened by a crazed Turkish soldier who wants to return to the front because his buddies were still up there); and the last saw Winchester held hostage by a soldier demanding a helicopter so that he could return to Toledo (and, because this was his ultimate destination, Klinger bravely volunteered to switch places with Winchester...). It almost makes you wonder where the hell the unit's MPs are, since none ever come by to defuse the situation...
- Well, MP's did appear once in the early first-season episode "Dear Dad", but even then Father Mulcahy politely asked the MP's to wait there as he went off and handled the issue (Klinger threatened to frag Burns with a grenade), there was one later episode that showed that the head MP over the area was extremely corrupt and took bribes from Rosie to ignore her bar (and the rest of the post). They also showed up to foil some of Klinger's attempts at desertion in "Officer of the Day" and other episodes.
- Done on Chuck, where it turned out that the situation was set up by FULCRUM agents wanting to know why so many of their agents kept dying around the Buy More area.
- Done in Smallville where someone bursts into the hospital with a kryptonite-powered bomb strapped to his chest, demanding that his brother receives a liver transplant.
- In Grey's Anatomy, a man has a rocket from a homemade bazooka in him that the characters had to remove. It also subverts the spirit of the trope as a bomb disposal expert is on hand the whole time. He blows up carrying the rocket away from everyone else.
- In the Season 6 two-part finale, the husband of a woman they couldn't save (as she signed a DNR) comes back a few episodes later to invade the hospital and shoots a bunch of people. Much of Season 7 is devoted to the ramifications of this event, though it's really an excuse to kill off a few Scrappies.
- The Burn Notice episode "Bad Breaks" has an interesting variant: A spy and an NSA agent are having a covert meeting at a bank, when bank robbers show up. Those poor bank robbers...
- Cra$h & Burn had a gunman take the staff of the insurance agency hostage after his wife becomes a paraplegic in an accident and the insurance company stalls paying out the claim. It ends up being a Suicide by Cop
- Done constantly on Night Court.
- Psych: "Gus Walks Into A Bank."
- This happened at least once on The Bill - a criminal ended up in Sunhill Police Station with a pistol. The scene was incredibly tense and dangerous, because, this being Britain, none of the policemen had guns themselves.
- In Untold Stories From The ER this has happened several times. From the rampage of Damacio Ibarra Torres in the ER, to a man who wanted to shot the man who tied his wife's tubes.... After she had seven kids.
- Most of the Star Wars Expanded Universe has its share of action, but there are books with little, such as the Medstar Duology, which is sort of a medical drama that focuses on the medics working on clone troopers, the reporter set to cover it all, and the Jedi Padawan earning her Knighthood on an unpleasant world called Drongar. The conflicts in the duology are largely internal and personal, things like a surgeon overcoming his automatic assumption that clones and the rare truly intelligent droid aren't really people, or the Padawan fighting her addiction to a mind-expanding drug. But action does pop up; notably a few battle droids stray too close and the Padawan slaughters them. And... well, that's about it, really, at least with the medics, the reporter, and the Jedi. The duology carefully places direct conflict only in storylines where the spy is the main character.
- It's also inverted on a couple of occasions, where A Simple Plan du jour involves creating some havoc by means of a little public gunplay. One good example occurs during the Hand of Thrawn; needing to evade a group of local cops, Han and Lando enter a crowded casino and start shooting up the scenery, yelling about various made-up wrongs one of the customers has done to them and the nasty revenge they intend to take. The place clears out in a matter of seconds.
- There's a novel by John Grisham called The Street Lawyer where this is used to kick off the plot. A homeless man breaks into the posh law firm where the protagonist works, and takes him and a few of his coworkers hostage for about six hours.
- They Shoot Horses, Don't They?: The plot was already going to hell in a handbasket at a steady, and extremely dreary, pace throughout the whole novel; but the moment it hit the point of no return is when a shootout happens on the dance floor, killing two people, forcing the dance contest to be shut down, and finally driving Gloria's depression to the breaking point, making her decide to blow her brains out (and when she can't find it in herself to do it, to ask Robert to do it for her).
- The non-canon No Mercy heist in PAYDAY: The Heist. The PAYDAY Crew take the ICU of Mercy Hospital hostage in order to steal blood samples from a patient with a unique disease. It ends in a SWAT assault and the military blowing up the top floors of the hospital. The heist's soundtrack is even named "Code Silver".
- The remake of the Heist in PAYDAY 2 retcons out most of the allusions to Left 4 Dead to make it an actual canonical heist, in which Bain is given a contract to get blood samples in return for a mystical book (and a payout). As with the above, the hospital is completely destroyed (by PMC Murkywater, not the military), and the music is remixed, aptly named "Code Silver 2018".
- Occasionally happens in Real Life. Recently, a doctor fired from New York City's Bronx Lebanon Hospital went on a rampage, killing one doctor and seriously wounding five or six other staff members before turning the gun on himself.