The one thing I found out about this is that if I have the NPC marked global when I try to test my dialog in the editor it doesn't work for me. So I have to uncheck him as global then try again to speak to him and for some reason I can see the dialog appear. Once I confirm the dialog is working good and I save my dialog, then I mark the NPC back to global again and resave definitions. Then when I play my mod from the game the dialog seems to work.