• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Random /declare and /varset question

foromoro

Well-known member
Joined
Dec 2, 2019
RedCents
233¢
I know that people are moving away from macro language and moving onto Lua, but im still hanging back a little bit for minor things so I can teach myself the structure of these languages and work through the basic groundwork for making and troubleshooting a macro before I spring off and try to fudge with a Lua.

I have scoured the general resources on declares and variables but one thing I cannot find an explanation for is what some of these things mean. I have gathered that int and string mean integer (number) and string (words), but don't know what local and outer mean? Anyone got a super simple explanation for the difference / meaning of local and outer?

Please and thank you!
 

Scopes

  • global
Variables of global scope ALWAYS exist until they are deleted or MacroQuest ends

  • outer
Variables of outer scope exist while a macro is running

  • local (default)
Variables of local scope only exist while within a macro function or "Sub"
 
Question - Random /declare and /varset question

Users who are viewing this thread

Back
Top
Cart