There are a few different endings in Hogwarts Legacy, and dialogue choices determine which one players will get.
Venture solo or summon your friends, and together, you can become the greatest heroes and defeat evil entities. You can also change your family, race, and appearance with Onikami Legacy codes.