One day I would like to create an NPC system

I want revenge over the nemesis system being locked being copyright. I would create my own NPC system that would utilize id, ego and superego as three giant processors, them being like the biblical three magi.

the id would probably be the basic needs of the NPC, like charles darwin’s model, it would be the simplest functions or “actors” in any kind of NPC

then there would be the “superego” this one would control a kind of desire trait, would be more prominant as players interact with the NPC maybe

for the ego, I think this would be the NPC’s main “personality” where the PC itself could develop their individual idea of who they are acting as