|“||"I don't have to deal with you, but I do have to wreck everything."||„|
|~ William while under X.A.N.A.'s control.|
William Dunbar is the secondary antagonist in Code Lyoko. He is one of the students at Kadic and Ulrich's rival in competing for Yumi's affection. He is also the only character aside from the main group to ever enter Lyoko, but it only caused him to be brainwashed and captured by X.A.N.A., who turned William into his general for most of the series until the finale. He was voiced by David Gasman, who also voiced X.A.N.A.
Prior to the series
William Dunbar was raised by his loving parents, growing up and living a fairly normal life. Before he transferred to Kadic Academy, William was infamous at his previous schools for his "puppy love" and stunts he pulled because of it. His most recent school prior expelled him for strewing love letters around the halls.
William was introduced early in the second season and though his crush on Yumi wasn't obvious in his first couple of episodes, the jealousy he stirred in Ulrich was. His crush on Yumi started showing eventually but in the form of a Casanova facade rather than his usual blind puppy love.
When not advancing on Yumi, William can be seen having heart-to-heart conversations with Ulrich or fighting off XANA's attacks when and how he sees fit. After each time reversion Ulrich goes through, the bad aspects of their relationship are erased and they both gain a mutual respect for each other. Meanwhile, Yumi tends to leave her relationship with him unmended when the group avoids time reversions.
This ultimately piques William's curiosity when she sneaks away from him to fight XANA one night and leaving him in a foul mood the next day. At XANA's next outing, William secretly follows Jeremy and Aelita to the computer lab and gains a broad understanding of XANA, albeit temporarily. When they finally discover XANA's motivations, William and Ulrich get into a fight with a possessed demoman and the fight becomes ingrained into William's memory. The attack is stopped and William is petitioned into fighting XANA with the group, but Yumi vetoes him and his memory is seemingly erased by a time reversion.
Before the last terrestrial sector of Lyoko is destroyed, William tells Yumi about the fight and says he thinks it's a dream. Yumi then asks him to cover for her while she stops XANA's following attack. XANA's attack ultimately succeeds, but Jeremy manages to successfully fabricate a working transfer protocol for Sector 5, and given the pressure surrounding Lyoko's survival Yumi changes her mind and decides to recruit William. She does this by telling William that his dream was real and William accepts.
On a day that real life problems occupy every Lyoko Warrior except for Aelita, she is forced to bring William to Lyoko for the first time when XANA attacks the core. William's brashness and lack of training lead him to become separated from Aelita and attacked by a Schyphozoa. William then falls under XANA's control, devirtualizes Aelita and proceeds to the core to destroy Lyoko. In spite of the remaining Lyoko Warriors' efforts, William destroys the core and is deleted along with Lyoko. However, XANA's possession allows it to salvage William's DNA codes from the network and recreate William as XANA's general.
Executing XANA's Ultimate Plan
The Lyoko Warriors manage to recreate Lyoko with data shared by Franz Hopper along with staving off Kadic and the authorities by posing as William over the phone. With Lyoko's rebirth, XANA sends William back to Earth as a double agent to get close to Aelita and while the Lyoko Warriors were questioning the circumstances that led to William coming back, he kidnaps her and attempts to delete her. When that fails, the group decides to create a spectre to pose as William on Earth, whom he only ever encounters once.
After a few attempts on Aelita's life fail, XANA starts sending William back to Lyoko's new core in order to destroy it again. These attacks are seemingly random, but as XANA grows in strength, William is forced to take different approaches in order to hide its agenda. This includes using a digital submarine that was stolen by the Schyphoza to delete the Lyoko Warriors individually and defending the Lyoko replicas by entering a kill code into the original sub during their earthbound teleportation. It is then revealed that William is specifically targeting Aelite because her deletion can draw Franz Hopper from the recesses of the network at which point XANA can attack and eventually destroy him.
During the first attack on the fourth replica, XANA teleports William to Earth as a spectre in Lyoko form in order to stop the teleportation without the kill code. This turns out to be a miscalculation, as Aelita discovers William's exposed DNA codes in the tower that XANA used to send William to Earth. At the same time though, XANA also collects power from the replicas to generate a new monster which causes the Lyoko Warriors to retreat. This new monster dubbed "the Kolossus" aids William in defending the replica during the second attempt. Where the Kolossus succeeds, William fails due to being devirtualized and reconstituted on Earth.
William does manage to take hold of his life, in light of the spectre's blunders, but he is not on the best terms with the Lyoko Warriors due to the conscious folly that got him possessed. When they go to the factory for what would appear to be the last time, William follows them and volunteers to go to Lyoko. However, they decide to only have him come as potential backup. XANA, in an act of desperation, decides to possess William on Earth with its most personable spectre and have him disable the factory and Jeremy. Following the release of the Anti-XANA program, the spectre is expelled from William's body, screaming and writhing in pain assuring the program's destruction.
Though William did not have a say in shutting down the supercomputer following XANA's destruction, he convinces Yumi that her conviction to shut it down is the right thing as they reminisce on their previous fights. Ultimately, when the supercomputer is shut down, William is not seen after the fact, but it is assumed that he moved on with the rest of the group and left XANA behind as a bad memory.
Code Lyoko Evolution
In Code Lyoko Evolution, William becomes a full member of the group and fights alongside them against X.A.N.A. in episode 15 the Codeless when Jeremy virtualize Yumi and William to the desert to deactivate the tower they noticed that there was another William that looks exactly like him but his skin was light green however yumi was about to attack him but was punch and lost some of her life points Jeremy told her to be very extra careful not to lose any more life points he begins to Welcome William back home On lyoko which he begins to know That William has feelings for her and he begins to know that he becomes rejected manipulated and always the team waited for him and then reject him after that she tells him not to listen to him he brings up all the past memories of months ago when he was on there he was a king and all the monsters obey his every command tell him that and no one didn't hurt him anymore.
Yumi tries to tell him to snap out of it but became in raged of being rejected as he begins to go with him she tried to convince him not to listen to them anymore he begins to use his blade by telling her to be quiet however she begins to tell him that he only want their codes and doesn't care about him As yumi becomes double cross and run away clone William told him She abandoned you again, yumi becomes very scared of William and his clone are coming after her however she became trapped and nowhere else to go she and Jeremy was trying to convince him to not do this however he played along and attacked his clone realizing that his friends and saving the world is more important than being a king and a slave of X.A.NA again As clone William became disappointed of the choice that he made and go straight after yumi she managed to go to the Tower but she was blocked by his evil clone however he Manage to stop his clone and defeated him.
However in the episode "Mutiny", William is once again pocesed by X.A.N.A. using the scyphozoa although it is not a full conversion as it's tentacles are still attached to him. William then leads an army of Krabes to kill the group. They try to talk him down but it doesn't work. Ulrich then distracts him and his monsters (as he is in control of them) which gives the rest of them enough time to cut the tentacles which frees William and kills all the monsters.
Powers and Abilities
On Earth, William has slightly above-average athleticism and combat training. Other than that, he is still human and has no notable physical traits. As a spectre, he gains incredible strength and speed, the ability to shoot lighting, and is completely indestructible due to his incomparable connection to Lyoko. The only time this connection failed is when his Lyoko form was tethered to a tower on the Siberian replica.
On Lyoko, William is more powerful than three of the Lyoko Warriors combined due to XANA's augmentations. He has three times the amount of life-points and is able to take multiple hits from Aelita's energy blasts and Odd's Laser Arrows, both of which could devirtualize anyone else in one or two shots. William's most iconic power is his "Super Smoke" an ability explicitly given to him through XANA's design. With it, he can dispense small clouds of black smoke to throw or carry his enemies. This ability also allows him to turn into a slightly larger cloud that is indestructible, has omnidirectional transport range and can fly at high speeds.
William's Lyoko Warrior weapon is a zweihander sword that can be called upon with his super smoke. The sword itself can absorb energy, perform energy slashes of varying strength and it allows William to hover and glide while not in his cloud state. It is unknown what the Eye of XANA located on the center of the sword does, but it has been known to make the entire sword light up with red shockwaves when struck, which indicates that the sword can possibly be destroyed by hitting it hard enough, but this has never happened.
William initially comes off as being a normal teenager with non-delinquent tendencies. The tendencies stem from an obsession of expressing his puppy love, which he has been known to be expelled from previous schools over. As the series progresses, William tries to advance on Yumi to no avail and realizes that she is more interested in Ulrich, but still persists. When his curiosity is piqued, he becomes somewhat obnoxious to the point of impulsively stalking Jeremy and Aelita just because they're Yumi's closest friends, and ignoring important advice from Aelita just to have fun destroying XANA's monsters. However, despite all of this, William is both noble and humble enough to help people he doesn't like, which is how he earned Ulrich's respect during XANA's various attacks.
After XANA takes permanent control of him, William is initially stoic and sometimes callous, saying very few words though the words spoken are harsh and commanding. His hypnotic dedication to XANA even encourages him to shout "FOR XANA!" during battle. As the possession deepens William stops targeting Yumi and develops a sadistic obsession with Aelita, along with speaking more frequently.
According to the writers, William is usually running through battle simulations when not on Lyoko to widen his strategic range and his inability to be reasoned with while possessed is because he subconsciously blames the Lyoko Warriors, especially Yumi, for his enslavement.