Edit:
Try using a _ in place of a 0 for DialogEnded. I'm looking through a script file right now and that's able to be done. The _ should mean anything works for that slot.
Ah-ha! That worked! Sort of.... :p
The NPC moved to his trigger (all the THEN functions processed), but the final dialog screen stayed on the screen and the camera was locked to the NPC (the camera lock thing is a result of the dialog box still being up I think). I may just have made a boo-boo in my KeywordEditor.