Load a list file from a private vARIABLE of the npc FAMILY in question on dialouge trigger
like so:
delete all lines
load from file apppath&"data\npc\"+VAR+".txt"
set line to one and call dialogue function
on dialogue function
set the text box that displays the npc name to soemthign like gettoken(getlistlinetext(currentselection),1,"#")
and then the main dilogue text to perhaps
(getlistlinetext(currentselection),2,"#")
then on key press event select the next line and call the function again
so a dialogue would look somethign like this
NPC#HELLO, DAVE#
PLAYER#TELL ME THE WAY TO THE LOST CAVERNS#
NPC#I CAN'T LET YOU GO THERE, DAVE#