I've just finished transcribing our internal documentation of the dialog editor. Both dialog variables and script variables are explained there now.