User blog:Koveras Alvane/The Beauty of Mass Effect 2 Ending

...or "How Come the Suicide Mission Is So Awesome?"

Mass Effect 2 is the most universally adored part of the original Mass Effect trilogy, and despite its improved gameplay refinement and variety, Mass Effect 3 could never supplant its predecessor--because part two had something the sequel didn't: a mind-blowingly epic ending that left every player in awe. But what exactly made the ending of Mass Effect 2 so amazing? Although the magnificent cutscene direction and musical composition contribute a lot to the ending, the key to the awesomeness of Mass Effect 2 endgame segment lies in the gameplay design and the story scripting of the entire Suicide Mission.

Summary
The main appeal, driving force, and resource in Mass Effect 2 are the thirteen recruitable companions (squad mates) of Commander Shepard. The entire game revolves around them, and the Suicide Mission is quite consciously a FinalExamFinale level taking form of a weird puzzle and collectible card game hybrid. The collectible card aspect comes from the fact that the outcome of the endgame depends largely on what "deck" (i.e. which squad mates) you bring with you to the Omega 4 relay. The puzzle aspect is owed to the complex but static set of rules that determine your success or failure in the Suicide Mission--rules that are pretty obvious if you pay attention to your squad mates beforehand.

A bulk of Mass Effect 2 concerns the composition and enhancement of your "deck". This largest part of the game is very options-driven, meaning that you can do any missions in any order, mostly without fear of immediate harsh consequences. This part ends with the first true major choice of the game that finalizes the state of the "deck", namely, the choice of when to enter the Omega 4 Relay. The entire Suicide Mission boils down to (a mere) ten more choices that determine its outcome, as you are repeatedly forced to put your squad mates (including ones whom you might need later on) at risk of a plotline death in order to advance the mission. Your task is made easier by the fact that for every choice, there are at least three possible winning decisions--although, of course, you may not have all of them in your "deck" at that point. However, the game also refuses to hold your hand in solving this puzzle with obvious hints and instead makes you rely on common sense and prior knowledge of the individual squad mates' strengths and backgrounds to make ideal decisions.

The interchangeability of squad mates in certain story-relevant roles and, conversely, the dependency of said roles' outcomes (success or tragedy) on the suitability of the actors is what gives the strictly linear Suicide Mission its amazing variability. Even though it doesn't matter much, for instance, which loyal squad mate escorts the Normandy crew back to the ship, the option to choose one and the palpable consequence of that teammate being absent for the rest of the mission give the players an illusion of controlling their own story. By extension, the multitude of winning scenarios guarantees that most players end up feeling like they have been told a personal and unique story, even though all players start the endgame with roughly the same "decks" and experience exactly the same story beats along the way.

Pre-endgame variables
Your "deck" at the beginning of the Suicide Mission is effectively represented by three mathematical sets and two variables.

Recruited squad mates (R*)
This set is the base of all other pre-endgame options. There are 13 items available for this set (Garrus, Grunt, Jack, Jacob, Kasumi, Legion, Miranda, Mordin, Morinth, Samara, Tali, Thane, Zaeed) but it can only contain up to 12 at any time. Recruiting a squad mate generally takes place in the course of a single Dossier mission, but with several particularities:


 * Two squad mates (Jacob, Miranda) don't have to be recruited, as you start the game with them.
 * Three more (Garrus, Jack, Mordin) are mandatory, since it is not possible to enter the Collector Ship PlotTunnel without recruiting them first.
 * Two squad mates (Grunt, Legion) require manual activation after their respective recruitment mission before they can join as team members.
 * Two more (Zaeed, Kasumi) require purchasing DLC and join immediately after a brief dialogue instead of a full-length recruitment mission.
 * One squad mate (Morinth) can only be recruited by recruiting and then killing another during her loyalty mission (Samara).

Loyal squad mades (L*)
The set of loyal squad mates is always a subset of R*, therefore it likewise has 13 potential items but can only hold 12 at any time. Its membership is determined mainly by completing the so-called Loyalty Missions of the respective squad mates, with following particularities:


 * Four loyalties (Samara, Tali, Thane, Zaeed) can be forfeited by making certain decisions in the respective mission.
 * Two squad mates (Samara, Zaeed) can die during their respective loyalty missions, although in Zaeed's case, it is only possible after the Suicide Mission and is thus irrelevant to the endgame.
 * One squad mate (Morinth) is loyal immediately upon recruitment.

Additionally, two pairs of squad mates (Jack and Miranda, Tali and Legion) are scripted to get into a confrontation after the loyalty of both characters in a pair is earned. Unless you are able to persuade them to calm down, you are forced to support one side in the argument, losing the other's loyalty.

Ship upgrades (U*)
This set is a mix of story-relevant upgrades, gameplay-relevant upgrades, and even purely cosmetic upgrades (Med-Bay Upgrade). Only the three story-relevant upgrades (Heavy Ship Armor, Multicore Shielding, Thanix Cannon) have impact on the course of the Suicide Mission. The availability of all upgrades is directly derived from R*, since they can only be unlocked for purchase by talking with a specific squad mate.

Romanced squad mate (F)
The romanced squad mate is a singular member of the conjunction of L* and the fixed set of romanceable squad mates determined by Shepard's gender (Garrus, Jacob, Thane for female; Jack, Miranda, Tali for male). Of these, only one romance for each gender (Thane, Jack) has any effect on the course of the endgame, and that effect is purely cosmetic.

Delay between the attack on the Normandy and the Suicide Mission (D)
Since there is no real time-keeping in the game, the time is measured by the number of completed missions between two events, specifically, the kidnapping of the Normandy crew by the Collectors and the start of the Suicide Mission. In practical terms, this delay can have only three values: short (at most one story mission or assignment), middle (one to three assignments and no story missions), and long (anything above that).

Pseudocode of the Suicide Mission
Before passing through the Omega 4 Relay, two variable sets are initialized: the squad survivors set (S*) is initialized with the current contents of R* and the crew survivors set (CS*) is preset according to D (if short, all kidnapped crew members; if middle, half of the crew; if long, only Dr. Chakwas). The following pseudocode is a more-or-less formal representation of the endgame puzzle:


 * 1) CUTSCENE: Passing through the Omega 4 relay:
 * 2) Victim1 = "Jack"
 * 3) IF "Heavy Ship Armor" not in U* THEN remove Victim1 from S*
 * 4) PLAYER CHOICE #1: Two party members for the fight with Oculus:
 * 5) SELECT P1* from S*
 * 6) CUTSCENE: Eezo core overload:
 * 7) Victim2 = FIRST( ( { "Kasumi", "Legion", "Tali", "Thane", "Garrus", "Zaeed", "Grunt" } in S* ) not in P1* )
 * 8) IF "Multicore Shielding" not in U* THEN remove Victim2 from S*
 * 9) CUTSCENE: Taking on the Collector Cruiser:
 * 10) Victim3 = FIRST( { "Thane", "Garrus", "Zaeed", "Grunt", "Jack", "Samara", "Morinth" } in S* )
 * 11) IF "Thanix Cannon" not in U* THEN remove Victim3 from S*
 * 12) PLAYER CHOICE #2: Specialist Technician in the vents:
 * 13) SELECT ST from S*
 * 14) [=IdealST*=] = { "Tali", "Legion", "Kasumi" }
 * 15) PLAYER CHOICE #3: Fireteam Leader during Infiltration:
 * 16) SELECT [=FL1=] from (S* minus ST)
 * 17) [=IdealFL*=] = { "Garrus", "Jacob", "Miranda" }
 * 18) PLAYER CHOICE #4: Two party members during Infiltration:
 * 19) SELECT P2* from (S* minus { ST, [=FL1=] })
 * 20) CUTSCENE: Sealing the doors after Infiltration:
 * 21) IF (ST not in L*) or (ST not in [=IdealST*=]) or ([=FL1=] not in L*) or ([=FL1=] not in [=IdealFL*=]) THEN remove ST from S*
 * 22) PLAYER CHOICE #5: Biotic Specialist to hold the bubble:
 * 23) Biotics* = { "Samara", "Morinth", "Jack", "Miranda", "Thane", "Jacob" }
 * 24) SELECT BS from (S* in Biotics*)
 * 25) [=IdealBS*=] = { "Samara", "Morinth", "Jack" }
 * 26) PLAYER CHOICE #6: Fireteam Leader during the Long Walk:
 * 27) SELECT [=FL2=] from {S* minus BS}
 * 28) PLAYER CHOICE #7: Escort for the Normandy crew:
 * 29) SELECT ESC from (S* minus { BS, [=FL2=] }) OR none
 * 30) PLAYER CHOICE #8: Two party members for the Long Walk:
 * 31) SELECT P3* from (S* minus { BS, [=FL2=], ESC })
 * 32) CUTSCENE: Showdown with the Collector Swarm:
 * 33) IF (BS not in L*) or (BS not in [=IdealBS*=]) THEN remove RANDOM(P3*) from S*
 * 34) CUTSCENE: Opening the doors for the fireteam:
 * 35) IF ([=FL2=] <> "Miranda") and ( ([=FL2=] not in L*) or ([=FL2=] not in [=IdealFL*=]) ) THEN remove [=FL2=] from S*
 * 36) IF ([=FL2=] = F) and (F in { "Jack", "Thane" }) THEN use different last words
 * 37) CUTSCENE: Checking up on the Normandy crew:
 * 38) IF ESC = none THEN CS* = none
 * 39) IF ESC not in L* THEN remove ESC from S*
 * 40) PLAYER CHOICE #9: Two party members for the final battle:
 * 41) SELECT P4* from (S* minus ESC)
 * 42) Implicit choice (squad mates holding the line): HTL* = S* minus P4* minus ESC
 * 43) PLAYER CHOICE #10: Destroying or purging the Collector Base
 * 44) CUTSCENE: Escaping the Collector Base:
 * 45) Remove (P4* not in L*) from S*
 * 46) Remove MAGIC(S*, L*, P4*, ESC) from S*noteHere, MAGIC is the yet-undiscovered function that determines which squad mates die holding the line, based on their number, loyalties, and intrinsic defense values./note
 * 47) IF COUNT(S*) < 2 THEN Commander Shepard dies
 * 48) CUTSCENE: Dialogue with the Illusive Man (changes depending on whether Shepard survives and whether Collector Base was destroyed or purged)
 * 49) ENDING:
 * 50) IF S* = R* THEN "No One Left Behind"
 * 51) IF (S* <> R*) and (Shepard lives) THEN "Against All Odds"
 * 52) IF Shepard dead THEN "Mission Accomplished"