OK so I need help with making a way to quit the game after a dialog ends. So after the stop command in the dialog it executes the next line of code
You can insert code just as usual in the dialog editor, you just need to indent with a space.
Thus:
stop
QuitGame ();