- parse npc dialogues tree