How dose it work

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

|| Napolion ||
a ghoul
a ghoul
Posts: 96
Joined: Sat Dec 28, 2002 7:45 am

How dose it work

Post by || Napolion || » Tue Oct 07, 2003 6:33 am

With the new

/declare <variable> <global|timer|array>

How dose it work ??

1) If I don't declare a variable as a global do it only stay inside the sub it's made in ??
2) Are timer and array global when declared ??

|| Napolion ||

Never Mind I got it.

MacroFiend
a grimling bloodguard
a grimling bloodguard
Posts: 662
Joined: Mon Jul 28, 2003 2:47 am

Post by MacroFiend » Tue Oct 07, 2003 1:37 pm

You have to declare any type of timer, array or variable inside a sub.

If you declare them local, they will only be local to that sub. All timers and arrays are global in scope.