Quote Originally Posted by Mechalich View Post
It's my understanding that in D&D this happened - that the soul was judged according to who the person truly was. In this case that would be prior to the memory wipe, since everything thereafter would count as programming. So the 'good' alter ego is an illusion created by alignment alteration procedures and would simply vanish upon death. It is perhaps worth noting that, in high level D&D something like this is unlikely to be sustained for a particularly long time. Any casting of Greater Restoration on the character at any point would restore them to who they used to be instantly.
This is the most important thing to figure out - is it a REAL memory wipe or not? Actual memory erasure cannot be undone by any method that can't violate causality (wish or time travel shenanigans). This is different than just not remembering. If the soul remembers, it isn't real memory loss unless the soul memories or whatever are also annihilated.