One small point to add: if you haven't already, do look up Format in the AGS manual, as %d will work only for integer variables. If you want to display strings, floating-point numbers, etc, you need a different symbol (or symbols) following the per cent sign.