On the Subject of Red Levers

8 decisions, and any can be your last.
Wait, what do you mean that’s taken?

This module has 8 small levers on it.
If the first lever is not red, you are looking at a different module.

To disarm the module, flip all 8 levers in the correct order.

First Lever to flip

Start from the first row, stop at the first one that applies.

Last Lever’s Color
Indicators RedYellowGreenBlue
Unlit SND FirstSixthFourthSecond
Lit CAR ThirdLastSeventhFifth
Unlit IND SecondFourthLastSixth
Lit FRQ FifthFirstThirdSeventh
Unlit FRK SeventhFifthSecondFirst
Lit NSA FourthThirdSixthLast
Unlit BOB SixthSecondFirstFourth
Lit TRN LastSeventhFifthThird
Unlit SIG SecondFifthFourthFirst
Lit CLR SeventhSixthLastSecond
Unlit MSA FirstThirdSixthFourth
Lit BOB LastFourthFifthSeventh
Otherwise FirstSecondFourthThird

Second Lever to flip

Previous Lever Flipped
Colour FirstSecondThirdFourth FifthSixthSeventhLast
Red SecondFifthFourthSixth FourthSecondLastSeventh
Yellow XFirstSeventhFirst LastFirstThirdFirst
Green XSixthFifthSecond ThirdFourthFifthThird
Blue XSeventhLastSixth FourthLastSecondSixth

Third Lever to flip

If the lever you got from this table have been already flipped, take the second digit of the Serial Number, and count that many levers to the left. If the lever you land on has been flipped, continue moving one space to the left until you land on an unflipped lever.

First Lever Flipped
RedYellowGreenBlue
Second
Lever
Flipped
Red LastSeventhFirstFourth
Yellow FirstSecondFourthSixth
Green ThirdFifthSeventhLast
Blue FifthSixthThirdSecond

Fourth Lever to flip

If the lever you got from this table have been already flipped, take the first letter of the Serial Number, convert it into a number (A1Z26), and count that many levers to the right. If the lever you land on has been flipped, continue moving one space to the right until you land on an unflipped lever.

Previous Flipped Lever
Its Colour FirstSecondThirdFourthFifthSixthSeventhLast
Red LastFirstSecondFifthThirdFourthSixthSeventh
Yellow XThirdFourthSeventhSixthLastFirstSecond
Green XFifthSixthFirstFourthFirstSecondFifth
Blue XSeventhLastThirdLastThirdFourthSixth

The Remaining Levers

If there is a lit BOB indicator on the bomb and more than 4 batteries, flip all remaining levers in order from left to right.

Otherwise, if the first lever has not been flipped yet, flip the first lever, then the rest in order from right to left.

Otherwise, if all levers flipped so far have unique colours, flip the second unflipped lever from the right, then flip the rest in order from left to right.

Otherwise, if no Red levers have been flipped, flip the first unflipped lever from the left, then flip the rest in order from right to left.

Otherwise, flip the remaining levers in order from right to left.