Added NPC and dialog tree functionality.