AI character engine building interactive NPCs with memory, personality, and goals; adaptable for humanoid robot conversational personalities and social behavior