I think you should split up your dialog triggers a bit.
I worked once with something like this, it's a pitty it was about four or five years ago, so I don't have the triggers with me any more and I've forgotten how I did it.
Still, I recomend you, create one trigger for Dialog1 Button Is pressed, another one for Dialog2, another one for Dialog3, and so on.
That way it will be clearer to you and to everyone else what happens with each dialog.
You'll also avoid a lot of mysterious things that happen because things work slightly different than you thought and you were not seeing a tiny mistake (it's like 2+3*2 being diferent from (2+3)*2, the important thing is precedence)