I am thinking I need to set up usage like this: /Move.mac <YLoc, XLoc> <YLoc, XLoc> <YLoc, XLoc> <YLoc, XLoc>
This is to place in the 4 /loc's that are needed.
So I would declare like this maybe for each loc defined?
/declare aYLoc int outer
/declare aXLoc int outer
/declare bYLoc int outer
/declare bXLoc int outer
/declare cYLoc int outer
/declare cXLoc int outer
/declare dYLoc int outer
/declare dXLoc int outer
Now this is where I run into my problem. Can the above even be used? And if it can, how do I get it to place in each loc for the usage? Maybe something like this?
/mac Move.mac 100 -100 200 -200 300 -300 400 -400
That would define each loc I would like to run too and from. Now how do I go about setting each of those variables? This is the trouble I am having and any help would be appreciated. Just a little nudge in the right direction would help me a ton and help me to learn how to write this code. After all I am trying
Will this work at all for setting the loc's?
/varset aYLoc ${YLoc}
/if (!${Defined[aYLoc]}) {
/echo First Loc set at ${YLoc}
}
/varset aXLoc ${XLoc}
/if (!${Defined[aXLoc]}) {
/echo First Loc set at ${XLoc}
}
/varset bYLoc ${YLoc}
/if (!${Defined[bYLoc]}) {
/echo Second Loc set at ${YLoc}
}
/varset bXLoc ${XLoc}
/if (!${Defined[bXLoc]}) {
/echo Second Loc set at ${XLoc}
}
/varset cYLoc ${YLoc}
/if (!${Defined[cYLoc]}) {
/echo Thrid Loc set at ${YLoc}
}
/varset cXLoc ${XLoc}
/if (!${Defined[cXLoc]}) {
/echo Third Loc set at ${XLoc}
}
/varset dYLoc ${YLoc}
/if (!${Defined[dYLoc]}) {
/echo Fourth Loc set at ${YLoc}
}
/varset dXLoc ${XLoc}
/if (!${Defined[dXLoc]}) {
/echo Fourth Loc set at ${XLoc}
}
Again, please dont rip my head off, I am trying to learn this stuff and am looking for a nudge. Thanks guys!


