I didnt search, because I am SURE no one has ever asked this before, unless they wrote scripts for macroquest 2.
But can I set up my script to work like this....
(code snips taken from TM's how-to step one thread.
;Header
;==================================
set %var1 500
set %books 3
gosub setup
gosub main
Sub main
mainloop:
;all the crap the script does here
GoTo mainloop
Sub setup
;all setup commands here
return
This is very similar to MQ2, except most commands use the "/" switch, in MQ2 it would look like this...
|Header
|==================================
/set %var1 500
/set %books 3
/call setup
/call main
Sub main
:mainloop
|all the crap the script does here
/goto :mainloop
Sub setup
;all setup commands here
/return
As you can see, it is mostly the same, | used instead of ; and / use with goto and return and : used at the beginning of the command instead of the end. But for the most part, it is exactly the same and if commands always started with the / switch.
But back to my main question, can the first code I wrote be used? Having a Sub Main that is called right after setup that is the main loop? I know for most of you, this is redundant, since just adding in loop: or mainloop: is basicly the same thing, but for me, it makes it easier to read.
I do not have access to UO ATM so I can make a simple script to test if it would work, thats why I am asking here, so I can learn.
Finally, am I the only one who thinks it would be much easier to have the command to use a skill like this
useskill hiding
Instead of...
macro (numbers here)