Is there a way to change the dialog file that your NPC speaks when a certain plot point has been reached? So far I've just been setting conditions for the dialog options but that's creating some really long and confusing dialog files. I tried:

IF
DialogStartRequested(CHARACTER_Dagny, _Player)
AND
GlobalSetEvent("End")
THEN
DialogStartTwoSpeakerDialog("DagnyEnd",CHARACTER_Dagny,_Player);

But it says that DIV call GlobalSetEvent cannot be used as a rule condition.