Code: Select all
Sub Main
/declare locX local
/declare locY local
/varset locX ${Math.Calc[${Target.X}-${Math.Sin[${Math.Calc[${Target.Heading}*10]}]}]}
/echo @locX
/varset locY ${Math.Calc[${Target.Y}-${Math.Cos[${Math.Calc[${Target.Heading}*10]}]}]}
/echo @locY
/echo ${Math.Distance[${Me.X},${Me.Y}:@locX,@locY]}
/endmacro
105.23[]
-35.21[]
${Math.Distance[25.34,136.23:300.51[][]
where [] represent the symbol for cr+lf
If you enable the old parms system AND the new parms system, the above macro works as intended, and does not display the [] symbol for cr+lf after each echo'd line of text.

