Here in this alternative world is the Collective Unconscious or God. Charles' plan is to remake the world so that individuals no longer exist. We are all just facets of the collective unconscious anyway.
Marianne, C.C., and V.V. were his allies in achieving this.
You can't actually create your own entities, but you can summon an invincible invisible armor stand that is unaffected by gravity and tagged with a custom model, then teleport it incrementally.
There are named functions, but the level of modularity is the file system. Each function is in its own file and the name of the file is the name of the function.
There is no documentation, but there are YouTube videos demonstrating how to do specific things.
It's a programmer's nightmare.
There are no events, but you can get and set the number of times a player has taken an action, so if it's > 0, you know they did it.
There are no loops, but you can schedule a function that runs every game tick.
There are no "if" statements, but you can put a filter on a command so it only runs for entities with certain attributes.
There are no variables, but you can add a tag to an entity so you can catch it in a filter later.
But before Charles can confront God, he is himself confronted by Lelouch.
Lelouch has placed bombs at the entrance and seals both of them in the Sword.
Whatever Charles is up to, if he can't affect the world, he's as good as dead, even if he is technically immortal.
Schneizel decides to stage a coup. And absentee emperor is no good. He sends Suzaku to assassinate Charles. Unfortunately, he is guarded by the top knight.
Charles synchronizes all the relics and reopens the gate to the Sword.
Schneizel calls Charles, but he dismisses him, saying not to bother him with mundane things.
Anya is revealed to actually be Marianne. She had a prior contract with C.C., but failed to complete it. Now she jailbreaks C.C.'s memory.
Rolo helps Lelouch escape. But it turns out that his geass has a fatal flaw. When he stops time, it stops his own heart.
He uses it so many times trying to get away that he dies.
Lelouch has lost everything now.
Nunnaly, C.C., Rolo, the Black Knights.
Only revenge remains.
Schneizel cones on a diplomatic mission to the black knights.
While Lelouch has a breakdown, he tells the Knights about Zero's identity, and about geass. He has a dossier of people who have been geassed.
The Knights feel betrayed. They agree to trade Zero for Japan.
Kallen is released and joins the battle. She fights Suzaku, and beats him.
This would be his end, but he's been geassed to live.
And they've installed an annihilation bomb on the Lancelot. It he discharges it over Tokyo, he will survive.
Nunnaly is vaporized in the blast.
Suzaku demands a private meeting with Lelouch.
He has a bunch of questions he wants answered. But he doesn't know that Prince Schneizel's people are following him.
Lelouch is captured and Schneizel learns his identity.
He escapes, of course, and the battle begins.
Charles appears via broadcast, and says if it's war Zero wants, bring it on!
Zero now faces, not a headless Britannia, but a fully operational one.
Lelouch reaches out to the one friend he has who can protect his sister in the upcoming war: Suzaku.
The price is high.
Charles is trapped in subspace. Britannia is rudderless.
The United States of Japan evolves into The United Federation of Nations, by merging with China's successor states.
They intend to liberate Japan and show that Britannia isn't the leading force in the world anymore.
Lelouch rescues her from the collapsing subspace and they escape through the mystic door.
But C.C. has lost her entire memory, regressing to the mind of a medieval slave.
Charles has taken V.V.'s immortality.
C.C.'s ultimate goal is for Lelouch to take hers. Or it was, anyway. She arrives to confront Charles and sends Lelouch into her own memories.
But Lelouch will not be removed. After learning C.C.'s history, he returns and destroys the Sword.
This is no mere vision. Lelouch is physically in the Thought Elevator/Sword of Akasha confronting Charles. He uses his geass and Charles shoots himself through the heart.
But it isn't that easy.
The final stage of geass is to absorb the progenitor's immortality.