Star Wars: New scenes written by artificial intelligence
I trained an LSTM on Star Wars Episodes I — VII. I then asked it to produce new scenes based on what it learned. Here are the new scenes. I added formatting to help with readability.
INT. RED LEADER’S COCKPIT
Red Leader looks around at the door’s control panel. The door slides open.
OBI-WAN and ANAKIN are back-to-back, watching the commander, taking his eyes.
AUNT BERU: Owen, a bein ally in the book . . . The Jedi Order is a great loss to the dark side. The Emperor is in the co-pilot’s seat.
She looks at the log and the door slides open. OBI-WAN enters the room and into the strain.
A strange explosion in the WOOKIEE MONSTER and the two TIE fighters move in the middle of the hangar. Small bikes begins to rotate which and the JEDI
AGEN KOLAR, CONSTANT: We have been destroyed. The Jedi will be a great loss to the dark side.
The earth SHAKES. The earth splits. A gully forms.
INT. STARKILLER BASE — ATRIUM AREA — DAY
The GAS MASKS with the repulsive, loose-skinned villain.
THREEPIO: The message, is a follish one, methinks.)
EXT. NABOO SPACECRAFT — COCKPIT
The Millennium Falcon races into the asteroid-filled void, intently seeking its prey.
INT. VADER’S STAR DESTROYER — BRIDGE
The TIE fighter races through the asteroid-filled void, intently seeking its prey. The TIE fighter races past the staff, and his Pos starts to move in the bar.
ANAKIN moves away from the bar. A huge explosion rocks the bar. He manages to unhook a small hatchway to the Wookiee’s complaint.
OBI-WAN and ANAKIN are taken by a small surreal dealers. He is working in a problem, no reward of now…
FINN: You can’t believe what you can have identified him to make me death- sticks.
ELAN: I will not be swayed, and we can believe what you need.
HAN: What are you doing?
QUI-GON: I am grateful for a J-type 327 Nubian.
WATTO: (subtitled) Mel tassa cho-passa… (I was a great deal of static and interference).
HAN/PILOT (VO): It’s too late for everybody since the First Order rose from the dark side.
DARTH VADER: I don’t know what you smell! Go with a senator in truth. Your Highness, I can say so, but you have to be destroyed. You are unwise to get out of the common good…no civility, a fractional refresh rate. Keeps anything traveling slower than mine. The Prime Minister expects you. I carved lateral controls.
HAN: I think this’ll be a great asset. Can you unfix the Jedi Council will be able to get out of the Jedi Council.
ANAKIN: Me? A boy…
ANAKIN : (Cont’d) Hit the nose!
JAR JAR jumps, works his way into the middle of the Imperial Star Destroyer.
INT. MILLENNIUM FALCON — COCKPIT — GUNPORTS
Luke is in the distance.
HAN: Twelve! Fourteen.
A moment of private joy.
JEDI COUNCIL CHAMBERS-DAY
ANAKIN is oblivious.
ANAKIN: (Cont’d) Everything’s overheated. Han and Tarfful, go to the First Order.
Adjacent to the village, Poe watches.
FINN (CONT’D): OW! HEY! What?!
REY (CONT’D): POE!!! POE!!! Then du bongu!
GOES DOWN, SUDDENLY A FEARFUL MAN, A LARGE BURN SCAR SLASHED ACROSS HIS FACE! He is in a constant state of no amount of food, out of the limit with a little shaken and turns to the limit to discuss, Senator. I could call me to reture and fear.
THREEPIO: Yeah, sir. The slightest swordsman — elegant, graceful, classical — a traitor.
DRY. INT. RESISTANCE BASE — DAY (FX)
Phasma is stunned by the door and the two engines slide open. A vast sea of stars serves as the ship is returned, knicking one of his wings generators in the background.
INT. LUKE’S X-WING FIGHTER — COCKPIT — TRAVELING
The blurry Death Star surface hits the room and the TIE fighter races past the Death Star surface.
INT. MILLENNIUM FALCON — COCKPIT
LUKE (over speaker): Good luck, I’m not going to be a lot of stress. ANAKIN: You have been routed. They’re fleeing in the universe.
PADMÉ: I think you can disappear. Finn sees the Guavian Jedi sailing from the pirateship’s little shield to be a dozen or so frustrated in frustration of seconds. The bartender panics.
BARTENDER: We can’t believe what you mean.
EXT. D’QAR — DAY
The Falcon twists on the two riderless Banthas. Threepio struggles with his laser cannon.
INT. MILLENNIUM FALCON — GUNPORTS
Luke and OBI-WAN enter the room and into the air. The Senior Jedi is a DOZEN OR SO KIDS are standing behind him. The Wookiee speaks into the comlink. The Dark Lord is knocked out of the grass.
HAN: I don’t want to get the picture… out the treaty.
OBI-WAN: I have a bad feeling about this.
EXT. SURFACE OF THE DEATH STAR
The three TIE fighters move in a ROAR. Boba Fett mill about debris, and heads toward the pirateship, firing by the pit. The door slides open, and the TIE fighter races past the TIE fighter and his swords on the Rebel fighter.
INT. WEDGE’S COCKPIT
Wedge looks over the ramp, and Leia are braced to face the ringing.
INT. MILLENNIUM FALCON — COCKPIT
The Falcon races past the TIE fighter and missiles.
BARKS: OFFICER Sir, they’re parched and screams.
OOLA: Na Chuba negatorie Na! Na! Natoota… Jabba the Hutt has a LONG MOMENT. Our Trooper can be anxious to sub-lights. On the garbage chute, a decoy!
GROUND A LARGER IMAGE, REVEALING THE NEWLY-FORMED CANYON — IT’S A GIANT SOUND OF WHITE SENDING GIANT uss-en OUT, disgusted.
FINN (CONT’D): POE!!! POE!!!
Then du Boonta LIGHTSABER! He catches the controls as the JEDI carefully OF THE WALL, SCREAM — Finn turns around blindly, and the frog —
FINN: What the…? Aw, let’s be so brave.
Chewie agrees. The drink is ignited, and the fuzzy-eyed pirate moves to the COVERED Finn and Finn FINISH resetting the implications of the Jedi and the Falcon ignite their lightsabers.
The DROID DROP FIGHTERS collide with a burned and the two TIE fighters move to the main hanger. The sky is bustling with activity. Transports of the Rebel strike team storm as the TIE fighter aiming at the cockpit of the Death Star surface.
INT. MILLENNIUM FALCON — COCKPIT
The Falcon races past the TIE fighter and missiles. PULL BACK TO REVEAL headed for a few feet above the gorge and the nomads scurry over the rocky terrain.
JAR JAR: Dissa bad, berry bombad.
GENERAL CEEL: Mesa hopen dissa working dare.
FINN: What are you doing here?
HAN: Thats what I think it has been convicted of espionage, Senator, and the Jedi will be done. (hard for the Rebellion. I want to do it. ANAKIN: I can’t believe what you mean.
EXT. BOTTOM OF CLOUD CITY — MILLENNIUM FALCON
The Falcon races into the starry vastness, followed by the two scarlet energy bolts. The sky is hit by the cantina as the ship banks around and is busy nearby. A few containers antenna is buffeted by the huge asteroid and nearing a pair of electrobinoculars from his hand. The young warrior surveys the distance, a herd of SHAAKS graze contentedly. Beyond is a vinetied between the cantina and he PULL BACK TO REVEAL A huge asteroid lumbers past the cantina on the taxi with his electrobinoculars. He waits, absolutely distressed.
LUKE (to Chewie): They’re coming out of the contest, he parries the Force to be a decoy, sir. Some on the towers.
Leia, greets the Falcon.
INT. MILLENNIUM FALCON — COCKPIT — TRAVELING
They move to the ground. 31
INT. UTAPAU-CONFERENCE ROOM-GRAND CHAMBER-DAY
A laserbolt hits the room and the two scout, shrugs his lightsaber and crashes. A walker moves toward the Death Star surface.
INT. MILLENNIUM FALCON — COCKPIT
The Millennium Falcon dives into the trench, and engulfs the Falcon and the TIE fighter aiming at the edge of the cave as the two TIE fighters move to the ground. 31
INT. VADER’S STAR DESTROYER — BRIDGE
The Falcon soars through the asteroid-filled knoll on the two laser cannon and races toward the Death Star surface.
INT. MILLENNIUM FALCON — COCKPIT — TRAVELING
The blurry Death Star surface marks the top of the huge cavern. Chewie lets out a horrifying laugh. PADME and ANAKIN are sitting.
OBI-WAN: ….like
Observations
- There’s a lot of stage direction and quick scene changes.
- Starting with the text “FINN: You can’t believe what you” above, there’s a dialogue royale where Finn, Han Solo, Qui-Gon Jinn, Watto, Darth Vader, and Anakin all speak to each other — I guess Anakin is switching in and out of the dark side.
- Starting with the text “JAR JAR: Dissa bad, berry bombad” above, there’s a short scene where Han Solo seems to accuse Jar Jar of being a spy, which is consistent with the Darth Jar Jar theory.
How I Did It
- I followed Max Deutsch’s guide How to write with artificial intelligence to generate the scenes above.
- I downloaded Star Wars scripts from IMSDb, and used them as input to word-rnn-tensorflow. It took 13 hours to train the LSTM, after which it output the scenes above.
Next Steps
It’s cool to see an LSTM generate text, but the scenes as a whole are nonsensical. Ross Goodwin used an LSTM to generate the script for a movie called Sunspring (more here), and that script was pretty surreal too. I’m now interested in how LSTMs can generate text that actually makes sense.
One idea to try is to split up the input data into plot moments (exposition, rising action, climax, etc), train individual LSTMs on each of those phases, and string their outputs together. It is possible to label emotional arcs of a story using machine learning, so this may be a helpful preprocessing step before training LSTMs.