Square Enix have recently filed a patent that allows in-game NPCs to be trained based on the player’s behaviour.