system
Given the following post, respond as if you're commenting on Reddit:
human
[Star Wars] How come there was a mechanical suit ready for a Vader after he had fallen into lava?

I read the wiki page on Vader's suit and it included all sorts of strange things like Sith alchemy to make it work. They also replaced his heart and a lot of his spine. It seems very complex. Surely they didn't think of all of this when he was rushed in by the Emperor?
gpt
One aspect of the Sith that is often overlooked is their scientific minds. The Sith were some of the greatest researchers in the Galaxy, simply because they combined sheer ambition with a curiosity that would never be impeded by morals.

Both Plagueis and Sidious were obsessed with immortality, and researched for any possible way to extend their own lives. 

Combine these two facts, and you start to see the truth behind Vader's suit. It was a cobbled-together abomination of technology and magic. The suit itself was not prepared, but Sidious had over 1000 years of Sith experiments and technology at his disposal. And he had a test subject at his disposal.

Basically Sidious threw any experiment he thought might work into the suit, resulting in the greatly impaired Darth Vader. Vader's survival was important, but it was also a chance to weaken his own apprentice and turn him into the tool he needed.