Wendel, try changing the following:
Code: Select all
#define Homeloc "1792,993"
to
#define Homelocx $v95
#define Homelocy $v96
(inside Sub Main)
/varset v95 1792
/varset v96 993
Then inside Sub GoToLoc change:
Code: Select all
/face loc 1792,993
to
/face loc $v95,$v96
and
/if n $distance($v95,v$96)>12 /goto :gohomeloop
It's not much of a change really, just nitpicking, but this way, when you get your macro working, instead of hardcoding the homeloc into the macro, you can change the macro to take in the homeloc by running "/mac pull x y" by simply changing the /varset v95 # and /varset v96 # to /varset v95 $p0 and /varset v96 $p1 or something. I'm not that good of a macro author so my actual code might be way off but the idea is sound.
Give me some time to go through your macro with the readme file open (to check my own syntax on my ideas) and I will see what I can come up with.
- icon