The ending is composed of several scenes.
After defeating Barbarosa, there is a dialogue exchange between him, Kasim and Windy. Barbarosa ends up committing suicide and taking Windy with him.
This scene can vary.
Kasim will enter the room if he's not in your party. If he's in your party, then he'll just step out of your character.
Sonya, Milich, and Kwanda will also enter the room if you didn't have them in your party and each has one line of dialogue in the scene. If you had those characters in your party or if they died in combat, then they will not appear in the scene at all.
Flik and Viktor will always appear since they are mandatory characters for the last battle and they cannot die in combat.
The escape. This scene contains no variations other than what you answer to Flik or Viktor when they choose to stay behind and fight the enemies.
Outside the castle.
There's a scene where it shows several characters (Tai Ho, Lepant, Kirkis, Sylvina, Cleo, Pahn, Hix, Tengaar, Futch, Humphrey, Gen, Kamandol) cheering.
If Pahn died, then he will not appear in the scene.
I used a gameshark code to have Tai Ho, Lepant, Kirkis, Sylvina, Cleo, Hix, Tengaar, Futch, Humphrey, Gen, and Kamandol dead or non-recruited and they still appeared in the ending.
It shows Likuan and a bed-ridden Mathiu. Mathiu dies.
This scene cannot be changed.
The epilogues for all characters you collected. If you missed a character, then their text box will be empty. Except a few characters, which have multiple epilogues.
If you never revive him, it will say he died in the Soniere Prison. If you revived him, then it says he follows the hero.
If he lost the Teo McDohl battle, then it will say so. If he survived the battle, then it will say he embarked on a journey.
If Maximilian died in combat, then it will say Sancho places flowers on Max's grave. If Maximilian didn't die, then it says he continues to serve him.
Tengaar has a second epilogue, but it's not accessible in the final game. So basically, he only has one official epilogue.
Gon has two epilogues, but they are both exactly the same.
If a character died in combat, then his text box will say one of these lines depending on which battle he died in:
-Pannu Yakuta Castle, Killed fighting Kwanda
-Killed at the Battle of Garan
-Scarleticia Castle, Killed fighting Milich
-Killed fighting Teo
-Northern Checkpoint, Killed fighting Griffith
-Shasarazade Floating Fortress, Killed fighting Sonya
-The Final Battle, Killed fighting Yuber
Credits. Always the same.
If Gremio was not revived, then it shows the hero leaving alone, and a drawing of him will appear.
If Gremio was revived, then it shows both of them leaving, and a drawing of both of them will appear.