Originally Posted by
Mechalich
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.