• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

Macro Code Question (1 Viewer)

armysoldier

Well-known member
Joined
Jun 26, 2005
RedCents
101¢
If i call a macro from with in a macro ...

example

Rich (BB code):
MacroA has a IF statement and calls MacroB if true

When macrob is done... does if automatically go back into macroA where it was called from?


Like the subs and such


thanks gang
 
You can't call one macro from another. The first macro will end so there's nothing to "/return" to. Just make macro #2 into an include file (ie. just one big subroutine) and then /call it like any other sub.

-SimpleMynd
 
MainMacro.mac
Rich (BB code):
#include OtherMacro.inc

Sub Main

    /if (${Me.State.Equal[STAND]}) /call OtherMacro

/return
OtherMacro.inc
Rich (BB code):
Sub OtherMacro

    /sit

/return

Just rename the Main in your included macro to the normal name of the macro and save it as a .inc extension.

-SimpleMynd
 
Macro Code Question

Users who are viewing this thread

Back
Top