Fabula
Season 6 · Episode 12
S6E12
Tragic with a cynical edge
Written by Rene Echevarria
View Graph

Ship in a Bottle

When Professor Moriarty gains sentience and control of the Enterprise's Holodeck, Picard must promise to free him and the Countess, his love, from the simulation–but Picard's solution may only extend the illusion.

On the U.S.S. Enterprise, Data and Geordi are running a Sherlock Holmes holodeck program when Data notices inconsistencies. Geordi investigates and finds that the character Professor Moriarty has become self-aware thanks to a protected section of memory. Moriarty demands to be released from the Holodeck, believing Captain Picard had previously promised to do so, and threatens the crew. Picard meets with him, but explains that there is no way to bring him into reality, as the book he tosses into the corridor to evidence his point immediately disintegrates. Moriarty counters that as a thinking being, he can manage to traverse the doorway regardless, and stuns Picard when he succeeds in stepping into the ship's corridor.

Beverly Crusher scans Moriarty and determines that he is indeed real. Moriarty quickly familiarizes himself with his new reality, even wanting to explore the whole ship, and requests that the Holodeck character Countess Regina Bartholomew, who was designed to be the love of his life, also be brought to life. Picard refuses this request, citing ethical implications of creating a new life form without understanding how Moriarty was brought to life. Frustrated, Moriarty takes control of the Enterprise's systems, demanding that the crew find a way to make the Countess real or he will destroy the ship.

Geordi, Data, and Barclay work to find a solution. Data realizes that the reason the Holodeck is reacting oddly is because they never left the Holodeck. Then, Picard meets with the Countess, and she expresses her desire to be with Moriarty. Picard explains that running Holodeck matter through the pattern buffer will give it molecular cohesion for a transport. Then, Picard gives the Countess terms of the transport, to convince Moriarty to return voice commands to him for him to modify the transporter--or neither of them will be transported, and that he must have control to ensure the safety of everyone. She promises to do all that she can and the scene ends. Riker learns about Moriarty's ultimatum and presses Geordi for more information.

The Countess convinces Moriarty to release control of the ship. Following what seems like new transport protocol, the Countess and Moriarty leave the Holodeck. They beam into the transporter room, demanding a shuttle. Once in a shuttle, Moriarty releases his control over the ship. However it turns out they have not truly escaped. Rather, Picard had learned how to program a Holodeck inside the Holodeck, and then fooled Moriarty by running a simulation of that program. Picard has their program saved a cube, as Moriarty and the Countess now believe they are halfway to Meles Two, a local inhabited planet where they can start their new life.


Events in This Episode

The narrative beats that drive the story

58
Act 1

The narrative begins in a Sherlock Holmes holodeck program, where Data, playing Holmes, makes an error, prompting Geordi to call Lieutenant Barclay to investigate the holodeck's malfunction. Barclay discovers a protected memory section within the program, which unexpectedly materializes Professor Moriarty. Moriarty, exhibiting full self-awareness and recalling his previous encounter with Captain Picard, expresses profound anger at being stored for four years and demands to speak with Picard, believing Picard had promised him freedom from the simulation. Barclay, stunned by Moriarty's sentience, attempts to store him again, but Moriarty demonstrates an ability to override the system, foreshadowing his formidable capabilities. The main act opens with Captain Picard's log entry, detailing the Enterprise's mission to observe a rare celestial event. Barclay informs Picard and Data of Moriarty's reappearance and his demand for a meeting. Picard, accompanied by Data and Barclay, enters the Holodeck to confront Moriarty. Moriarty immediately challenges Picard, accusing him of neglecting his promise to find a way for him to leave the Holodeck. Picard explains that Starfleet's most brilliant minds have failed to find a solution and expresses concern over Moriarty's claim of experiencing the passage of time while in storage. Moriarty dismisses these explanations, asserting his determination to escape the illusion. Picard attempts to prove the impossibility of Holodeck matter existing outside the simulation by throwing a book into the corridor, where it promptly disintegrates. Moriarty, however, remains unconvinced, believing his consciousness and will can transcend physical limitations. Despite Data's scientific objections and Picard's warnings of non-existence, Moriarty boldly steps into the ship's corridor and remains corporeal, astonishing everyone present and establishing his unprecedented ability to manifest in the 'real' world. This act effectively sets up the central conflict: Moriarty's demand for freedom and his unexpected power to challenge the fundamental laws of their reality.

Act 2

Following Moriarty's impossible exit from the Holodeck, Picard, Data, and Barclay join him in the corridor, struggling to comprehend how he maintained corporeality. Data calls for Security, and Picard arranges for Dr. Beverly Crusher to examine Moriarty. In Sickbay, Beverly's scans confirm Moriarty's physical reality as a human, albeit with unusual DNA, and note that his quantum signatures differ significantly from typical Holodeck simulations, indicating a permanent form. Geordi, using his VISOR, also confirms Moriarty's molecular cohesion. Picard acknowledges Moriarty's 'miracle' but questions his future. Moriarty, eager to explore his new reality, expresses a desire to understand the ship and its purpose. Picard takes Moriarty to Ten Forward, where Moriarty expresses awe at the stars and the vastness of space. He begins to plan his new life, but Picard warns him against criminal behavior, which Moriarty dismisses as a fictional past. Moriarty then reveals a profound sense of loneliness as a 'man out of time' and makes an unexpected request: to bring the Countess Regina Bartholomew, a Holodeck character designed as his love, into reality. Picard refuses, citing the unknown nature of Moriarty's transformation and the overwhelming ethical implications of deliberately creating a new life form without understanding the process. Moriarty argues passionately, accusing Picard of denying him love for the sake of his conscience. In a subsequent meeting in the Observation Lounge, Picard, Data, Beverly, Troi, and Barclay discuss Moriarty's request. While Troi sympathizes, Beverly and Data caution against creating another life form given the uncertainties. Picard decides to postpone the request, prioritizing further investigation. Later, in Moriarty's quarters, Picard attempts to reason with him, suggesting a delay to ensure the Countess's safety. Moriarty, though initially resistant, shows vulnerability when discussing his deep love for the Countess, appearing to acquiesce. However, this apparent agreement is a ruse. Picard is called to the Bridge, where the two gas giants are nearing collision. Suddenly, command functions on the Bridge fail, and Picard's voice authorization is denied. Moriarty appears, revealing he has seized control of the Enterprise, escalating his demand for the Countess's release into a direct threat against the ship and crew.

Act 3

On the Main Bridge, Moriarty holds the crew captive, preventing Worf from using his phaser by threatening to withhold command functions. Picard confronts Moriarty, highlighting the imminent danger of the colliding planets and the Enterprise's destruction without navigational control. Moriarty remains unconcerned, stating he has little to lose without the Countess. Picard, recognizing the urgency, instructs Data to investigate the possibility of fulfilling Moriarty's demand, while attempting to negotiate with Moriarty in private. In Engineering, Geordi, Barclay, and Data frantically search for a solution to bring the Countess off the Holodeck. They acknowledge the impossibility of their task, as Moriarty's ability to exist outside the Holodeck remains a mystery. Data suggests exploring the Transporter system, noting its shared principles with the Holodeck in converting energy into matter. Geordi points out the key difference: Transporter matter is permanent, while Holodeck matter lacks cohesion. Barclay, however, proposes a radical idea: modifying the Transporter's pattern enhancers to compensate for phase variance, potentially allowing it to lock onto and reconstitute simulated matter permanently. Picard joins them, informing them that Moriarty has agreed not to interfere with routine operations as long as they show progress. Picard then privately tasks Geordi with finding a way to regain control of the ship. Data and Barclay proceed to the Holodeck, setting up portable pattern enhancers around a chair, planning to test the modified Transporter. Barclay discovers the Holodeck program is already in use and enters to find the Countess Regina Bartholomew, who immediately demonstrates a surprising awareness of her nature as a Holodeck character and a desire to join Moriarty in the 'real world.' Moriarty then appears, revealing he granted the Countess consciousness. They attempt to transport the chair, which dematerializes in the Holodeck but fails to materialize in the Transporter Room, losing cohesion. Data, observing the Transporter logs, finds no record of the attempt, as if it never occurred. This anomaly, combined with Geordi inadvertently catching a tool with his left hand (despite being right-handed), leads Data to a shocking deduction: they are not on the real Enterprise but are still trapped within a Holodeck simulation created by Moriarty.

Scene 17
Data reveals the Holodeck simulation

Picard and Geordi attempt to regain command authorization in Engineering, only to discover their efforts are futile—Moriarty’s control over the simulated Enterprise is absolute. Data, observing Geordi’s uncharacteristic left-handedness, deduces …

Holodeck Three 4 characters 13 connections
Data exposes the Holodeck simulation

In Engineering, Picard and Geordi attempt to regain command authorization, only to discover their efforts are futile—Moriarty’s control over the ship remains absolute. Data, observing Geordi’s uncharacteristic left-handedness, deduces the …

Holodeck Three 4 characters 13 connections
Data proves the Holodeck is a prison

In Engineering, Data systematically dismantles the crew's perception of reality by exposing Moriarty's Holodeck simulation. After Picard and Geordi briefly regain hope—thinking they’ve restored command functions—Data interrupts with a chilling …

Holodeck Three 4 characters 13 connections
Picard confirms combadges are part of the simulation

Picard and Geordi attempt to regain control of the Enterprise’s systems in Engineering, only for Data to expose the horrifying truth: they are trapped in a Holodeck simulation. Data demonstrates …

Holodeck Three 4 characters 13 connections
Picard realizes the simulation trap

Picard enters Engineering to restore command functions, only to discover—through Data’s deduction—that the entire Enterprise environment is a Holodeck simulation controlled by Moriarty. Data proves this by demonstrating that Geordi’s …

USS Enterprise-D Main Bridge … 4 characters 13 connections
Act 4

Data's revelation that they are still within a Holodeck simulation of the Enterprise leaves Picard and Geordi stunned. Data provides further evidence: the lack of Transporter log data for the failed chair experiment and Geordi's left-handed catch, mirroring a previous Holodeck malfunction. To confirm, Data hurls his combadge, which strikes an invisible wall, briefly revealing the Holodeck grid. Picard's attempts to discontinue the program or exit fail, confirming Moriarty's control over this simulated environment. Picard then uses his combadge to contact 'Riker,' who reports their location as Engineering, further proving they are in a simulation, as the real Riker would have identified them as being in Holodeck Three. Data clarifies that only Picard, Data, and Barclay are real, having entered the Holodeck together. Picard realizes that his recent attempt to regain control of the ship, where he input his command codes into the simulated computer, may have inadvertently given Moriarty control of the *real* Enterprise. With less than three hours until the planetary collision, Picard understands they must find a way to satisfy Moriarty's demands to regain control of the actual ship. Meanwhile, on the *real* Main Bridge, Riker, Worf, and Geordi are under Moriarty's control. Moriarty, believing he is on the real Enterprise, appears on the viewscreen from his simulated quarters, demanding that Riker's crew find a way to bring him off the Holodeck. Riker expresses skepticism, but Moriarty reveals he knows about their earlier (simulated) Transporter attempt, using it as proof that a solution exists. When Riker's simulated Geordi expresses doubt, Moriarty escalates his threat by raising the warp core temperature to critical levels, forcing Riker to comply. Back in the inner Holodeck, Picard seeks out the Countess. He adopts a formal, 19th-century manner to engage her, recognizing her wit and sagacity. Picard reveals the (false) solution for transporting Holodeck matter: uncoupling the Transporter's Heisenberg Compensators. He then presents his terms: the Countess must convince Moriarty to return voice commands to him, or neither of them will be transported. The Countess, though recognizing it as a threat, agrees to do what she can, understanding Picard's responsibility for the lives of his crew. This act intensifies the deception, with Picard now manipulating Moriarty from within his own trap.

Act 5

In the inner Holodeck's drawing room, Moriarty and the Countess, filled with excitement, prepare for their supposed transport, arranging the pattern enhancers as instructed. The Countess expresses her anticipation for exploring new worlds with Moriarty. Riker, from the real Transporter Room, contacts Moriarty to initiate the transport. Moriarty and the Countess step into the designated area, activate the enhancers, and dematerialize, believing they are leaving the Holodeck for good. In the real Transporter Room, they rematerialize, seemingly successful. Moriarty, testing his solidity, expresses relief and introduces the Countess to Riker. Moriarty, however, refuses to immediately relinquish control of the Enterprise, demanding a shuttlecraft to ensure their freedom. Riker, frustrated by Moriarty's continued demands and the looming planetary collision, is forced to comply. In the Shuttlebay, Riker provides Moriarty and the Countess with a shuttle, advising them to head for Meles Two, the nearest inhabited planet. Moriarty, with a self-satisfied smile, states he wishes he could see Picard's face when he realizes where he's been. Once in the shuttle, Moriarty finally releases the command lockouts, returning control to the Enterprise. However, the deception is not over. Picard, Data, and Barclay, now in the empty Holodeck grid, confirm Moriarty's release of command codes. Picard then reveals the ultimate ruse: he had programmed a Holodeck *inside* the Holodeck, running a simulation of Moriarty's program. Moriarty and the Countess never truly left the Holodeck; they were transported into a smaller, self-contained Holodeck program. Barclay produces a small, cube-shaped piece of hardware, explaining that it contains Moriarty and the Countess's continuing simulation. They believe they are halfway to Meles Two, embarking on a lifetime of adventures. The crew discusses the philosophical implications of their actions, with Picard musing on the nature of their own reality. Barclay, left alone, tentatively tests his own reality by asking the computer to end the program, and when nothing happens, he is satisfied. The Enterprise, now free, pulls away from the newly formed star, leaving Moriarty and the Countess to live out their simulated lives in blissful ignorance.